Parallel Interfacing - PowerPoint PPT Presentation

1 / 60
About This Presentation
Title:

Parallel Interfacing

Description:

Common Anode 7-Segment Display. Interfacing a 7-Segment Display. Common-Cathode Displays ... Registers associated with parallel I/O on Port J. Scanning a 4 x 4 keypad ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 61
Provided by: Richard6
Category:

less

Transcript and Presenter's Notes

Title: Parallel Interfacing


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

3
(No Transcript)
4
Port and Data Direction Registers
5
(No Transcript)
6
(No Transcript)
7
(No Transcript)
8
MC68HC711E9
9
PORTA
10
(No Transcript)
11
(No Transcript)
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
14
(No Transcript)
15
(No Transcript)
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
21
(No Transcript)
22
Common-Cathode Displays The MC14495-1
7 6 5 4 3 2
1 0
2 digits PORTH 0 0 LE1 LE0 D C B A
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
Scanning a 4 x 4 keypad

keypad ( -- n )
BEGIN

?keypad

UNTIL
28
Axiom Keypad
29
Axiom 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)
32
Debounce
33
(No Transcript)
34
(No Transcript)
35
Displaying 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
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
44
(No Transcript)
45
(No Transcript)
46
(No Transcript)
47
(No Transcript)
48
(No Transcript)
49
Axiom LCD
50
(No Transcript)
51
(No Transcript)
52
(No Transcript)
53
(No Transcript)
54
Parallel 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)
57
Traffic Lights Using Real-time Interrupt
58
Traffic Lights Using Real-time Interrupt
59
Traffic Lights Using Real-time Interrupt
60
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com