Skip to content

Commit 0c6a3fc

Browse files
Ole AarhaugOle Aarhaug
authored andcommitted
MPAE-4790: Updated Project
1 parent 4a74e24 commit 0c6a3fc

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

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

33
# ATMEGA4809 Noise Countermeasures for ADC Applications
44

5-
This is an example for noise countermeasures for ADC applications on the ATMEGA4809, this is a general example which is applicable to the whole megaAVR 0-series. The example code is based on the application note [AN2551](#Related-Documentation)
5+
This is an example for noise countermeasures for ADC applications on the ATMEGA4809, this is a general example which is applicable to the whole megaAVR 0-series. In the ADCs implemented in megaAVR® 0-series, the inputsignal is fed through a Sample-and-Hold circuit which ensures that the input voltage to the ADC is held ata constant level during sampling.
6+
7+
The example code is based on the application note [AN2551](#Related-Documentation)
68

79
## Related Documentation
810

@@ -28,10 +30,17 @@ This is an example for noise countermeasures for ADC applications on the ATMEGA4
2830

2931
1. Open `NoiseCountermeasuresforADCApplicationswithmegaAVR0-series.X` in MPLAB
3032
2. Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
31-
3. Make sure the kit is selected as the tool to be programmed under project settings
32-
4. Press the make and program button to program the device.
33-
5. Open data visualizer to interact with the virtual comport over UART on the devkit. The baud rate is `19200`
34-
6. Follow Appendix A in [AN2551](#Related-Documentation) for step by step instructions on how to graph the samples
33+
3. Use these defines to plot a graph without noise
34+
```c
35+
#define HARMONIC_NOISE 0
36+
#define ADC_64X_ACCUMULATOR_ENABLE 0
37+
#define SAMPLING_DELAY 0
38+
#define ENABLE_ASDV 0
39+
```
40+
4. Make sure the kit is selected as the tool to be programmed under project settings
41+
5. Press the make and program button to program the device.
42+
6. Open data visualizer to interact with the virtual comport over UART on the devkit. The baud rate is `19200`
43+
7. Follow Appendix A in [AN2551](#Related-Documentation) for step by step instructions on how to graph the samples
3544

3645
Filtered ADC values will be passed over the UART port, these can be parsed or graphed for a visual understanding of ADC value.
3746

0 commit comments

Comments
 (0)