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
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,15 @@
2
2
3
3
# ATMEGA4809 Xplained Pro ADC basics
4
4
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).
6
14
7
15
## Related Documentation
8
16
@@ -12,7 +20,10 @@ This is an example of how to get started with the ADC on the ATMEGA4809, this is
12
20
## Software Used
13
21
14
22
-[MPLAB X IDE v5.40 or later](https://www.microchip.com/mplab/mplab-x-ide)
-[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
16
27
- ATmega_DFP 1.4.351 or later
17
28
18
29
## Hardware Used
@@ -21,7 +32,6 @@ This is an example of how to get started with the ADC on the ATMEGA4809, this is
21
32
22
33
## Setup
23
34
24
-
* Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
25
35
* Port `PD6` is the ADC channel input, connect a cable here to interract with the ADC.
26
36
27
37
## Operation
@@ -30,7 +40,7 @@ This is an example of how to get started with the ADC on the ATMEGA4809, this is
30
40
2. Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
31
41
3. Make sure the kit is selected as the tool to be programmed under project settings
32
42
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.
34
44
35
45
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.
0 commit comments