Skip to content

Commit

Permalink
MPAE-16502 Implemented TW review
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Alexandru Ricanu authored and Mihai Alexandru Ricanu committed Sep 12, 2023
1 parent 3ec7093 commit bc6f39b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Analog-to-Digital Converter (ADC) — Sample Accumulator Using the AVR128DA48 Microcontroller

In this application, the ADC will accumulate samples, and then the result will be divided by the number of samples and transmitted through USART.
In this application, the ADC will accumulate samples, then the result will be divided by the number of samples and transmitted through USART.
The software diagram of this application is presented in the figure below.<br>
<br><img src="images/soft_diagram.jpg" width="200">

Expand All @@ -21,7 +21,7 @@ The software diagram of this application is presented in the figure below.<br>

## Hardware Used

- [AVR128DA48 Curiosity Nano](https://www.microchip.com/Developmenttools/ProductDetails/DM164151) Development Board is used as test platform:
- [AVR128DA48 Curiosity Nano Development Board](https://www.microchip.com/Developmenttools/ProductDetails/DM164151) is used as test platform:
<br><img src="images/AVR128DA48_CNANO.png" width="600">

- [Curiosity Nano Adapter](https://www.microchip.com/en-us/development-tool/AC164162):
Expand All @@ -32,7 +32,7 @@ The software diagram of this application is presented in the figure below.<br>

## Setup

The AVR128DA48 Curiosity Nano Development Board is used as the test platform and the Curiosity Nano Base for Click boards is used to integrate the POT Click board.
The AVR128DA48 Curiosity Nano Development Board is used as a test platform. The Curiosity Nano Base for Click boards is used to integrate the POT Click board.

<br>The following configurations must be made:

Expand All @@ -45,7 +45,7 @@ The AVR128DA48 Curiosity Nano Development Board is used as the test platform and

To observe the results plotted on a graph, follow the steps provided in the [How to Use the Data Visualizer](#how-to-use-the-data-visualizer) chapter.

Rotating the Potentiometer on the POT click board (after starting the application), the ADC result will be plotted on the graph:
Rotate the Potentiometer on the POT Click board after starting the application, so that the ADC result will be plotted on the graph, as in the image below:
<br><img src="images/dv_6.PNG" width="1000"/>

## Summary
Expand All @@ -54,7 +54,7 @@ This application showcases the sample accumulator feature of the ADC.

## How to Program the Curiosity Nano board

This chapter shows how to use the MPLAB X IDE to program an AVR® device with an `Example_Project.X`. This can be applied for any other projects.
This chapter shows how to use the MPLAB® X IDE to program an AVR® device with an `Example_Project.X`. This can be applied for any other projects.

1. Connect the board to the PC.

Expand All @@ -71,7 +71,7 @@ This chapter shows how to use the MPLAB X IDE to program an AVR® device with an
5. Select AVRxxxxx Curiosity Nano in the Connected Hardware Tool section of the project settings:
<br>Right click on the project and click Properties.
<br>Click on the arrow under the Connected Hardware Tool.
<br>Select the AVRxxxxx Curiosity Nano (click on the SN).
<br>Select the AVRxxxxx Curiosity Nano by clicking on the SN.
<br>Click **Apply** and then **OK**.
<br><img src="images/Program_Tool_Selection.PNG" width="600">

Expand Down
2 changes: 1 addition & 1 deletion avr128da48-cnano-adc-sample-accumulator-mplab.X/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void USART1_Write(const uint8_t data);
/* This function initializes the CLKCTRL module */
void CLKCTRL_init(void)
{
/* FREQSEL 4M */
/* FRQSEL 4M */
ccp_write_io((void*)&(CLKCTRL.OSCHFCTRLA), (CLKCTRL.OSCHFCTRLA | CLKCTRL_FRQSEL_4M_gc));
}

Expand Down

0 comments on commit bc6f39b

Please sign in to comment.