| |
120x32-pixel Serial Graphics LCD with Multiple Font Sizes |
 |
SGX-120L Serial Graphics LCD
The SGX-120L offers a terminal-style serial interface for text, plus easy-to-use graphics capabilities.
- 2400/9600 baud serial input
- High-contrast, supertwist LCD screen, 120x32 pixels
- Serially controlled LED backlight
- Text displayed in user-editable font at any of four sizes:
- 4 lines by 20 characters (default)
- 4 lines by 10 characters (wide font)
- 2 lines by 20 characters (tall font)
- 2 lines by 10 characters (large font)
- Graphics can be created on-the-fly or drawn in a paint program and downloaded
- EEPROM memory stores font and 15 full-screen graphics
Dimensional Data
| A |
y offset edge to hole center (top & bottom) |
4.00 |
| B |
y pcb height |
36.00 |
| C |
y hole spacing |
28.00 |
| D |
y screen opening |
18.50 |
| E1 |
y character size (small font) |
3.92 |
| E2 |
y character size (large font) |
7.84 |
| F1 |
x character size (small font) |
2.94 |
| F2 |
x character size (large font) |
5.88 |
| G1 |
x offset pcb edge to hole center (bottom) |
2.50 |
| G2 |
x offset pcb edge to hole center (top) |
4.00 |
| H |
x screen frame |
65.70 |
| I |
x screen opening |
60.50 |
| J1 |
x hole spacing (bottom) |
75.00 |
| J2 |
x hole spacing (top) |
72.00 |
| K |
x pcb width |
80.00 |
| L |
y frame height |
27.40 |
| - |
mounting hole diameter |
2.50 |
- All dimensions in millimeters
- Tolerance is +/- 0.50mm
- Maximum depth (front of screen to highest point on pcb) is 30mm
|
back to top
Basic Specifications
| Power requirements |
4.8 to 5.5Vdc @ 15mA max (60 mA max, backlight on) |
| User connector |
5-pin header (0.025" posts on 0.10") |
| Serial Input |
RS-232 or inverted TTL, 2400/9600, N81 |
| Operating Temperature |
0° to 50° C |
| LCD type |
Supertwist (STN), yellow-green |
| Optimum viewing direction |
6 o'clock |
back to top
Control Characters by Function
| ASCII Value |
Control Code |
ASCII Name |
Function |
| 0 |
ctrl-@ |
NUL |
Null; ignored prior to buffer |
| 1 |
ctrl-A |
SOH |
Cursor home (position 0, upper left corner) |
| 2 |
ctrl-B |
STX |
Begin inverse-video text |
| 3 |
ctrl-C |
ETX |
End inverse-video text |
| 4 |
ctrl-D |
ETO |
ignored |
| 5 |
ctrl-E |
ENQ |
ignored |
| 6 |
ctrl-F |
ACK |
ignored |
| 7 |
ctrl-G |
BEL |
ignored |
| 8 |
ctrl-H |
BS |
Backspace |
| 9 |
ctrl-I |
HTAB |
Tab to next multiple-of-4 column |
| 10 |
ctrl-J |
LF |
Smart linefeed; move down one row |
| 11 |
ctrl-K |
VTAB |
Vertical tab; move up one row |
| 12 |
ctrl-L |
FF |
Formfeed; clear the screen |
| 13 |
ctrl-M |
CR |
Carriage return; move to beginning of next line |
| 14 |
ctrl-N |
SO |
Backlight on |
| 15 |
ctrl-O |
SI |
Backlight off |
| 16 |
ctrl-P |
DLE |
Accept cursor-position data |
| 17 |
ctrl-Q |
DC1 |
ignored |
| 18 |
ctrl-R |
DC2 |
Accept right-alignment data |
| 19-26 |
- |
- |
All ignored |
back to top
Graphics Instructions
All graphics instructions begin with the escape character (ASCII 27). A letter after the escape character identifies the instruction, and is followed by a number or series of numbers modifying the instruction. For example, ESC E n displays the nth full screen graphic stored in EEPROM, where n can range from 0 to 7.
Numbers can be expressed either as ASCII text (e.g. "123") followed by a throwaway character, or as single-byte shortcuts. Shortcuts are the one-byte sum of the number to be sent, plus 64. Numbers up to 191 can be sent this way to increase serial throughput. See the user manual for examples.
| Function |
Escape Sequence |
| Set screen address for byte write |
ESC A x y |
| Write byte value to present screen address |
ESC B n |
| Download full-screen graphic |
ESC D G |
| Display full-screen graphic from EEPROM screen n (0-16) |
ESC E n |
| Set font size to n (0=small; 1=wide; 2=tall; 3=large) |
ESC F n |
| Set ink for points and lines to n (1=black; 0=white) |
ESC I n |
| Plot a line from x1 y1 to x2 y2 |
ESC L x1 y1 x2 y2 |
| Set graphics mode to n (1=XOR; 0=OR) |
ESC M n |
| Plot a point at x y |
ESC P x y |
| Reverse lines by n |
ESC R n |
| Plot a line from last line end to x y |
ESC T x y |
| Write configuration data to EEPROM |
ESC W n |
| Transfer image from screen to EEPROM page n (0-16) |
ESC X n |
back to top
Links for Additional Information
|
|