Author Topic: RS232 PIC CCS COMPILER COMANDS FOR NHD-0420D3Z-NSW-BBW-V3 ISSUE  (Read 732 times)

DavidVM

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Just acquired NHD-0420D3Z-NSW-BBW-V3 Serial display, Im currently using PIC 18f4550 on ccs compiler, with recommended standard 232, with the following header #use rs232(baud=9600,parity=N,xmit=Pin_C6,rcv=Pin_c7,bits=8), The LCD 4x20 has the following conections On J1 PIN 1=RX (To TX on PIC) PIN 2=VSS PIN 3=VDD, On J2 just PIN 5=VSS PIN 6=VDD.
I have a simple question, how can I send the commands to the LCD, for example If I want to clear the screen datasheet says 0xFE as prefix and 0x51 as command, but I have no clue how should I send this command, I used printf, putc, puts, and so on.

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: RS232 PIC CCS COMPILER COMANDS FOR NHD-0420D3Z-NSW-BBW-V3 ISSUE
« Reply #1 on: May 30, 2017, 08:21:19 AM »
Hello David,

If you have VDD and VSS going to pins 2 & 3 of the display, they do not need to be applied to pins 5 & 6, they are all tied internally.

For this i would recommend using the following:
putc(0xFE)  // Prefix
putc(0x51) // Clear Screen

DavidVM

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: RS232 PIC CCS COMPILER COMANDS FOR NHD-0420D3Z-NSW-BBW-V3 ISSUE
« Reply #2 on: May 30, 2017, 12:58:32 PM »
Thanks a lot for the help, it did work as you stated.

 

3 Volt to 3.3 Volt longterm reliability issue

Started by muragavinoBoard OLEDs

Replies: 1
Views: 2282
Last post November 11, 2014, 03:04:04 PM
by Michael_L
NHD-0420D3Z-NSW-BBW-V3 i2c display and Arduino missing characters

Started by 0miker0Board Character LCDs

Replies: 0
Views: 818
Last post July 06, 2017, 11:05:59 AM
by 0miker0
NHD-0420D3Z-NSW-BBW-V3 back-light flickers

Started by rickford66Board Character LCDs

Replies: 3
Views: 3539
Last post May 06, 2015, 08:34:09 AM
by fraryb
Changing the Slave Address with NHD-0420D3Z

Started by alkBoard Character LCDs

Replies: 2
Views: 2631
Last post January 13, 2015, 01:53:20 PM
by alk
Trouble with serial interface on NHD-0420D3Z-FL-GBW-V3

Started by chughesBoard Character LCDs

Replies: 4
Views: 3018
Last post September 29, 2015, 11:16:48 AM
by Paul_B