News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

problem with the Newhaven 2 by 20 LCD display

Started by Yves, Apr 19, 2023, 12:42 PM

Previous topic - Next topic

Yves

Hello all,
I'm trying to display on the 2 by 20 Newhaven display model NHD-0220D3Z-FL-GBW-V3. It has a Pic 16F690 driver. It has various ways to communicate but I use RS232 for convenience. I can display, but my issue is to properly display the second line. Below the snip set of what I'm trying to do:

 back:
    RsOut  0xFE, 0x51: DelayMS 500
    RsOut  $FE, 0x00, "line 1 "
    RsOut  $FE, 0x40, "Line 2"
    DelayMS 500
GoTo back

I end up to have both lines on the first line. I'm not sure where I'm doing wrong.

I have attached the pdf for the display. Any suggestions? Many thanks.

Yves





Yves

RGV250

Hi,
The way I read it (page 9) is that 0x45 is the position and 0x00 / 0x40 is the first position of the first / second line so you would need 0xFE, 0x45, 0x00 (first line) / 0xFE, 0x45, 0x40 (second line).

Bob

Yves

Thank you Bob, I should read the the instructions more carefully :-[ .
Thanks again.

Yves
Yves

RGV250

QuoteI should read the the instructions more carefully

We've all been there. :)