MCXA153VLH ADC trigger

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCXA153VLH ADC trigger

ソリューションへジャンプ
850件の閲覧回数
_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 解決策
511件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
5 返答(返信)
795件の閲覧回数
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 件の賞賛
返信
783件の閲覧回数
_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 件の賞賛
返信
742件の閲覧回数
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 件の賞賛
返信
723件の閲覧回数
_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 件の賞賛
返信
512件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信