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
The [ADC Data Streamer example](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES.RUNNING.ADCC.DATA.STREAMER&version=latest&redirect=true"Analog-to-Digital Conversion (ADC) Data Streamer example"), of the MCC Melody ADCC Example Component, is used in the Callbacks implementation and displays ADCC samples visualized with the Data Streamer. An Analog-to-Digital Conversion measurement is taken every 100 ms on the selected analog channel, also toggling an LED and Debug GPIO.
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.
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).
15
15
16
-
**Note:** The image below shows the ADCC Example Component, as it would be moving to the ADCC Data Streamer, having implemented the ADCC Basic Printf, both of which are part of the Callbacks implementation. In this case. a diff between the two examples is shown.
16
+
**Note:** The image below shows the ADCC Example Component, as it would be moving to the ADCC Spike Detect Example, having implemented the ADCC Data Streamer Example, both of which are in the Callbacks implementation. In this case. a diff between the two examples is shown.
17
17
18
-

18
+

19
19
20
20
21
21
Complete projects, available in [MPLAB® Discover](https://mplab-discover.microchip.com) or GitHub, are specific to a board and microcontroller. However, the current project could be recreated on a range of supported microcontrollers by following the steps in the example component.
@@ -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 or newer
34
+
- ADC Converter with Computation (ADCC) 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
@@ -46,7 +46,7 @@ Example Components are related to [MCC Melody Design Patterns for Control Flow](
46
46
## Setup
47
47
All instructions required to recreate this example are listed below, under Configuration Instructions.
Once the project is loaded in MPLAB X IDE, the user will be able to find more information from Tooltips and links next to the instructions
52
52
[](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.CONFIGHELP.UART.CNANO&version=latest&redirect=true).
@@ -59,7 +59,7 @@ Once the project is loaded in MPLAB X IDE, the user will be able to find more in
59
59
The image below shows the [ADCC Basic Printf example](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES.RUNNING.ADCC.PRINTF&version=latest&redirect=true
60
60
) running, using the MPLAB Data Visualizer.
61
61
62
-

62
+

63
63
64
64
## Data Visualizer Configuration
65
65
@@ -73,9 +73,9 @@ The image below shows the [ADCC Basic Printf example](https://onlinedocs.microch
73
73
74
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.
76
+
1) Click the  button to load this data streamer configuration, for the ADCC Spike Detect Example.
0 commit comments