Title: Parallel Interfacing
1Parallel Interfacing
2Parallel Interfacing
- Parallel I/O Ports
- Using Parallel Ports
- Seven-Segment Displays
- Keypad Interfacing
- Liquid Crystal Displays
- Interrupt-Driven Traffic Lights
3(No Transcript)
4Port and Data Direction Registers
5(No Transcript)
6(No Transcript)
7(No Transcript)
8MC68HC711E9
9PORTA
10(No Transcript)
11(No Transcript)
12Parallel Interfacing
- Parallel I/O Ports
- Using Parallel Ports
- Seven-Segment Displays
- Keypad Interfacing
- Liquid Crystal Displays
- Interrupt-Driven Traffic Lights
13Turning on an LED
14(No Transcript)
15(No Transcript)
16Using an AC Relay
17Interfacing a switch input
HEX F0 DDRH C! ?open ( -- f ) 2 PORTH
?HI
18Parallel Interfacing
- Parallel I/O Ports
- Using Parallel Ports
- Seven-Segment Displays
- Keypad Interfacing
- Liquid Crystal Displays
- Interrupt-Driven Traffic Lights
19Common Anode 7-Segment Display
20Interfacing a 7-Segment Display
21(No Transcript)
22Common-Cathode Displays The MC14495-1
7 6 5 4 3 2
1 0
2 digits PORTH 0 0 LE1 LE0 D C B A
23Parallel Interfacing
- Parallel I/O Ports
- Using Parallel Ports
- Seven-Segment Displays
- Keypad Interfacing
- Liquid Crystal Displays
- Interrupt-Driven Traffic Lights
244 x 4 Hex Keypad
25Registers associated with parallel I/O on Port J
26Scanning a 4 x 4 keypad
27Scanning a 4 x 4 keypad
keypad ( -- n )
BEGIN
?keypad
UNTIL
28Axiom Keypad
29Axiom 4 x 4 Hex Keypad
1
2
3
4
Row
Col
1
2
3
A
1K
4
PH0
4
5
6
B
3
PH1
7
8
9
C
2
PH2
0
D
1
PH3
PH4
PH5
PH6
PH7
30(No Transcript)
31(No Transcript)
32Debounce
33(No Transcript)
34(No Transcript)
35Displaying keys pressed on a 7-segment display
keypad ( -- n )
BEGIN
?keypad
UNTIL
wait.for.keyup ( -- )
BEGIN
?keypad
WHILE
DROP
REPEAT
main.keypad ( -- )
init.key
BEGIN
keypad
.led
wait.for.keyup
AGAIN
36Including debounce when reading a keypad
37The 74C922 16-Key Encoder
38Reading a keypad using the 74C922 16-Key Encoder
39Interfacing a 16 x 1 hex keypad to a
68HC711E9 using a 74154
40Scanning a 16 x 1 keypad
41Parallel Interfacing
- Parallel I/O Ports
- Using Parallel Ports
- Seven-Segment Displays
- Keypad Interfacing
- Liquid Crystal Displays
- Interrupt-Driven Traffic Lights
42Liquid Crystal Display
43Relationship between RS, R/W, and E
44(No Transcript)
45(No Transcript)
46(No Transcript)
47(No Transcript)
48(No Transcript)
49Axiom LCD
50(No Transcript)
51(No Transcript)
52(No Transcript)
53(No Transcript)
54Parallel Interfacing
- Parallel I/O Ports
- Using Parallel Ports
- Seven-Segment Displays
- Keypad Interfacing
- Liquid Crystal Displays
- Interrupt-Driven Traffic Lights
55(No Transcript)
56(No Transcript)
57Traffic Lights Using Real-time Interrupt
58Traffic Lights Using Real-time Interrupt
59Traffic Lights Using Real-time Interrupt
60(No Transcript)