S12ZVM ADC abnormality check

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVM ADC abnormality check

576 Views
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 Kudos
1 Reply

535 Views
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 Kudos