Command Codes
User Defined Character Definition (08h, CODE, Byte1…Byte5)
This command defines a user defined character (UDC). The UDC character code is set by the CODE byte and must be 00H to 07H. All other values for CODE will be ignored by this command. The five bytes following a valid CODE byte define the character. D1 through D40 represent the character dots. A (1) indicates the dot is on and (0) indicates the dot is off in the following format:
5 x 8 Dot Matrix Character
D1 |
D2 | D3 | D4 | D5 |
D6 | D7 | D8 | D9 | D10 |
D11 | D12 | D13 | D14 | D15 |
D16 | D17 | D18 | D19 | D20 |
D21 | D22 | D23 | D24 | D25 |
D26 | D27 | D28 | D29 | D30 |
D31 | D32 | D33 | D34 | D35 |
D36 | D37 | D38 | D39 | D40 |
BYTE# |
Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
1 |
D1 |
D2 |
D3 |
D4 |
D5 |
D6 |
D7 |
D8 |
2 |
D9 |
D10 |
D11 |
D12 |
D13 |
D14 |
D15 |
D16 |
3 |
D17 |
D18 |
D19 |
D20 |
D21 |
D22 |
D23 |
D24 |
4 |
D25 |
D26 |
D27 |
D28 |
D29 |
D30 |
D31 |
D32 |
5 |
D33 |
D34 |
D35 |
D36 |
D37 |
D38 |
D39 |
D40 |
Character Table Select (09h, TABLE CODE)
This command selects which character table to display. The TABLE CODE byte determines the character set as defined in the table below. If bits 0 to 3 are all zero then this command is ignored. When a new character table is selected all characters on the display will be updated to display the character of the new table. After a reset the character table is set to Table 1
Table Code |
Character Table |
01h |
Table 1 |
02h |
Table 2 |
03h |
Table 3 |
04h |
Table 4 |
Clear Display (12h)
This command sets all 40 characters to 20h (space) and moves the cursor to the first position of the top line.
Luminance Control (11h, LUMINANCE)
This command selects the display luminance. The LUMINANCE byte sets the display luminance level as defined in the table below. This command is ignored if the LUMINANCE byte is 00h.
LUMINANCE |
Display Luminance |
01h |
25% |
02h |
50% |
03h |
75% |
04h |
100% |
Cursor Position (10h, POSITION)
This command sets the cursor position. The POSITION byte moves the cursor position according to the table below. The next character byte writes to the new position and the cursor auto-increments to the next position. This command is ignored if the POSITION byte value is greater than 27h.
|
1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
1 |
00h |
01h |
02h |
03h |
04h |
05h |
06h |
07h |
08h |
09h |
0Ah |
0Bh |
0Ch |
0Dh |
0Eh |
0Fh |
10h |
11h |
12h |
13h |
2 |
14h |
15h |
16h |
17h |
18h |
19h |
1Ah |
1Bh |
1Ch |
1Dh |
1Eh |
1Fh |
20h |
21h |
22h |
23h |
24h |
25h |
26h |
27h |
Reset (13h)
This command resets the module to the following conditions:
•100% luminance
•All 5x8 dot matrix characters set to 20h (space)
•Cursor position set to 00h
•Character table set to Table 1
•All user defined characters cleared