Author Topic: NHD-0220CW-AG3 Character set  (Read 718 times)

OS

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
NHD-0220CW-AG3 Character set
« on: March 28, 2017, 02:49:57 AM »
Hello.
We are using a NHD-0220CW-AG3 (in 4-bit Parallel 6800 interface) with the character set of ROM C.
Is it possible to overwrite the first 8 character of ROM C to add individual character?

I tried it in this way, but did not succeed. I only got strange signs on the display.

Code: [Select]

void data_write (uchar c)
{//high byte
  PORTA = (c & 0xF0);
  DC_HIGH;
  RW_HIGH;
  E_HIGH;
  wait(LCD_WAIT);
  E_LOW; //data latched
 
  //low byte
  PORTA = (((c & 0x0F) << 4));
  DC_HIGH;
  RW_HIGH;
  E_HIGH;
  wait(LCD_WAIT);
  E_LOW; //data latched
}

void command (uchar c)
{//high byte
  PORTA = (c & 0xF0);
  DC_LOW;
  RW_LOW;
  E_HIGH;
  wait(LCD_WAIT);
  E_LOW; //data latched
 
  //low byte
  PORTA = (((c & 0x0F) << 4));
  DC_LOW;
  RW_LOW;
  E_HIGH;
  wait(LCD_WAIT);
  E_LOW; //data latched
}

set_newCharToFont(void)
{
  command(0x40); //0x40 -> pos of first char in CGRAM
  data_write(0x08); //1   8
  data_write(0x10); //2   10
  data_write(0x08); //3   8
  data_write(0x00); //4   0
  data_write(0x05); //5   5
  data_write(0x07); //6   7
  data_write(0x05); //7   5
  data_write(0x00); //8   0
}

void show_char(uchar num)
{
  command(0x01); //clear display
  command(0x02); //return home
  data(num); //1 -> Read data in ROM C at pos num
}


in main.c:

set_newCharToFont();
show_char(0);



One more question:
If we need more than 8 new character in the font, would it be possible to get a display with a customized software, which contains the needed characters?

Best regards,
OS

OS

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: NHD-0220CW-AG3 Character set
« Reply #1 on: March 28, 2017, 07:15:05 AM »
Hi again.
Luckily I found my mistake why I could not write data to CGRAM.
In the function data_write() the RW signal was wrong, RW_HIGH should be RW_LOW.  ::)


Unfortunately we really need to set more than 8 individual characters, minimum 13 chars.

Is there a possibility to get a display with a modified software (modified font set)?

Best regards.
OS

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: NHD-0220CW-AG3 Character set
« Reply #2 on: March 28, 2017, 09:19:53 AM »
Hello,

The Font Tables on our displays are defined by the manufacturers of the controllers, in this case it would be the company that manufactures the US2066 controller.

The best solution for requiring multiple characters would be to use a graphic OLED display.
However for this one you would need to create a font table as well.

 

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

Started by davekBoard Character LCDs

Replies: 1
Views: 2357
Last post March 25, 2016, 05:23:05 PM
by Saurabh_B
NHD-0420DZW-AG5 OLED character module--Displaying junk data

Started by control3Board OLEDs

Replies: 2
Views: 1312
Last post December 11, 2016, 11:19:54 PM
by control3
NHD-C0220Biz-FSW adds character 0x11 at begining of line

Started by whAtlGaBoard Character LCDs

Replies: 3
Views: 1541
Last post July 11, 2016, 08:20:40 AM
by Saurabh_B
Controlling 1x16 character display NHD-0116GZ.

Started by icaganBoard Character LCDs

Replies: 5
Views: 4814
Last post May 21, 2014, 03:31:37 PM
by Michael_L
OLED Character display - Some commands don't work

Started by wedgeBoard Character LCDs

Replies: 1
Views: 3216
Last post July 08, 2014, 09:29:43 AM
by Michael_L