0% found this document useful (0 votes)
94 views2 pages

Code Flow Chart: Initialize LCD

The code flow chart initializes an LCD display and game, displays a "PRESS START" message, generates random patterns, flashes the patterns on the display with a timer, increments and displays scores when patterns are correctly repeated. It also includes a subroutine to initialize the LCD display and send data to display messages by sending cursor addresses and memory contents from a lookup table to LCD registers with delays.

Uploaded by

AnupamaSolanki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views2 pages

Code Flow Chart: Initialize LCD

The code flow chart initializes an LCD display and game, displays a "PRESS START" message, generates random patterns, flashes the patterns on the display with a timer, increments and displays scores when patterns are correctly repeated. It also includes a subroutine to initialize the LCD display and send data to display messages by sending cursor addresses and memory contents from a lookup table to LCD registers with delays.

Uploaded by

AnupamaSolanki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Code flow chart

Initialize
LCD

Display
Initialize game

Display
PRESS
START
Generate
random
PATTERN
Display
timer on

Display
scores on
LCD
Generate
patterns
randomly
Flash random
pattern
generated

Increment and
display scores

Subroutine for LCD initialization and To Display


REMIND IT, PRESS START, TIMER, WINNER
Send cursor
address to
address register
of LCD(PORT 03)

Run delay
1.5us

Load starting
address of
LOOK UP
TABLE(ASCII)

Load
accumulator
with contents
of memory
AC=0?

NO

Send
accumulator
contents to
LCD data
register
(PORT 02)

Delay
50us

Increment HL
RP

RETUR
N

Send clear
command to LCD

You might also like