ul-gh / PiPyADC

Python classes for interfacing Texas Instruments analog-to-digital converters with the Raspberry Pi
GNU Lesser General Public License v2.1
69 stars 27 forks source link

QUESTION: Default configuration BUFFER_ENBALE limits range #35

Open leloup314 opened 1 year ago

leloup314 commented 1 year ago

The default configuration currently defaults to the status register being set to BUFFER_ENABLE a.k.a 0x02. This enables the buffer and limits the ADC input voltage range to 0 - VDDA - 2V. Is there a good reason to do so?

Browsing a couple of issue here, it seems that a handful of users report this as an issue before figuring out that the respective bit in the status reg needs to be 0 for 0 - VDDA operation.

I would argue, that the buffer should be disabled as a default option (if there are no other reasons for it to be enabled). This is also what currently is written in the default config docstring here but in reality it is enabled here