Download SAPIC-E Small Alphanumeric LCD Controller User`s Manual
Transcript
CG RAM, DD RAM, and pattern examples for 5x7 dot patterns Character Codes CG RAM Address Character Patterns (DD RAM Data) (CG RAM Data) 76543210 543210 43210 000000 11110 000001 10001 000010 1 0 0 0 1 - Character 000011 1 1 1 1 0 - Pattern 0000*000 000100 1 0 1 0 0 - Example (1) 000101 10010 000110 10001 000111 0 0 0 0 0 - Cursor Position 001000 10001 001001 01010 001010 1 1 1 1 1 - Character 001011 0 0 1 0 0 - Pattern 0000*001 001100 1 1 1 1 1 - Example (2) 001101 00100 001110 00100 001111 0 0 0 0 0 - Cursor position *Don't Care Notes: a) Character code bits 0-2 correspond to CG RAM address bits 3-5 for a total of 8 patterns. b) CG RAM address codes 0-2 designate character pattern line. The 8th line is the cursor position. It is logically "OR'ed" with the cursor instruction. c) Character patterns are loaded into CG RAM data bits 0-4 as shown in the table. (Bit 4 is the left side). Since CG RAM bits 5-7 are not used, they may be used for general data RAM. d) CG RAM patterns are displayed on the LCD when character code bits 4-7 are all "0". Bit 3 is a don't care bit. Therefore, character pattern (1) can be selected with character code 00H or 08H. e) "1" in the character pattern turn a dot "ON". "0" indicates a non-selected dot. User's Manual Version 1.1 November 1, 1999 21