- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all, I need a little help.
I want an RTC with microsecond intervals, I'm using the RTC module existing in PSOC 5 prototype Kit, and to generate the microseconds I am using a up counter with a 1MHz in the input, my problem is how to reset the counter each one second interrupt of the RTC ?
I don't Know how to use RTC interrupts, I'd like to put this function "Counter_Init();" in the " RTC_EverySecondHandler(void)"
Thank you very much.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adonis: Are you using the CY8CKIT-059 PSOC 5LP? If so you need to add A WCO crystal on P15.2 and P15.3 to drive the RTC component. Then the RTC will be functional and you can then use it to trigger you counter and sync it for you clock. You should provide a 32.768-kHz clock from an external crystal oscillator. The accuracy of this component is defined by the accuracy of the connected external clock source. Refer to the Clock Editor section of the PSoC Creator Help for information about how to connect and configure the built-in XTAL_32KHZ clock in your design.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bobgoar: Yes I am using the 32.768-kHz crystal oscillator, The RTC is working well, but I don't know how to use the every second interrupt from RTC. I'd like to use this interrupt to initiate the counter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content