S12ZVM ADC abnormality check

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

S12ZVM ADC abnormality check

773 次查看
pratibhasurabhi
Contributor V

Hi All,

I am using MC9S12ZVML128 MCU.

I want to implement the fail safe for ADC abnormality

Is there any functionality/feature available in MCU to check the ADC is broken and giving abnormal reading.

If such feature is not available then how can we check that ADC is abnormal.

Thanks in advance.

0 项奖励
回复
1 回复

732 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi pratibhasurabhi,

The ADC module reports errors in the ADC Error Interrupt Flag Register (ADCEIF).

Since the ADC commands and results are transferred from and to SRAM by the internal DMA, the MCU can correct single-bit ECC errors and detect double-bit ECC errors (ADC Status Register (ADCSTS) DBECC_ERR).

Double-bit ECC errors detection triggers a machine exception.

pastedImage_2.png

Also, please have a look at Section 1.13.1 ADC Calibration in the S12ZVM RM rev.2.13

Regards,

Daniel

0 项奖励
回复