1 / 60

Parallel Interfacing

Parallel Interfacing. Chapter 7. Parallel Interfacing. Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal Displays Interrupt-Driven Traffic Lights. Port and Data Direction Registers. MC68HC711E9. PORTA. Parallel Interfacing.

Télécharger la présentation

Parallel Interfacing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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. Port and Data Direction Registers

  4. MC68HC711E9

  5. PORTA

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

  7. Turning on an LED

  8. Using an AC Relay

  9. Interfacing a switch input HEX F0 DDRH C! : ?open ( -- f ) 2 PORTH ?HI ;

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

  11. Common Anode 7-Segment Display

  12. Interfacing a 7-Segment Display

  13. Common-Cathode Displays The MC14495-1 7 6 5 4 3 2 1 0 2 digits: PORTH: 0 0 LE1LE0 D C B A

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

  15. 4 x 4 Hex Keypad

  16. Registers associated with parallel I/O on Port J

  17. Scanning a 4 x 4 keypad

  18. Scanning a 4 x 4 keypad : keypad ( -- n ) BEGIN ?keypad UNTIL ;

  19. Axiom Keypad

  20. 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

  21. Debounce

  22. 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 ;

  23. Including debounce when reading a keypad

  24. The 74C922 16-Key Encoder

  25. Reading a keypad using the 74C922 16-Key Encoder

  26. Interfacing a 16 x 1 hex keypad to a 68HC711E9 using a 74154

  27. Scanning a 16 x 1 keypad

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

  29. Liquid Crystal Display

  30. Relationship between RS, R/W, and E

  31. Axiom LCD

More Related