LCD/OLED Memory Mapping

hippy

Technical Support
Staff member
The attached program may be useful for people trying to determine where the start addresses are for lines of their LCD / OLED displays. It's for 20M2 but easily adjusted for any PICAXE; just change the LCD symbol and / or LCD_BAUD.

When the program has run and stopped updating the display the first two digits at the start of each line are the addresses in hex to use to put a character at that line. For example, if the display shows ...

8082848688....
C0C2C4C6C8....

The key numbers are "80" and "C0", and the following should address the appropriate lines ...

SerOut LCD, LCD_BAUD, ( 254, $80, "Line 1" )
SerOut LCD, LCD_BAUD, ( 254, $C0, "Line 2" )

It's not been exhaustively tested but seems to work and showed up all sorts of odd memory mapping for the displays I tested.
 

Attachments

Last edited:

hippy

Technical Support
Staff member
The display looks good, is it what you expected?
Yes, exactly as expected, with the results which match my example in post 1; start of the top line at "80" ( $80 / 128), start of the bottom line at "C0" ( $C0 / 192 ).
 

The bear

Senior Member
Today @ ~ 12:30 my Post#2 wasn't visible.
So I've posted again, similar detail as in post #2
That is not visible also.(Post #4). I can see my post are not going into the 'active forum'.
Would someone be kind enough to move my posts?
 
Last edited:

hippy

Technical Support
Staff member
Today @ ~ 12:30 my Post#2 wasn't visible.
So I've posted again, similar detail as in post #2
That is not visible also.(Post #4). I can see my post are not going into the 'active forum'.
Would someone be kind enough to move my posts?
We'll be happy to help, move things as necessary, but it's not exactly clear what is not visible, how post #4 is not visible. We would need to know, if posts aren't going to the active forum, where are they going, and where do they need to be moved from and to ?
 

hippy

Technical Support
Staff member
It appears my missing posts were going here;
Which is "here", where I'm reading them. So perhaps the question is where do you want them moving to ? Or should I just delete them given you have now posted to the AXE131 thread where I guess they were meant to go ...


As to why they ended up here, rather than there, I have no idea. I have not seen that happen with anyone else's posts.
 

The bear

Senior Member
@hippy, Ideally I would like my posts in the Active Forum, if you need to delete anything, feel free.
I suspect my posts went adrift with the Memory Mapping thread.
 
Top