Dear Renesas community,
I'm looking for sample code to understand DTC with ADC scan one shot mode.
Needed scenario like 4 ADC channels conversion data want to transfer from ADCR to 4 different variables at each INTAD interrupt.
and 4 variables like arr[index], index value will be incremented at each INTAD interrupt. and index will be reseted after 4th channel ADC conversion
Could you please provide the sample code for the same?
Thanks & Regards,
Please find the attached demo project.
ANI0-ANI3 channels are scanned and stored at 0xFF400 address in RAM using DTC.
The destination address is usually specified in Code Generator…
1) Well, if you decide to have a buffer in RAM to store the results, you need to know the memory range of RAM and select an address.
But some regions of RAM are used for other purposes too, so you need…
If the DTC is enabled after the interrupt, the interrupt itself cannot trigger the DTC transfer.
Starting DTC inside the ISR cannot transfer the 1st result.