Title: Basic Interfacing
1Basic Interfacing
ECET 2210
2Overview
3Drive Capability
High Output
IOH
IIH
Low Output
IIH
4Drive Capability
High Output
IOL
IIL
Low Output
IIL
5LED Interfacing
Probably not.
Will this work?
10 - 20 mA
6LED Interfacing
VCC
10 - 20 mA
- Sinking generally provides more drive
capability than sourcing
- Always refer to specification sheets
7Schmitt Triggered Inputs
Waveform
Thresholds
Crossings
First Crossings
Final Waveform
8Schmitt Triggered Inputs
Waveform
Thresholds
Crossings
First Crossings
Final Waveform
9Schmitt Triggered Inputs
Waveform
Thresholds
Crossings
First Crossings
Final Waveform
10Schmitt Triggered Inputs
Waveform
Thresholds
Crossings
First Crossings
Final Waveform
11Schmitt Triggered Inputs
Waveform
Thresholds
Crossings
First Crossings
Final Waveform
12Switch Terminology
Types
Mechanisms
Construction
13Switch Terminology
Types
Mechanisms
Construction
14Switch Terminology
Types
Mechanisms
Construction
Single-pole Single-throw (SPST)
Poles are Pivots
Throws are the number of possible contacts the
arm can touch
15Switch Terminology
Types
Single-pole Single-throw (SPST)
Mechanisms
Construction
Single-pole Double-throw (SPDT)
Double-pole Single-throw (DPST)
Double-pole Double-throw (DPDT)
16Switch Interfacing
Will this work?
NO - Inputs float in open position Can pick up
noise Can damage CMOS
17Switch Interfacing
Will this work?
VCC
NO - Inputs float during transition
18Switch Interfacing
Will this work?
YES - open provides high input
VCC
closed provides low input
19Switch Bounce
VCC
Switch Bounce
20Switch Bounce
VCC
21Switch Bounce
Reset
VCC
Glitch caused by bounce
Typically 50-100 ms
22Debouncing a Single Throw Switch
One-Shot
Schmitt Trigger
Pulse gt 100 ms
VCC
One-Shot
Retriggerable or Non-Retriggerable?
23Debouncing a Single Throw Switch
One-Shot
Schmitt Trigger
VCC
Similar to POR
24Debouncing a Double Throw Switch
Set
VCC
Transition
Reset
VCC
25Debouncing a Double Throw Switch
Set
VCC
Transition
Reset
VCC
26Debouncing a Double Throw Switch
Set
VCC
Transition
Reset
VCC
27Debouncing a Double Throw Switch
Set
VCC
Transition
Reset
VCC
28Clock Generators
555 Timer
Schmitt Trigger
Oscillator
29Clock Generators
555 Timer
The most common low-frequency clock generator
Schmitt Trigger
Advantages
Oscillator
Disadvantages
- limited frequency ( 100 kHz)
30Clock Generators
555 Timer
Schmitt Trigger
Oscillator
31Clock Generators
555 Timer
Advantages
Schmitt Trigger
Oscillator
Disadvantages
- not for precision applications
- very dependent on technology
32Clock Generators
555 Timer
Prepackaged clock generator requires only power
and ground connections
Schmitt Trigger
Advantages
Oscillator
Disadvantages
- primarily available ³ 1 MHz
33Power-On-Reset
What is the problem with this circuit when power
is applied?
34Power-On-Reset
What is the problem with this circuit when power
is applied?
Initial State?
Can we insure that the initial state will always
be the same?
35Power-On-Reset
The circuit
36Power-On-Reset
The circuit
37Power-On-Reset
Advantages
- Initializes storage devices to a known state
(i.e. counters, flip-flops, etc.) - Provides time for power supply to stabilize
38Power-On-Reset
Advantages
- Initializes storage devices to a known state
(i.e. counters, flip-flops, etc.) - Provides time for power supply to stabilize
39Power-On-Reset
Example Solution
40Basic Interfacing