NHD-C0216CZ-NSW-BBW-3V3 LCD initialization

Comments

3 comments

  • Michael_L

    How fast is your SPI clock?  The clock period has a minimum rating of 200ns.  Also, have you tried using the write routines provided in the example code section of the datasheet?

    0
  • Krishkakarla

    @Michael,
    Thanks for the quick reply. I saw that the clock speed specified in the datasheet is 380kHz at the least and so I reduced my SPI clock speed to 250kHz. I did not use the write routines that were specified in the datasheet. The ones that I'm using are built in SPI data transfer routines provided by STMicro. I've been able to see the clock toggling and the correct data being sent using my logic analyzer. I've also rechecked to ensure that there's no violation in the timing too.

    Krishna

    0
  • Michael_L

    It might be worth a try to give those write routines in the datasheet a try, just as a means of troubleshooting.  That code should work regardless of what mcu you are using, therefore it will make for a good test.

    0

Please sign in to leave a comment.