NHD-0420D3Z-NSW-BBW-B3 Initialization
Dear New Haven Display Support Team,
I am currently working with the NHD-0420D3Z-NSW-BBW-V3 model (4x20 character LCD) and am attempting to implement RS-232 communication for controlling the display. However, I am facing difficulties with the initial setup, as I could not find detailed information regarding the command sequence and initialization process in the datasheet.
1) How should I write the code to reflect the prefixed command on the LCD window? Is it correct to input 0x45 at the 0xFE address to perform the action of 'set cursor'?
2) Is there a setting sequence for displaying text on the LCD?
ex. 'set cursor'-> 'display character write' -> etc....
Thank you in advance for your time and support. I look forward to your response and any instructions you can provide to help resolve these issues.
Best regards,
-
Hi Jisu,
Please refer to our code example (Serial Interface LCD - with Arduino) as a helpful resource for getting started with your display. Additionally you can refer the sample initialization code located on page 13 of the display specification.
To use the set cursor command, your statement is correct, please refer to the function below:
void setCursor(uint8_t position){ //Set the display cursor position via DDRAM addresswrite(0xFE);write(0x45);write(position);}That said, for RS232 you will need to set the first set the interface jumper and then set the the pin states on your controller before powering on the display.
Please let us know if you need any further clarification.
0
Please sign in to leave a comment.
Comments
1 comment