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.

ADS8691: how to read register value of bit[0:15]

Part Number: ADS8691

Dear expert,

May I learn from you about how to read register value of bit[0:15]?

I only find <Read_HWORD> comment from datasheet table5. 

Thanks.

Regards,

Ben

  • Hi Ben,

    Here is an example to use READ_HWORD command to read the 16-bit of ALARM_H_TH_REG Register:

    (Byte 0 Address for bits 7-0 = 24h, Byte 1 Address for bits 15-8 = 25h, Byte 2 Address for bits 23-16 = 26h, Byte 3 Address for bits 31-24 = 27h)

    1. Use Read_HWORD command to read the 16-bit (0~15 bit) of register:

                 Data frame:         <11001_xx> <0_0010_0100><00000000><00000000>

    1. Use Read_HWORD command to read the 16-bit (16~31 bit) of register:

                 Data frame:         <11001_xx> <0_0010_0110><00000000><00000000>

    Please note:

    1. A “0” should be added prior to the address to have a 9-bit address: 0_0010_0100b for address 24h.
    2. LSB of the 9-bit address is always ignored and considered as 0b.
    3. To write/read both byte 0 and byte 1(or byte 2 and byte 3) in one command, the low byte address (byte 0 or 2) should be used. If the address of byte 1 or 3 is given, the LSB (bit 0) will be ignored, because it is a 16 bit address now.
    4. HWORD commands can be only written to the addresses of byte 0+byte 1 or byte 2+byte 3 and so on. They cannot be used for byte 1+ byte 2.

    Thanks&regards,

    Dale