Download presentation
Presentation is loading. Please wait.
Published byShon Frederick Barnett Modified over 8 years ago
1
Parallel Interfacing Chapter 7
2
Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights
4
Port and Data Direction Registers
8
MC68HC711E9
9
PORTA
12
Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights
13
Turning on an LED
16
Using an AC Relay
17
Interfacing a switch input HEX F0 DDRH C! : ?open ( -- f ) 2 PORTH ?HI ;
18
Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights
19
Common Anode 7-Segment Display
20
Interfacing a 7-Segment Display
22
Common-Cathode Displays The MC14495-1 2 digits: PORTH: 0 0 LE1 LE0 D C B A 7 6 5 4 3 2 1 0
23
Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights
24
4 x 4 Hex Keypad
25
Registers associated with parallel I/O on Port J
26
Scanning a 4 x 4 keypad
27
:keypad ( -- n ) BEGIN ?keypad UNTIL ;
28
Axiom Keypad
29
* 0#D 789 4 C 56B 123A PH0 PH1 PH2 PH3 PH4 PH5 PH6 PH7 Col 1234Row 4 3 2 1 1K Axiom 4 x 4 Hex Keypad
32
Debounce
35
:keypad ( -- n ) BEGIN ?keypad UNTIL ; :wait.for.keyup ( -- ) BEGIN ?keypad WHILE DROP REPEAT ; :main.keypad ( -- ) init.key BEGIN keypad.led wait.for.keyup AGAIN ; Displaying keys pressed on a 7-segment display
36
Including debounce when reading a keypad
37
The 74C922 16-Key Encoder
38
Reading a keypad using the 74C922 16-Key Encoder
39
Interfacing a 16 x 1 hex keypad to a 68HC711E9 using a 74154
40
Scanning a 16 x 1 keypad
41
Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights
42
Liquid Crystal Display
43
Relationship between RS, R/W, and E
49
Axiom LCD
54
Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights
57
Traffic Lights Using Real-time Interrupt
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.