In this tutorial we will see how to interface lcd in 4-bit mode using the explore Embedded bare metal libraries.
At the end will see how to use 16x1, 16x2 and 40x2.
The libraries can be used on different platforms like Keil, ARM GCC, GCC And Eclipse etc.
Contents
Prerequisites
Please check this tutorial for detailed explanation on LCD.
If you are doing it for the first time, then check the below links to setup the project for generating the .bin file.
Hardware Connection
RS | RW | EN | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
---|---|---|---|---|---|---|---|---|---|---|
5 | 6 | 7 | P_NC | P_NC | P_NC | P_NC | 12 | 13 | 14 | 15
}
CodeBelow is the sample code the blink the LED connected to pin 13.
Demo |