Attachments are accessible only for community members.
Anonymous
Not applicable
Dec 29, 2015
09:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 29, 2015
09:22 PM
Hi,
I built a simple timer example with terminal count ISR enabled.
I tried setting the Peroid through Timer_writePeriod() API call. but it always takes period from the configuration window.
Tried manually forcing counter to zero through Timer_writeCounter(0) API call but this triggers tc interrupt immediately.
I have attached my code.
Thanks in advance.
Bhargavi
Labels
- Labels:
-
BLE
1 Reply
Dec 30, 2015
02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 30, 2015
02:05 AM
I cannot believe that you wait 2 hours for the timer to expire 🙂
Datasheet says for WritePeriod() that the new period is used the next time the timer is reloaded. so what you observe is as it should be.
Setting the counter to zero has to fire tc interrupt immediately.
Workaround: use a reset input which you may connect to a control register
Bob