Author Topic: NHD-0420D3Z-NSW-BBW-V3 how to interface  (Read 3300 times)

atalanta

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
NHD-0420D3Z-NSW-BBW-V3 how to interface
« on: May 28, 2014, 07:39:23 AM »
Hi,

i am new with LCDs. I try to interface NHD-0420D3Z-NSW-BBW-V3 with my LPC1768 with RS232 but the screen display only some nonsensical symbols. I use default baud 9600 and i take care the execution times. I saw your code here http://www.newhavendisplay.com/app_notes/Serial_LCD.txt and i do the same i think except from this
        BAUDCTL = 0x08;
   SPBRG = 207;
   SPBRGH = 0;
because i dont know how. these are the registers of PIC16F690??

edit: when i send prefix 0xFE the screen display a nonsensical symbol.
i use the same communication format. :/
 
thanks
« Last Edit: May 28, 2014, 07:59:07 AM by atalanta »

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD-0420D3Z-NSW-BBW-V3 how to interface
« Reply #1 on: May 28, 2014, 08:13:21 AM »
Those register assignments are for the micro being used to drive the display, not the PIC16F690.  Those lines of code are properly setting up the RS232 on that particular micro.  For your MCU, this will be different.

Please make sure of the following:

1) R1 and R2 are open.
2) Your RS232 signal is TTL (0V, 5V).
3) Communication format is 8-bit data, 1 stop bit, no parity, no hand shaking.
4) You are allowing for the execution times for each command (certain commands such as cursor home and clear screen have longer execution times).

atalanta

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-0420D3Z-NSW-BBW-V3 how to interface
« Reply #2 on: May 28, 2014, 08:32:29 AM »
Unfortunately my RS232 signal is 0V- 3.3V!

So i have to use SPI or I2C and place a jumper on R2 or R1??

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD-0420D3Z-NSW-BBW-V3 how to interface
« Reply #3 on: May 28, 2014, 11:13:00 AM »
Yes, to use the SPI or I2C interface you would short the appropriate jumper as indicated on page 4 of the datasheet.

 

NHD‐0420CW‐AB3 I2C Interface

Started by andersonpdBoard OLEDs

Replies: 1
Views: 2650
Last post January 23, 2015, 10:00:06 AM
by Michael_L
NHD‐0420DZW‐AY5 SPI Interface

Started by vinaykBoard OLEDs

Replies: 0
Views: 2055
Last post October 26, 2015, 05:13:10 AM
by vinayk
NHD‐3.12‐25664UMB3 3 or 4 wire interface

Started by cliffgBoard OLEDs

Replies: 1
Views: 2495
Last post February 13, 2015, 04:43:21 PM
by Michael_L
NHD-2.4-240320CF-CTXI#-FT (ST7789S controller) and STM32F4 FSMC LCD Interface

Started by deshayesBoard TFTs

Replies: 1
Views: 2683
Last post March 17, 2016, 06:25:18 PM
by fahad
7.0" TFTs with capacitive Touch and 8080 interface availability?

Started by gdoraisaBoard TFTs

Replies: 3
Views: 1240
Last post November 23, 2017, 07:33:58 AM
by tolikkk