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.

AFE5832: AFE5832: Problem with reading / writing to DTGC registers

Part Number: AFE5832

hi

1) I have problem with writing and reading DTGCe, DTGCo registers for AFE5832, but I can read and write to all other registers (ADC, VCAe, VCAo)

I try to set TGC_WR_EN = 1 (global register 0b10000), next write to DTGCe, DTGCo registers.
Next I set DTGC_WR_EN = 0, REG_READ_ EN = 1, (global register 0b10), after it, I read ADC register as FFFF, and read some wrong values from VCAo and VCAe.

Please help how to read and write to DTGC registers?

I found a question post on TI's official forum that is the same as my current question

The following links:

e2e.ti.com/.../afe5832-problem-with-reading-writing-to-dtgc-registers

  • Hi Zhang,

    I am sorry for delay in reply.

    Please ensure the following:

    1. Ensure SPI_DIG_EN = 1 

    Based on previous experience, common reason for read fail is usually timing, I use small delay in between to make it work.

    I would recommend to go about it in the following sequence:

    • DTGC_WR_EN =1
    • write dtgc registors
    • delay()
    • REG_READ_ EN=1
    • delay()
    • read the register

    I think you are missing DTGC_WR_EN =1;

    If it doesnt work, try this:

    • DTGC_WR_EN =1
    • write dtgc registors
    • DTGC_WR_EN =0
    • delay()
    • REG_READ_ EN=1
    • DTGC_WR_EN =1
    • delay()
    • read the register

    I am also planning to test the same in this week, I will let you know my results as well. 

    Thanks & regards,

    Abhishek