You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-28Lines changed: 27 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,40 +2,40 @@
2
2
3
3
# Analog-to-Digital Converter with Computation (ADCC) and Context Switching — Differential Reading Using PIC18F56Q71 Microcontroller with MCC Melody
4
4
5
-
This code example demonstrates how to perform a differential coversion using the Analog-to-Digital Coverter with Computation (ADCC) and Context Switching and visualize the voltage difference of two input channels using the Data Visualizer tool. The application starts with the initialization of the ADCC with Context Switching and UART peripherals, and then a conversion is performed every 10 ms. The conversion result is sent via serial communication using the UART peripheral in the Data Visualizer format, in which a real-time plot is displayed.
5
+
This code example demonstrates how to perform a differential coversion using the Analog-to-Digital Converter with Computation (ADCC) and Context Switching and visualize the voltage difference of two input channels using the Data Visualizer tool. The application starts with the initialization of the ADCC with Context Switching and Universal Asynchronous Receiver Transmitter (UART) peripherals, and then a conversion is performed every 10 ms. The conversion result is sent via serial communication using the UART peripheral in the Data Visualizer format, in which a real-time plot is displayed.
6
6
7
7
## Related Documentation
8
8
9
-
More details and code examples on the PIC18F56Q71 can be found at the following links:
9
+
More details and code examples for the PIC18F56Q71 can be found at the following links:
To program the Curiosity Nano board with this MPLAB® X project, follow the steps provided in the [How to Program the Curiosity Nano Board](#how-to-program-the-curiosity-nano-board) chapter.<br><br>
38
+
To program the Curiosity Nano board with this MPLAB X project, follow the steps provided in the [How to Program the Curiosity Nano Board](#how-to-program-the-curiosity-nano-board) chapter.<br><br>
39
39
40
40
## Setup
41
41
@@ -72,23 +72,23 @@ The following configurations must be made for this project:
72
72
73
73
## Demo
74
74
75
-
In this example, the ADC reads data from the two potentiometers and displays the result on the serial terminal.
75
+
In this example, the Analog-to-Digital Converter (ADC) reads data from the two potentiometers and displays the result on the serial terminal.
To visualize the ADCC with Content Switching readings in a graphical format use the Data Visualizer time plot.
80
80
81
81
Follow the procedure below to open the Graph/Time plot in Data Visualizer:
82
82
83
-
- Open the Data Visualizer tool, available as a plugin in MPLAB® X IDE
83
+
- Open the Data Visualizer tool, available as a plugin in MPLAB X IDE
84
84
85
-
- Click on **Connections** > **Serial Ports**
85
+
- Click on **_Connections_** > **_Serial Ports_**
86
86
87
-
- Open the COMx Settings window corresponding to the port that your device is connected to. Set the Baud Rate to **115200**.
87
+
- Open the COMx Settings window corresponding to the port that your device is connected to. Set the Baud Rate to 115200.
88
88
89
89
- Click **Play** to start streaming
90
90
91
-
- Click **Variable Streamer** > **New...**
91
+
- Click **_Variable Streamers_**>**_New..._**
92
92
93
93
- Add new variables as shown in the image below and click **Save**
94
94
<br><imgsrc="images/New Variable Streamer.jpg">
@@ -101,34 +101,28 @@ Follow the procedure below to open the Graph/Time plot in Data Visualizer:
101
101
This method determines if the result is positive or negative.
102
102
103
103
**Note**: The COM port number can differ depending on the port availability.
104
-
<br>
105
-
106
-
## Summary
107
-
108
-
This code example shows how to configure the ADCC with Context Switching using the MPLAB® Code Configurator and demonstrates the use of the peripheral by sending the result via the UART interface and plotting it with Data Visualizer.
109
104
<br><br>
110
-
[Back to Top](#analog-to-digital-converter-with-computation-adcc-and-context-switching--differential-reading-using-pic18f56q71-microcontroller-with-mcc-melody)
111
105
112
106
## How to Program the Curiosity Nano Board
113
107
114
-
This chapter demonstrates how to use the MPLAB® X IDE to program a PIC® device with an Example_Project.X. This is applicable to other projects.
108
+
This chapter demonstrates how to use the MPLAB X IDE to program a PIC® device with an ``Example_Project.X``. This is applicable to other projects.
115
109
116
110
1. Connect the board to the PC.
117
111
118
-
2. Open the Example_Project.X project in MPLAB® X IDE.
112
+
2. Open the ``Example_Project.X`` project in MPLAB X IDE.
119
113
120
-
3. Set the Example_Project.X project as main project.
121
-
<br>Right click the project in the **Projects** tab and click **Set as Main Project**.
114
+
3. Set the ``Example_Project.X`` project as main project.
115
+
<br>Right click the project in the **Projects** tab and click Set as Main Project.
@@ -137,6 +131,11 @@ This chapter demonstrates how to use the MPLAB® X IDE to program a PIC® device
137
131
138
132
<br>
139
133
134
+
## Summary
135
+
136
+
This code example shows how to configure the ADCC with Context Switching using the MPLAB Code Configurator and demonstrates the use of the peripheral by sending the result via the UART interface and plotting it with Data Visualizer.
0 commit comments