NHD-0220D3Z-NSW-BBW

Embed Size (px)

Citation preview

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    1/14[1]

    NHD0220D3ZNSWBBW

    SerialLiquidCrystalDisplayModule

    NHD NewhavenDisplay0220 2linesx20characters

    D3Z Model

    N Transmissive

    SW SideWhiteLEDBacklight

    B STNBlue()

    B 6:00view

    W WideTemperature(20C~+70C)

    RoHSCompliant

    NewhavenDisplayInternational,Inc.2511TechnologyDrive,Suite101

    ElginIL,60124

    Ph:8478448795 Fax:8478448796

    www.newhavendisplay.com

    [email protected] [email protected]

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    2/14

    [2]

    DocumentRevisionHistoryRevision Date Description Changedby

    0 7/11/2007 InitialRelease

    1 12/15/2009 Userguidereformat CL

    2 2/12/2010 MechanicalDrawingupdated BE

    3 11/7/2011 Pindescriptionupdated AK

    FunctionsandFeatures 2linesx20characters

    SerialInterface:I2C,SPIorRS232

    5Vpowersupply

    1/16duty,1/5bias

    5x8pixelswithcursor

    RoHSCompliant

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    3/14

    NHD-0220D3Z-NSW-B

    Mechanical Drawing

    STN/ Blue/ Negative/ Transmissive

    White

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    4/14

    [4]

    PinDescriptionPinNo. Symbol External

    Connection

    FunctionDescription

    1 RX MPU RS232Serialinputport

    2 VSS PowerSupply Ground

    3 VDD PowerSupply Powersupplyforlogic(+5.0V)

    4 NC NC NoConnect

    5 SPISS MPU SPISlaveSelect(NCinI2Cmode)

    6 SDO NC NoConnect7 SCK/SCL MPU SerialClock

    8 SDI/SDA MPU SerialDataIn(SPI)/SerialData(I2C)

    9 VSS PowerSupply Ground

    10 VDD PowerSuppy PowerSupplyforlogic(+5.0V)

    11 NC NC NoConnect

    12 NC NC NoConnect

    13 NC NC NoConnect

    14 NC NC NoConnect

    RecommendedLCDconnector:2.54mmpitchpins(pins13orpins510)

    Backlightconnector:controlledbycommand Mateswith:

    JumperCommunicationSelectionR1 R2 Protocol Description

    Short Short TEST Selftest

    Open Short SPI 100KHzmaxclock

    Short Open I2C 100KHzmaxclock

    Open Open RS232 5V,TTLsignal

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    5/14

    [5]

    ElectricalCharacteristicsItem Symbol Condition Min. Typ. Max. Unit

    OperatingTemperatureRange Top 20 +70 C

    StorageTemperatureRange Tst 30 +80 C

    SupplyVoltage VDD 4.7 5.0 5.5 V

    SupplyCurrent IDD Ta=25C

    VDD=5.0V

    38 mA

    SupplyforLCD(contrast) VDDV0 Ta=25C V

    HLevelinput(SchmittTrigger) Vih 0.8VDD VDD V

    LLevelinput(SchmittTrigger) Vil VSS 0.2VDD V

    HLeveloutput Voh V

    LLeveloutput Vol V

    BacklightSupplyCurrent Iled 20 mA

    OpticalCharacteristicsItem Symbol Condition Min. Typ. Max. Unit

    ViewingAngleTop Cr 2 10 ViewingAngleBottom Cr 2 60

    ViewingAngleLeft Cr 2 45

    ViewingAngleRight Cr 2 45

    ContrastRatio Cr 3

    ResponseTime(rise) Tr 100 150 ms

    ResponseTime(fall) Tf 150 200 ms

    Builtin

    LCD

    Controller:

    PIC

    16F690

    http://www.newhavendisplay.com/app_notes/PIC16F690.pdf

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    6/14

    [6]

    CommunicationInformationThisdisplayusesabuiltinPIC16F690forserialcommunication.

    I2Cprotocol:ToentertheI2Cmode,placeajumperonR1.

    SDAandSDKhavepullupresistors(10KOhm)onR7andR8.

    Thedefault

    I2C

    address

    is

    80

    (50

    hex).

    The

    I2C

    address

    can

    be

    changed

    to

    any

    8bit

    value

    by

    command

    function,

    with

    theexceptionthattheLSB(leastsignificantbit)mustalwaysbe0. OncetheI2Caddresshasbeenchanged,itwillbe

    savedinthesystemmemory,anditwillrevertbacktothedefaultaddressifeitherRS232orSPIprotocolisselected.

    TheI2Cinterfaceiscapableofreceivingdataatupto100KHzclockrate.

    SPIprotocol:ToentertheSPI mode,placeajumperonR2.

    SPImodehasanormallyhighlevelidleclock.WhenSlaveSelectisLOW,dataissampledontherisingedgeofthe

    Clock.

    TheSPIinterfaceiscapableofreceivingdataatupto100KHzclockrate.

    RS232protocol:ToentertheRS232 mode,bothR1andR2shouldbeopen.

    TheRS232signalmustbe5VTTLcompatible.Communicationformatis8bitdata,1Stopbit,noparity,nohand

    shaking.DefaultBAUDrateis9600,andischangeablewithacommandfunction.OncetheBAUDratehasbeen

    changed,itwillbesavedinthesystemmemory,anditwillrevertbacktothedefaultaddressifeitherI2CorSPI

    protocolisselected.

    ASCII TEXTTodisplaynormaltext,justenteritsASCIInumber.Anumberfrom0x00to0x07displaystheuser

    definedcustomcharacter,0x20to0x7Fdisplaysthestandardsetofcharacters,0xA0to0xFDdisplay

    charactersandsymbolsthatarefactorymaskedontheSPLC780Dcontroller.0xFEisreserved.

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    7/14

    [7]

    TableofCommands

    Prefix CMD Param Description

    0xFE 0x41 None Displayon

    0xFE 0x42 None Displayoff

    0xFE 0x45 1Byte Setcursor

    0xFE 0x46 None Cursorhome

    0xFE 0x47 None Underlinecursoron

    0xFE 0x48 None Underlinecursoroff

    0xFE 0x49 None Movecursorleftoneplace

    0xFE 0x4A None Movecursorrightoneplace

    0xFE 0x4B None Blinkingcursoron

    0xFE 0x4C None Blinkingcursoroff

    0xFE 0x4E None Backspace

    0xFE 0x51 None Clearscreen

    0xFE 0x52 1Byte Setcontrast

    0xFE 0x53 1Byte Setbacklightbrightness

    0xFE 0x54 9Byte Loadcustomcharacter

    0xFE 0x55 None Movedisplayoneplacetotheleft

    0xFE 0x56 None Movedisplayoneplacetotheright

    0xFE 0x61 1Byte ChangeRS232BAUDrate232

    0xFE 0x62 1Byte ChangeI2Caddress

    0xFE 0x70 None Displayfirmwareversionnumber

    0xFE 0x71 None DisplayRS232BAUDrate

    0xFE 0x72 None DisplayI2Caddress

    ChangingtheI2CSlaveAddress

    Syntax hexadecimal 0xFE 0x62 [adr]

    Parameter Parameter Length Description

    [adr] 1byte NewI2Caddress,0x000xFE

    TheLSB

    is

    always

    0.

    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 inputmust have an appropriate delay. The default I2C address can be restored if SPI or RS232

    is selected as the communication mode.

    Default 0x50

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    8/14

    [8]

    ChangingBAUDRate

    Syntax hexadecimal 0xFE 0x61 [baud]

    Parameter Parameter Length Description

    [baud] 1byte NewRS232BAUDRate,1 8

    Description 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 takeeffect, therefore, the subsequent input must have an appropriate delay. The defaul

    BAUD rate can be restored if I2C or SPI is selected as the communication mode. Illegaparameter input will be discarded.

    Default 9600BAUD

    Parameter BAUD

    1 300

    2 1200

    3 2400

    4 9600

    5 144006 19.2K

    7 57.6K

    8 115.2K

    TurnOnDisplay

    Syntax hexadecimal 0xFE 0x41

    Parameter Parameter Length Description

    None None TurnonLCDscreen

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

    Default LCDscreenison

    TurnOffDisplay

    Syntax hexadecimal 0xFE 0x42

    Parameter Parameter Length Description

    None None TurnoffLCDscreen

    Description This command turns off the LCD display screen, the display text is not altered.Default LCDscreenison

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    9/14

    [9]

    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 no

    be viewable.

    . Column1 Column20

    Line1 0x00 0x13

    Line2 0x40 0x53

    Line3 0x14 0x27

    Line4 0x54 0x67

    Default Afterareset,thecursorisonposition0x00.

    HomeCursor

    Syntax hexadecimal 0xFE 0x46

    Parameter Parameter Length Description

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

    Default None

    TurnOnUnderlineCursor

    Syntax hexadecimal 0xFE 0x47

    Parameter Parameter Length Description

    None None Turnonunderlinecursor

    Description This command turns on the underline cursor, the cursor position is where the next character wil

    appear.

    Default Theunderlinecursorisoff.

    TurnOffUnderlineCursor

    Syntax hexadecimal 0xFE 0x48

    Parameter Parameter Length DescriptionNone None Turnoffunderlinecursor

    Description This command turns off the underline cursor.

    Default Theunderlinecursorisoff.

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    10/14

    [10]

    MoveCursorLeftOneSpace

    Syntax hexadecimal 0xFE 0x49

    Parameter Parameter Length Description

    None None Movecursorleft1spaceDescription 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 0xFE 0x4A

    Parameter Parameter Length Description

    None None Movecursorright1space

    Description 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 0xFE 0x4B

    Parameter Parameter Length Description

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

    Default Theblinkingcursorisoff.

    TurnOffBlinkingCursor

    Syntax hexadecimal 0xFE 0x4C

    Parameter Parameter Length Description

    None None Turnofftheblinkingcursor

    Description This command turns off the blinking cursor.

    Default Theblinkingcursorisoff.

    BackSpace

    Syntax hexadecimal 0xFE 0x4E

    Parameter Parameter Length DescriptionNone None Move cursor back one space, deletes the character on the cursor.

    Description This command is destructive backspace, the cursor is moved back one space and the character on the

    cursor is deleted.

    Default None.

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    11/14

    [11]

    ClearScreen

    Syntax hexadecimal 0xFE 0x51

    Parameter Parameter Length Description

    None None Clear LCD and move cursor to line 1 column 1.Description This command clears the entire display and place the cursor at line 1 column 1.

    Default None.

    SetDisplay

    Contrast

    Syntax hexadecimal 0xFE 0x52 [contrast]

    Parameter Parameter Length Description

    [contrast] 1 byte Set the display contrast, value between 1 to 50Description 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 0xFE 0x53 [brightness]

    Parameter Parameter Length Description

    [brightness] 1 byte Set the LCD backlight brightness level, value between 1 to 8Description This command set the LCD display backlight brightness level, the value is between 1 to 8.

    Default Defaultbrightnessvalueis1.

    LoadCustomCharacters

    Syntax hexadecimal 0xFE 0x54 [addr] [d0d7]

    Parameter Parameter Length Description

    [addr] 1 byte Custom character address, 0 7[D0..D7] 8 bytes Custom character pattern bit map

    Description 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 7 6 5 4 3 2 1 0 Hex

    Byte1 0 0 0 0 0 1 0 0 0x04

    Byte2 0 0 0 0 0 0 0 0 0x00

    Byte3 0 0 0 0 0 1

    0 0 0x04Byte4 0 0 0 0 1 0 0 0 0x08

    Byte5 0 0 0 1 0 0 0 0 0x10

    Byte6 0 0 0 1 0 0 0 1 0x11

    Byte7 0 0 0 0 1 1 1 0 0x0E

    Byte8 0 0 0 0 0 0 0 0 0x00

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    12/14

    [12]

    ShiftDisplaytotheLeft

    Syntax hexadecimal 0xFE 0x55

    Parameter Parameter Length Description

    None None Shift the LCD screen to the left one Place.Description 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 0xFE 0x56

    Parameter Parameter Length Description

    None None Shift the LCD screen to the right one Place.Description 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 None

    DisplayFirmware

    Version

    Number

    Syntax hexadecimal 0xFE 0x70

    Parameter Parameter Length Description

    None None Display the firmware version number.Description This command displays the micro-controller firmware version number.

    Default None.

    DisplayRS232BaudRate

    Syntax hexadecimal 0xFE 0x71

    Parameter Parameter Length Description

    None None Display Baud RateDescription 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 This command displays the current I2

    C slave address.Default None.

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    13/14

    [13]

    BuiltinFontTable

  • 7/31/2019 NHD-0220D3Z-NSW-BBW

    14/14

    [14]

    ExampleInitializationProgram

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

    QualityInformationTestItem ContentofTest TestCondition Note

    HighTemperaturestorage Endurancetestapplyingthehighstoragetemperatureforalongtime.

    +80C,48hrs 2

    LowTemperaturestorage Endurancetestapplyingthelowstorage

    temperatureforalongtime.

    30C,48hrs 1,2

    HighTemperature

    Operation

    Endurancetestapplyingtheelectricstress

    (voltage&current)andthehighthermal

    stressforalongtime.

    +70C48hrs 2

    LowTemperature

    Operation

    Endurancetestapplyingtheelectricstress

    (voltage&current)andthelowthermal

    stressforalongtime.

    20C,48hrs 1,2

    HighTemperature/

    HumidityOperation

    Endurancetestapplyingtheelectricstress

    (voltage&current)andthehighthermal

    withhighhumiditystressforalongtime.

    +40C, 90%RH, 48hrs 1,2

    ThermalShockresistance Endurancetestapplyingtheelectric stress

    (voltage&current)duringacycleoflow

    andhighthermalstress.

    0C,30min >+25C,5min >

    +50C,30min=1cycle

    10cycles

    Vibrationtest Endurancetestapplyingvibrationto

    simulatetransportationanduse.

    1055Hz,15mmamplitude.

    60secineachof3directions

    X,Y,Z

    For15minutes

    3

    Staticelectricitytest Endurancetestapplyingelectricstatic

    discharge.

    VS=800V,RS=1.5k,CS=100pF

    Onetime

    Note1:Nocondensationtobeobserved.

    Note2:Conductedafter4hoursofstorageat25C,0%RH.

    Note

    3:Test

    performed

    on

    product

    itself,

    not

    inside

    a

    container.

    PrecautionsforusingLCDs/LCMsSeePrecautionsatwww.newhavendisplay.com/specs/precautions.pdf

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