Microprocessor design and course Lecture Three
Microprocessor design and course Lecture Three
Interfacing
Basic I/O Concepts
2
Common Anode
All anodes are connected together to a power supply
Cathodes are connected to data lines
Logic 0 turns on a segment
Example: To display the digit 1
All segments except b and c should be off
11111001 = F9
H
Common Anode
Common Cathode
All cathodes are connected together to ground
Anodes are connected to data lines
Logic 1 turns on a segment
Example: To display digit 1
All segments except b and c should be off
00000110 = 06H
converters
DIP switch
One side of the switch is tied high
To a power supply through a resistor called a pull-up resistor
The other side is grounded
The logic level changes when the position is switched
Push-button key
Same as the DIP switch except that contact is
momentary