• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Hardware & Tools Forum » CC1101 SPI read problem
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

CC1101 SPI read problem

This question is answered
MGL
Posted by MGL
on May 14 2012 05:11 AM
Prodigy100 points

Hello,

I am trying to read a register on the CC1101 over SPI.

Unfortunately I do not seem to be getting a valid response back when I read from the part number and version number registers (0x30 and 0x31).

I have monitored the comms with a scope and the commands in and clock and CS seem correct, but I am only getting the status byte back twice.

To read I am transmitting 0xb1 then 0x00 (the 0xb1 has been reversed so I am actually writing 0x8d). I would expect 0x0f returned and then the partnumber, but I am getting 0x0f, 0x0f.

I can confirm thae the ~CS pin is held low for the entire two byte transmission time.

Any ideas?

Thank you

Matt

# CC1110 #CC1111 design SPI
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Martin B
    Posted by Martin B
    on May 14 2012 07:43 AM
    Expert6255 points

    Hi Matt

    I'm not sure I understood what you are actually transmitting, but if you want to read a status register from the CC1101 you need to set both the read and the burst bit in the header byte. If you want to read the part number register you have to transfer 0xF0 over the SPI and 0xF1 for the part version register. See attached image

    Best regards

    Martin

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
     button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MGL
    Posted by MGL
    on May 15 2012 03:43 AM
    Prodigy100 points

    Hello,

    Thank you for your response. I didn't realise I needed to set the burst bit. I have set by transmitting 0xf1, as shown in your diagram.

    Unfortunately I am still getting an incorrect response from the CC1101: -

    Any ideas?

    Thank you

    Matt

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin B
    Posted by Martin B
    on May 16 2012 01:58 AM
    Expert6255 points

    What frequency is your SPI running on? It is a little hard to tell from your plots. Be sure to follow the timing requirements stated in Table 22 of the datasheet. Also, from what state are you trying to read the registers (IDLE, TX, RX PWD)?

    Do you get the same response independent of which register you are trying to read? What about command strobes, are you able to send them and get a correct status byte in return?

    Best regards

    Martin

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
     button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MGL
    Posted by MGL
    on May 16 2012 06:02 AM
    Verified Answer
    Verified by MGL
    Prodigy100 points

    Hello,

    Thank you for your help I have got to the bottom of the problem. I was outputting data on the wrong clock phase.

    However, you did prompt me to look at my operating frequency, I was running incredibly slowly, so I've improved the CLK rate.

    Matt

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • or sam
    Posted by or sam
    on May 17 2012 02:36 AM
    Intellectual690 points

    Hi

    I have similar problem and runnig in 1MHZ what was your low freq?

    Thanks,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin B
    Posted by Martin B
    on May 18 2012 01:58 AM
    Expert6255 points

    Hi

     

    The CC1101 will support SPI traffic at 1 MHz. As I told Matt be sure to follow the timing considerations statet in table 22 in the datasheet.

    Best regards

    Martin

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
     button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MRC
    Posted by MRC
    on May 18 2012 08:15 AM
    Expert4925 points

    Hello Or,

    Can you send a picture of your test set-up as well. In one of your previous posts you mentioned 0.5m long cable on the SPI line. Did you try with shorter connection ?

    -M.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • or sam
    Posted by or sam
    on May 20 2012 02:21 AM
    Intellectual690 points

    Hi

    I havent tried with shorter wires thos because when testing the signals with a scope I havent saw differences in signals from the MCU and on the cc1101.

    The MCU I am using is 2818.t0008_efm32_g8xx_stk_user_manual.pdf. as you can see in page 14 pd0-4 are the SPI interface.

    they are conncted in the MCU first 4 pins gdo0 and 2 are the pb11 and pb13.

    the 1 and 20 pis (red and black) are 3.3 V dc.

    in any case I will try to shorter the wires but I do nt belive it will solve the problem, if it will I will tell you today - if you want see any other post after this it hasnt solved the problem.

    Thank you very much.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use