S32K1 using Lpit to periodically trigger ADC using RTDs

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

S32K1 using Lpit to periodically trigger ADC using RTDs

跳至解决方案
2,643 次查看
hns80
Senior Contributor I

I'm having trouble modifying the Adc_Pdb_Ip example to trigger the ADC from the LPIT.

I'm not sure what I'm missing. I tried looking at the older examples using the SDK and don't see anything missing from what I'm doing with the RTDs.

My project is attached. What do I need to change to get the lpit to trigger the ADC conversion?

 

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
2,603 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

should the LPIT trigger PDB-ADC? As the example sets the PDB too and by default ADC is set to be triggered from PDB. There is check box "Enable SIM ADC source selections" in ADC component which allows you to change HW trigger to be done from TRGMUX (LPIT).
So if LPIT-PDB-ADC sync should be done then TRGMUX should be set to have 

PetrS_0-1652792413504.png

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,604 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

should the LPIT trigger PDB-ADC? As the example sets the PDB too and by default ADC is set to be triggered from PDB. There is check box "Enable SIM ADC source selections" in ADC component which allows you to change HW trigger to be done from TRGMUX (LPIT).
So if LPIT-PDB-ADC sync should be done then TRGMUX should be set to have 

PetrS_0-1652792413504.png

BR, Petr

0 项奖励
回复
2,567 次查看
hns80
Senior Contributor I

I used the tips you provided to make the example work as intended. It now triggers the ADC conversion every 10ms.

I attached the sample project in case anyone wants to see a sample implementation

0 项奖励
回复