I am developing a project based on the MCXA153VLH microprocessor and I need to sample an analog signal at regular time intervals.
I thought about using a timer to act as a trigger to start the conversion. At the end of the conversion, the analog-to-digital converter should generate an interrupt to signal the end of the conversion and the availability of the data to be converted.
I have already used a similar technique with the LPC5526 microprocessor with excellent results. In that project, I used timer 4, associating the start of the conversion with trigger 9.
Unfortunately, I cannot find which trigger number is associated with a timer that starts the AD conversion on the MCXA153VLH microprocessor.
Could you provide me with detailed information?
Thank you and have a good day.
解決済! 解決策の投稿を見る。
Hello @_Ferrari_
There is also a timer-triggered ADC on the MCXA153; please refer to it.
MCXA153 RM ->
13.5.1.11 ADC Trigger input connections (ADC0_TRIG0 - ADC0_TRIG3)
BR
Alice
Hello @_Ferrari_
The MCXA153 features four ADC trigger input registers, namely ADC0_TRIG0 to ADC0_TRIG3. You can utilize any one of these registers, meaning you can input values 0, 1, 2, or 3.
Thank you.
BR
Alice
Thank you for your answer!
I need to write a number from zero to 3, which identifies one of the registers:
0 for ADC0_TRIG0
1 for ADC0_TRIG1
2 for ADC0_TRIG2
3 for ADC0_TRIG3
If I've understood correctly, into one of these registers, for example ADC0_TRIG0, I need to write the TRIGIN data, which should be 00_1001b (CTimer0_MAT0 input is selected).
I can't figure out how to write the 00_1001b data into the ADC0_TRIG0 register using the Peripherals tool in MCUXpresso IDE.
Could you please explain how to do it?
Thanks, and have a good day.