Hi,
I'm actually working on the ADS1248 ADC. For my application i need a high level on the pin 14 ( AIN5/GPIO5). The SPI work well, i can read/write registers but i have difficulties to setup the GPIO5 to output high level state.
Here my procedure :
- Reset the chip by pull down the reset pin during 10ms
- Wait 1s
- Pull start pin to high
- Wait for DRDY falling edge
- Send SDATAC cmd
- Wait for DRDY falling edge
- Write GPIOCFG to 0x20 (GPIO5 bit set to 1 to use the pin as a GPIO )
- Write GPIODIR to 0x00 (GPIO5 bit to 0 for output mode)
- Write GPIODAT to 0x20 (GPIO5 bit to 1 for a high level)
Bellow traces of the SPI communication. I think I forget something but I do not know what.
Best regards
Thomas
SDATAC cmd :
WREG