Breadboarding: Conecting the LCD to the Microcontroller
Share
When using all 8 data lines for the LCD, you will need a full port and three more pins on the mictocontroller. Careful consideration should be made when selecting this port. In this case, the data lines are connected to all the pins of PORTB. The data pins of the LCD is labeled D0, D1, D2, D3, D4, D5, D6 and D7, and these are connected to PORTB pin 0 to pin 7 respectively. (i.e. D0 to pin 0, D1 to pin 1 and so on). The remaining control pins RS, RW and enable are connected to three pins of PORTD.