Skip to content

Commit 934025a

Browse files
committed
MPAE-18221 updating readme
1 parent 762d886 commit 934025a

7 files changed

+16
-16
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
</picture>
77
</a>
88

9-
# MCC Melody ADC Data Streamer Example - Callbacks Implementation (PIC18F57Q43)
9+
# MCC Melody ADC Spike Detection Example - Callbacks Implementation (PIC18F57Q43)
1010

11-
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.
1212

1313
## MCC Melody Example Components
1414
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).
1515

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.
1717

18-
![MCC Melody Example Components](images/ADCCDataStreamer_CallbacksFromBasiPrintfCallbacks-Intro.png)
18+
![MCC Melody Example Components](images/ADCCExample-SpikeDetect-Callbacks-fromADCC-DataStreamer-Callbacks.png)
1919

2020

2121
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](
3131
- MPLAB® XC8 2.46.0 or newer [(MPLAB® XC8 2.46)](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8)
3232

3333
- 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
3535
- MCC Core 5.7.1 or newer
3636
- MCC Melody Core 2.7.1 or newer (Communicates with the MCC core, providing views and other functionality for MCC Melody)
3737

@@ -46,7 +46,7 @@ Example Components are related to [MCC Melody Design Patterns for Control Flow](
4646
## Setup
4747
All instructions required to recreate this example are listed below, under Configuration Instructions.
4848

49-
![TIMER Toggle LED, Callbacks Implementation](images/ADCC_DataStreamer_Callbacks-ConfigComplete.png)
49+
![TIMER Toggle LED, Callbacks Implementation](images/ADCC_SpikeDetect_Callbacks-ConfigComplete.png)
5050

5151
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
5252
[![Tooltip and link](images/Icon-info-circle-fill.png "Find the Tx pin from your schematic and set it in Pin Grid View.")](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
5959
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
6060
) running, using the MPLAB Data Visualizer.
6161

62-
![Running the ADCC Basic Printf Example](images/Running_the_ADCC_Data_Streamer_Example.png)
62+
![Running the ADCC Basic Printf Example](images/Running%20the%20ADCC%20Spike%20example.png)
6363

6464
## Data Visualizer Configuration
6565

@@ -73,9 +73,9 @@ The image below shows the [ADCC Basic Printf example](https://onlinedocs.microch
7373

7474
The data_streamer Properties window will open up, displaying the loaded adcResult and adcSampleCount variables.
7575

76-
1) Click the ![save button](images/button-save.png) button to load this data streamer configuration.
76+
1) Click the ![save button](images/button-save.png) button to load this data streamer configuration, for the ADCC Spike Detect Example.
7777

78-
![ds file loaded](images/ds_file_loaded_1_12cm.png)
78+
![ds file loaded](images/ds_file_loaded_spikeDetect.png)
7979

8080
2) Click the ![no source button](images/button-no-source.png) button.
8181
3) Select your board from those available.
1.19 MB
Loading
138 KB
Loading
438 KB
Loading
79.2 KB
Loading

pic18f57q43-adcc-spike-detection-callbacks-mcc.X/mcc-manifest-autosave.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
manifest_file_version: 1.0.0
44
project: pic18f57q43-adcc-spike-detection-callbacks-mcc
5-
creation_date: 2024-09-06T11:41:20.895+02:00[Europe/Paris]
5+
creation_date: 2024-09-06T12:08:55.096+02:00[Europe/Paris]
66
operating_system: Windows 10
77
mcc_mode: IDE
88
mcc_mode_version: v6.20

pic18f57q43-adcc-spike-detection-callbacks-mcc.X/pic18f57q43-adcc-spike-detection-callbacks-mcc.mc3

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)