What are the details of internal pin connection circuitry when connected as GPIO/IRQ vs ADC vs Comparator? Is there an internal pull down (what value)? Is there internal diode? ESD protection circuitry details? For example, I see different effects on my input signal when configured as IRQ with No Pull vs ADC.