RTC Interrupt at a Specific Time - CY8C22x45
Employee
Mar 27, 2011
04:46 PM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Mar 27, 2011
04:46 PM
Question: I would like to generate an interrupt from the RTC in CY8C22x45 when the RTC's time equals a preset time. Is the RTC module in CY8C22x45 capable of generating an interrupt at a specific time? If not, how can this be implemented?
Answer:
No, the RTC does not provide interrupt when the time equals a preset time. Generating an interrupt at a specific time requires a comparision of the RTC's time with the preset time. The RTC inside the CY8C22x45 device is made of three counters and they do not have any compare function.
But, the RTC can generate an interrupt when seconds, minutes, hours or days get updated. The comparision of time can be implemented in the ISR of this interrupt.
Labels
Rate this article: