art Number: TM4C1294KCPDT
Hello,
C2- input has similar amplitude as C0- or C1- yet trips output high well under the external VREF C0+ (PIN0). C0-/C1- do not trip output Co0/Co1 high until the external shared threshold (C0+) is reached.
A brand new MCU firmware calling ConfigureComparator() via ROM or MAP configuring comparators the same. Signal to MCU pin 119 verified also cross connects to MCU pin 14 PE1 (AIN1) via 100 ohm series isolation resistor, should not be interfering with comparator C2- input. Typical configuration of all comparators Cn- inputs have 100 ohm series resistor individually leading also to AIN2, AIN5 respectively and those two work as expected. However C1+, C2+ inputs were left floating since (+ve alternate 1) input should be selected via firmware. Verified solid connections to MCU pins/pads and pin 119 (C2-) has 1.6 megohm to pin 118 (C2+).
When Co2 output is configured, internal current flow may feed from PWM0 GNE2 M2Faut pin and drive the threshold value lower on analog comparator 2? The 3 analog comparator outputs feed MnFault pins respectively. This configuration was previously tested via the EK-TM4C1294XL launch pad. However the three ADC0 inputs had 525 ohm to ground and no 100 ohm isolation resistor between Cn- inputs and ANIx channels.
Why does C2- refuse to follow external VREF as C0-/C1- does so well with isolation between Cn- inputs and ANIx channels or is that in any way related?
MAP_ComparatorRefSet(COMP_BASE, COMP_REF_OFF); MAP_ComparatorConfigure(COMP_BASE, 0 , (COMP_ASRCP_PIN0 | COMP_OUTPUT_INVERT)); MAP_ComparatorConfigure(COMP_BASE, 1 , (COMP_ASRCP_PIN0 | COMP_OUTPUT_INVERT)); MAP_ComparatorConfigure(COMP_BASE, 2 , (COMP_ASRCP_PIN0 | COMP_OUTPUT_INVERT));