In the "NRF51 Series Reference Manual" (v3.0) it states:
The LPCOMP shares registers and other resources with peripherals that have the same ID as the LPCOMP.
You must disable all peripherals that have the same ID as the LPCOMP before the LPCOMP
can be configured and used. Disabling a peripheral that has the same ID as the LPCOMP will
not reset any of the registers that are shared with the LPCOMP. Therefore, it is important to
configure all relevant LPCOMP registers explicitly to secure that it operates correctly.
See the Instantiation table in Instantiation on page 17 for details on peripherals and their IDs.
Note: The LPCOMP is using the same analog pins as the ADC. The ADC must be disabled
before the LPCOMP can be enabled.
And a bit before it states:
The selected analog pins will be acquired by the LPCOMP when it is enabled through the
ENABLE register.
So, from the documentation I see:
- ADC and LPCOMP do not share the same ID. So that is not a reason to disable ADC...
- Only selected analog pins will be acquired by LPCOMP, so we can use other pins for the ADC...
- ADC must be disabled completely...
What exactly is shared between LPCOMP and ADC? Is the mux for PSEL shared for example? Or can I only not use AIN0 when I use it already for ADC (which would be logical)? Or is it that I cannot do any LPCOMP stuff when I am doing ADC on a totally different pin?