Step by step I'm trying to take confidence with my ADS1262. Now it's time for SYOCAL1.
- at first, I set Gain & SPS:
ADS126xWriteRegister(MODE2, DR_1200_SPS+GAIN_32);
I read my register and everything is OK
-then I set AIN0+ e AIN1-:
ADS126xWriteRegister(INPMUX,0x01);
-CS and SCLK are LOW:
ADS126xSetCS(0); HAL_GPIO_WritePin(GPIOB, GPIO_PIN_10, GPIO_PIN_RESET);
-Finally I sent SYOCAL1 (0x16) by SPI2
uint8_t reg_address=0x16; while(hspi2.State == HAL_SPI_STATE_BUSY); HAL_SPI_Transmit( &hspi2, ®_address, 1, 0xffff); HAL_Delay(3000);
Now, if I read the Register Map, I can see all my parameters set correctly, with the exception of OFCAL0-1-2 (0x07-0x08-0x09), all equal to zero.