You are here

PSoC wake up from sleep and executing interrupt at 1 second | Cypress Semiconductor

PSoC wake up from sleep and executing interrupt at 1 second

Summary: 7 Replies, Latest post by George Mois on 15 Sep 2015 04:32 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
George Mois's picture
User
44 posts

Hello,

  I would like to ask if there is a possibility of waking up the PSoC from sleep using an interrupt (internal) every one second? I am interested if it is possible to do this without counting milliseconds. I used the SleepTimer, but, unfortunately, it generates an interrupt every 1024ms.

  Thank you!

George

user_1377889's picture
User
10803 posts

To do that precisely you'll need a 32kHz crystal which can be configured as the source for wake-up from sleep.

Look into the "System Reference Guide" accessible from Creator's help-menu.

 

Bob

George Mois's picture
User
44 posts

Hello,

  I am trying to use the RTC to wake the PSoC up every one second, but I am missing something. The RTC_EverySecondHandler() should toggle a LED but it fails to do so. Could you please, help me with this?

  I attached the project.

Regards,

George

user_14586677's picture
User
7648 posts
George Mois's picture
User
44 posts

A simple question, just to be sure. The RTC only works when a 32kHz EXTERNAL crystal attached?

Thank you,

George

user_14586677's picture
User
7648 posts

From the datasheet (component) -

 

General Description

The Real-Time Clock (RTC) component provides accurate time and date information for the
system. The time and date are updated every second based on a one pulse per second interrupt
from a 32.768-kHz crystal. Clock accuracy is based on the crystal provided and is typically
20 ppm.
 

Regards, Dana.

user_14586677's picture
User
7648 posts
George Mois's picture
User
44 posts

Thank you! I know that there is an internal 32kHz clock and the possibility of adding an external ctystal. There is no clear statement made in the documents that the RTC only works with the external one. That was my doubt.

Regards,

George

Log in to post new comments.