• 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 Bluetooth® Low Energy & ANT Forum » a strange problem of CC2541‘s I/O
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

a strange problem of CC2541‘s I/O

a strange problem of CC2541‘s I/O

This question is not answered
yt
Posted by yt
on Aug 21 2012 00:54 AM
Intellectual310 points

HI

Today I found a strange problem of CC2541' I/O

on one of my CC2541 prototype board,I have to try to P1_2 become output and output low level by following word:

P1SEL &= ~(1<<2);
P1DIR |= (1<<2);

P1_2 =0;

i have to try to step tracking the program,and i found when the program run to the P1_2 =0 ;

the program run unexpected 

I change another board ,the program run well

i do not know what is the reason

Am I so bad luck……

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • hec
    Posted by hec
    on Aug 21 2012 02:47 AM
    Expert8070 points

    Maybe you have a short on the failing board so that P1_2 is connected to VDD. In that case, it will work fine until you set P1_2 low, but then you will get a large current draw that could cause your supply to go below 2 V and the chip to go into brown-out reset.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yt
    Posted by yt
    on Aug 21 2012 03:49 AM
    Intellectual310 points

    Hi hec

    Thank you for your reply,and i agree with you .

    But this does not explain the problems I encountered.

    my SCH is followed:

    when the key was pressed,the net “ON” ’s level is high,It will lead to Vbat equal to Vcc

    then system is starte ,and pull P1_2 to High by program。

    the P1_1 was configed input and when P1_1 is High ,the key was pressed 

    When the double-click is detected ,pull P1_2 to low level ,then Vcc equal to gnd

    But this is just the aim of my design, but actually is not so.

    when the program run to the P1_2 =0, the program run unexpected.

    But if I remove the diode "D100",I manually pulled the “ON” net ,the program work well.

    i do not know what is the reason,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • hec
    Posted by hec
    on Aug 21 2012 04:17 AM
    Expert8070 points

    If I understand the schematics correctly, setting P1_2 low will set the ON pin on TPS22929x low, causing the supply to the CC2541 to be disconnected. When you lose the power to the device, the debugger will stop working and may show wrong information (such as indicating that the device is running). Note that when the supply of CC2541 is removed (set to GND), no I/O pin on the CC2541 should be high, as that could cause current draw (in general, I/O should never be more than 0.3 V over the VDD pins of CC2541, see the absolute maximum ratings section of the data sheet). If you connect the debugger while disconnecting the supply, this could happen.

    This mans that when testing power-off initiated from the CC2541, you need to run without a debugger.

    You wrote that the program ran well on another board. Is this a prototype board of the same kind? If so, I would be surprised, as you should lose the debugger connection when you power down the chip.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yt
    Posted by yt
    on Aug 21 2012 04:37 AM
    Intellectual310 points

    Hi Hec

    thank you for you reply

    on another board ,the diode was removed 。In I just sent the first post ,I have not found this problem with that diode

    now on the two board,if remove the diode it work well 

    so i do not know what is the reason ,

    Is my schematic unreasonable?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • hec
    Posted by hec
    on Aug 21 2012 06:39 AM
    Expert8070 points

    I am no HW expert, but I think the diode may give you a problem. When the CC2541 is powered down, the voltage will decay gradually (due to capacitance on the supply). When the BOD (brown-out detect) threshold (somewhat under 2.0 V) is reached, the chip goes into reset, and the I/O pins go to pull-up. This means that the ON pin goes high again since the diode isolates it from the pull-down. I think removing the diode (i.e. shorting it) should work. You may have to increase the pull-down a little (reduce the resistance) in that case to ensure ON is held low until the supply to the CC2541 has gone low. This will increase the current consumption slightly while the chip is on.

    Have you considered if you even need the TPS22929x? The current consumption of CC2541 while in PM3 is very low, only 0.5 uA, which is not much more than the 0.2 uA of TPS22929x. If this is acceptable, you can go to PM3 when the system is off, and connect the power switch to an I/O in order to switch the circuit back on.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • BugKing
    Posted by BugKing
    on Aug 21 2012 12:36 PM
    Prodigy630 points

    yt,

    Have you probed P1_1 when the double click occurs to be sure that it is going low as you expect?  If P1_1 is configured as an input with pull up enabled then it will still stay high even if Vbat is disconnected.  Could this be why the program only works when you manually pull P1_2 low?

    Regards,

    BK

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yt
    Posted by yt
    on Aug 21 2012 22:43 PM
    Intellectual310 points

    HI hec

    thank you for your reply

    I measured   Vcc and P1_2 with an oscilloscope

    I do not see the VCC voltage has dropped, and the P12 does not go low level

    Although I think your analysis looks very reasonable,

    if I remove the diode, the KEY (i.e. P1_1)can not work properly,because P1_2 will pull P1_1 High,and the key is active when the P1_1 is High 

    The reason of I use the TPS22929 is the product we design is powered with battery and run BLE 1.2.1 。 we only wake up the MCU by sleep time not the external 

    interrupt ,and if CC2541 goes to PM3,it can only wake up by key or another external interrupt

    And we measured the PM3‘s current ,it is hard to achieve to 0.5 μA so low

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yt
    Posted by yt
    on Aug 21 2012 22:53 PM
    Intellectual310 points

    Hi BugKing

    Thank you for your reply.

    Because P1.0 and P1.1, which do not have pullup/pulldown capability.

    so i add the pulldown Resistance R102 

    I have probed P1_1 、P1_2 and Vcc ,Everything looks normal, except P1_2 can not properly be pulled down

    but if i remove the diode ,everything work well

    Regards

    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