This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AD1158 Channel data read direct command after reset

I configure the AD1158 for autoscan mode with 16 channels AIN0 to 15 enabled .( same as default values after reset).

I am creating a model of the AD1158 to use in my simulation environment.

I want to know how the channel data direct command is detected the very first time by the AD1158 device.

Shouldn't the SCLK toggle, with DIN tied to low/high with cs being low.

If the input to the device is as follows:

-----------------------------------------------------

1) Apply reset, de-assert reset after few us.

2) send rising edge on start pin

3) The AD1158 model sends the drdy_n low after the initial delay.

2) Toggle cs = 0, din is tied to low always

3) generate 24 cycles of sclk

4) What should i expect the device to send on the first sclk cycle?

Please help me understand.

Based on the datasheet, i understand, to model AD1158 behaviourally, I need to sample DIN for first three SCLK transitions and check for 000 or 111.I will start driving DOUT after the 8th falling edge of sclkor if the cs is toggled to 1 after 8 sclk cyles, I will drive DOUT when cs toggles back to 0.

Is it ok to assume channel data direct command on reset and start sending data from the very first sclk cycle.

Appreciate your response.