MCXA153VLH ADC trigger

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCXA153VLH ADC trigger

跳至解决方案
869 次查看
_Ferrari_
Contributor V

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.

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
530 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport
0 项奖励
回复
5 回复数
814 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

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)

Alice_Yang_0-1755771953163.png

 

BR

Alice

 

0 项奖励
回复
802 次查看
_Ferrari_
Contributor V

Thank you very much for your answer.

Just another question: what is the correct number to put in the ADC trigger configuration 

_Ferrari__1-1755778454494.png

to have CTimer0_MAT0 as ADC input trigger ?

Thank you for your help and cooperation,

regards

 

标记 (3)
0 项奖励
回复
761 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

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

 

0 项奖励
回复
742 次查看
_Ferrari_
Contributor V

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.

标记 (3)
0 项奖励
回复
531 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport
0 项奖励
回复