S32K118

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

S32K118

1,643 Views
akankshasrivast
Contributor I

Hello,

I want to Know

  1. FTM module which generates interrupt after every 100ms 
  2. I have included the ADC software trigger code in the same example code, where software triggers the ADC0 (CH12) to start it's conversion in the FTM interrupt 

 

This code is working with ADC0 CH12 as well as CH9 but when I tried to do the same on CH3 it didn't work.

 

As per reference manual ADC0 CH0-3 requires different triggering method, since we do not have any example code for it.

 

Could you tell us-

  1. What steps we should follow to configure those ADC0 CH0-3
  2. Is that ok, if we used different triggering scheme for CH0-3 and different one for other channels of same ADC
0 Kudos
Reply
1 Reply

1,174 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

I'm not sure about your described settings. Could you please share your code?
In the RM, we can see "When software trigger is selected, a conversion is initiated following a write to SC1A."

So, the software trigger can be used only for the SC1A.

In the case, when you want to trigger more channels I would like to recommend to you the example S32K144 PDB ADC trigger DMA ISR S32DS Example S32K144 PDB ADC trigger DMA ISR S32DS 

Also, you can look at the examples in the S32DS.R1  File -> New -> S32DS Project from the Example.

I hope it helps you. 

Best Regards,

Diana

0 Kudos
Reply