Skip to content

Commit 68459a5

Browse files
MPAE-12074: Edits From comments in PR
1 parent 167c768 commit 68459a5

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ In this project we will read the analog signal from the potentiometer and send i
3434

3535
To be able to read the value we would have to configure the Analog Digital Converter (ADC) to read the value from the correct pin.
3636
When using the *Curiosity Nano Adapter* with the *POT 3 click* in space **1** we can read that Analog 1 - AN1 is connected to PORTA - RA0 on the **PIC18F57Q43**
37-
38-
TODO: Need to add line from AN1 click in 1 to RA0?
39-
TODO: bigger picture
37+
4038
![Nano Adapter](images/nano_adapter.jpg)
4139

4240
## Setup
@@ -51,15 +49,13 @@ In the *Device Resources* window scroll to find *ADCC* click the dropdown arrow
5149

5250
![MCC - ADCC](images/device_resources_drivers_adcc.png)
5351

54-
*Device Resources*
55-
5652
The ADCC was used in this code example to periodically measure the analog channel RA0 (POT) which is connected to a 10kΩ potentiometer on the POT3 Click board. The ADCC was programmed to use Timer1 as an auto-conversion trigger in order to core-independently perform a conversion every 500ms. Additionally, the computation feature of the ADCC was utilized in this example to perform a burst average conversion core independently every time the ADC gets triggered. The ADCC was setup in such a way where it takes 32 consecutive conversions and accumulates the results whenever triggered, and then automatically divides the results by 32 by right shifting the accumulated value by 5 to provide the filtered average ADC result. The MPLAB Code Configurator (MCC) was used to setup the ADCC module for this code example as shown below.
5753

5854
![MCC - ADCC clock](images/adc_clock.png)
5955
![MCC - ADCC computation](images/adc_computation.png)
6056

6157
## Timer 1 (TMR1) Module
62-
The Timer1 module in this example was used as the ADCC auto-conversion trigger source, meaning that every time Timer1 overflows / rolls over the ADC will be triggered in hardware to begin a conversion. The Timer1 clock source selected was MFINTOSC_31.25kHz with no prescaler, and the Timer1 period was configured to be 500ms. By selecting Timer1 as the auto-conversion trigger source in the ADCC MCC Configuration window, no other actions or setup is needed for the Timer1 work with the ADC in this manner. The MPLAB Code Configurator (MCC) was used to configure the Timer1 module for this code example as shown below.
58+
The Timer1 module in this example was used as the ADCC auto-conversion trigger source, meaning that every time Timer1 overflows / rolls over the ADC will be triggered in hardware to begin a conversion. The Timer1 clock source selected was MFINTOSC_31.25kHz with no prescaler, and the Timer1 period was configured to be 500ms. By selecting Timer1 as the auto-conversion trigger source in the ADCC easy view window, no other actions or setup is needed for the Timer1 work with the ADC in this manner. The MPLAB Code Configurator (MCC) was used to configure the Timer1 module for this code example as shown below.
6359

6460
![MCC - TMR1 Easy View](images/tmr1_configuration.png)
6561

@@ -72,8 +68,6 @@ In the *Device Resources* window scroll to find *UART3* click the dropdown arrow
7268

7369
![MCC - UART3](images/device_resources_uart.png)
7470

75-
*Device Resources*
76-
7771
In the *UART3 Easy View* select Redirect STDIO to UART, and Desired Baud Rate **9600**.
7872

7973
![MCC - UART3 Configuration](images/uart3_easy_view.png)
@@ -83,15 +77,16 @@ In the *Pins Grid View* find ANx for the input pin to the ADC module. AN1 coming
8377

8478
![MCC - Open Pin Manager](images/pins_grid_view_ra0.png)
8579

86-
RA0 can be configured with a custom pin name in this case we called it POT to make the generated API more readable.
80+
In the Pins tab, RA0 can be configured with a custom pin name in this case we called it POT to make the generated API more readable.
8781

8882
![MCC - Set Pin to Output](images/pin_ra0_custom_name.png)
8983

9084
In the *Pins Grid View* find UART3 RX3 and TX3 for the connections for the Serial communications int the PIC18F57Q43 cnano. Select TX3 and RX3 as shown in figure below with the coresponding padlock symbol.
9185

86+
**Pins Grid View**
9287
![MCC - UART3 connections](images/uart3_connections.png)
9388

94-
*Pins Grid View*s
89+
9590

9691
## Data Streamer Configuration
9792
In the *Device Resources* window click the dropdown arrow next to *Drivers* to expand the choices. Find *Data Streamer Driver* and click the green plus symbol to add the driver to the solution.

0 commit comments

Comments
 (0)