Hi,
I’m using RF7A6M2AF MCU. I’m working at the register level and don’t use Renesas libraries. I’m trying to set up the MCU so I could spark ADC sampling from GPT.
I do have a GPT formerly working in the circle. I did set ADTRAUEN to 1 in the GTINTAD register and GTADTRA to 2, so the ADC trigger event starts early on during the GPT up-count. To confirm that the ELC_EVENT_GPT1_AD_TRIG_A event actually happens I’ve configured an interrupt for it and it does get triggered.
The thing I must be missing is the configuration at the ADC level for the trigger. A single checkup from the software trigger is working rightly and I can see ELC_EVENT_ADC1_SCAN_END related interrupt being triggered but if I configure ADCSR register TRGE and EXTRG fields to enable synchronous trigger I can not get ADC to work. I was looking into the ADSTRGR register to set a trigger for the ADC, but I don’t see an option for the GPT.
What am I missing?
Kind regards.
Julian White
Hello, Thanks for reaching out to Volt Tech Engineering Community. Do you have set the ELSRn to register? For example, ELSR8 register (for ADC unit 0)? You require to set this register with the right value from Table 19.3 according to your preferred GPT channel and event. Thank & Regards
Hello,
Thanks for reaching out to Volt Tech Engineering Community.
Do you have set the ELSRn to register? For example, ELSR8 register (for ADC unit 0)?
You require to set this register with the right value from Table 19.3 according to your preferred GPT channel and event.
Thank & Regards
See less