element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSOC4 low power mode conundrum
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 25 subscribers
  • Views 419 views
  • Users 0 members are here
  • psoc4100
  • psoc4
  • power
Related

PSOC4 low power mode conundrum

veffremov
veffremov over 10 years ago

I'm trying to explore the low power modes of the PSoc4 chip (4100) by cypress. I'm using the $4 dev kit, separated from the USB board. My only connection to the board is 5V power and ground via the J2 connector.

 

As minimal configuration I have added the P1.6 pin that drives the blue LED on the board and the P0.7 (Wake Up) pin that is connected to the button on the dev board. Th button pin is configured to trigger an interrupt, so it can be used as wake up source for the experiment. Please see the attached picture for details.

 

I'm measuring the power consumption with amp meter connected serially on the +5V power. My power source is a lab power supply. I wrote a small program that blinks the LED 5 times and puts the device to sleep. I was trying to experiment with the various sleep modes, however for the purpose of this discussion I'm using the "Stop" mode. The SWD port is configured as GPIO to save power.

 

In the minimal configuration, when the LED is blinking the power consumption goes from 5.6ma to 8.7ma, then when the device goes to sleep the power consumption drops to around 190uA - still pretty high, but withing the tolerances of my measurement device.

 

When I try to add an I2C master block to the device configuration, the things get weird. My SCB block is named "SCB" and mapped to pins 3.0 and 3.1. When powered on the device consumes about .8ma more, which seems normal, but when going to sleep it now consumes 1.3-1.5ma. The only thing different is the addition of the SCB block. If I add a second SCB block for RS232 mapped to port 4.0 and 4.1 and sleep mode consumption creeps to 2.3-2.8ma.

 

I can not figure out why the addition of these blocks adds to the power consumption in sleep mode, they are not connected to anything and should not affect the overall power consumption.

 

This is my minimal configuration:

image

This is the code that runs on the device:

 

#include <project.h>

 

int main()

{

    int cnt;

    isr_BTN_Start();

    isr_BTN_Enable();

    CySysPmUnfreezeIo();

#ifdef SCB_SCB_MODE   

    SCB_Start();

#endif

    CyGlobalIntEnable;

    for(;;)

    {

        for(cnt = 0; cnt < 5; cnt++)

        {

            LED_Write(1);

            CyDelay(1000);

            LED_Write(0);

            CyDelay(1000);

        }

#ifdef SCB_SCB_MODE   

        SCB_Stop();

#endif

        CySysPmSetWakeupPolarity(CY_PM_STOP_WAKEUP_ACTIVE_LOW);

        CySysPmFreezeIo();

        CySysPmStop();

    }

}

 

Th device wakes up when you press the button.

  • Sign in to reply
  • Cancel
Parents
  • boblant
    0 boblant over 9 years ago

    AN86233 - PSoCRegistered 4 Low-Power Modes and Power Reduction Techniques | Cypress this will help you with the low power modes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • boblant
    0 boblant over 9 years ago

    AN86233 - PSoCRegistered 4 Low-Power Modes and Power Reduction Techniques | Cypress this will help you with the low power modes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube