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.

ADS7953EVM-PDK: Register addressing for SPI communication

Part Number: ADS7953EVM-PDK
Other Parts Discussed in Thread: ADS7953,

Hi Team,

I want to interface this module with my main controller via SPI communication. The data sheet available on the website doesn't contain any information related to Register addressing for SPI communication. Please help. 

Thanks. Regards

Mihir

  • Mihir,



    Most of the programming is covered in the section on "Device Functional Modes". There are a series of flow charts that show the programming involved in using the device in Manual mode, Auto-1 mode, and Auto-2 mode. The later "Programming" section describes programming in GPIO registers, and alarm thresholds for GPIO pins.

    Note that I'm talking about the ADS7953 datasheet, not the user guide for the ADS7953EVM-PDK (in case that's where you were looking for information). Here's a link to the datasheet:

    www.ti.com/.../ads7953.pdf


    Joseph Wu
  • Hi Joseph,

    Thanks For the data sheet. As mentioned in the datasheet there are two registers for configuration
    1. Mode control register
    2. Program register
    I am not able to understand the data which I will send over spi will be written to Mode control register or program register.
    e.g. Let’s say I want to write to the mode control register, then do I need to first send the address of that register and then send the data? is this the way?
    Please give more clarity on this, because the datasheet provides only the register details but no information on address of the registers or details of writing to a particular register.
  • Mihir,


    The "address" is really embedded in the first four bits of the register. When you write to the device, you write in groups of 16 bits.

    For example, if you want to operate the device in Auto-1 mode, you would start by writing the program register setting for Auto-1 mode. This would be a 16 bit word starting with 1000 (DI15-12) as shown in Table 3.

    Then you would write to the control register setting for Auto-1 mode. This would be another 16-bit word starting with 0010 (also DI15-12) as shown in Table 2.

    All transactions would be 16 bits and the addressing is the first four bits. You can see this in Figure 1 of the datasheet as the transaction for programming the device, like the first four bits indicate the state of a state machine.


    Joseph Wu

  • Thanks a lot Joseph.