0% found this document useful (0 votes)
16 views15 pages

I/O Device Interfacing Techniques

Uploaded by

vaishukg112
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views15 pages

I/O Device Interfacing Techniques

Uploaded by

vaishukg112
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

I/O INTERFACE

UNIT II
I/O DEVICE INTERFACING
• KEYBORD INTERFACE

• LCD INTERFACE

• LED INTERFACE

• TEMPERATURE SENSOR INTERFACE


KEYBORD INTERFACE

• A keyboard is basically an array of switches, but it


may include some internal logic to help simplify the
interface to the microprocessor or microcontroller.
• A switch uses a mechanical contact to make or
break an electrical circuit.
• When the switch is depressed by pressing on the
button attached to the switch’s arm, the force of
the depression causes the contacts to bounce
several times until they settle down.
KEYBORD INTERFACE

1 1 1 1
KEYBORD INTERFACE

1 0 1 1
KEYBORD INTERFACE

1 0 1 1
KEYBORD INTERFACE

1 0 1 1
KEYBORD INTERFACE

1 1 1 1
KEYBORD INTERFACE

1 0 1 1
KEYBORD INTERFACE

Any key
down

Any key
down
LCD INTERFACING
LCD INTERFACING
LCD INTERFACING
LED INTERFACE
TEMPERATURE SENSOR INTERFACE

VCC VCC
+5V +5V

P0.0 D0 CH0
P0.1 D1 CH2
8051 . CH3
ADC GND
. .
0809
. .
P0.7 D7 . 1. Channel select
CH7 2. Give SOC
P1.0 SOC 3. Wait for EOC
4. After EOC enable OE
P1.1 EOC 5. 5. converted data is available on data bus
P1.2 OE
P1.3 A
P1.4 B
P1.5 C

You might also like