Presentation is loading. Please wait.

Presentation is loading. Please wait.

Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal.

Similar presentations


Presentation on theme: "Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal."— Presentation transcript:

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

4 Port and Data Direction Registers

5

6

7

8 MC68HC711E9

9 PORTA

10

11

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

15

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

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

30

31

32 Debounce

33

34

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

44

45

46

47

48

49 Axiom LCD

50

51

52

53

54 Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights

55

56

57 Traffic Lights Using Real-time Interrupt

58

59

60


Download ppt "Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal."

Similar presentations


Ads by Google