Author Topic: NHD-0208AZ-fsn-GBW-33V3 (CG ram characters not displayed  (Read 339 times)

pla.electro

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
NHD-0208AZ-fsn-GBW-33V3 (CG ram characters not displayed
« on: June 11, 2018, 04:58:45 AM »
Dear sir
we are using NHD-0208AZ-fsn-GBW-33V3 8X2 display we are able to print standard character
but we are unable to print cgram charcter.

see the below code
unsigned char code c_gucPerHr[9]  = {0X14,0X14,0X14,0X17,0X15,0X15,0X15,0X15};

void main()
{
         LCD_Buffer[14] =0x00;
         SetLCDCharPatt(0x40,c_gucPerHr);

}
void SetLCDCharPatt(unsigned char CGRamAdd,unsigned char ChrPatt[8])
{
   unsigned char j;                        

   write4Bitcmd(0x00);
   delay_low();
   
   write4Bitcmd(CGRamAdd); /*Addr. Counter set to CGRAM Addr.*/
   dly1();
   delay_low();
   delay_low();
   
   write4Bitcmd( 0x00);
   delay_low();
   
   for(j=0;j<=7;j++)
   {
      write4Bitdata( ChrPatt[j]);
      dly1();
                  
      delay_low();
   }
}


void write4Bitdata(unsigned char u8_data)
{   
   P0 = (P0 & 0x0F )| ((u8_data) & 0XF0); // Write HI nibble

   LCD_DATAORCMD = 1;
   LCD_CS = 1;
   _nop_();
   _nop_();

   _nop_();
   _nop_();
   _nop_();
   LCD_CS = 0;

   P0 = (P0 & 0x0F )| ((u8_data <<4 ) & 0Xf0); //Write lower nibble
   LCD_DATAORCMD = 1;
   LCD_CS = 1;
   _nop_();
   _nop_();

   _nop_();
   _nop_();
   _nop_();

   LCD_CS = 0;
   
}

void write4Bitcmd(unsigned char u8_cmd)
{
   P0 = (P0 & 0x0F )| ((u8_cmd) & 0xF0); // Write HI nibble
   LCD_DATAORCMD = 0;
   LCD_CS = 1;
   _nop_();
   _nop_();
   
   _nop_();
   _nop_();
   _nop_();
   LCD_CS = 0;

   P0 = (P0 & 0x0F )| ((u8_cmd << 4 ) & 0XF0); //Write lower nibble

   LCD_DATAORCMD = 0;
   LCD_CS = 1;
   _nop_();
   _nop_();

   _nop_();
   _nop_();
   _nop_();
   LCD_CS = 0;
   
}
void delay_low(void)
{
   unsigned char delay_data;
   delay_data = 0xFF;
   while(delay_data)
   {
      --delay_data;
   }
}

void dly2(void)
{
   unsigned char del;
   del = 0x0A;
   while(del)
   {
      del--;
   }
}

kkinldy guide us to resolve the issue , our production is held up due to the LCD issue.

Regards,

Anushka

 

Character LCD NHD‐0220D3Z‐NSW‐BBW‐V3 not receiving correct characters

Started by davekBoard Character LCDs

Replies: 1
Views: 4256
Last post March 25, 2016, 05:23:05 PM
by Saurabh_B
NHD‐240128WG‐BTFH‐VZ - custom characters

Started by saubaerBoard Graphic LCDs

Replies: 1
Views: 3169
Last post November 11, 2016, 12:09:42 PM
by Saurabh_B
NHD-2.7-12864UCY3 yellow columns occur under ascii characters

Started by bsoyerBoard OLEDs

Replies: 7
Views: 6617
Last post August 26, 2015, 11:02:25 AM
by tracyb
NHD-C0220BiZ-FSW-FBW-3V3M NAKs all odd numberd ASCII characters

Started by majorninthBoard Character LCDs

Replies: 7
Views: 6276
Last post May 28, 2015, 04:51:31 PM
by Michael_L
Generating characters of size more than 8x8 pixels on NHD-320240WG-BoTFH-VZ#

Started by harshal6905Board Graphic LCDs

Replies: 1
Views: 147
Last post October 07, 2018, 05:52:10 PM
by 0x0ff0