2013-09-19 07:52 AM
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 pinR/W pin -> PC11 pin RS pin -> PC12 pinVDD pin -> 5V pinD0 pin -> PA3 pinD1 pin -> PA2 pinD2 pin -> PB12D3 pin -> PB11D4 pin -> PA7D5 pin -> PB9D6 pin -> PB8D7 pin -> PA6Is it correct?There is a description of LCD from the manual.2013-09-19 09:13 AM
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.