pfw:clavis
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
pfw:clavis [2025-06-15 00:07] – [CLAVIS?] mka | pfw:clavis [2025-06-15 08:43] (aktuell) – [Background information] topic of bouncing added mka | ||
---|---|---|---|
Zeile 118: | Zeile 118: | ||
=== What is a Port? === | === What is a Port? === | ||
- | |||
- | See: Texas Instruments MSP430F2xx, MSP430G2xx Family User’s Guide - 8 Digital I/O, p.339ff | ||
In short: The " | In short: The " | ||
- | + | See: Texas Instruments MSP430F2xx, MSP430G2xx Family User’s Guide - 8 Digital I/O, p.339ff | |
=== How long is a key press? === | === How long is a key press? === | ||
A manual short key press took around 120ms if I tapped the key only once. | A manual short key press took around 120ms if I tapped the key only once. | ||
- | As you can see in the image, the key //bounces// briefly at the beginning until a stable LOW state is reached. | ||
- | In the second image, the bounce phase has been enlarged. After about 1ms, the bouncing was over. | ||
{{: | {{: | ||
+ | |||
+ | As you can see in the image, the key //bounces// briefly at the beginning until a stable LOW state is reached. | ||
{{: | {{: | ||
- | The port pin reacts to the first falling edge. Subsequent edges, caused by bouncing, do not trigger anything. The next falling edge would only be registered once the interrupt flag has been reset by the program. | + | In the second image, the bounce phase has been enlarged. After about 1ms, the bouncing was over. |
+ | The port pin reacts to the first falling edge. Subsequent edges, caused by bouncing, do not trigger anything. The next falling edge would only be registered once the interrupt flag has been reset by the program. | ||
+ | More on the [[pfw: | ||
pfw/clavis.1749938833.txt.gz · Zuletzt geändert: 2025-06-15 00:07 von mka