Hi Amit Kumar,
I investigated the timing of the sensor, but found it can not meet the SSI spec that K20 can support , because K20's SAI module doesn't support gated clock mode, the clk outputs continuously, so I would suggest you using DSPI module instead. and you have to set CONT_SCKE = 0(Continuous SCK disabled.), CPOL = 0(The inactive state value of SCK is low.) , FMSZ=0xF, and CPHA = 1(Data is changed on the leading edge of SCK and captured on the following edge.), Please also note to simulate the timing, you have to read the data out as the following pseudo-code:
//Set SCK as GPIO , output high before initialize DSPI module;
init_Dspi();
while(1){
//Set SCK as SCK function
//read SPI
//Set SCK as GPIO, output high
}
Hope that helps,
B.R
Kan