Interrupt-driven keyboard for MCS-51 uses few components
Designers of microcontroller-based products that require a keypad for user data entry can select from dedicating an input line for each key, continuously polling the keypad's x and y lines, or generating an interrupt whenever a user presses a key. The third method, an interrupt-driven keypad, o...
Gespeichert in:
Veröffentlicht in: | EDN 2005-05, Vol.50 (11), p.97-98 |
---|---|
1. Verfasser: | |
Format: | Magazinearticle |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Designers of microcontroller-based products that require a keypad for user data entry can select from dedicating an input line for each key, continuously polling the keypad's x and y lines, or generating an interrupt whenever a user presses a key. The third method, an interrupt-driven keypad, offers several benefits. First, using interrupts frees the microcontroller to perform other tasks or to switch into an idling or power-down mode while awaiting the next key closure. Second, using interrupts helps reduce electromagnetic interference produced by continuously scanning the keypad's lines. The microcontroller's software returns a binary-formatted input corresponding to the pressed key's number. However, recovery from power-down mode to active mode to active mode normally requires a hardware reset. |
---|---|
ISSN: | 0012-7515 2163-4084 |