I am using an XMega256a3bu XPlained board. Fairly new to this. I am trying to set up a mic->speaker circuit through the XMega. I wanted to use the ADC and DAC on the chip to handle the signals. I have figured out how to use the ADC (I think) but I'm not quite sure how to store the results of the conversion. Nay, what to store it in? The following is my interrupt routine. Any advice on this would be helpful.
register16_t Ad2_out = ADCA.CH2RES;
ADCA.CTRLA |= (ADC_CH2START_bm);
Secondly, I wanted to know if I could route this result internally to a DAC output, I read there are some internal input pins. especially if its possible using the 'event routing' XMega series boasts. If it is possible, how to get started? I don't need the code, for, this is my school project. I just want some insight into how to go about doing it. sort of a pseudo-code, if you may!
Thanks again for taking the time out to reply.