NHD 0220D3Z NSW BBW
NHD 0220D3Z NSW BBW
NHD 0220D3Z NSW BBW
SerialLiquidCrystalDisplayModule
NHD 0220 D3Z N SW B B W NewhavenDisplay 2linesx20characters Model Transmissive SideWhiteLEDBacklight STNBlue() 6:00view WideTemperature(20C~+70C) RoHSCompliant
NewhavenDisplayInternational,Inc.
2511TechnologyDrive,Suite101 ElginIL,60124 Ph:8478448795 Fax:8478448796
DocumentRevisionHistory
Revision 0 1 2 3 Date 7/11/2007 12/15/2009 2/12/2010 11/7/2011 Description InitialRelease Userguidereformat MechanicalDrawingupdated Pindescriptionupdated Changedby CL BE AK
FunctionsandFeatures
2linesx20characters SerialInterface:I2C,SPIorRS232 5Vpowersupply 1/16duty,1/5bias 5x8pixelswithcursor RoHSCompliant
[2]
Mechanical Drawing
White
NHD-0220D3Z-NSW-BBW
Newhaven Display
PinDescription
PinNo. Symbol 1 2 3 4 5 6 7 8 9 10 11 12 13 14 RX VSS VDD NC SPISS SDO SCK/SCL SDI/SDA VSS VDD NC NC NC NC External Connection MPU PowerSupply PowerSupply NC MPU NC MPU MPU PowerSupply PowerSuppy NC NC NC NC FunctionDescription RS232Serialinputport Ground Powersupplyforlogic(+5.0V) NoConnect SPISlaveSelect(NCinI2Cmode) NoConnect SerialClock SerialDataIn(SPI)/SerialData(I2C) Ground PowerSupplyforlogic(+5.0V) NoConnect NoConnect NoConnect NoConnect
RecommendedLCDconnector:2.54mmpitchpins(pins13orpins510) Backlightconnector:controlledbycommandMateswith:
JumperCommunicationSelection
R1 Short Open Short Open
[4]
ElectricalCharacteristics
Item OperatingTemperatureRange StorageTemperatureRange SupplyVoltage SupplyCurrent SupplyforLCD(contrast) HLevelinput(SchmittTrigger) LLevelinput(SchmittTrigger) HLeveloutput LLeveloutput BacklightSupplyCurrent Symbol Top Tst VDD IDD Condition Min. 20 30 4.7 0.8VDD VSS Typ. 5.0 38 20 Max. +70 +80 5.5 VDD 0.2VDD Unit C C V mA V V V V V mA
VDDV0
Vih Vil Voh Vol Iled
OpticalCharacteristics
Item ViewingAngleTop ViewingAngleBottom ViewingAngleLeft ViewingAngleRight ContrastRatio ResponseTime(rise) ResponseTime(fall) Symbol Cr Tr Tf Condition Cr 2 Cr 2 Cr 2 Cr 2 Min. Typ. 10 60 45 45 3 100 150 Max. 150 200 Unit ms ms
BuiltinLCDController:PIC16F690 http://www.newhavendisplay.com/app_notes/PIC16F690.pdf
[5]
CommunicationInformation
ThisdisplayusesabuiltinPIC16F690forserialcommunication.
I2Cprotocol:
ToentertheI2Cmode,placeajumperonR1. SDAandSDKhavepullupresistors(10KOhm)onR7andR8. ThedefaultI2Caddressis80(50hex).TheI2Caddresscanbechangedtoany8bitvaluebycommandfunction,with theexceptionthattheLSB(leastsignificantbit)mustalwaysbe0.OncetheI2Caddresshasbeenchanged,itwillbe savedinthesystemmemory,anditwillrevertbacktothedefaultaddressifeitherRS232orSPIprotocolisselected. TheI2Cinterfaceiscapableofreceivingdataatupto100KHzclockrate.
SPIprotocol:
ToentertheSPImode,placeajumperonR2. SPImodehasanormallyhighlevelidleclock.WhenSlaveSelectisLOW,dataissampledontherisingedgeofthe Clock. TheSPIinterfaceiscapableofreceivingdataatupto100KHzclockrate.
RS232protocol:
ToentertheRS232mode,bothR1andR2shouldbeopen. TheRS232signalmustbe5VTTLcompatible.Communicationformatis8bitdata,1Stopbit,noparity,nohand shaking.DefaultBAUDrateis9600,andischangeablewithacommandfunction.OncetheBAUDratehasbeen changed,itwillbesavedinthesystemmemory,anditwillrevertbacktothedefaultaddressifeitherI2CorSPI protocolisselected.
ASCII TEXT
Todisplaynormaltext,justenteritsASCIInumber.Anumberfrom0x00to0x07displaystheuser definedcustomcharacter,0x20to0x7Fdisplaysthestandardsetofcharacters,0xA0to0xFDdisplay charactersandsymbolsthatarefactorymaskedontheSPLC780Dcontroller.0xFEisreserved.
[6]
TableofCommands
Prefix 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE
CMD 0x41 0x42 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4E 0x51 0x52 0x53 0x54 0x55 0x56 0x61 0x62 0x70 0x71 0x72
Param None None 1Byte None None None None None None None None None 1Byte 1Byte 9Byte None None 1Byte 1Byte None None None
Description Displayon Displayoff Setcursor Cursorhome Underlinecursoron Underlinecursoroff Movecursorleftoneplace Movecursorrightoneplace Blinkingcursoron Blinkingcursoroff Backspace Clearscreen Setcontrast Setbacklightbrightness Loadcustomcharacter Movedisplayoneplacetotheleft Movedisplayoneplacetotheright ChangeRS232BAUDrate232 ChangeI2Caddress Displayfirmwareversionnumber DisplayRS232BAUDrate DisplayI2Caddress
ChangingtheI2CSlaveAddress Syntax hexadecimal 0xFE 0x62 [adr] Parameter Parameter Length Description [adr] 1byte NewI2Caddress,0x000xFE TheLSBisalways0. Description This command sets the I2C address, the address must be an even number, (LSB = 0). The address change requires 20 microsecond to take effect; therefore, the subsequent input must have an appropriate delay. The default I2C address can be restored if SPI or RS232 is selected as the communication mode. Default 0x50
[7]
This command sets the RS232 BAUD rate, the single byte parameter select the desired BAUD rate as in the table below. The new BAUD rate requires 20 microsecond to take effect, therefore, the subsequent input must have an appropriate delay. The default BAUD rate can be restored if I2C or SPI is selected as the communication mode. Illegal
parameter input will be discarded.
9600BAUD
This command turns on the LCD display screen, the display text is not altered.
LCDscreenison
This command turns off the LCD display screen, the display text is not altered.
Default
LCDscreenison
[8]
SetCursorPosition Syntax hexadecimal 0xFE 0x45[pos] Parameter Parameter Length Description [pos] 1 byte Put cursor at location specified by [pos], 0x00 to 0x67
Description This command moves the cursor to a specified location where the next character will be displayed. The typical cursor position for a 4-line display is show below; a cursor position outside these ranges will not be viewable.
Afterareset,thecursorisonposition0x00.
Description This command move the cursor to line 1, column 1 of the LCD screen, the display text is not altered.
This command turns on the underline cursor, the cursor position is where the next character will appear.
Default Theunderlinecursorisoff. TurnOffUnderlineCursor Syntax hexadecimal 0xFE 0x48 Parameter Parameter Length Description None None Turnoffunderlinecursor
Description This command turns off the underline cursor.
Default
Theunderlinecursorisoff.
[9]
This command moves the cursor position left 1 space, regardless the cursor is displayed or not, and the displayed character is not altered
This command moves the cursor position right 1 space, regardless the cursor is displayed or not, and the displayed character is not altered
This command turns on the blinking cursor, both the cursor and the character on the cursor will blink.
Default
Theblinkingcursorisoff.
Theblinkingcursorisoff.
hexadecimal 0xFE 0x4E Parameter Length Description None None Move cursor back one space, deletes the character on the cursor.
This command is destructive backspace, the cursor is moved back one space and the character on the cursor is deleted.
Default
None.
[10]
0xFE 0x51 Length Description Clear LCD and move cursor to line 1 column 1.
This command clears the entire display and place the cursor at line 1 column 1.
Default
SetDisplayContrast Syntax hexadecimal 0xFE 0x52 [contrast] Parameter Parameter Length Description [contrast] 1 byte Set the display contrast, value between 1 to 50
Description This command sets the LCD character display contrast, the contrast setting is between 1 to 50, where 50 is the highest contrast.
Default
Defaultcontrastvalueis40.
0xFE 0x53 [brightness] Length Description 1 byte Set the LCD backlight brightness level, value between 1 to 8
This command set the LCD display backlight brightness level, the value is between 1 to 8.
Default
Defaultbrightnessvalueis1.
0xFE 0x54 [addr] [d0d7] Length Description Custom character address, 0 7 8 bytes Custom character pattern bit map
There are space for eight user defined custom characters, this command load the custom character into one of the eight locations. The custom character pattern is bit mapped into 8 data bytes, the bit map for Spanish character is shown in table below, to display the custom character, user simply enter the address of the character (0 to 8).
Default
None. Bit Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 7 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 4 0 0 0 0 1 1 0 0 3 0 0 0 1 0 0 1 0 2 1 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 Hex 0x04 0x00 0x04 0x08 0x10 0x11 0x0E 0x00
[11]
0xFE 0x55 Length Description Shift the LCD screen to the left one Place.
This command shifts the display one place to the left, the cursor position also moves with the display, and the display data is not altered.
Default
None
0xFE 0x56 Length Description Shift the LCD screen to the right one Place.
This command shifts the display one place to the right, the cursor position also moves with the display, and the display data is not altered.
Default
Default
None.
Default
None.
DisplayI2CAddress Syntax hexadecimal 0xFE 0x72 Parameter Parameter Length Description None None Display I2C Address
Description Default
[12]
BuiltinFontTable
[13]
ContentofTest
Endurancetestapplyingthehigh storagetemperatureforalongtime. Endurancetestapplyingthelowstorage temperatureforalongtime. Endurancetestapplyingtheelectricstress (voltage¤t)andthehighthermal stressforalongtime. Endurancetestapplyingtheelectricstress (voltage¤t)andthelowthermal stressforalongtime. Endurancetestapplyingtheelectricstress (voltage¤t)andthehighthermal withhighhumiditystressforalongtime. Endurancetestapplyingtheelectric stress (voltage¤t)duringacycleoflow andhighthermalstress. Endurancetestapplyingvibrationto simulatetransportationanduse.
TestCondition
+80C,48hrs 30C,48hrs +70C48hrs
Note
2 1,2 2
20C,48hrs
1,2
1,2
Vibrationtest
Staticelectricitytest
Endurancetestapplyingelectricstatic discharge.
PrecautionsforusingLCDs/LCMs
SeePrecautionsatwww.newhavendisplay.com/specs/precautions.pdf
WarrantyInformationandTerms&Conditions
http://www.newhavendisplay.com/index.php?main_page=terms
[14]