S32K144 - ADC how to use more than 8 channels

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

S32K144 - ADC how to use more than 8 channels

ソリューションへジャンプ
2,943件の閲覧回数
arkadyosh
Contributor III

Hi,
Start conversion by software trigger is only possible to SC1A, to use rest of SC1n need to use for example PDB but its can trigger max 8 channels. How to use more than 8 channels by one ADC? It is possible or I need to use ADC0 and ADC1 to get more than 8 ADC channels?

ラベル(1)
0 件の賞賛
1 解決策
1,967件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi Arkadiusz,

Either you can program a delay for each pre-trigger with a help of PDB channel’s DLY register or you can use the back-to-back operation.

For a first case upon external trigger or SW start the PDB counter will start counting from zero to MOD value. The pre-trigger asserts when the counter is equal to DLY value. Thus you need to set the counter modulo and channels pre-triggers delay according to ADC conversion time, so the ADC will finish single conversion before next trigger came.

The back-to-back operation enables the ADC conversions complete to trigger the next PDB channel pre-trigger and trigger output.  Consult a RM for a possible back-to-back chain implementation.

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
1,967件の閲覧回数
arkadyosh
Contributor III

Thanks for your reply Petr.
I miss in some way the second channel... I have next question, how to trigger the second channel after first complete? Can it be start without software intervention? I think I can use CH1DLY0 to start second channel after some delay or there is a better way?

Regards,

Arkadiusz

0 件の賞賛
1,968件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi Arkadiusz,

Either you can program a delay for each pre-trigger with a help of PDB channel’s DLY register or you can use the back-to-back operation.

For a first case upon external trigger or SW start the PDB counter will start counting from zero to MOD value. The pre-trigger asserts when the counter is equal to DLY value. Thus you need to set the counter modulo and channels pre-triggers delay according to ADC conversion time, so the ADC will finish single conversion before next trigger came.

The back-to-back operation enables the ADC conversions complete to trigger the next PDB channel pre-trigger and trigger output.  Consult a RM for a possible back-to-back chain implementation.

BR, Petr

0 件の賞賛
1,967件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi Arkadiusz,

There are 2 PDB modules on this device. Each PDB module has two ADC trigger channels (each ADC channel with 8 pre-triggers). So the PDB0 can start up to 16 conversions on ADC0, the PDB1 then also 16 conversions on ADC1.

 pastedImage_1.png

BR, Petr

0 件の賞賛