Author Topic: RS232 PIC CCS COMPILER COMANDS FOR NHD-0420D3Z-NSW-BBW-V3 ISSUE  (Read 1983 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: 379
  • 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: 2999
Last post November 11, 2014, 03:04:04 PM
by Michael_L
NHD-0216CW-AY3 8-bit Parallel 8080, Text on Display Issue

Started by forteyBoard OLEDs

Replies: 14
Views: 10320
Last post March 09, 2015, 02:23:51 PM
by Retheesh_M
Issue with reading busy flag in 4 bit mode.

Started by SwemarvBoard Character LCDs

Replies: 6
Views: 6733
Last post September 26, 2015, 10:12:49 AM
by acain829
Arduino FTDI_FT801 Library Documentation Issue

Started by stumpr84Board TFTs

Replies: 0
Views: 877
Last post January 12, 2018, 01:46:50 PM
by stumpr84
Display Font related issue

Started by darshanaBoard TFTs

Replies: 3
Views: 994
Last post May 21, 2018, 11:49:42 AM
by Ted_M