Post

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.

LCD Display controller using STM32 with no Library Function

Components:

  1. STM32F446RE as controller link

  2. 16x2 LCD Display link

  3. Potentiometer link

  4. 100 ohms Resistor link

  5. Breadboard link

  6. Jumper wires link

Circuit Circuit

Hardware Part:

  1. Place the LCD display in the BreadBoard.

  2. Connect the Supply and Gnd PIN to the controllers +5v and Gnd respectively.

  3. A potentiometer can be used if required to control the contrast of the Display.

  4. We will connect the RS(Reset) pin of LCD to the PB5 of the controller

  5. Then the R/W(Read/Write) pin of LCD to the PB6 of the controller

  6. Next, the EN(Enable) pin of the LCD to the PB7 of the controller

  7. At last the data pins(D0 to D7) of the LCD to the PC0 to PC7 of the controller

LCD Display LCD Display

Software Part:

  1. Install Keil software

  2. Connect the STM32F446RE controller and update the driver

  3. You can get the code from here

  4. You can change the contrast by varying the potentiometer.

End Result End Result

This post is licensed under CC BY 4.0 by the author.