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.

CC1101 CHIP STATUS BYTE

Other Parts Discussed in Thread: CC1101

Hello,

i am working on microcontroller interface of cc1101 with msp430. suppose if i write the address of a register to cc1101 on the spi bus, then what will the trx send back on spi - will it be the chip status byte or the content of the register whose address i have sent?

regards,

abhishek 

  • Hi,

    Please see chapter 10.1 in the CC1101 data sheet

    "When the header byte, data byte, or command
    strobe is sent on the SPI interface, the chip
    status byte is sent by the CC1101 on the SO pin."
    The register access is explained in chapter 10.2
  • just to confirm, so whenever i sent in a header byte to read the status of a register (its contents) then cc1101 will first send in the status byte and then the content of that specific register?

    regards,

    abhishek

  • Hi,

    When reading from registers, the status byte is sent on the SO pin each time a header byte is transmitted on the SI pin. In order to read a register value a dummy byte must be transmitted (in order for the SPI clokc to run), see below.

        addr |= burst_bit_val | read_bit_val;     /* set read and burst bit as wanted */

        /* send register address byte, the read/write bit is already configured */

        SPI_WRITE_BYTE(addr);

        SPI_WAIT_DONE();

        /*  Send the byte value to write.  If this operation is a read, this value

         *  is not used and is just dummy data.  Wait for SPI access to complete. */

        SPI_WRITE_BYTE(writeValue);

        SPI_WAIT_DONE();

        /*  If this is a read operation, SPI data register now contains the register

         *  value which will be returned.  */

        readValue = SPI_READ_BYTE();

    There is a lot of sample code available from ti.com for CC1101.