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,
Meet
Hi AZ_Renesas,
May i know why you have selected DTCBLSj (block size) as 2 in your sample code?
Actually ADCR is 16 bit register so DTCBLSj should be 1 right ? As per below table
Hi I found the answer, it is generating as 01 only. Thanks!
Hi In this sample code, DTC buffer is updated only once, may i know why it's not updating current ADC conversion continuously?
On my project the buffer is updated continuously.
If you have the RL78/F13 target board ANI0 is connected to VDD and ANI1 is connected to ground so you will not see much change on those channels.
Regards
actually Im checking ANI3, and checking the value of adc_results_buffer[3],
1. it is showing the initial pin ADC value
2. when i change the ADC pin voltage to another voltage range or connect to ground. the buffer value is not changing.
3. when i reset the uC and start the execution, at that time DTC buffer is updating according to the current pin Voltage level once.
Something seemed not to work, but I build again and now it seems ok. Please retry with the attached project.
6886.ADC_DTC_F13.zip