18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

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.

Chapter 8<br />

Figure 8-9. Using an 8255 to control a character-based LCD module.<br />

Read operations are similar to writes, with R/W high instead of low. <strong>The</strong> data appears on<br />

D0-D7 in 320 nanoseconds or less after E goes high.<br />

<strong>The</strong> HD44780 cannot accept a new instruction until it has finished executing its previous<br />

instruction. Table 8-2 shows the maximum time each instruction requires.<br />

BASIC-52 is slow enough that you don’t have to worry about the required delays. If you’re<br />

using an assembly-language routine, your program must include delays after each instruction,<br />

or you can use the instruction that reads the HD44780’s busy flag at D7 to determine<br />

when the module is ready to accept a new instruction.<br />

144 <strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong>

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

Saved successfully!

Ooh no, something went wrong!