Mindmap
Lecture 5 - Keyboard Scanning and De-Bouncing
Inhalt der Mindmap
Lecture 5 - Keyboard Scanning and De-Bouncing
Keyboard Scanning
- Example: Pressing D Button on Keyboard
- Connects Column1 to Row2
- Select C0, Check R0-R3
- If a switch is closed, then key on the switch is pressed
- If R0-R3 Switches are all open, then switch pressed on C0
- Iterate through remaining Columns checking each row, still closed switch is closed
- Select C0, Check R0-R3
- Connects Column1 to Row2
- Used to identify which key is pressed
- Pullup Resistors used to hold Row lines high when no buttons are pressed
- Resistors in series with each column line to prevent damage to the circuitry if two buttons are pressed at the same time
- Example: Pressing D Button on Keyboard
Key Debouncing
- Contact Bounce Problems
- When mechanical switches are closed, the contacts bounce instead of resting instantly
- Generates a series of pulses
- When the computer is faster than the switch, each pulse will be registered as a new input
- When mechanical switches are closed, the contacts bounce instead of resting instantly
- Software Debouncing
- Put a delay in the code, after keypress detected
- Contact Bounce Problems
Switch Debouncing
- Each software or hardware techniques can be used to debounce switches
7-Segment Display
- Common Cathode or Common Anode
- Each Segment has a pin
- BusOut API used to group all outputs into one
- LSB to MSB
Informationen
- Beschreibung
- Degree EL560 (Microcontroller Engineering) Mindmap am Lecture 5 - Keyboard Scanning and De-Bouncing, erstellt von Tom Revise am 02/01/2021.
- Erstellt von
- Tom Revise
- Aufrufe
- 1
- Bewertung