I thought though that for the ADC to work, the pin had to be enabled - this may be my misunderstanding, to be honest, but then if the ADC does work without pin configuration from a power cycle, given I have to dynamically configure the pin from being a digital input with pulldown (for the initial touch detect) how do I get the pin back to its original power on state which is high impedance. Do I have to directly interact with the.GPIO control register?
Because once the pin has been configured as an input it very definitely DOES interfere with the ADC, this is where a chunk of my bank.holiday weekend went trying to track down the problem I saw.
Also even if this works, what about the digital input scenarios involving irqs etc where the 'enable the pin then read then disable' scenario won't work. Also isn't the pin transiently a non linear input impedance even when briefly enabled?
Because once the pin has been configured as an input it very definitely DOES interfere with the ADC, this is where a chunk of my bank.holiday weekend went trying to track down the problem I saw.
Also even if this works, what about the digital input scenarios involving irqs etc where the 'enable the pin then read then disable' scenario won't work. Also isn't the pin transiently a non linear input impedance even when briefly enabled?
Statistics: Posted by ajay_m — Tue Aug 27, 2024 6:04 pm