The other type of module is also based on the PCF8574 IC but it is designed in such a way that it can be used only with LCD Display i.e. One is a generic IO Expander Module, which can be used as, well an IO expander. What this means that using I2C Communication from Microcontroller, you can effectively increase the number of IO pins of your Microcontroller by 8.Īn important thing to remember when buying a PCF8574 Module is that there are two type of them available in the market. The PCF8574 is a 16 pin IC that acts as an I2C to 8-bit Parallel IO expander. So, I will not go into the details but just a brief overview. I have already discussed about PCF8574 GPIO Expander IC in this “Interfacing PCF8574 with Arduino” tutorial. You can simply attach this module at the back of the 16×6 LCD Display and connect the I2C Pins to corresponding I2C Pins of the STM32 Blue Pill Board. 10KΩ POT for Contrast adjustment of LCD, Pull-up resistors for I2C Communication, I2C Pins for connecting with Microcontroller etc. It comes as a dedicated module for interfacing 16×2 LCD Display with all the bells and whistles i.e. Here comes the PCF8574 GPIO Expander IC to the rescue. How to Interface I2C LCD with STM32F103C8T6? Using six pins of the Microcontroller to connect to a character display seems not that important but if your project is quite complex, then every pin of the MCU seems very important. Even in 4-bit data mode, the LCD needs atleast 6 Pins of the Microcontroller (four for the Data Pins, one for Register Select pin and one for Enable Pin, assuming the operation is Write i.e. This is all well and good but a small problem with 16×2 LCD or even the larger 20×4 LCD Display is it takes a lot of pins for interfacing with Microcontroller. I have used 16×2 LCD display module in quite a lot of my projects with a wide variety of Microcontrollers like 8051, ARM7 based LPC2148, ATmega8, Arduino UNO and PIC. The information displayed on the LCD can be related to the project itself like a reading from a Temperature Sensor or special data like debug messages or error codes. Small Alpha-Numeric Character Displays like the very popular 16×2 LCD Display are very useful little components as you can use them to display some important information related to your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |