Skip to content

Commit 31f2333

Browse files
committed
MPAE-19444 updated to SPA, added readme, main-meta
1 parent d859ef6 commit 31f2333

23 files changed

+109
-64
lines changed

.main-meta/main.json

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"content": {
55
"metaDataVersion": "1.3.0",
66
"name": "com.microchip.mcu8.mplabx.project.pic18f57q43-i2c-proximity-sensor-polled-data-streamer",
7-
"version": " ",
8-
"displayName": "",
7+
"version": "1.0.0",
8+
"displayName": "pic18f57q43-i2c-proximity-sensor-polled-data-streamer",
99
"projectName": "pic18f57q43-i2c-proximity-sensor-polled-data-streamer",
1010
"shortDescription": "Reads proximity sensor value. With Data Streamer output, sends values to MPLAB Data Visualizer every 100 ms via protocol. Polled using Delay driver for sampling frequency.",
1111
"ide": {
@@ -19,12 +19,12 @@
1919
}
2020
],
2121
"dfp": {
22-
"name": "",
23-
"semverRange": ""
22+
"name": "PIC18F-Q_DFP",
23+
"semverRange": "^1.27.499"
2424
},
2525
"configurator": {
26-
"name": "",
27-
"semverRange": ""
26+
"name": "MCC",
27+
"semverRange": "^5.8.0"
2828
},
2929
"device": {
3030
"metaDataVersion": "1.0.0",
@@ -37,8 +37,23 @@
3737
}
3838
},
3939
"author": "Glen Nilsen",
40-
"peripherals": [],
41-
"keywords": [],
40+
"peripherals": [
41+
"I2C",
42+
"GPIO",
43+
"UART"
44+
],
45+
"keywords": [
46+
"Data Visualizer",
47+
"MPLAB Data Visualizer",
48+
"I2C",
49+
"UART",
50+
"Getting Started",
51+
"Melody",
52+
"MCC Melody",
53+
"Curiosity Nano Explorer",
54+
"Example Components",
55+
"MCC Melody Example Components"
56+
],
4257
"additionalData": {
4358
"longDescription": {
4459
"metaDataVersion": "1.0.0",

README.md

Lines changed: 58 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,81 @@
88
</picture>
99
</a>
1010

11-
# PIC18F57Q43 I2C_Host Example Component for CNano Explorer: I2C Proximity Sensor (Polled, Data Streamer)
11+
# PIC18F57Q43 I<sup>2</sup>C_Host Example Component for CNano Explorer: I<sup>2</sup>C Proximity Sensor (Polled, Data Streamer)
1212

13-
<!-- This is where the introduction to the example goes, including mentioning the peripherals used -->
14-
When running the application, using the MPLAB Data Visualizer, you should see something similar to the following:
15-
![alt text](images/pic18f57q43-i2c-proximity-sensor-polled-data-streamer.png)
13+
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"
14+
), 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"
15+
), is used here in the Polled implementation, with the Data Streamer visualization.
16+
17+
![alt text](images/pic18f57q43-i2c-proximity-sensor-polled-datastreamer_intro.png)
18+
19+
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, after a 100 ms delay.
20+
21+
In the MCC Melody Data Streamer library configruation, the appropriately typed variables are added to the Data Streamer table.
22+
23+
![alt text](images/pic18f57q43-i2c-proximity-sensor-polled-datastreamerTable_uartPins.png)
24+
25+
26+
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).
27+
![alt text](images/pic18f57q43-i2c-proximity-sensor-dataStreamer.png)
28+
29+
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").
30+
31+
![Data Streamer configuration showing Data Streamer Table and UART pins](images/pic18f57q43-i2c-proximity-sensor-polled-DataStreamer_builder.png)
32+
33+
## MCC Melody Example Components
34+
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.
1635

17-
The following is the required MCC Melody configuration.
18-
![alt text](images/pic18f57q43-i2c-proximity-sensor-polled-data-streamer_configuration.png)
1936

2037
## Related Documentation
2138

22-
<!-- Any information about an application note or tech brief can be linked here. Use unbreakable links!
23-
In addition a link to the device family landing page and relevant peripheral pages as well:
24-
- [AN3381 - Brushless DC Fan Speed Control Using Temperature Input and Tachometer Feedback](https://microchip.com/00003381/)
25-
- [PIC18F-Q10 Family Product Page](https://www.microchip.com/design-centers/8-bit/pic-mcus/device-selection/pic18f-q10-product-family) -->
39+
- [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")
40+
- [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")
41+
42+
- [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")
43+
44+
- [PIC18F57Q43 Data Sheet](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F27-47-57Q43-Data-Sheet-40002147F.pdf "PIC18F57Q43 Data Sheet")
2645

2746
## Software Used
47+
- 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)
48+
- 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)
49+
50+
- MPLAB® Code Configurator (MCC) Plug-in Version 5.6 or newer (*Tools>Plugins>Installed*, search: "MCC")
51+
- MPLAB Data Visualizer Plug-in Version 1.4.1926 or newer (*Tools>Plugins>Installed*, search: "Data Visualizer")
52+
- MCC Melody I2C_Host Example Component for the Curiosity Nano Explorer 1.0.0 or newer
53+
- MCC Core 5.8.0 or newer
54+
- MCC Melody Core 2.9.0 or newer
2855

29-
<!-- All software used in this example must be listed here. Use unbreakable links!
30-
- MPLAB® X IDE 5.30 or newer [(microchip.com/mplab/mplab-x-ide)](http://www.microchip.com/mplab/mplab-x-ide)
31-
- MPLAB® XC8 2.10 or a newer compiler [(microchip.com/mplab/compilers)](http://www.microchip.com/mplab/compilers)
32-
- MPLAB® Code Configurator (MCC) 3.95.0 or newer [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
33-
- 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)
34-
- Microchip PIC18F-Q Series Device Support (1.4.109) or newer [(packs.download.microchip.com/)](https://packs.download.microchip.com/) -->
56+
Open the MCC Content Manager to verify the MCC Core and MCC Melody Core versions.
3557

36-
- 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)
37-
- 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)
58+
![alt text](images/MCC_Core_ContentLibrary_Versions_SPA.png)
3859

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

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

4665
## Setup
4766

48-
<!-- 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 -->
67+
The following outlines the complete MCC Melody configuration, including all the selected tasks that have been implemented in this example.
4968

50-
## Operation
69+
![alt text](images/pic18f57q43-i2c-proximity-sensor-polled-dataStreamer_configuration.png)
5170

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

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

56-
<!-- Summarize what the example has shown -->
88+
![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

0 commit comments

Comments
 (0)