ADC Software trigger in S32k146

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

ADC Software trigger in S32k146

1,836件の閲覧回数
Shruthi_C
Contributor II

HI,

 I have to configure ADC0 to 5 channels and ADC1 to 2 channels 

*   ADC0-SE2
* ADC0-SE3
* ADC0-SE6
* ADC0-SE7
*  ADC0-SE10

*  ADC1-SE14
*  ADC1-SE15
 
How can I trigger all these channels by using software triggering method and read the result

pleases support
 
Thank You
0 件の賞賛
返信
4 返答(返信)

1,826件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Shruthi_C,

Please refer to :
Example S32K144 PDB ADC DMA S32DS.ARM.2018.R1
Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3
Example S32K148 PDB0-PDB1 ring DMA S32DS3.4 RTM4.0.3

These examples select LPIT hardware trigger, you can use the SW trigger instead.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

1,823件の閲覧回数
Shruthi_C
Contributor II

HI Robin,

Can we use Software trigger for multiple channels of ADC and a\can we read the results ?

As in data sheet given like this

Shruthi_C_0-1687765869610.png

 

0 件の賞賛
返信

1,814件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry for the misunderstanding with my previous reply.

If you have to configure ADC in software trigger mode (when SC2[ADTRG]=0), then you may need to write SC1A[ADCH] values one by one for ADC0 and ADC1 respectively to achieve ADC sample.

But I think you can configure ADC in hardware trigger mode (when SC2[ADTRG]=1), and select PDB trigger ADC. Select software trigger for PDB, writing 1 to PDB_SC[SWTRIG] resets and restarts the counter of PDB.

For more detail please have a look at 43.7 ADC Trigger Sources of S32K-RM.

0 件の賞賛
返信

1,803件の閲覧回数
Shruthi_C
Contributor II

Hi Robin, Thanks for your support

 

 

0 件の賞賛
返信