element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 PSoC 4 Pioneer Kit Community Project#095 – Hibernate and Stop Power Modes
  • 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
  • Replies 4 replies
  • Subscribers 27 subscribers
  • Views 816 views
  • Users 0 members are here
Related

PSoC 4 Pioneer Kit Community Project#095 – Hibernate and Stop Power Modes

cy.wbz
cy.wbz over 11 years ago

Hello!

 

In today’s example we are showing users how they can use the PSoC 4 to enter and wake up from hibernate and stop modes. The example also shows the user how to retain SRAM variables in hibernate mode. The project uses the UART which allows the user to send a command to increment a variable, or enter hibernate and stop low power modes. Hibernate and Stop modes can also be entered using the same switch during active mode.

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Project Images

 

Components Used: 

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • UART
  • Comp
  • CyPins
  • ISR
  • Global Signal Reference

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

In the main function, the PSoC 4 checks for the source of reset (Hibernate or Stop) and initializes components accordingly. The example then reads the command from the UART terminal and executes it.

 

The example will accept a set of UART commands to perform actions:

  • ‘I’ – Increments the SRAM variable
  • ‘D’ – Decrements the SRAM variable
  • ‘H’ – Enters Hibernate power mode
  • ‘S’ – Enters Stop mode

 

The SRAM variable retains its value when it wakes up from hibernate mode and is reset when the device wakes up from Stop mode.

 

To enter lower power mode from active mode without using the UART communications follow the wakeup switch procedure for various modes:

  • Press the switch to enter hibernate mode from active mode.
  • Press and hold the switch to enter stop mode from active mode.

 

The Lower Power Comparator interrupts are used as wakeup sources to bring back the device from hibernate mode. The dedicated wake-up pin P0.7 is used as a wake-up source to bring back the device from stop mode.

 

image

 

Hardware Connections:

 

In this example we will need to connect our UART pins from the PSoC 4 P0.4 and P0.5 to the PSoC 5LP P12.6 and P12.7 pins.

 

Connect the DC voltage to the inverting terminal of the Low Power Comparator P0.1.

 

Connect P1.5 to an oscope.

 

image

 

Test Your Project:

 

Program the board and launch the hyperterminal application and begin communicating with the PSoC 4. Use the comparator and push button inputs to control the power modes.

 

image

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
7360.Project Images.zip
Hibernate_and_Stop_PowerModes01.zip
  • Sign in to reply
  • Cancel

Top Replies

  • melmoth16
    melmoth16 over 11 years ago +1
    Hello Matt, Thank you very much for all your work and projects. I am a PSoC user since 2009 and I was pleased reading your projects everyday Best regards Vincent
  • jesusantoniocar
    jesusantoniocar over 11 years ago

    Hello Matt.

    Thanks for this project.

    The PSoC 4200 family allows two distinct modes of power supply operation: Unregulated External Supply, and Regulated External Supply modes.

    Unregulated External Supply
    In this mode, the PSoC 4200 is powered by an External Power Supply that can be anywhere in the range of 1.8 to 5.5V.

    Regulated External Supply
    In this mode, the PSoC 4200 is powered by an external power supply that must be within the range of 1.71 to 1.89 V (1.8 ±5%).

    Best regards,

    Jesus Antonio

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • melmoth16
    melmoth16 over 11 years ago

    Hello Matt,

     

    Thank you very much for all your work and projects. I am a PSoC user since 2009 and I was pleased reading your projects everyday

    Best regards

     

    Vincent

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • DAB
    DAB over 11 years ago

    Hi Matt,

     

    I like the option for keeping the programmable hardware components working while the CPU is in sleep mode.

     

    That capability enables a lot of options for monitoring devices and preserving power.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.gul
    cy.gul over 11 years ago

    Precisely! With its multiple low-power modes and the different hardware resources available in those modes, PSoC 4 gives the designer very fine control over resource usage and optimization.

    What's impressive are the 20 nA Stop mode (non-retention) and 150 nA Hibernate mode (with retention). In the Hibernate modes, you have low-power comparators that can still be active, and GPIO that can retain their states as well.

     

    Here's a quick overview of PSoC 4's power modes, for full details please refer to the device datasheet.

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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