Skip to content

Commit 04df2d8

Browse files
Ole AarhaugOle Aarhaug
authored andcommitted
MPAE-4746: Updated Project
1 parent 37720d4 commit 04df2d8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
# ATMEGA4809 Xplained Pro ADC basics
44

5-
This is an example of how to get started with the ADC on the ATMEGA4809, this is a general example which is applicable to the whole megaAVR 0-series. This is based on the application note [AN2573](#Related-Documentation).
5+
MegaAVR® 0-series devices feature a 10-bit successive approximation register (SAR) Analog-to-Digital Converter (ADC) and is capable of conversion rates up to 115 ksps. It features a flexible multiplexer, which allows the ADC to measure the voltage at multiplesingle-ended input pins.
6+
7+
There are four modes we will explore in this example:
8+
* ADC Free-Running mode
9+
* ADC Single Conversion mode
10+
* ADC Window Comparator mode
11+
* ADC Sample Accumulator mode
12+
13+
This is an example of how to get started with the ADC on the ATMEGA4809. This is based on the application note [AN2573](#Related-Documentation).
614

715
## Related Documentation
816

@@ -12,7 +20,10 @@ This is an example of how to get started with the ADC on the ATMEGA4809, this is
1220
## Software Used
1321

1422
- [MPLAB X IDE v5.40 or later](https://www.microchip.com/mplab/mplab-x-ide)
15-
- [Data Visualizer](https://www.microchip.com/mplab/avr-support/data-visualizer)
23+
- Data Visualizer
24+
- [MPLAB Data Visualizer](https://gallery.microchip.com/packages/MPLAB-Data-Visualizer-Standalone(Windows)/)
25+
- [Studio Data visualizer](https://www.microchip.com/mplab/avr-support/data-visualizer)
26+
- [XC8 (v2.20)](https://www.microchip.com/mplab/compilers) alternativly [AVR/GNU C Compiler 5.4.0](https://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-c-compilers) can be used
1627
- ATmega_DFP 1.4.351 or later
1728

1829
## Hardware Used
@@ -21,7 +32,6 @@ This is an example of how to get started with the ADC on the ATMEGA4809, this is
2132

2233
## Setup
2334

24-
* Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
2535
* Port `PD6` is the ADC channel input, connect a cable here to interract with the ADC.
2636

2737
## Operation
@@ -30,7 +40,7 @@ This is an example of how to get started with the ADC on the ATMEGA4809, this is
3040
2. Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
3141
3. Make sure the kit is selected as the tool to be programmed under project settings
3242
4. Press the make and program button to program the device.
33-
5. Open data visualizer under to interact with the virtual comport on the devkit
43+
4. Open your favorite terminal application or Data visualizer and open the serial port associated with the Xplained Pro.
3444

3545
As mentioned in the appnote [AN2573](#Related-Documentation) you can change the voltage level of the adc input port and the approximated value will be shown over UART through data visualizer.
3646

0 commit comments

Comments
 (0)