LCD12864 Control Sequence &Command Reference
Controllers:
- Sitronix ST7920 (JDH529 )
- Samsung KS0108
- Sitronix ST7565
- Toshiba T6963C
- SSD1306 OLED Controller
** ST7920 / JDH529 Command List (LCD12864 Control )**
- Serial Interface mode without Read Operation. Be Sure add enough delay time between each operation.
- Command Delay:
Clear: 1.6ms
Others: 72us.
Extended Command Set
Set GDRAM
Set vertical address first, and then horizontal address Vertical
AC[5:0] 80H ~ BFH ( 64 )
Horizon AC[3:0] 80H~8FH (16)
Horizon 16 * data 8 bits = 128
Command Sequence:
RS=0, RW=0, DB = Vertical address
RS=0, RW=0, DB = (Horizontal address / 8)
RS=1, RW=0, DB = (Horizontal address % 8)
Initial Setting (RE=0, Basic Operation)
RS=0, RW=0
Function Set: 0x30H // DL=1 8bits, RE=0, Basic Command set
Entry: 0x06H // Cursor right move, AC+1
Cursor: 0x14H // S/C=0 No scroll, R/L=1 AC Right Shift
Display: 0x0AH // Display On, Cursor off, Blink off
Initial Setting (RE=1, Extended Operation)
RS=0, RW=0
Function Set: 0x30H // DL=1 8bits, RE=0, G=0, Command set
Function Set: 0x30H // DL=1 8bits, RE=1, G=0, RE Command set
Function Set: 0x30H // DL=1 8bits, RE=1, G=0, Graphic mode disable
Entry: 0x06H // Cursor right move, AC+1
Cursor: 0x14H // S/C=0 No scroll, R/L=1 AC Right Shift
Display: 0x0AH // Display On, Cursor off, Blink off
Hardware Access Timming
MPU Write Operation
- TC Enable Cycle Time > 1800ns
- Write Tpw > 160ns
- Write Thold > 20ns
MPU Read Operation
- TC Enable Cycle Time > 1800ns
- Read Tpw > 320 ns
- Read Thold > 40ns
Serial Interface Timming (Better as 50% duty)
- Clock High > 800ns
- Clock Low > 800ns
Sitronix ST7920 Type List:
- ST7920-A Big5 Code set
- ST7920-B GB code set
- ST7920-C (Big5/GB) + Japanese
- ST7920-D (Big5/GB) + Japanese + Korean
Samsung KS0108B ( 8bits, 6800 Mode )
KS0108 Command
// RS=0, Command Mode
RS=0, RW=0, DB= 0x3E // Display OFF
RS=0, RW=0, DB= 0x3F // Display ON
RS=0, RW=0, DB= 0x40 + Y address[0 ..63] // Set Y address
RS=0, RW=0, DB= 0xB8 + X Page [0 ..7] // Set X Page
// Read Status
RS=0, RW=1, DB = Satus
DB7 Busy Flag
DB6 0
DB5 1 = Display On/ 0= Display Off
DB4 1= RESET, 0 = Normal
DB[3:0] 0
// RS=1 , Data Mode
RS=1, RW=0, DB = DATA // Write Data to DDRAM.
RS=1, RW=1 DB = DATA // Read DDRAM data
<备份> 收集资料, 仅供参考。
Control Sequence &Command Reference(LCD12864 Control )
数据剪辑自原厂规格书, 版权归原所有人拥有。
档案取自互联网!如有侵权或不适用情形, 请联系移除!
** 使用有风险, 请详阅原厂使用说明!
** 范例码为自用,请谨慎引用, Ctrl-C, Ctrl-V结果自行承担!
#Blog转移
#电子零件