LCD HC08

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LCD HC08

8,675 次查看
ppcco
Contributor I
Hi, I need a routine writed in c to control an LCD 2*16, I'm using HC908QT4, somebody can help me?
 
Regards
 
标签 (1)
0 项奖励
回复
5 回复数

1,378 次查看
eckhard
Contributor V

Hello,

 

a pcf8574 with a software I2C interface will do the job using two I/O Pins.

 

Eckhard

0 项奖励
回复

1,378 次查看
yb
Contributor IV
... or a 74HC595, which avoid to write IIC routines...
0 项奖励
回复

1,378 次查看
bigmac
Specialist III

Hello ppco,

If your LCD display is the conventional parallel interface type, there won't be sufficient I/O available on the QT4 device for simple direct connection of the display - as a minimum you would likely need the QY4 device.

With 4-bit parallel (nybble) interface, you will need a minimum of 6 lines from the device, all output capable.  With 8-bit parallel interface a minimum of 10 lines are needed.  The code is somewhat more complex for the 4-bit mode.

The number of pins required could potentially be reduced with an intervening shift register device between the MCU and the display - requiring a more complex circuit configuration and again, more complex code.

Regards,

Mac

 

0 项奖励
回复

1,378 次查看
Encoder
Contributor I
"If your LCD display is the conventional parallel interface type, there won't be sufficient I/O available on the QT4 device for simple direct connection of the display - as a minimum you would likely need the QY4 device"
 
Definitely right!!
The other suggestions are only theoretical: any addition of an external periferal like a shift register or an iic translator upsets any small difference in price between QT4 and QY4, far increasing difficulty in programming and complicating the hardware.
0 项奖励
回复

1,378 次查看
eckhard
Contributor V
Hello,

what language are you using. For C look at AN2940 and for assembler look at AN1745.


Eckhard
0 项奖励
回复