Syncronize the timer in Output Compare mode
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-10-13 4:40 AM
Posted on October 13, 2003 at 13:40
Syncronize the timer in Output Compare mode
Labels:
- Labels:
-
Legacy Products
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-10-09 11:24 PM
Posted on October 10, 2003 at 08:24
I put Timer A in OC mode to create a time-base for the whole program through the OC interrupt. I would like to syncronize this time base with an external syncronization pulse, to which is associated an interrupt.
I chose to read the TAOCR during the syncronisation pulse ISR, to add the delay constant and to reload TAOCR. It doesn't work. Does anybody knows why?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-10-13 4:40 AM
Posted on October 13, 2003 at 13:40
I suggest to reset the counter when pulse is received and reinitialise the OCMP registers. Counter is reset by writing to the counter low register.
