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.

TPS92682-Q1: What would be the response frame in case of write frame following read frame?

Part Number: TPS92682-Q1

In the datasheet for TPS92682-Q1, section 7.5.3 Response Frame there are three types of response frames
1. Read Response Frame: This frame is sent out by the TPS92682-Q1 following a read command
2. Write Response Frame: This frame is sent out following a write command if the previously received frame was a write command and no SPI Error occurred during that frame
3. Write Error/POR Frame: This frame is sent out by the TPS92682-Q1 internal digital block during the first SPI transfer following power-on reset, or following a write command with a SPI Error

My inquiry is, what would be the response frame format in case a write frame was sent to the TPS92682-Q1 following a read frame?

  • Hello,

    If you do a write to the TPS92682 then you will get a write response frame if there is no error.  If you do a read then you will get a read frame.  We don’t fully understand your question.

    Thanks Tuan

  • Hello Tuan,

    Given the described response frames mentioned before, assume the following sequence, and correct me if I am wrong

    1. master sends writeFrame_1   -->   slave responds with POR frame response (first frame after power up)
    2. master sends writeFrame_2   -->   slave responds with writeFrame_1 
    3. master sends writeFrame_3   -->   slave responds with writeFrame_2
    4. master sends readFrame_1   -->   slave responds with data read as per requested in readFrame_1
    5. master sends writeFrame_4   -->   what would be the slave response, then?
      1. writeFrame_4 is not a read frame, so the response is not read frame response
      2. writeFrame_4 does not induce SPI error, so the response is not write error frame response
      3. As per data sheet it shall not be a normal write frame response as it is "sent out following a write command if the previously received frame was a write command and no SPI error occurred during that frame". writeFrame_4 is transmitted following the read frame readFrame_1.

  • This is the correct reult for the commands that you've demonstrated. Note that in the result the 0x40 in the first byte indicates a write and a 0x60 in the first byte indicates a read.

    1. master sends writeFrame_1   -->   slave responds with POR frame response (first frame after power-up)
    2. master sends writeFrame_2   -->   slave responds with writeFrame_1 
    3. master sends writeFrame_3   -->   slave responds with writeFrame_2
    4. master sends readFrame_1   -->   slave responds with writeFrame_3
    5. master sends writeFrame_4   -->   slave responds with readFrame_1

    Write 0 to register 0x00 after POR

    Write 1 to register 0x00

    Write 2 to register 0x00

    Read register 0x00

    Write 3 to register 0x00

     

     

  • Thanks Lee, this clarified it all.