Sunday 15 July 2012

io - Interrupt driven HD44780 library for an Arduino -


I have an HD 44780 lcd screen, and I'm using liquid crystal libraries which is with the Ardino development package is available. However, it is not reliable I have seen some problems with it, and instead of being interrupted, just sleeps as long as the developer thinks that the chip should be taken to execute the operation.

From the Biscis flag, the Bissy flag will be set while it is executed, which means that it is possible to create an obstacle.

Does anyone know about a library that actually does this, and do all 8 bits need to be connected or can I put it on 4 pins?

I do not think you need a hindrance for this. Looking at Arduino distribution, you should just change the code Liquid Crystal :: Written 4bits , LiquidCrystal :: write8bits , and LiquidCrystal :: pulseEnable the wanted . The first two methods should start with the monitoring of the busy line (BD7) before writing the data, and the previous one will be modified to remove the 100us break.

I think the reason for this was not done by default. The code is that many users of these LCDs just bind R / W on the ground so that the display is always in written mode, from which the BSI signal It is impossible to read However, it is passed by setting _rw_pin to -1 in the library, so the pulse and the written code can conditionally be used as a way to engage the r / w pin as speed optimization.


No comments:

Post a Comment