Hi, I would like to trigger ADC conversion with GPT capture and compares events without using the FSP configuration. I couldn’t figure out how to do it, is there any example project about it? Thank you
Hi,
I would like to trigger ADC conversion with GPT capture and compares events without using the FSP configuration. I couldn’t figure out how to do it, is there any example project about it?
Thank you
Read less
Hello, It’s easy. see the section, 3 of the manual (RA4M1) To trigger the A/D, write to register ELSR8 (R_ELC. ELSR (8), and the number you write to that register is the event number shown in table 18.3, nearly between 0x57 and 0x96, depending on which timer, which event (and maybe which processor).Read more
Hello,
It’s easy. see the section, 3 of the manual (RA4M1)
To trigger the A/D, write to register ELSR8 (R_ELC. ELSR (8), and the number you write to that register is the event number shown in table 18.3, nearly between 0x57 and 0x96, depending on which timer, which event (and maybe which processor).
First, you have to enable the ELC registers by writing 1 to R_ELC. ELCR and writing to the module stop register.
You also have to inform the A/D by writing 9 to ADSTRGR (see section 35.2.12)
Thank You
Vikas
See less