Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Appendix B: Examples
This is a sort of RAM memory so data can be written to and read from it, but its contents is irretrievably lost upon the
power goes off.
CGROM Memory
CGROM memory contains the default character map with all characters that can be displayed on the screen. Each
character is assigned to one memory location:
The addresses of CGROM memory locations match the characters of ASCII. If the program being currently executed
encounters a command "send character P to port" then the binary value 0101 0000 appears on the port. This value is the
ASCII equivalent to the character P. It is then written to LCD, which results in displaying the symbol from the 0101 0000
location of CGROM. In other words, the character "P" is displayed. This applies to all letters of the alphabet (capitals and
small), but not to the numbers!
As seen on the previous map, addresses of all digits are pushed forward by 48 relative to their values (digit 0 address is 48,
digit 1 address is 49, digit 2 address is 50 etc.). Accordingly, in order to display digits correctly it is necessary to add a
decimal number 48 to each of them prior to sending them to LCD.
http://www.mikroe.com/en/books/picmcubook/appb/ (14 of 54)5/3/2009 11:36:02 AM