This is the unit test for the XMEGA DAC driver using the chip ADC. The test requires the following external connection on the board that runs the tests:
The DAC outputs are available on PA2 and PA3, leaving two groups of four ADC pins connected to the two DAC output pins.
As there will be variations in the value output on the DAC output and the ADC input, all test measurements will have a range of acceptable values that lie above and below the expected value. The size of this range can be configured in the conf_test.h header file and have separate ranges for 8-bit and 12-bit results.
This example has been tested with the following setup(s):
See the documentation for the individual unit test functions here for detailed descriptions of the tests.
This example depends directly on the following modules:
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/