A 4x3 matrix keypad requires 7 I/O pins of microcontroller for interfacing. But you could reduce the required number of connections to two by using a 555 timer IC. If you want to know how, visit Embedded Lab's new post "2-Wire Keypad Interfacing using 555 Timer".
The objective of this experiment is to interface a 16x2 LCD to PIC16F628A in 4-bit mode. This means the data transfer will use only four pins of the microcontroller. There is no additional hardware setup needed for this experiment, as we have a ready-made LCD interface female header. We only need to define the data transfer and control pins in the software. Remember, the LCD interface in our development board uses the following pins of PIC16F628A: Data Transfer : D4 -> RB4, D5 -> RB5, D6 -> RB6, D7 -> RB7 RS -> RA0, and EN -> RA1
WOW, Nice One. Reducing pins by spending 10 rs is worth.
ReplyDelete