Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20774

Share your working BASCOM-AVR code here : Graphic LCD Screen Dump : REPLY

$
0
0
Hi Six1, Yea, I had to do some learning on this display as well, with help from Mark. From the data sheet, (See the attached Picture) Each one line of 8 bits is called a page. This is a whole line from LEFT side of the display to the RIGHT side. (128 bytes wide or 2 x 64) The chip selects choose which of the chips you want to access to read the data from that line. Each line consists of two halves of a screen 2 x 64 x 8bits, with bit 0 at the top. Line 0 0 2 Pixels 63 D0 D0 D0 | | ------ | D7 D7 D7 This is repeated for the second driver chip Line 0 0 2 Pixels 63 | 0 2 Pixels 63 ( 2x 64 bytes wide) = 128 pixels) D0 D0 D0 | D0 D0 D0 | | ------ | | | | ------ | D7 D7 D7 | D7 D7 D7 And continues down to the bottom of the LCD to line 8 (8 lines x 8Bits High = 64 pixels) Line 7 0 2 63 | 0 2 63 ( 2x 64 bytes wide) = 128 pixels) D0 D0 D0 | D0 D0 D0 | | ------ | | | | ------ | D7 D7 D7 | D7 D7 D7 The outside loop 0-7 is the page number (or line) to be read. The first loop 0-63 does the left part of the line to the center of the screen, [b:e5e74c8bbc]Between[/b:e5e74c8bbc] the two 0-63 loops, The address is zeroed again for the second chip and the chip select is is swapped to access the second chip. The second 0-63 loop does the right hand side of the screen (second half of the same line) The for - next loop (page) is changed to move to the next line, and the cycle is repeated till the outer loop is finished. (8 lines total ) So basically, the program reads the screen data byte by byte starting from the Left top of the screen, and reads the data line by line until it gets to the bottom right of the screen. In each loop for purposes of testing, I send the data that has been read out the serial port as binary to a terminal so that it can bee easily seen. When I say easily, I mean tilt you head to the right side, squint your eyes and scroll through the binary and you will see the screen data as one continuous stream of 1's and 0's with the 1's being a turned on pixel on the screen. So I guess when I say easily, it's not. Hope this helps Regards Dean [/img]

Viewing all articles
Browse latest Browse all 20774

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>