Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > How to implement 15 minute timer? (PSoC 3/5)

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



How to implement 15 minute timer? (PSoC 3/5)
Moderator:
RKRM

Post Reply
Follow this topic



How to implement 15 minute timer? (PSoC 3/5)

sjac14 posted on 17 Mar 2011 1:41 PM PST
Member
6 Forum Posts

The purpose is to monitor an incoming digital signal.  If there hasn't been a high signal in 15 min then it should set an output pin to high.

We want a 15 min timer to be reset if a digital input Pin is high.  If the timer reaches 0 then set a different digital Pin to high.  This digital pin should be the input to some other logic (the reset on an SR latch)

Ideally we would take advantage of the sleep mode of the PSoC 3/5 as well.

Please comment with any ideas/solutions.

Thanks




Re: How to implement 15 minute timer? (PSoC 3/5)

U2 posted on 19 Mar 2011 12:36 AM PST
Cypress Employee
589 Forum Posts

Hi,

  • You can use the Timer Component to develop the 15 minute timer. By choosing an appropraite clock input to the Timer and appropraite Period value, you can set the tmier to generate a terminal count interrupt. Once the Timer reaches its terminal count, an interrupt will be generate to indicate the completion on time period.
  • Same can be achived using Sleep Time as well. The Sleep Timer component is capable of generating an interrupt every 4096ms, 2048ms, 1024ms and so on. The device can be put to sleep or it can stay active and run the Sleep Timer, and it can be configured to generate and interupt every 4096 ms. During every interrupt a counter variable can be incremented. Once the counter reaches a count of 220(equivalent to 15 mins) the digital pin can be set high. However a point to be noted with Sleep Timer is the tolerance of the clock being used. The Sleep Timer uses the ILO, the tolerance value for the same can be obtained from the datasheet.
  • The input pin being monitored can be connected to an Interrupt Component . When the Pin goes high, interrupt will be generated and in the interrupt , the digital pin connected to the logic(SR latch) can be set to high and Timer can be reset.

 

-Udayan






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS 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. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

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 and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers 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.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20