QCan an open/short on an ADC input or external reference input be detected? I
want to be sure that wiring issues can be detected in my application.
AThe ADuCM360/361 provides 2x 50uA diagnostic current sources. When switched
on, these current sources can be selected to output current on any ADC input.
a.To detect a short:
Enable the current source to connect to one of the inputs.(For example,
ADC1CON[11:10] = ) Normally the ADC result should be 50uA*R1. If a short is
the ADC result will be ~0V.
b.To detect an open connection to an ADC input:
Enable the current source to two Analog input pins: (For example,
ADC1CON[11:10] = )
Normally, the ADC result should be 50uA*(R1.-R2)
If the ADC result is larger than even the worst case matching of R1 and R2, an
open connection is detected.
c.An error on the external reference inputs is detected using the DETSTA
This bit is set to 1 if the external reference source connected to VRFE+/VREF-
is <= 400mV.
Note, this bit is not valid for the EXTREF2IN+/EXTREF2IN- inputs.