DOTMATRIXCHARACTER
LCDMODULE
USER’SMANUAL
OPTREXCORPORATION
1
Revision#DescriptionDateRevised
2
Preface
Thisuser’smanualhasbeenpreparedforallusersoftheOPTREXDMCseriesLiquidCrystalDisplay(LCD)
modulestoassistinincorporatingthesecharactertypeLCDmodulesintovariousapplicationsproperlyand
efficiently.
3
TableofContents
1FUNCTIONANDSTRUCTURE6
1.1GENERAL6
1.2CHARACTERISTICS6
1.3HANDLINGPRECAUTIONS7
1.4LISTOFDMCSERIES8
1.5PINASSIGNMENTS11
1.6BLOCKDIAGRAM13
1.7EXPLANATIONOFINTERNALOPERATION14
1.7.1Register14
1.7.2BusyFlag(BF)14
1.7.3AddressCounter(AC)15
1.7.4DisplayDataRAM(DDRAM)15
1.7.5AddressCounter(AC)15
1.7.6DDRAMAddressing16
1.7.7CharacterGeneratorROM(CGROM)22
1.7.8CharacterGeneratorRAM(CGRAM)22
2MPUINTERFACING30
2.1GENERAL30
2.2INITIALIZATION30
2.2.1InitializationusingtheInternalResetCircuit30
2.2.2SoftwareInitialization31
3INSTRUCTIONS34
3.1DETAILEDEXPLANATIONS34
3.1.1ClearDisplay34
3.1.2ReturnHome34
3.1.3Entrymodeset34
3.1.4DisplayON/OFFControl35
3.1.5CursororDisplayShift36
3.1.6FunctionSet36
3.1.7SetCGRAMAddress37
3.1.8SetDDRAMAddress37
3.1.9ReadBusyFlagandAddress37
3.1.10WriteDatatoCGorDDRAM38
3.1.11ReadDatafromCGorDDRAM38
3.2EXAMPLESOFINSTRUCTIONS41
3.2.116Characterx1LineDisplay(1/8duty)UsingCGRAM41
3.2.216Characterx2LineDisplay(1/16duty)44
3.2.316Characterx2LineDisplay(4-bitinterface,1/16duty)46
4ELECTRICALCHARA