Microchip PIC24FJ32GU202 Bruksanvisning

Microchip Inte kategoriserad PIC24FJ32GU202

Läs gratis den bruksanvisning för Microchip PIC24FJ32GU202 (25 sidor) i kategorin Inte kategoriserad. Guiden har ansetts hjälpsam av 8 personer och har ett genomsnittsbetyg på 4.3 stjärnor baserat på 4.5 recensioner. Har du en fråga om Microchip PIC24FJ32GU202 eller vill du ställa frågor till andra användare av produkten? Ställ en fråga

Sida 1/25
AN2805
Robust Debouncing with Core-Independent Peripherals
Introduction
Author: Qubo Hu, Microchip Technology Inc.
Typical button debouncing approaches are often not sufficiently robust, and with slow setup and
response, which may lead to ghost or non-detected stimuli. This Tips and Tricks document presents two
more robust and quick debouncing solutions, which equally applies to rotary encoders, buttons, switches,
keypads, knobs, and the like. By using an internal timer to provide customized slower clock and
Configurable Logic Cells (CLCs), it is possible to filter out various kinds of button generated noise. One
solution requires two CLCs per button, which on PIC18F Q10 family devices with eight CLCs can support
the debouncing of four buttons. Another solution requires three CLCs per button, which is more robust
and addresses a timing corner case in the 2-CLCs solution. The debouncing is performed in hardware
peripherals with no CPU execution required, after a system initialization which contains the timer and
CLCs configuration. Both solutions require two CLC clock cycles as this gives a very fast debouncing.
An example creation in MPLAB and MCC configuration is described in this document. The example code
for replicating the results is also available from MPLAB Xpress code example: https://
mplabxpress.microchip.com/mplabcloud/example/details/799.
© 2019 Microchip Technology Inc. Other DS00002805A-page 1


Produktspecifikationer

Varumärke: Microchip
Kategori: Inte kategoriserad
Modell: PIC24FJ32GU202

Behöver du hjälp?

Om du behöver hjälp med Microchip PIC24FJ32GU202 ställ en fråga nedan och andra användare kommer att svara dig