I require a simple piece of code to be written for the Atmel ATXMEGA 128A1 microcontroller. The code must use the DAC module to output a sweeping voltage on dual chwnnels, from 0V to 1V in 5mv steps (1 step every 50ms) and using the internal reference voltage. It must also enable the ADC module to accept voltages in, again dual channel. The values must be stored in a variables and output on the USART to be viewed in a hyper terminal program. The ADC has 12 bit resolution and so the USART must output the ADC high register then low register continuously.
Very basic code, can be done using the code in the data sheet.
I need the code written extremely quickly
There are a number of sample programs in Atmel Studio showing all 3 aspects of this project (Dual channel DAC, ADC and USART). I basically need a slight modification of these examples in one file.
For clarification, an overview of what I am trying to do is:
Use sweeping DAC output as an input for an op-amp circuit. The output from this op-amp circuit will then feed into the ADC and be viewed on a PC using hyper-terminal.
Thanks for looking