how to trigger ADC by GPIO through CTU?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to trigger ADC by GPIO through CTU?

894 Views
arthivenkatasub
Contributor III

Hi Everyone,

I am working with the CTU module of MPC5643L. I am able to test PWM-ADC triggering through CTU and eTimer-ADC triggering through CTU. I want to test GPIO-ADC triggering through CTU.

 

I tried testing by configuring the external falling edge event and enable interrupt in SIUL with External Falling Edge as TGS input selection. I also configured CTU registers for triggering ADC (ADC Command related and trigger compare & counter registers). But it doesnt work for me.

 

How to trigger ADC by GPIO through CTU?

 

I have no idea about what to do (i.e what to configure ) in SIUL module for GPIO - ADC triggering through CTU?

 

 Can anybody guide me for this case?

 

Regards,

Arthi Venkatasubramanian

0 Kudos
Reply
1 Reply

779 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can use CTU EXT_IN input signal. 

pastedImage_1.png

EXT_IN is available on pads C13 or C15, so set respective PCR/PMSI registers properly.

To enable this signal as MRS trigger set I15_FE/I15_RE bits of the TGSISR register.

pastedImage_2.png

BR, Petr

0 Kudos
Reply