Other Parts Discussed in Thread: ADS1261, ADS1262, ADS1261EVM
Hello,
I'm having trouble trying to use both the GPIO and ADC functionality.
#define GPIO_PIN 0b00011110
#define GPIO_DIR 0b00000000
#define GPIO_DAT 0b00001100
#define B_MUX 0b00001010
I'm setting the above registers (INPMUX is being set to B_MUX above), enabling status, setting the ADC is Pulse Mode, and sending a read command every 5 ms. I parse the returned status byte and read the value if the ADC1 bit is set Everything works if I don't set any of the GPIO registers after bootup. Setting the GPIO_DAT register to 0b00011110 slows down the ADC quite a bit, but I still get a new data point every 3 seconds,
But when I set the GPIO_DAT register to 0b00001100 or 0b00010010, I stop getting any new data from the ADC. The GPIO is being used to control the gate voltage on two FETs.
I'm not sure how to proceed, please let me know if you need any additional information.