LCD12864 Control Sequence &Command Reference

LCD12864 Control Sequence &Command Reference

Controllers:

  1. Sitronix ST7920 (JDH529 )
  2. Samsung KS0108
  3. Sitronix ST7565
  4. Toshiba T6963C
  5. SSD1306 OLED Controller

** ST7920 / JDH529 Command List (LCD12864 Control )**
Basic Commad Set

  • 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
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 )

KS010B Command Set

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转移
#电子零件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值