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.

HAPTICS-CONSOLE: Question of the Register Sniffer Format

Part Number: HAPTICS-CONSOLE
Other Parts Discussed in Thread: DRV2624EVM-CT

Hi Sirs,

May I have your suggestions of the Haptics Control Console with the DRV2624EVM-CT attached?

1. The I2C sniffer sends "s 5a 7 3 1" at the first line. Would you pls advise the meaning of the prefix "s"?



2. The HCC writes "w 5a 10 a6" and "w 5a 12 a3" before read commands. Why do we need to write those two wait commands?
3. What is the meaning of the "r 5a 0 (0)"? Read register 0x5a, register 0x00"? What is the meaning of "(0)"?



Thank you and Best regards,

Wayne Chen
11/30/2017

  • Hey Wayne,

    1. The "s" prefix indicates a "select" from the user on the haptic control console GUI. 

    In your example, "s 5a 7 3 1" the break down is [command] [slave address] [register] [max value for setting] [new value]

    Of the available choices for bits [1:0] of register 7, 0 is RTP mode, 1 is Waveform Sequencer, 2 is Diagnostics and 3 is Automatic Level calibration. The command on the register sniffer means that the Waveform Sequencer was chosen out of the 4 options. On the I2C lines, this corresponds to reading the register and then writing to the register. 

    2.)

    Did you hit "read" on the register map for this operation? The wait commands might be left over from a previous operation, you can clear the Register Sniffer and then read again to see if the wait commands are still there. If they are, can you provide more information about when the read operation was performed? 

    3) 

    I believe the (0) just means the read was performed correctly and there was no error, but I need to double check with colleague for that. 

  • Thank you Micah, Regarding to my question 2, yes, I hot the READ button on the left corner....Wayne Chen
  • You're welcome! Thanks for reaching out. I think the wait commands are from a previous operation then, whenever I read the registers there are no write commands.

  • Hello Micah,

    Thanks a lot. Addition, can I say that "s 5a 7 3 1"="w 5a 07 89" in this case? And we use "s" command to patch specified bit in a register.



    Wayne Chen
    12/04/2017

  • Wayne,

    Correct, "s 5a 7 3 1" will first read register 7 and then write to it, so essentially it is "w 5a 07 89" in this case. That is the command you will see if you probe the I2C lines. As a side note for anyone else reading this, 89 is in hex so it is writing a decimal value of 137 to register 0x7 as you can see on the HCC register map in Control1. If you'd like, you can change the "value" column from decimal to hex by selecting the "Hex" icon next to the register map in the top left corner of the screen.