S32K146 ADC

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

S32K146 ADC

1,378件の閲覧回数
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 返答(返信)

1,340件の閲覧回数
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 件の賞賛
返信

1,352件の閲覧回数
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 件の賞賛
返信