Hello!
I have a VCC passive voltage divider with two 10K resistors. This is going to an input pin (RA4) on a PIC12LF1552 microcontroller. Connected to the same pin, I have the output of an MCP6002 (op amp). Basically I'm trying to use both functionalities at distinct moments in time. Sometimes I ADC-read the voltage coming from the voltage divider and other times change the pin to a digital input to read the digital op amp signal.
The problem comes when trying to read from the voltage divider. I should read half rail: i.e. VCC/2 nevertheless the op amp is actively pulling the pin low, so the ADC basically reads 0V. Knowing that it's some loading issue, that could be solved by placing an op amp voltage follower after the voltage divider or similar but I want to minimise component count and board space. A transistor solution might be OK.
Can this easily be solved? With a series schottky after the voltage divider or something similar?
Thanks for your patience.