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
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Volt.Tech
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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