Author Topic: CGRAM,DDRAM in 2x16 Character LCD - NHD-0216K1Z-FSW-FBW-L  (Read 4462 times)


  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
CGRAM,DDRAM in 2x16 Character LCD - NHD-0216K1Z-FSW-FBW-L
« on: June 23, 2016, 01:40:32 AM »
We are having a NHD-0216K1Z-FSW-FBW-L.

I wish to understand what CGRAM and DDRAM are for.
Can I use them in the code.?

I have seen the sample code for 8-bit mode in the datasheet. Looks like there is no mention of CGRAM and DDRAM in this code.

Pradeep Ch.


  • Administrator
  • Jr. Member
  • *****
  • Posts: 66
  • Karma: 3
    • View Profile
Re: CGRAM,DDRAM in 2x16 Character LCD - NHD-0216K1Z-FSW-FBW-L
« Reply #1 on: June 24, 2016, 11:37:16 AM »
Hi Pradeep,

The DDRAM or (Display data RAM) contains the character data that is displayed on the screen. It stores the 8-bit standard characters preset for the display in 80x8 bits for up to 80 characters. Their address locations can be found on page 5 of the display specification:

The CGRAM or (Character Generator RAM) is customizable, and can be used to write custom character patterns in a 5x8 dot format. Users can program this area to create and display up to 8 custom characters.
Details on how to program the CGRAM can be found on page 16 of the controller specification:



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

Started by davekBoard Character LCDs

Replies: 1
Views: 4879
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: 4446
Last post December 11, 2016, 11:19:54 PM
by control3
NHD-0416BZ-NSW-BBW Character Liquid Crystal Display Module Examples

Started by ciote014Board Character LCDs

Replies: 1
Views: 1614
Last post May 15, 2018, 10:21:11 AM
by Sergio_M
NHD-C0220Biz-FSW adds character 0x11 at begining of line

Started by whAtlGaBoard Character LCDs

Replies: 3
Views: 4067
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: 8390
Last post May 21, 2014, 03:31:37 PM
by Michael_L