LCD Display controller using STM32 with no Library Function
In this Project, I controlled the LCD display using STM32F446RE on the Register level with no library function.
Components:
STM32F446RE as controller link
16x2 LCD Display link
Potentiometer link
100 ohms Resistor link
Breadboard link
Jumper wires link
Hardware Part:
Place the LCD display in the BreadBoard.
Connect the Supply and Gnd PIN to the controllers +5v and Gnd respectively.
A potentiometer can be used if required to control the contrast of the Display.
We will connect the RS(Reset) pin of LCD to the PB5 of the controller
Then the R/W(Read/Write) pin of LCD to the PB6 of the controller
Next, the EN(Enable) pin of the LCD to the PB7 of the controller
At last the data pins(D0 to D7) of the LCD to the PC0 to PC7 of the controller
Software Part:
Install Keil software
Connect the STM32F446RE controller and update the driver
You can get the code from here
You can change the contrast by varying the potentiometer.