
- •Table of Contents
- •Preface
- •Additional Material
- •Basic Electronics
- •1.0 The Atom
- •1.1 Isotopes and Ions
- •1.2 Static Electricity
- •1.3 Electrical Charge
- •1.4 Electrical Circuits
- •1.5 Circuit Elements
- •1.6 Semiconductors
- •Number Systems
- •2.0 Counting
- •2.1 The Origins of the Decimal System
- •2.2 Types of Numbers
- •2.3 Radix Representations
- •2.4 Number System Conversions
- •Data Types and Data Storage
- •3.0 Electronic-Digital Machines
- •3.1 Character Representations
- •3.2 Storage and Encoding of Integers
- •3.3 Encoding of Fractional Numbers
- •3.4 Binary-Coded Decimals (BCD)
- •Digital Logic, Arithmetic, and Conversions
- •4.0 Microcontroller Logic and Arithmetic
- •4.1 Logical Instructions
- •4.2 Microcontroller Arithmetic
- •4.3 Bit Manipulations and Auxiliary Operations
- •4.4 Unsigned Binary Arithmetic
- •4.5 Signed Binary Arithmetic
- •4.6 Data Format Conversions
- •Circuits and Logic Gates
- •5.0 Digital Circuits
- •5.1 The Diode Revisited
- •5.2 The Transistor
- •5.3 Logic Gates
- •5.4 Transistor-Transistor Logic
- •5.5 Other TTL Logic Families
- •5.6 CMOS Logic Gates
- •Circuit Components
- •6.0 Power Supplies
- •6.1 Clocked Logic and Flip-flops
- •6.2 Clocks
- •6.3 Frequency Dividers and Counters
- •6.4 Multiplexers and Demultiplexers
- •6.5 Input Devices
- •The Microchip PIC
- •7.0 The PICMicro Microcontroller
- •7.1 PIC Architecture
- •Mid-range PIC Architecture
- •8.0 Processor Architecture and Design
- •8.1 The Mid-range Core Features
- •8.2 Mid-Range CPU and Instruction Set
- •8.3 EEPROM Data Storage
- •8.4 Data Memory Organization
- •8.5 Mid-range I/O and Peripheral Modules
- •PIC Programming: Tools and Techniques
- •9.0 Microchip’s MPLAB
- •9.1 Integrated Development Environment
- •9.2 Simulators and Debuggers
- •9.3 Programmers
- •9.4 Engineering PIC Software
- •9.5 Pseudo Instructions
- •Programming Essentials: Input and Output
- •10.0 16F84A Programming Template
- •10.1 Introducing the 16F84A
- •10.2 Simple Circuits and Programs
- •10.3 Programming the Seven-segment LED
- •10.4 A Demonstration Board
- •Interrupts
- •11.0 Interrupts on the 16F84
- •11.1 Interrupt Sources
- •11.2 Interrupt Handlers
- •11.3 Interrupt Programming
- •11.4 Sample Programs
- •Timers and Counters
- •12.0 The 16F84 Timer0 Module
- •12.1 Delays Using Timer0
- •12.2 Timer0 as a Counter
- •12.3 Timer0 Programming
- •12.4 The Watchdog Timer
- •12.5 Sample Programs
- •LCD Interfacing and Programming
- •13.0 LCD Features and Architecture
- •13.1 Interfacing with the HD44780
- •13.2 HD44780 Instruction Set
- •13.3 LCD Programming
- •13.4 Sample Programs
- •Communications
- •14.0 PIC Communications Overview
- •14.1 Serial Data Transmission
- •14.2 Parallel Data Transmission
- •14.4 PIC Protocol-based Serial Programming
- •14.5 Sample Programs
- •Data EEPROM Programming
- •15.0 PIC Internal EEPROM Memory
- •15.1 EEPROM Devices and Interfaces
- •15.2 Sample Programs
- •Analog to Digital and Realtime Clocks
- •16.0 A/D Converters
- •16.1 A/D Integrated Circuits
- •16.2 PIC On-Board A/D Hardware
- •16.3 Realtime Clocks
- •16.4 Sample Programs
- •Index

Circuits and Logic Gates |
93 |
Logic gates whose input has hysteresis are often known as a Schmitt trigger. Figure 5-22 shows a 7414 hex Schmitt trigger inverter.
+5V |
|
|
|
|
|
|
|
14 |
13 |
12 |
11 |
10 |
9 |
8 |
|
|
|
|
|
|
|
In |
Out |
|
|
|
7414 |
|
H |
L |
|
|
|
|
|
|
|
L |
H |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
|
|
|
|
|
|
|
GND |
|
Figure 5-22 7414 Hex Schmitt Trigger Inverter
Note in Figure 5-22 that there is a small hysteresis curve inside each inverter symbol. This indicates that the inverters are the Schmitt triggers.
5.5 Other TTL Logic Families
In 1971 a major advance in TTL logic occurred with the introduction of TTL devices that incorporate Schottky diodes. They are based on the property of aluminum to act much like a p-type semiconductor when in contact with n-type silicon. The Schottky diode acts like an ordinary p-n diode except that it has a faster response time and the voltage drop is about 0.3 volts instead of 0.6 volts. When a Schottky diode is connected between the base and the collector of a bipolar transistor, the transistor is prevented from going into saturation. The Schottky diode/transistor combination, known as a Schottky transistor, has a significantly faster switching speed. Schottky TTL logic devices have part numbers 74SXXX and give three times the speed of standard TTL using only twice the power.
By increasing the resistor sizes, low-power Schottky TTL was developed giving the same speed as standard TTL, but using only 1/5 the power. These devices, whose part numbers are in the format 74LSXXX, were the standard TTL logic parts for many years. In 1980, more sophisticated Schottky-type logic circuits using smaller, higher performance transistors were developed by Texas Instruments. These are the advanced Schottky and advanced low-power Schottky logic families. Their part numbers are 74ASXXX and 74ALSXXX respectively.
5.6 CMOS Logic Gates
Around the same time that the original TTL circuits using bipolar transistors were introduced, a line of logic circuits using CMOS (complementary metal-oxide semiconductor) technology became available. A line of TTL-compatible CMOS ICs have part numbers 74XXX. TTL series pinouts are also available with part numbers 74CXXX.
CMOS logic circuits have two significant advantages over TTL. In the first place, CMOS circuits operate with very low power dissipation. A CMOS input requires virtually no current to remain at a given logic level. In fact, the entire circuit draws insignificant current when it is not switching between logic levels. In CMOS, power is
94 |
Chapter 5 |
consumed only during switching, while bipolar logic power dissipation is only weakly dependent on the switching rate. At low switching rates, CMOS provides huge savings in power dissipation.
A second advantage of CMOS is the smaller size of the circuits. Since no resistors and only two simple types of transistors are needed, the resulting logic gates require less area on a silicon wafer than their bipolar counterparts. The combined advantages of less power consumption and less area make CMOS the choice for VLSI (very large scale integration) integrated circuits such as microprocessors.
However, there are also significant drawbacks to CMOS which have prevented it from completely replacing bipolar logic. One of them is that CMOS circuits have slower switching speeds and propagation delays compared to bipolar circuits. The original CMOS logic gates had switching speeds that were about five to ten times slower than the 74XXX bipolar logic gates. High-speed CMOS, introduced in 1980, have improved processing technology and smaller transistor sizes, resulting in higher switching speeds and improved output drive current capability.
The CMOS 74HCT parts are completely TTL-compatible and can be freely intermixed with bipolar TTL parts. The 74HC series, on the other hand, have a logic transition threshold of 2.5 V when using a 5-volt power supply, compared to the 1.4 volts TTL standard. Since CMOS outputs have 5-volt and 0-volt logic levels, a 2.5-volt threshold provides better noise immunity than TTL; however, 74HC series parts cannot be mixed with standard TTL parts. For this reason, in mixed circuits, it is preferable to use the 74HCT parts.
An advanced CMOS technology family was introduced in 1985 having part numbers 74ACXXX. The TTL-compatible versions have part numbers 74ACTXXX. These new ICs have about double the speed of HC and HCT with yet another increase in drive power. The result is that the propagation delays for 74ACT parts approach those of bipolar TTL, although they are not quite equal to the fastest TTL families. To further increase CMOS speeds manufacturers turned to a process known as BiCMOS, which uses a mixture of bipolar and MOS transistors on the same chip. By strategically placing bipolar transistors at critical points in the circuit, the switching speed can be improved with only a small increase in power dissipation. The most popular BiCMOS logic family is the 74FCTXXX (fast CMOS) series of logic ICs.
Still another drawback to CMOS logic is that the circuits are susceptible to static electricity. The static discharge of the human body in a dry environment can destroy a CMOS transistor. Although protective diodes on CMOS circuit inputs provide some protection to static breakdown, all CMOS circuits are susceptible. For this reason ICs and circuits boards should be stored in conductive pouches and not handled until you have discharged yourself by touching a good electrical ground.