23.10.2013 Views

M68HC05 Family — Understanding Small Microcontrollers

M68HC05 Family — Understanding Small Microcontrollers

M68HC05 Family — Understanding Small Microcontrollers

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.

Freescale Semiconductor, Inc...<br />

Basic Logic Elements<br />

Simple Gates<br />

Freescale Semiconductor, Inc.<br />

The three most basic types of logic gates found in a microcontroller are<br />

the inverter, the NAND gate, and the NOR gate. A logic designer uses<br />

various combinations of these basic gates to form more-complex logic<br />

circuits, such as those that add two binary numbers together. While this<br />

textbook is not intended to teach logic design techniques, these circuits<br />

are discussed to give you a better understanding of how a<br />

microcontroller operates on digital information.<br />

Inverter Figure 4 shows the inverter logic symbol, a truth table for an inverter,<br />

and a CMOS equivalent circuit. When a logic-level signal (0 or 1) is<br />

presented to the input [1] of an inverter, the opposite logic level appears<br />

at its output [2].<br />

<strong>M68HC05</strong> <strong>Family</strong> <strong>—</strong> <strong>Understanding</strong> <strong>Small</strong> <strong>Microcontrollers</strong> <strong>—</strong> Rev. 2.0<br />

Figure 4. CMOS Inverter<br />

Refer to the CMOS equivalent circuit at the right of Figure 4 and to<br />

Table 5 for the following discussion: When input [1] is a logic 0, N<br />

transistor [4] is off and P transistor [3] is on, connecting output [2] to VDD<br />

(logic 1). When input [1] is a logic 1, P transistor [3] is off and N transistor<br />

[4] is on, connecting output [2] to ground (logic 0).<br />

Input<br />

[1]<br />

[1] [2]<br />

Table 5. Inverter Gate Operation<br />

Transistor Output<br />

[2]<br />

[3] [4]<br />

0 On Off Connected to V DD (1)<br />

1 Off On Connected to ground (0)<br />

40 Basic Logic Elements<br />

For More Information On This Product,<br />

Go to: www.freescale.com<br />

MOTOROLA<br />

Input<br />

[1]<br />

Output<br />

[2]<br />

0 1<br />

1 0<br />

[1]<br />

V DD<br />

[3]<br />

[4]<br />

[2]

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

Saved successfully!

Ooh no, something went wrong!