A centered over F117680+ on either side1012-90Taped to the plastic front with clear, double-sided 3 mm wide tape in a hollow rectangle shape, the rectangle being approx. 35.4mm x 27.6mm on the outside
The reflector is taped to the board with approx. 28mm (l) x 4mm (w) x 3.6mm (h) black foam tape
S1D15000 Series Technical Manual
The driver runs in parallel mode (P/S = HIGH), master operation (M/S = HIGH), with the internal oscillator circuit disabled (C/S = LOW). Thus the CL line takes input from the MCU via OSC1 and the FR line switching resets register $8A to 1 and increases $81’s frame counter by 1 (see page 8-29 for a diagram).
To simplify interaction with the LCD, try libpmdd instead of direct access.
LCD_CTRL is primarily used for sending commands to the LCD driver and is accessible through register $FE on the PM.
LCD_DATA is primarily used for sending display data to the LCD driver and is accessible through register $FF on the PM.
LCD_CTRL and LCD_DATA both write and read over the D0-D7 lines, it determines what operation is happening and whether CTRL or DATA is being read/written by the status of the A0, RD, & WR lines.
| A0 | RD | WR | R/W | CTRL/DATA |
|---|---|---|---|---|
| 0 | 0 | 1 | Read | CTRL |
| 0 | 1 | 0 | Write | CTRL |
| 1 | 0 | 1 | Read | DATA |
| 1 | 1 | 0 | Write | DATA |
Listed below are the commands, written to CTRL.
| Cmd # | Command | Command Code | Hex range |
|---|---|---|---|
| 1 | Display ON/OFF | 1 0 1 0 1 1 1 x |
$AE - $AF |
| 2 | Display start line | 0 1 a a a a a a |
$40 - $7F |
| 3 | Set Page | 1 0 1 1 a a a a |
$B0 - $BF |
| 4a | Set Column HI | 0 0 0 1 h h h h |
$10 - $1F |
| 4b | Set Column LO | 0 0 0 0 l l l l |
$00 - $0F |
| 8 | ADC select | 1 0 1 0 0 0 0 x |
$A0 - $A1 |
| 9 | Invert | 1 0 1 0 0 1 1 x |
$A6 - $A7 |
| 10 | All on | 1 0 1 0 0 1 0 x |
$A4 - $A5 |
| 11 | LCD bias | 1 0 1 0 0 0 1 x |
$A2 - $A3 |
| 12 | Start RMW | 1 1 1 0 0 0 0 0 |
$E0 |
| 13 | End RMW | 1 1 1 0 1 1 1 0 |
$EE |
| 14 | Reset | 1 1 1 0 0 0 1 0 |
$E2 |
| 15 | Row direction | 1 1 0 0 x - - - |
$C0 - $CF |
| 16 | Power control | 0 0 1 0 1 m m m |
$28 - $2F |
| 17 | V5 resistor ratio | 0 0 1 0 0 r r r |
$20 - $27 |
| 18a | Contrast | 1 0 0 0 0 0 0 1 |
$81 |
| 18b | Contrast | - - v v v v v v |
$00 - $FF |
| 19a | Static indicator | 1 0 1 0 1 1 0 x |
$AC - $AD |
| 19b | Static indicator | - - - - - - m m |
$00 - $FF |
| 20 | Power saver | ||
| 21 | NOP | 1 1 1 0 0 0 1 1 |
$E3 |
| 22 | Test | 1 1 1 1 - - - - |
$F0 - $FF |
Writes the byte to display RAM at the current cursor location then increments the cursor by 1. When the cursor reaches the end of the current page, it does not wrap around to the next page, you must do this manually.
The data sent is displayed in a column of the current page formed as 0bABCDEFGH being (when rows are…)
| Normal | Reversed |
|---|---|
| H | A |
| G | B |
| F | C |
| E | D |
| D | E |
| C | F |
| B | G |
| A | H |
Then moves one column to the right (if ADC is normal) or left (if ADC is reversed).
TODO: how to read reliably
Reading from LCD_DATA reads the byte in display RAM where the cursor is currently. If the driver is currently operating in RMW mode, the cursor is not incremented after reading. Otherwise, it is incremented.
TODO: does ADC reverse reading direction?
Read from LCD_CTRL. TODO: how to read reliably
The returned byte contains status information in the upper nibble:
Pins 1 and 29 are labeled on the board. In normal reading direction, 1 is on the left. The connector on the board is label CN3.