Anyone have any code for the NHD-C0220AA-FSW Newhaven Display?

floresta:
It looks like NHD calls the command 'DD RAM Address Set'.

If you want to put the cursor at address 0x40 then the seven-bit binary version of this address would be 100 0000.

To convert this seven-bit address to a command (aka an instruction) you would put the address bits into DB6 <--> DB0 and then set DB7 to specify the 'DD RAM Address Set' command.

This means that your specific DD RAM Address Set command would be 1100 0000.

So you would send this value, which in hex is 0xC0 to the instruction register of the LCD controller.

[Edit] CAUTION: Pin 2 is contrast and pin 3 is VDD, reversed from just about every other LCD.

Don

That's definitely a big enough clue. :slight_smile: