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.

Write Registers in the ADS1298

Other Parts Discussed in Thread: ADS1298

 I'm using 3-channels of the ADS1298 (CH1, CH2 and CH3), below I attached the file which I wrote, please tell me if I am in the correct. The code is written for the microcontroller PSoC5 and I'm working on RDATAC mode. However, my question is about the opcode of the WREG command.

The first byte WREG command corresponds to the register address as stated in the datasheet, but I don't understand if it is necessary to write only once, as this in the code of the attachment. The first byte of the WREG command is 4xh. If I'm going to write all settings of the ADS1298, from address 01h to 19h.

Is it enough just to write the first byte of the WREG command in 41h before sending all the settings, and with this the ADS1298 would know that should read all the directions of all the registers?. Or otherwise, I should issue a WREG command for each register address?

And the second byte of the WREG command belongs to number of registers -1 that I want to write. If I understand this means that as I am going to write 25 registers then the opcode is 0x18. Am I right?...

One last question:
Are registers LOFF_STATN and LOFF_STATP such as read-only would not be necessary to write them?. And if so, then the command WREG from 41h to address, and 18h for the number of registers to write. Does it change in any way?

Best Regards,

Jeisson Andrés

  • Hi Jeisson,

    If you are going to program all registers of the ADS1298 in a contiguous fashion, you only need to send WREG once, followed by the number of registers you wish to set (-1).  For the read only registers, you would need to insert 'dummy' data (for example 0x00) to keep the indexing correct.  If you wanted to program register address 01 through 05, and then pick up again at say register address 10, you would break that up into two distinct WREG command sequences.

  • Hi Tom,

    Thank you very much ...

    Best Regards,

    Jeisson Andrés!