ts-7000
[Top] [All Lists]

Re: [ts-7000] Trying to understand TS7KV

To: <>
Subject: Re: [ts-7000] Trying to understand TS7KV
From: "Charlie Wallace" <>
Date: Sun, 23 Dec 2007 13:34:01 -0800
I just checked my TS7300 the blue is 6 bits using the 640x480 driver, but i 
don't know much about 
the mysterious transparency bit. So its RGB 565, maybe it goes to 4 bits blue 
when this tranparency 
bit is set.

Maybe thats what the equally mysterious bit 12 is of the VIDCTRL register.

I've still be unable to read from the VIDCTRL register, and i can't read back 
from the framebuffer, 
i'm curious if anyone else has noticed this or not ? It might be a problem with 
the blit being in 
progress since i can't successfully determine if it is, since my hardware locks 
up if i read from 
VIDCTRL.

This is the message i was referring to in the last post

///////////////
I use a macro define:
#define SetDispBufNums(x,y) (0x300 |(x<<3) | y)

Then I use:
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2);
This selects screen 1 to view and 2 to edit (or was it the other way
round;)
Swapping the 1 and 2 will toggle displays. The values are 0..7.
main(){
int i;
volatile unsigned short *VGAregs; // VGA Registers 16 Bit
volatile unsigned short *fb; // Screen buffer 16 Bit
VGAregs = (unsigned short *)mmap(0, 4096, PROT_READ|PROT_WRITE,
MAP_SHARED, mem_fd, 0x72000000);
if (VGAregs == MAP_FAILED) { perror("mmap1:"); return 0; }
VGAregs += (0x30/sizeof(unsigned short));
fb = (unsigned short *)mmap(0, _scrW*_scrH*2, PROT_READ|PROT_WRITE,
MAP_SHARED, mem_fd, 0x72200000);
if (fb == MAP_FAILED) { perror("mmap2:"); return 0; }
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2);
for (i=0; i<(640*480); i++) fb[i]=0xF800; // Fill Red
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(2,1); // Display Red
for (i=0; i<(640*480); i++) fb[i]=0x07C0; // Fill Green
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2); // Display Green
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(2,1); // Display Red
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2); // Display Green
} 




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU