S32K144 - ADC how to use more than 8 channels

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K144 - ADC how to use more than 8 channels

跳至解决方案
2,942 次查看
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,966 次查看
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,966 次查看
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,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 项奖励
1,966 次查看
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 项奖励