Skip to content

Commit 6df0647

Browse files
committed
MPAE-19450 updated to SPA version, added readme
1 parent c82918c commit 6df0647

32 files changed

+530
-278
lines changed

README.md

Lines changed: 60 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!-- MPAE-19450 Please do not change this logo with link -->
22

3+
34
<a target="_blank" href="https://www.microchip.com/" id="top-of-page">
45
<picture>
56
<source media="(prefers-color-scheme: light)" srcset="images/mchp_logo_light.png" width="350">
@@ -8,44 +9,81 @@
89
</picture>
910
</a>
1011

11-
# Update the title for pic18f57q43-i2c-proximity-sensor-callbacks-data-streamer here
12+
# PIC18F57Q43 I<sup>2</sup>C_Host Example Component for CNano Explorer: I<sup>2</sup>C Proximity Sensor (Callbacks, Data Streamer)
13+
14+
The [I<sup>2</sup>C Proximity Sensor example](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EX.RUNNING.I2C.HOST.PROXIMITY.SENSOR&version=latest&redirect=true "I2C Proximity Sensor example"
15+
), of the [MCC Melody I<sup>2</sup>C Example Component (for the Curiosity Nano Explorer)](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EXAMPLE.COMPONENT&version=latest&redirect=true "MCC Melody I<sup>2</sup>C Example Component for the Curiosity Nano Explorer"
16+
), is used here in the Callbacks implementation, with the Data Streamer visualization.
17+
18+
![alt text](images/pic18f57q43-i2c-proximity-sensor-callbacks-datastreamer_intro.png)
19+
20+
This example demonstrates how to read the value of the VCNL4200 proximity sensor on the Curiosity Nano Explorer, with the Data Streamer Visualization Output selected. Every 100 ms, an LED and a Debug I/O pin are toggled. A Timer overflow callback is used to send a Data Streamer frame every 100 ms.
21+
22+
In the MCC Melody Data Streamer library configruation, the appropriately typed variables are added to the Data Streamer table.
23+
24+
![alt text](images/pic18f57q43-i2c-proximity-sensor-callbacks-datastreamerTable_uartPins.png)
25+
26+
27+
The below image of the MPLAB Data Visualizer shows the application running, where the variable configured in the Data Streamer Table have been imported as a Variable Streamer in the [MPLAB® Data Visualizer](https://www.microchip.com/en-us/tools-resources/debug/mplab-data-visualizer "MPLAB® Data Visualizer"), via a generated .ds (data streamer file).
28+
![alt text](images/pic18f57q43-i2c-proximity-sensor-dataStreamer.png)
29+
30+
The following is a block diagram view of the application, as seen in the [MCC Melody Builder](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.BUILDER&version=latest&redirect=true "MCC Melody Builder").
31+
32+
![Data Streamer configuration showing Data Streamer Table and UART pins](images/pic18f57q43-i2c-proximity-sensor-Callbacks-DataStreamer_builder.png)
33+
34+
## MCC Melody Example Components
35+
Example Components are a tight integration of learning material directly into MCC. This allows users to conveniently place the configuration instructions side-by-side to the components they are configuring. For more information, refer to the [MCC Melody Example Components](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES&version=latest&redirect=true) introduction.
1236

13-
<!-- This is where the introduction to the example goes, including mentioning the peripherals used -->
1437

1538
## Related Documentation
1639

17-
<!-- Any information about an application note or tech brief can be linked here. Use unbreakable links!
18-
In addition a link to the device family landing page and relevant peripheral pages as well:
19-
- [AN3381 - Brushless DC Fan Speed Control Using Temperature Input and Tachometer Feedback](https://microchip.com/00003381/)
20-
- [PIC18F-Q10 Family Product Page](https://www.microchip.com/design-centers/8-bit/pic-mcus/device-selection/pic18f-q10-product-family) -->
40+
- [MCC Melody I<sup>2</sup>C Example Component (for the Curiosity Nano Explorer)](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EXAMPLE.COMPONENT&version=latest&redirect=true "MCC Melody I<sup>2</sup>C Example Component for the Curiosity Nano Explorer")
41+
- [MCC Melody Design Patterns for Control Flow](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EXAMPLE.COMPONENT&version=latest&redirect=true "MCC Melody I<sup>2</sup>C Example Component for the Curiosity Nano Explorer")
42+
43+
- [Curiosity Nano Explorer User Guide](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/UserGuides/PIC18F57Q43-Curiosity-Nano-HW-UserGuide-DS40002186B.pdf "Curiosity Nano Explorer Users Guide")
44+
45+
- [PIC18F57Q43 Data Sheet](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F27-47-57Q43-Data-Sheet-40002147F.pdf "PIC18F57Q43 Data Sheet")
2146

2247
## Software Used
48+
- MPLAB® X IDE 6.25.0 or newer [(MPLAB® X IDE 6.25.0)](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide)
49+
- MPLAB® XC8 3.00.0 or newer [(MPLAB® XC8 3.00.0)](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8)
50+
51+
- MPLAB® Code Configurator (MCC) Plug-in Version 5.6 or newer (*Tools>Plugins>Installed*, search: "MCC")
52+
- MPLAB Data Visualizer Plug-in Version 1.4.1926 or newer (*Tools>Plugins>Installed*, search: "Data Visualizer")
53+
- MCC Melody I2C_Host Example Component for the Curiosity Nano Explorer 1.0.0 or newer
54+
- MCC Core 5.8.0 or newer
55+
- MCC Melody Core 2.9.0 or newer
2356

24-
<!-- All software used in this example must be listed here. Use unbreakable links!
25-
- MPLAB® X IDE 5.30 or newer [(microchip.com/mplab/mplab-x-ide)](http://www.microchip.com/mplab/mplab-x-ide)
26-
- MPLAB® XC8 2.10 or a newer compiler [(microchip.com/mplab/compilers)](http://www.microchip.com/mplab/compilers)
27-
- MPLAB® Code Configurator (MCC) 3.95.0 or newer [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
28-
- MPLAB® Code Configurator (MCC) Device Libraries PIC10 / PIC12 / PIC16 / PIC18 MCUs [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
29-
- Microchip PIC18F-Q Series Device Support (1.4.109) or newer [(packs.download.microchip.com/)](https://packs.download.microchip.com/) -->
57+
Open the MCC Content Manager to verify the MCC Core and MCC Melody Core versions.
3058

31-
- MPLAB® X IDE 6.25.0 or newer [(MPLAB® X IDE 6.25)](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide)
32-
- MPLAB® XC8 3.0.0 or newer compiler [(MPLAB® XC8 3.0)](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8)
59+
![alt text](images/MCC_Core_ContentLibrary_Versions_SPA.png)
3360

3461
## Hardware Used
62+
- PIC18F57Q43 Curiosity Nano [(DM164150)](https://www.microchip.com/en-us/development-tool/DM164150)
63+
- Curiosity Nano Explorer [(EV58G97A)](https://www.microchip.com/en-us/development-tool/EV58G97A)
3564

36-
<!-- All hardware used in this example must be listed here. Use unbreakable links!
37-
- PIC18F47Q10 Curiosity Nano [(DM182029)](https://www.microchip.com/Developmenttools/ProductDetails/DM182029)
38-
- Curiosity Nano Base for Click boards™ [(AC164162)](https://www.microchip.com/Developmenttools/ProductDetails/AC164162)
39-
- POT Click board™ [(MIKROE-3402)](https://www.mikroe.com/pot-click) -->
4065

4166
## Setup
4267

43-
<!-- Explain how to connect hardware and set up software. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
68+
The following outlines the complete MCC Melody configuration, including all the selected tasks that have been implemented in this example.
4469

45-
## Operation
70+
![alt text](images/pic18f57q43-i2c-proximity-sensor-callbacks-dataStreamer_configurations.png)
4671

47-
<!-- Explain how to operate the example. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
72+
[Data Visualizer Setup](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.DATA.VISUALIZER.SETUP&version=latest&redirect=true)
73+
74+
To run the example, follow the steps in the Data Visualizer Setup section:
75+
76+
![Data Visualizer Setup](images/I2C_Host_Example_Data_Visualizer_Setup.png)
77+
78+
- [Data Visualizer Debug GPIO Setup](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EX.DV.DEBUG.IO&version=latest&redirect=true)
79+
- [Data Visualizer Setup for Data Streamer](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EX.DV.DATA.STREAMER.CONFIG&version=latest&redirect=true)
4880

4981
## Summary
82+
For more example components, follow these steps:
83+
84+
1) Open the stand-alone Content Manager ![CM_icon](images/Icon-MPLAB-CM24.png) in MPLAB X IDE.
85+
2) Filter on Melody content.
86+
3) Filter on MCU device (optional, leave blank to find all).
87+
4) Expand Examples category under Content Libraries.
5088

51-
<!-- Summarize what the example has shown -->
89+
![Standalone_CM](images/MCC_Melody_Example_Components_CM_Filters.png)
10.8 KB
Loading

images/Icon-MPLAB-CM24.png

1.46 KB
Loading
9.98 KB
Loading
57.3 KB
Loading

images/MCC_Melody_Core.png

46.8 KB
Loading
47.1 KB
Loading
141 KB
Loading
141 KB
Loading
293 KB
Loading

0 commit comments

Comments
 (0)