Author Topic: NHD-C0216CZ-NSW-BBW-3V3 does not show anything  (Read 1899 times)

wding

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
NHD-C0216CZ-NSW-BBW-3V3 does not show anything
« on: July 27, 2015, 09:38:47 AM »
Hi,

I just installed a NHD-C0216CZ-NSW-BBW-3V3 on my circuit board. An ARM Cortex-M3 processor is being used to control this LCD. The processors' SSP0 port has been configured to SPI mode with CPOL = 0, CPHA = 0, Bit frequency = 104 KHz.

My program follow the LCD's datasheet example to initialize the LCD, then repeatedly send character 'A'. But the LCD keeps blank (the back light is ON).

The codes are below:

int main( )
{

   sys_config();

   sys_set_lcd_RST(!0);          // reset LCD, i.e. RST = 0
   delay(2);            // delay 2ms

   sys_set_lcd_RST(0);      // release RST. i.e. RST = 1
   delay(20);
   
   sys_sel_lcd_Reg(0);      // select Instruction Register, i.e. RS = 0
   
   sys_SSP0_send(0x30);   // wake up
   while (sys_SSP0_busy());
   delay(2);
   
   sys_SSP0_send(0x30);   // wake up
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x30);   // wake up
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x39);   // function set
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x14);   // osc frequency
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x56);   // power control
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x56);   // follower control
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x70);   // contrast
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x0C);   // display on
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x06);   // entry mode
   while (sys_SSP0_busy());
   
   sys_SSP0_send(0x01);   // clear
   while (sys_SSP0_busy());
   
   sys_sel_lcd_Reg(!0);      // select Data Register
   
   delay(10);
   
   
   while (1)
   {
      sys_SSP0_send('A');
      while (sys_SSP0_busy());
   };
}

I checked the wave forms on RST, RS, CSB, SCL, SI, all look good. Bu the display simply keeps blank.

Is there any other way I can make the display to show some thing?

Thanks!

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 10
    • View Profile
Re: NHD-C0216CZ-NSW-BBW-3V3 does not show anything
« Reply #1 on: July 27, 2015, 10:33:35 AM »
First thing that jumps out is that the Follower Control value should be 0x6D if you are following the example on our website.

Also verify that the voltage on pin 7 is near 5.5 volts.

EDIT:  Display is now working.
« Last Edit: July 27, 2015, 10:56:46 AM by Saurabh_B »

 

NHD‐C0216CZ‐FSW‐FBW‐3V3

Started by AJS@UltraClenzBoard Character LCDs

Replies: 1
Views: 2456
Last post September 08, 2014, 09:22:04 AM
by Michael_L
NHD-C0216CZ-NSW-BBW-3V3 Voltage booster Capacitor Voltage

Started by GeoffStateBoard Character LCDs

Replies: 2
Views: 3094
Last post November 16, 2014, 09:34:14 PM
by GeoffState
NHD-C0216CZ-FSW-FBW Serial Interface RS line question

Started by joestaudtBoard Character LCDs

Replies: 4
Views: 3025
Last post May 11, 2015, 09:34:29 AM
by Michael_L
MOVED: interfacing NHD-C0216CZ-FSW-FBW-3V3 with msp430

Started by Saurabh_BBoard Newhaven Engineering Projects

Replies: 0
Views: 988
Last post April 10, 2017, 08:09:28 AM
by Saurabh_B
NHD-C0216CZ-NSW-BBW-3V3 Interface Voltage

Started by NimrodBoard Character LCDs

Replies: 2
Views: 2365
Last post March 03, 2016, 07:03:02 PM
by perky