You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# MCC Melody Analog-to-Digital Converter with Computation (ADCC) Spike Detection Example - Callbacks Implementation (PIC18F57Q43)
10
10
11
-
The [ADC Spike Detection Example](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES.RUNNING.ADCC.SPIKE&version=latest&redirect=true"Analog-to-Digital Conversion (ADC) Data Streamer example"), ADCC 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.
11
+
The [ADC Spike Detection Example](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES.RUNNING.ADCC.SPIKE&version=latest&redirect=true"Analog-to-Digital Conversion (ADC) Data Streamer 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.
12
12
13
13
## MCC Melody Example Components
14
14
Example Components are a tight integration of learning material directly into MCC. This allows users to conveniently place configuration instructions side-by-side to the components they are configuring. For more information, refer to the [MCC Melody Example Components Introduction](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES&version=latest&redirect=true).
@@ -31,7 +31,7 @@ Example Components are related to [MCC Melody Design Patterns for Control Flow](
31
31
- MPLAB® XC8 2.46.0 or newer [(MPLAB® XC8 2.46)](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8)
32
32
33
33
- MPLAB® Code Configurator (MCC) Plugin Version 5.5.1 or newer (*Tools>Plugins>Installed*, search: "MCC")
34
-
- ADC Converter with Computation (ADCC) Example Component 1.0.0
34
+
- ADC Converter with Computation Example Component 1.0.0
35
35
- MCC Core 5.7.1 or newer
36
36
- MCC Melody Core 2.7.1 or newer (Communicates with the MCC core, providing views and other functionality for MCC Melody)
37
37
@@ -71,9 +71,9 @@ The image below shows the [ADCC Basic Printf example](https://onlinedocs.microch
71
71
72
72

73
73
74
-
The data_streamer Properties window will open up, displaying the loaded adcResult and adcSampleCount variables.
74
+
The data_streamer Properties window will open up, displaying the loaded `adcResult` and `adcSampleCount` variables.
75
75
76
-
1) Click the  button to load this data streamer configuration, for the ADCC Spike Detect Example.
76
+
1) Click the  button to load this data streamer configuration, for the ADC with Computation Spike Detect Example.
0 commit comments