Tool/software:
Hello,
After initializing the ADCs through the ADC_Control (REG2E) register, I perform the reading with a Python script of the registers that should provide voltage and current bus values, specifically:
-
REG3B_VBAT
-
REG33_IBAT
-
REG3D_VSYS
-
REG35_VBUS
-
REG31_IBUS
-
REG37_VAC1
-
REG39_VAC2
-
REG_TS
The strange behavior is that all of these registers return the value 0x00, except for VBUS, which provides the correct voltage value.
The configuration in ADC_Control is 0b10000000
or 0x80
to enable the ADCs. I also tried with other configurations, but the result is the same.
I’m attaching the code for more context. Thanks in advance.
https://drive.google.com/file/d/12kCFWaQhrlKhrKGRijZ-SSX7I3gXChDV/view?usp=sharing