2019-01-24 08:43 PM
Two questions:
(1) If I want to poll the status register instead of using interrupts, and don't want to use the FIFO, is the following initialization sequence sufficient?
uint8_t cmd ;
GYRO_IO_Init() ;
// Enable Block Data Update and full scale = 2000 dps
cmd = 0xA0 ;
GYRO_IO_Write(&cmd, GYRO_CTRL_REG4, sizeof(cmd)) ;
// Use output from high-pass filter
cmd = 0x02 ;
GYRO_IO_Write(&cmd, GYRO_CTRL_REG5, sizeof(cmd)) ;
// Enable X, Y and Z channels
cmd = 0x0F ;
GYRO_IO_Write(&cmd, GYRO_CTRL_REG1, sizeof(cmd)) ;
(2) Am I correct to assume that a set of new XYZ data becomes available (by default) every 10 msec (100 Hz), meaning that the GYRO_ZYXDA_FLAG of the status register is set once every 10 msec, and reset when the dataset is read?
Thanks!
Dan