|
1 | | -<!-- Please do not change this logo with link --> |
| 1 | +<!-- MPAE-19445 Please do not change this logo with link --> |
2 | 2 |
|
3 | 3 | <a target="_blank" href="https://www.microchip.com/" id="top-of-page"> |
4 | 4 | <picture> |
|
8 | 8 | </picture> |
9 | 9 | </a> |
10 | 10 |
|
11 | | -# Update the title for avr128db48-i2c-proximity-sensor-polled-data-streamer here |
| 11 | +# AVR128DB48 I2C_Host Example Component for CNano Explorer: I2C Proximity Sensor (Polled, Data Streamer) |
12 | 12 |
|
13 | | -<!-- This is where the introduction to the example goes, including mentioning the peripherals used --> |
| 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. |
14 | 16 |
|
15 | | -## Related Documentation |
| 17 | + |
16 | 18 |
|
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) --> |
| 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. |
21 | 20 |
|
22 | | -## Software Used |
| 21 | +In the MCC Melody Data Streamer library configuration, the appropriately typed variables are added to the Data Streamer table. |
23 | 22 |
|
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/) --> |
| 23 | + |
30 | 24 |
|
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) |
| 25 | +## Operation |
33 | 26 |
|
34 | | -## Hardware Used |
| 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 | + |
35 | 29 |
|
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) --> |
40 | 30 |
|
41 | 31 | ## Setup |
| 32 | +The following image outlines the complete MPLAB Code Configurator (MCC) Melody configuration, including all the selected tasks implemented in this example, as seen in the MCC Melody Builder. |
42 | 33 |
|
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 --> |
| 34 | + |
44 | 35 |
|
45 | | -## Operation |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +## MCC Melody Example Components |
| 40 | +Example Components integrate learning material directly into the MCC. This allows the 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. |
| 41 | + |
| 42 | + |
| 43 | +## Related Documentation |
| 44 | + |
| 45 | +- [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") |
| 46 | +- [MCC Melody Design Patterns for Control Flow](https://onlinedocs.microchip.com/g/GUID-7CE1AEE9-2487-4E7B-B26B-93A577BA154E "MCC Melody Design Patterns for Control Flow") |
| 47 | + |
| 48 | +- [Curiosity Nano Explorer User Guide](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/UserGuides/CNANO-Explorer-UserGuide-DS50003716.pdf "Curiosity Nano Explorer Users Guide") |
46 | 49 |
|
47 | | -<!-- Explain how to operate the example. Depending on complexity, step-by-step instructions and/or tables and/or images can be used --> |
| 50 | +- [AVR128DB48 Data Sheet](https://ww1.microchip.com/downloads/en/DeviceDoc/AVR128DB28-32-48-64-DataSheet-DS40002247A.pdf "AVR128DB48 Data Sheet") |
| 51 | + |
| 52 | +## Software Used |
| 53 | +- [MPLAB® X IDE](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide) v6.25 or newer |
| 54 | +- [MPLAB® XC8](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8) v3.00 or newer |
48 | 55 |
|
49 | | -## Summary |
| 56 | +- [MPLAB® Code Configurator](https://www.microchip.com/en-us/tools-resources/configure/mplab-code-configurator) (MCC) Plug-in Version v5.6.2 or newer (*Tools>Plugins>Installed*, search: "MCC") |
| 57 | +- [MPLAB® Data Visualizer](https://www.microchip.com/en-us/tools-resources/debug/mplab-data-visualizer) Plug-in Version v1.4.1926 or newer (*Tools>Plugins>Installed*, search: "Data Visualizer") |
| 58 | +- MCC Melody I2C_Host Example Component for the Curiosity Nano Explorer 1.0.0 or newer |
| 59 | +- MCC Core v5.8.2 or newer |
| 60 | +- Single Page Application (SPA) Host v1.0.0 or newer |
| 61 | +- MCC Melody Core v2.9.1 or newer |
| 62 | + |
| 63 | +Open the MCC Content Manager  to verify the MCC Core and MCC Melody Core versions. |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +## Hardware Used |
| 68 | +- AVR128DB48 Curiosity Nano [(EV35L43A)](https://www.microchip.com/en-us/development-tool/EV35L43A) |
| 69 | +- Curiosity Nano Explorer [(EV58G97A)](https://www.microchip.com/en-us/development-tool/EV58G97A) |
50 | 70 |
|
51 | | -<!-- Summarize what the example has shown --> |
|
0 commit comments