MCC Melody Example Components: ADC with Computation Spike Detect, Callbacks Implementation

Опубликовано: 13 Октябрь 2024
на канале: Microchip Developer Help
100
5

Solution project for this video on GitHub: https://github.com/microchip-pic-avr-...
Getting Started with MCC Melody Example Components playlist:    • Getting Started with MCC Melody Examp...  

In the ADCC Spike Detection Example, ADC with Computation Spike Detection is visualized with the Data Streamer. The spike detection can be modified to observe the change in sensitivity to the rate of change of the ADC samples. Using a Callback Design Pattern, a change (above a set threshold) in the ADC result between successive conversions represents a "spike". Every 100 ms a timer callback starts an ADC conversion. If a spike occurs, adcResult_lastSpike and adcSpikeCount are updated in ADC Spike callback and a flag is set to send a Data Streamer frame.

Solution project for this video on GitHub: https://github.com/microchip-pic-avr-...