Learn To Write Code For 8051, Arduino, AVR, dsPIC, PIC, STM32 ARM Microcontroller, etc.
Coding Embedded Controller With C/C++.
Printed Circuit Board (PCB) Project For Electronics Hobbyists.
The PCF8574 could be used for a HD44780 based character LCD controlling using the 4-bit data transfer mode. The popular one's is an Arduino TWI LCD driving using this chip.
A long hours running program
This chip has only 8 bits inputs/outputs. So it can interface with an 8-bit character LCD using the 4-bit data transfer mode. Using this method the micro-processor need to send the 8-bit command or data two time, first the higher nibble and then the lower nibble. For more information about using the PCF8574 please see this post. If you are a beginner in micro-controller programming you can see this post about 4-bit LCD interfacing.
I use use my own DIY PCF8574AP character LCD module. Its schematic is shown below.
PCF8574AP Character LCD Module Schematic
Its slave address are 0x70 and 0x71.
DIY PCF8574AP Character LCD Module
DIY PCF8574AP Character LCD Module
You can use an Arduino PCF8574 LCD module with different address.
Arduino PCF8574 LCD module
Arduino PCF8574 LCD module
In this example, The micro-controller send a counter variable to the display. It updates for every 250ms. I use the I2C module of PIC16F887. The program written in C using MPLABX IDE and its XC8 C compiler. It's free to use.
No comments:
Post a Comment