This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

lcd interface

Dear Sir,

I want interface 16*2 lcd with nordic nrf52832.

Please provide me details and example code.

Thanks 

Shivali

Parents Reply Children
  • Whilst I understand what Martin has said about making a new thread, I will say this.
    I intergrated a 16*2 LCD into a raspberry pi so I know a bit about LCDs. Pin RS is just a pin for setting whether the LCD is in command mode or character mode. i.e. whether the incoming data is for the LCD itself or information to be sent to the screen. This pin doesn't require EN to be driven HIGH and then LOW again as it doesn't get polled like the data pins.

    The EN pin is a stimulation pin that will tell the LCD when to read the data pins. When it goes HIGH, the LCD will poll the data pins, it must then be sent to LOW again before changing the data pins.

    As you are using the LCD in 4 data pin mode, you need to send the full byte in 2 nibbles, sending the first nibble, stimulating the EN pin, then the second nibble and stimulating the EN pin again.

    Your LCD is probably a little different but the basic functions should be the same.

    Happy LCD'ing, I had great fun designing an nRF52 programmer with an LCD.

Related