Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC1200: CC1200 write to register and reading back value not working

$
0
0

Part Number:CC1200

Hi,

I am trying to verify that the read and write functions are operating correctly and it appears as if they are not.

I've read through some of the similar forum posts relating to this issue and I have tried to implement those solutions.

The two items specifically I am referencing are:

1. When the CC120xEM is removed from the TRXEB board and connected to a controller via the 8 through holes, the reset line must be manually connected to VDD.  I made this connection through a 6.8k ohm resistor.

2. When trying to read back the value assigned to an address, when in master mode, a dummy byte must be sent in order to allow the master to clock out the value.  I have done this by sending a "dummy_byte = 0xAA;"

The current program flow is quite simple:

1. Strobe status (0x3D)

2. Write a value of 0x09 to 0x01 (CC120X_IOCFG2)

3. Strobe status (0x3D)

4. Read value assigned at address 0x09 (CC120X_IOCFG2)

5. Send dummy byte to allow master to clock out the response (0xAA)

6. Strobe status (0x3D)

I have attached the output from a logic analyzer to show the exact timing diagram of the above listed process.

The expectation is that the returned value on MISO when 0xAA is sent should be the previously written value of 0x09, however a value of 0x00 is returned.

Writing commands are completed as follows:

uint8_t status = 0;

while(SPI0SR_SPTEF != 1);

SPI0DR = (RADIO_WRITE_ACCESS|RADIO_SINGLE_ACCESS|CC120X_IOCFG2);

while(SPI0SR_SPTEF != 1);

SPI0DR = 0x09;

status = SPI0DR;

return status;

Reading commands are completed as follows:

uint8_t status = 0;

while(SPI0SR_SPTEF != 1);

SPI0DR = (RADIO_READ_ACCESS|RADIO_SINGLE_ACCESS|CC120X_IOCFG2);

status = SPI0DR;

while(SPI0SR_SPTEF != 1);

SPI0DR = 0xAA;

while(SPI0SR_SPTEF != 1);

status = SPI0DR;

return status;

Questions:

1. What is the difference between a status byte value of 0x0F and 0x00?

2. How do I get the CC1200 to respond to queried commands?

I'm happy to provide any additional information, please just let me know if  you have any questions.

Thanks.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>