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
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
6
@@ -10,7 +10,7 @@ There are four modes we will explore in this example:
10
10
* ADC Window Comparator mode
11
11
* ADC Sample Accumulator mode
12
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](https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en601379).
13
+
This is an example of how to get started with the ADC on the ATmega4809. This is based on the application note [AN2573](https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en601379).
14
14
15
15
## Related Documentation
16
16
@@ -32,18 +32,19 @@ This is an example of how to get started with the ADC on the ATMEGA4809. This is
32
32
33
33
## Setup
34
34
35
-
* Port `PD6` is the ADC channel input, connect a cable here to interract with the ADC.
35
+
* Port `PD6` is the ADC channel input, connect a cable here to interract with the ADC
36
36
37
37
## Operation
38
38
39
-
1. Open `atmega4809-adc-basics-mplab.X` in MPLAB.
40
-
2. Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
41
-
3. Make sure the kit is selected as the tool to be programmed under project settings.
42
-
4. Press the make and program button to program the device.
43
-
4. Open your favorite terminal application or Data visualizer and open the serial port associated with the Xplained Pro.
39
+
1. Download the zip file or clone the example to get the source code.
40
+
2. Open `atmega4809-adc-basics-mplab.X` in MPLAB.
41
+
3. Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
42
+
4. Make sure the kit is selected as the tool to be programmed under project settings.
43
+
5. Press the make and program button to program the device.
44
+
6. Open your favorite terminal application or Data visualizer and open the serial port associated with the Xplained Pro.
44
45
45
46
As mentioned in the appnote [AN2573](https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en601379) you can change the voltage level of the adc input port and the approximated value will be shown over UART through data visualizer.
46
47
47
48
## Conclusion
48
49
49
-
We here shown how to setup and get started with the ADC basics project. For more details about this example and how the ADC works please see the [AN2573](https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en601379) Application Note.
50
+
We have here shown how to setup and get started with the ADC basics project. For more details about this example and how the ADC works please see the [AN2573](https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en601379) Application Note.
0 commit comments