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 12<br />

accomplished, you can replace the manual switches with computer control of the transmitter,<br />

receiver, or both.<br />

<strong>The</strong> circuit uses some specialized components that do a lot of the work of detecting, filtering,<br />

encoding, decoding, and error-checking of the transmissions. Two of these are Motorola’s<br />

MC145026 and MC145027 encoder/decoder pair, which are low-cost chips intended for<br />

remote-control applications.<br />

Transmitter Circuits<br />

Figure 12-1 is the infrared transmitter, which has three main functions. It converts four bits<br />

of parallel data into a serial stream. It then modulates the resulting signal by chopping it at<br />

40 kilohertz. And, it causes one or more infrared-emitting diodes to transmit the encoded,<br />

modulated data to a receiver that is tuned to respond to 40-kilohertz signals.<br />

<strong>The</strong> encoder chip. <strong>The</strong> encoder (U1) has five address inputs (A1-A5) and four data inputs<br />

(D6-D9). <strong>The</strong> logic states of these inputs determine the transmitted address and data. <strong>The</strong><br />

encoder outputs a different code for each of three states that the inputs may have: Logic 0<br />

(1.5V or less), Logic 1 (3.5V or greater), or Open (no connection). Figure 12-3 shows the<br />

transmissions that result for each of these states.<br />

Figure 12-3. Pulse patterns at DATA OUT of the MC145026 encoder.<br />

202 <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!