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.
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.
Also, please have a look at Section 1.13.1 ADC Calibration in the S12ZVM RM rev.2.13
Regards,
Daniel