Skip to content

Commit da76c56

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"scheme":2,"settings":{"chart":{"panels":{"primary-graph":{"cursors":[],"trackSizes":{"horizontal":[],"vertical":[]}}},"axisProps":{"primary-graph":{"panelId":"primary-graph","type":"time","scale":10,"offset":323.74102059999814,"active":true},"376f32a4-c2e4-4b88-b962-af9623f03b5b":{"panelId":"primary-graph","type":"data","scale":512,"offset":-128,"active":true}},"axisPositions":{"primary-graph":{"panelId":"primary-graph","orientation":"horizontal","track":0,"alignment":"after","order":0},"376f32a4-c2e4-4b88-b962-af9623f03b5b":{"panelId":"primary-graph","orientation":"vertical","alignment":"before","track":0,"order":0}},"plotProps":{"54395602-3643-4ba8-a4c9-4204ffe97119":{"panelId":"primary-graph","sourceId":"decoder-bccc5530-c4f9-11ea-872f-c752d8112a41$ADC Value","lineMode":"steps","color":"#2965CC","vScale":256,"vOffset":128}},"plotPositions":{"54395602-3643-4ba8-a4c9-4204ffe97119":{"panelId":"primary-graph","hAxes":[],"vAxes":["376f32a4-c2e4-4b88-b962-af9623f03b5b"]}},"cursorProps":{},"inspector":{"enabled":true,"yPosition":30},"activeDataAxisId":"376f32a4-c2e4-4b88-b962-af9623f03b5b","prevColorChoiceIndex":0},"terminal":{"characterSet":"hex","filterControlChars":false,"hexMode":false,"echo":true,"lineEnd":"\r\n","terminalDirty":false},"ui":{"sidebars":{"left.sidebar":{"id":"left.sidebar","visible":true},"right.sidebar":{"id":"right.sidebar","visible":true}},"panels":{"connections.panel":{"id":"connections.panel","open":true},"connection.options.panel":{"id":"connection.options.panel","open":true}},"dialogs":[],"darkTheme":false,"devMode":false},"sourceSettings":{"byId":{"COM8":{"id":"COM8","formValues":{"baudRate":19200,"charLength":8,"stopBits":0,"parity":0,"invalid":-1}}}},"protocolShapes":{"byId":{"12":{"fields":[{"id":"12$ADC Value","name":"ADC Value","type":4,"offset":0}],"id":"12","name":"ADC values","frame":{"mode":{"label":"Auto","id":"auto"},"startOfFrame":0}}}},"protocols":{"byId":{"decoder-bccc5530-c4f9-11ea-872f-c752d8112a41":{"fields":[{"id":"$ADC Value","name":"ADC Value","offset":0,"type":4}],"frame":{"mode":"auto","startOfFrame":0},"id":"decoder-bccc5530-c4f9-11ea-872f-c752d8112a41","name":"ADC values","outputs":["decoder-bccc5530-c4f9-11ea-872f-c752d8112a41$ADC Value"]}},"shapeSelection":{"decoder-bccc5530-c4f9-11ea-872f-c752d8112a41":"12"},"statisticsById":{"decoder-bccc5530-c4f9-11ea-872f-c752d8112a41":{"discardedByteCount":423089,"decodedFrameCount":21925,"decodeRate":464.2857,"hasProtocolMismatch":false}}},"links":{"byId":{"cb418130-c4f9-11ea-872f-c752d8112a41":{"sinkId":"decoder-bccc5530-c4f9-11ea-872f-c752d8112a41","sourceId":"COM8"}}}}}

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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. 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.
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 input signal is fed through a Sample-and-Hold circuit which ensures that the input voltage to the ADC is held at a constant level during sampling.
66

77
The example code is based on the application note [AN2551](#Related-Documentation)
88

@@ -14,16 +14,18 @@ The example code is based on the application note [AN2551](#Related-Documentatio
1414
## Software Used
1515

1616
- [MPLAB X IDE v5.40 or later](https://www.microchip.com/mplab/mplab-x-ide)
17-
- [Data Visualizer](https://www.microchip.com/mplab/avr-support/data-visualizer)
17+
- Data Visualizer
18+
- [MPLAB Data Visualizer](https://gallery.microchip.com/packages/MPLAB-Data-Visualizer-Standalone(Windows)/)
19+
- [Studio Data visualizer](https://www.microchip.com/mplab/avr-support/data-visualizer)
1820
- ATmega_DFP 1.4.351 or later
21+
- [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
1922

2023
## Hardware Used
2124

2225
- [ATmega4809 Xplained Pro](https://www.microchip.com/developmenttools/ProductDetails/ATMEGA4809-XPRO)
2326

2427
## Setup
2528

26-
* Connect the ATmega4809 Xplained Pro to your computer with a micro usb cable.
2729
* The ADC input is mapped to `PD5` and will change the ADC values being sent over UART depending on the voltage applied.
2830

2931
## Operation
@@ -41,6 +43,7 @@ The example code is based on the application note [AN2551](#Related-Documentatio
4143
5. Press the make and program button to program the device.
4244
6. Open data visualizer to interact with the virtual comport over UART on the devkit. The baud rate is `19200`
4345
7. Follow Appendix A in [AN2551](#Related-Documentation) for step by step instructions on how to graph the samples
46+
* Alternatively you can open the provided MPLAB Data Visualizer config `MPLAB_Data_Visualizer_Config_Noise_Countermesure.json` file. Make sure the correct COM port is selected when it's open.
4447

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

0 commit comments

Comments
 (0)