NHD 0220D3Z NSW BBW

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

NHD0220D3ZNSWBBW

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

www.newhavendisplay.com [email protected] [email protected] [1]

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

STN/ Blue/ Negative/ Transmissive

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

R2 Short Short Open Open

Protocol TEST SPI I2C RS232

Description Selftest 100KHzmaxclock 100KHzmaxclock 5V,TTLsignal

[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

Ta=25C VDD=5.0V Ta=25C

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]

ChangingBAUDRate Syntax hexadecimal Parameter Parameter [baud] Description

0xFE 0x61 [baud] Length Description 1byte NewRS232BAUDRate,18

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.

Default Parameter 1 2 3 4 5 6 7 8 TurnOnDisplay Syntax Parameter


Description

9600BAUD

BAUD 300 1200 2400 9600 14400 19.2K 57.6K 115.2K

hexadecimal Parameter None

0xFE 0x41 Length Description None TurnonLCDscreen

This command turns on the LCD display screen, the display text is not altered.

Default TurnOffDisplay Syntax Parameter


Description

LCDscreenison

hexadecimal Parameter None

0xFE 0x42 Length Description None TurnoffLCDscreen

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.

Line1 Line2 Line3 Line4 Default HomeCursor Syntax Parameter

Column1 0x00 0x40 0x14 0x54

Column20 0x13 0x53 0x27 0x67

Afterareset,thecursorisonposition0x00.

hexadecimal Parameter None Default

0xFE 0x46 Length Description None Positioncursoratline1column1 None

Description This command move the cursor to line 1, column 1 of the LCD screen, the display text is not altered.

TurnOnUnderlineCursor Syntax hexadecimal Parameter Parameter None


Description

0xFE 0x47 Length Description None Turnonunderlinecursor

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]

MoveCursorLeftOneSpace Syntax hexadecimal Parameter Parameter None


Description

0xFE 0x49 Length Description None Movecursorleft1space

This command moves the cursor position left 1 space, regardless the cursor is displayed or not, and the displayed character is not altered

Default None MoveCursorRightOneSpace Syntax hexadecimal Parameter Parameter None


Description

0xFE 0x4A Length Description None Movecursorright1space

This command moves the cursor position right 1 space, regardless the cursor is displayed or not, and the displayed character is not altered

Default None TurnOnBlinkingCursor Syntax hexadecimal Parameter Parameter None


Description

0xFE 0x4B Length Description None Turnontheblinkingcursor

This command turns on the blinking cursor, both the cursor and the character on the cursor will blink.

Default

Theblinkingcursorisoff.

TurnOffBlinkingCursor Syntax hexadecimal Parameter Parameter None


Description

0xFE 0x4C Length Description None Turnofftheblinkingcursor

This command turns off the blinking cursor.

Default BackSpace Syntax Parameter


Description

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]

ClearScreen Syntax Parameter


Description

hexadecimal Parameter None None None.

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.

SetBacklightBrightness Syntax hexadecimal Parameter Parameter [brightness]


Description

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.

LoadCustomCharacters Syntax hexadecimal Parameter Parameter [addr] 1 byte [D0..D7]


Description

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]

ShiftDisplaytotheLeft Syntax hexadecimal Parameter Parameter None None


Description

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

ShiftDisplaytotheRight Syntax hexadecimal Parameter Parameter None None


Description

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.

None DisplayFirmwareVersionNumber Syntax hexadecimal Parameter Parameter None None


Description

Default

0xFE 0x70 Length Description Display the firmware version number.

This command displays the micro-controller firmware version number.

Default

None.

DisplayRS232BaudRate Syntax hexadecimal Parameter Parameter None None


Description

0xFE 0x71 Length Description Display Baud Rate

This command displays the current RS232 BAUD rate.

Default

None.

DisplayI2CAddress Syntax hexadecimal 0xFE 0x72 Parameter Parameter Length Description None None Display I2C Address
Description Default

This command displays the current I2C slave address. None.

[12]

BuiltinFontTable

[13]

ExampleInitializationProgram Seeprogramcodeathttp://www.newhavendisplay.com/app_notes/Serial_LCD.txt QualityInformation


TestItem
HighTemperaturestorage LowTemperaturestorage HighTemperature Operation LowTemperature Operation HighTemperature/ HumidityOperation ThermalShockresistance

ContentofTest
Endurancetestapplyingthehigh storagetemperatureforalongtime. Endurancetestapplyingthelowstorage temperatureforalongtime. Endurancetestapplyingtheelectricstress (voltage&current)andthehighthermal stressforalongtime. Endurancetestapplyingtheelectricstress (voltage&current)andthelowthermal stressforalongtime. Endurancetestapplyingtheelectricstress (voltage&current)andthehighthermal withhighhumiditystressforalongtime. Endurancetestapplyingtheelectric stress (voltage&current)duringacycleoflow andhighthermalstress. Endurancetestapplyingvibrationto simulatetransportationanduse.

TestCondition
+80C,48hrs 30C,48hrs +70C48hrs

Note
2 1,2 2

20C,48hrs

1,2

+40C, 90%RH, 48hrs

1,2

Vibrationtest

Staticelectricitytest

Endurancetestapplyingelectricstatic discharge.

0C,30min>+25C,5min> +50C,30min=1cycle 10cycles 1055Hz,15mmamplitude. 60secineachof3directions X,Y,Z For15minutes VS=800V,RS=1.5k,CS=100pF Onetime

Note1:Nocondensationtobeobserved. Note2:Conductedafter4hoursofstorageat25C,0%RH. Note3:Testperformedonproductitself,notinsideacontainer.


PrecautionsforusingLCDs/LCMs
SeePrecautionsatwww.newhavendisplay.com/specs/precautions.pdf

WarrantyInformationandTerms&Conditions
http://www.newhavendisplay.com/index.php?main_page=terms

[14]

You might also like