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.

Wireless Links<br />

Figure 12-7. Using an 8255 to control and access an infrared receiver.<br />

and just read Port B once a minute, or on user request, or trigger the reading by some other<br />

factor under program control.<br />

As with the encoder circuit, you don’t have to use an 8255 to read and write to the decoder.<br />

Any latched port outputs will do for A1-A4, and any port inputs will do for D6-D9. Because<br />

the decoder latches the data, you don’t need additional input latches. If the circuit will receive<br />

data from only one address, you can hardwire the decoder’s A1-A5 and free up four bits on<br />

the 8255 for other uses.<br />

You can transmit to Figure 12-7’s circuit with either a manual or computer-controlled<br />

transmitter. Set the transmitter’s address inputs to match the receiver’s address, select the<br />

data you want to send, transmit, and view the received data on the 8052-BASIC system’s<br />

host display.<br />

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

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

Saved successfully!

Ooh no, something went wrong!