I have following sequence with an extar read:
void ads8866_Measure(ads8866_t * me)
{
if (me)
{
/* Trigger ADC by rising edge on pin CONVS, 3wire mode, pulse with a Twidth min. 500ns */
Gpio_SetPins(me->convsPort, me->convsPinMask);
Gpio_ResetPins(me->convsPort, me->convsPinMask);
/* Extra Read value - 2 bytes */
Spi_Read(me->spi, &me->rawValue, 1);
/* the read procedure is executed for the second time to sample the expected value */
/* Read value - 2 bytes */
Spi_Read(me->spi, &me->rawValue, 1);
}
}
Why I need this extra read?