STM32 and ST7066U LCD doesn't work
Hi, I have and STM32F042 and an LCD with an ST7066U from NewHeaven Displays, it is a 3V3 specific version . I am trying to use 4-bit mode to save pins (I have enough pins for this project to use 8-bit but for future projects too it would be better for me to have 4-bit working). I've followed the data sheet exactly for initialising the display and then I simply type an 'A'. The display does nothing.
I have been struggling with this for many days now. I have managed to get characters on the display but never from power up of the MCU and display. With other code I have that I was just trying anything and everything if I kept the display running and reset the STM32 multiple times I could get it to work somehow. This leads me to believe that I have missed something in the initialisation. But as far as i can tell i followed it exactly.
I also attached a logic analyser to see that the information is being sent correctly (Results attached) and it shows that the data is being sent correctly. The only irregularity is the very first nibble that gets sent when the STM32 powers up but according to the display data sheet this wont be an issue because the display takes time to power up.
I made a PCB (breakout board) to connect the display directly with the MCU so I have no crossed wires. I have triple checked.
Anyone got any ideas for me? Thanks!
