In this tutorial, we are going to use the 4 bit MODE to connect LCD 16x2 with our Stm32 microcontroller.,Basically we are going to use the parallel connection between STM32, and the LCD itself. LCD 16×2 can be connected in the parallel mode either using 4 data pins (LCD 4 bit MODE) .
4 pins of the LCD ( DB4-DB7) are connected to the microcontroller pins (PA4-PA7).
-RS is connected to PA1
-RW is connected to PA2
-EN is connected to PA3
You can connect the pins anywhere you want. It doesn’t have to be in order or in a single port. We will define these pins later in our code.
30 ноя 2020