LCD Controller Specification
©
2006 Microchip Technology Inc.
DS70099D-page 79
B.5
CHARACTER COMMANDS
The character commands treat the display like a 20-column, 4-row character display
where the characters occupy 6 x 8 pixel elements. Note that there are 20 character
locations on a row, each 6 pixels wide. This current implementation only uses 120
pixels of the 122-pixel wide display. The spare two-pixel columns are on the right of the
display and cannot be affected by the character commands. The controller has a fixed
space 5 x 7 font set for the printable ASCII characters in range: 0x20 -> 0x7E. The
controller also recognizes three special characters that do not affect the display.
1.
CR: (0x0D) Increments ChrPosR.
2.
LF: (0x0A) Sets ChrPosC = 0 and increments ChrPosR.
3.
BS: (0x08) Decrements ChrPosC if ChrPosC > 0; it is non-destructive
B.5.1
ChrPos Command
The ChrPos command sets the character position to ChrPosC, ChrPosR. This
command has no effect on the display except for moving character cursor if it is turned
on.
B.5.2
ChrPosInc Command
The ChrPosInc command increments the character position. This command has no
effect on the display except for moving the character cursor if it is turned on.
B.5.3
WrtChr Command
The WrtChr command sets ChrPos to (ChrPosC,ChrPosR), then writes ASCII
character to ChrPos.
B.5.4
WrtChrInc Command
The WrtChrInc command sets ChrPos to (ChrPosC,ChrPosR), writes an ASCII
character to ChrPos, and then increments ChrPos.
Note:
The ChrPos increment after writing is suppressed for the special
characters.
Field
Form
Value
Opcode
0xC5
ChrPosC
0
0
0
C4
C3
C2
C1
C0
Column 0-19
ChrPosR
0
0
0
0
0
0
R1
R2
Row 0-3
Field
Form
Value
Opcode
0x8E
Data
None
None
Field
Form
Value
Opcode
0xE6
Data
0
A6
A5
A4
A3 A2 A1 A0
ASCII character
ChrPosC
0
0
0
C4
C3
C2
C1
C0
Column 0-19
ChrPosR
0
0
0
0
0
0
R1
R0
Row 0-3
Field
Form
Value
Opcode
0xE7
Data
0
A6
A5
A4
A3 A2 A1 A0
ASCII character
ChrPosC
0
0
0
C4
C3
C2
C1
C0
Column 0-19
ChrPosR
0
0
0
0
0
0
R1
R0
Row 0-3
Содержание dsPICDEM 1.1 Plus
Страница 1: ...2006 Microchip Technology Inc DS70099D dsPICDEM 1 1 Plus Development Board User s Guide...
Страница 12: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 8 2006 Microchip Technology Inc NOTES...
Страница 64: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 60 2006 Microchip Technology Inc NOTES...
Страница 78: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 74 2006 Microchip Technology Inc NOTES...
Страница 88: ...dsPICDEM 1 1 Plus Development Board User s Guide DS70099D page 84 2006 Microchip Technology Inc NOTES...
Страница 91: ...Index 2006 Microchip Technology Inc DS70099D page 87 NOTES...