cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 Discovery - how to connect LCD display

kebab5kebab
Associate
Posted on September 19, 2013 at 16:52

Hello everyone,

I have a problem with connecting STM32F0 Discovery board with Hantronix HDM16416H LCD display. I don't know which STM32 pins should be chosen to connecting STM and Hantronix LCD 4x20 display properly.

I have it set, as below:

LCD pin  -> STM pin:

E pin ->    PC10 pin

R/W pin -> PC11 pin 

RS pin -> PC12 pin

VDD pin -> 5V pin

D0 pin  ->  PA3 pin

D1 pin ->  PA2 pin

D2 pin -> PB12

D3 pin -> PB11

D4 pin -> PA7

D5 pin -> PB9

D6 pin -> PB8

D7 pin -> PA6

Is it correct?

There is a description of LCD from the manual.

0690X00000605VmQAI.png
1 REPLY 1
Posted on September 19, 2013 at 18:13

I don't know which STM32 pins should be chosen to connecting STM

Pretty much what ever available GPIOs you have available. I'd generally recommend wiring a 4 or 8-bit data bus using consecutive pins from a GPIO Bank so the software implementation doesn't become a train wreck. Does it really need 8-bits? Most of these displays can use 4-bits, and it makes no difference to the inherent slowness of them.

Go look at some other 16x2 display implementation on other STM32 processors, and how the software abstracts the pin utilization.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..