RL78 F13 - Needed sample code to understand DTC functionality with ADC Scan One shot mode

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

Parents Reply
  • 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. 

Children