S32K146 ADC

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

S32K146 ADC

164 次查看
Stefanescu
Contributor I

Hello.

I am trying to configure 2 different ADC hardware units(0,1) using DMA hardware trigger LPIT(interrupt at 2ms) as input and PDB0,1 as output. VREFL(ch29) and VREFH(ch30) are in first ADC hardware unit, no sequence error is set on PDB0 but the values i received on configured buffer are not stable. ADC clock is set at 40MH but the values read on VREFH are between 8 and 11.5V. Is there any specific configuration that i can check in order to stable the values read.

 

0 项奖励
回复
2 回复数

126 次查看
Stefanescu
Contributor I

Thank you for your fast reply. I found the problem, I was using a S32K146 but ResourceSubderivative was set to 144, and the ADCH registers were configured wrong due to ADCH_WIDTH used for 144. I thought that only memory size was different but apparently not. Now raw value for VREFH is 1023, the problem now is that ADC only reads values on internal channels and not to external configured ones.

0 项奖励
回复

138 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Stefanescu

“DC clock is set at 40MH but the values read on VREFH are between 8 and 11.5V

I am a little confused. It is impossible for the S32K1's VREFL and VREFH to reach such a high voltage.

 

I made a test demo according to your requirements. I tested the two internal channels VREFL and VREFH.

The values ​​I sampled were very stable.

0 项奖励
回复