12.07.2015 Views

Displaying Characters on an LCD Character Module - Hantronix, Inc

Displaying Characters on an LCD Character Module - Hantronix, Inc

Displaying Characters on an LCD Character Module - Hantronix, Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Applicati<strong>on</strong> NoteINC.Crystal Clear <strong>an</strong>d Visibly Superior <strong>LCD</strong> <strong>Module</strong>sIII. Software Flowchart:BeginWriteP1 = 38h, Comm<strong>an</strong>d_ByteData=[DPTR]4.1mSec DelayP1 = 38h, Comm<strong>an</strong>d_Byte100uSec DelayInitializati<strong>on</strong>?Data = 99hNoCall Data_ByteYesReturnP1 = 38h, Comm<strong>an</strong>d_ByteP1 = 0ch, Comm<strong>an</strong>d_ByteP1 = 01h, Comm<strong>an</strong>d_ByteINC DPTRCGRAMFirst_LineSec<strong>on</strong>d_Line:Comm<strong>an</strong>d_byteData_byteIDLERS lowRS high*CGRAM: Program in CGRAM DATAFirst_Line: Display First LineSec<strong>on</strong>d_Line: Display Sec<strong>on</strong>d LineRW low - Enable writeDELAYE low - generate enable pulseStart TimerTestFlag = 0Timer0 Interrupt:TestFlag=1Stop TimernopTestFlag=1?NoYesReturnE high - pull up enable signalRW high - Read modeC<strong>on</strong>figure P1 to input portDB7 = 1?YesNoReturn- Page 2 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!