Skip to content

Commit 1fc6f3f

Browse files
committed
MPAE-18220 updated readme with PWM instructions
1 parent 7c8d817 commit 1fc6f3f

8 files changed

+17
-9
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ So, as the pot meter is adjusted, the brightness of the PWM is adjusted, mapped
1717
## MCC Melody Example Components
1818
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).
1919

20-
**Note:** The image below shows the ADCC Example Component, as it would be moving to the ADCC Data Streamer (Callbacks Implementation), having implemented the ADCC Basic Printf (Callbacks Implementation). In this case a diff between the two examples is shown.
20+
**Note:** The image below shows the completed configuration of the ADCC Data Streamer Example (Callbacks implementation), to which a PWM1_16BIT component has been added.
2121

22-
![MCC Melody Example Components](images/ADCCDataStreamer_CallbacksFromBasiPrintfCallbacks-Intro.png)
22+
![MCC Melody Example Components](images/ADCCDataStreamerCallbacks_withPWM.png)
2323

2424

2525
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.
@@ -48,15 +48,19 @@ Example Components are related to [MCC Melody Design Patterns for Control Flow](
4848

4949

5050
## Setup
51-
All instructions required to recreate this example are listed below, under Configuration Instructions.
51+
The instructions required to recreate this example are listed below, under Configuration Instructions.
5252

53-
![TIMER Toggle LED, Callbacks Implementation](images/ADCC_DataStreamer_Callbacks-ConfigComplete.png)
53+
![ADCC Data Streamer, Callbacks implementation](images/ADCC_DataStreamer_Callbacks-ConfigComplete.png)
5454

55-
Once you have loaded the project in MPLAB X IDE, you will also be able to find more information from Tooltips and links next to the instructions
56-
[![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).
55+
To these, the following additional steps are needed.
5756

57+
**Note:** The timer period is changed to 0.02s, i.e., 20 ms.
5858

59-
![Tooltips and context help](images/PinsConfiguration_SelectPinForUartTx.png)
59+
![PIC PWM use-case: Gradually Brightening LED](images/ADCC_DataStreamerCallbacks_PWM_ConfigInstructions.png)
60+
61+
The Pins configuration are shown below:
62+
63+
![PIC PWM use-case: PIN congiguration instructions](images/ADCC_DataStreamerCallbacks_PWM_PINConfigInstructions.png)
6064

6165

6266
## Operation
@@ -97,6 +101,10 @@ If all is correct, when changing the pot meter value, you should see similar res
97101

98102
![Running the ADCC Basic Printf Example](images/Running_the_ADCC_Data_Streamer_Example.png)
99103

104+
Below is a picture of the Curiosity Nano Explorer board, with the example running.
105+
106+
![Running the ADCC Basic Printf Example with PWM on the Curiosity Nano Explorer](images/ADCC_DataStreamer_PWM_Running_Explorer.png)
107+
100108

101109
## Summary
102110
For more example components, open the stand-alone Content Manager ![CM_icon](images/Icon-MPLAB-CM24.png) in MCC.

image.png

139 KB
Loading
1.1 MB
Loading
Loading
Loading
Loading

pic18f57q43-adcc-data-streamer-pwm-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-data-streamer-pwm-callbacks-mcc
5-
creation_date: 2024-08-08T08:05:43.089+02:00[Europe/Paris]
5+
creation_date: 2024-08-08T08:12:04.017+02:00[Europe/Paris]
66
operating_system: Windows 10
77
mcc_mode: IDE
88
mcc_mode_version: v6.20

pic18f57q43-adcc-data-streamer-pwm-callbacks-mcc.X/pic18f57q43-adcc-data-streamer-pwm-callbacks-mcc.mc3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
<tokenMap class="java.util.TreeMap">
148148
<entry>
149149
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="Application Builder" name="graph-location-data"/>
150-
<value>{&quot;mccDevice&quot;:{&quot;loc&quot;:&quot;0 0&quot;,&quot;pos&quot;:&quot;0 0&quot;},&quot;systemGroup&quot;:{&quot;loc&quot;:&quot;0 -107&quot;,&quot;pos&quot;:&quot;0 -107&quot;},&quot;module126&quot;:{&quot;loc&quot;:&quot;604.5 -392.85&quot;,&quot;pos&quot;:&quot;604.5 -392.85&quot;},&quot;module87&quot;:{&quot;loc&quot;:&quot;196 0&quot;,&quot;pos&quot;:&quot;196 0&quot;},&quot;module19&quot;:{&quot;loc&quot;:&quot;196 -77&quot;,&quot;pos&quot;:&quot;196 -77&quot;},&quot;module107&quot;:{&quot;loc&quot;:&quot;590 -154&quot;,&quot;pos&quot;:&quot;590 -154&quot;},&quot;module66&quot;:{&quot;loc&quot;:&quot;393 -154&quot;,&quot;pos&quot;:&quot;393 -154&quot;},&quot;module63&quot;:{&quot;loc&quot;:&quot;196 -154&quot;,&quot;pos&quot;:&quot;196 -154&quot;},&quot;module53&quot;:{&quot;loc&quot;:&quot;589.25 -92.94999999999999&quot;,&quot;pos&quot;:&quot;589.25 -92.94999999999999&quot;}}</value>
150+
<value>{&quot;mccDevice&quot;:{&quot;loc&quot;:&quot;0 0&quot;,&quot;pos&quot;:&quot;0 0&quot;},&quot;systemGroup&quot;:{&quot;loc&quot;:&quot;0 -107&quot;,&quot;pos&quot;:&quot;0 -107&quot;},&quot;module126&quot;:{&quot;loc&quot;:&quot;579.2 -369.85&quot;,&quot;pos&quot;:&quot;579.2 -369.85&quot;},&quot;module87&quot;:{&quot;loc&quot;:&quot;196 0&quot;,&quot;pos&quot;:&quot;196 0&quot;},&quot;module19&quot;:{&quot;loc&quot;:&quot;196 -77&quot;,&quot;pos&quot;:&quot;196 -77&quot;},&quot;module107&quot;:{&quot;loc&quot;:&quot;590 -154&quot;,&quot;pos&quot;:&quot;590 -154&quot;},&quot;module66&quot;:{&quot;loc&quot;:&quot;393 -154&quot;,&quot;pos&quot;:&quot;393 -154&quot;},&quot;module63&quot;:{&quot;loc&quot;:&quot;196 -154&quot;,&quot;pos&quot;:&quot;196 -154&quot;},&quot;module53&quot;:{&quot;loc&quot;:&quot;589.25 -92.94999999999999&quot;,&quot;pos&quot;:&quot;589.25 -92.94999999999999&quot;}}</value>
151151
</entry>
152152
<entry>
153153
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="Application Builder" name="state"/>

0 commit comments

Comments
 (0)