Anonymous
Not applicable
Mar 04, 2015
12:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2015
12:24 PM
Hi all,
I tired to blinking a led from RTC_EverySecondHandler() routine but not work.
This condition is not true and the RTC_EverySecondHandler() is not runing:
- if (0u != RTC_IS_BIT_SET (RTC_intervalCfgMask, RTC_INTERVAL_SEC_MASK ) )
- {
- RTC_EverySecondHandler ( );
- }
My initialize code is:
- void LED_Toogle()
- {
- LED_Write(!LED_Read());
- }
- int main()
- {
- /* Place your initialization/startup code here (e.g. MyInst_Start()) */
- RTC_Start();
- CyGlobalIntEnable; /* Uncomment this line to enable global interrupts. */
- for(;;)
- {
- /* Place your application code here. */
- }
- }
Any idea?
Best Regards:
Niko
Labels
- Labels:
-
PSoC 5LP
3 Replies
Mar 04, 2015
12:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2015
12:55 PM
You need to call RTC_WriteIntervalMask() with RTC_INTERVAL_SEC_MASK as parameter to get the one-second stub called.
Bob
Anonymous
Not applicable
Mar 04, 2015
01:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2015
01:02 PM
Thank you very much Bob!
Mar 04, 2015
01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2015
01:39 PM
Niko, you are always welcome!
Bob