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.

ADS131M02: ADS131M02 I could not write a register

Part Number: ADS131M02

Tool/software:

 

Hello

I have a question. I want to use ADS131M02, I could make read register program, but I could not make write program. The figure below shows , address 4 register  I wrote 0x0077,but I read an address 4,not become 0x0077. become 0,not change.

I did download sample program, I could not find a correct way.

for example, while(SSIDdataGetBlocking(SSI_BASE_ADDR,&junk); I don't know what this function does. I understand the need for it, but it doesn't seem to be described in the manual.

Why I could not  write?  if you find a reason, could you explain for me a little voice. 

Sincerely,

hiroshi  

  • Hi hiroshi,

    Is your data word length default 24-bit or 16-bit you have changed? I believe your word size is 24-bit if you look at your 2nd timing and ignore the unexpected narrow pulse on /CS. If your word size is the default 24-bit, you are writing 0x7700 to the GAIN1 register which is not a valid register data for the GAIN1 register. Also, your may have to check your code to see why an unexpected pulse on /CS was sent out by your microcontroller.

    BR,

    Dale

  • Hi Dale Li

    Thank you for  your teaching.

    word length is default 24bit.I am going wrote 0x0077,not 0x7700,I need write 0x000077? 24bit length?

    Sincerely,

    hiroshi  

  • Hi Dale Li

    Thank you for  your teaching.

    I wrote address1 register  24bit -> 16bit length chage,

    I wrote address4 register  0x0077,then I could get 0x0077 register data!

    Thank you for your advice!

    Sincerely,

    hiroshi