cancel
Showing results for 
Search instead for 
Did you mean: 

Syncronize the timer in Output Compare mode

abenassi9
Associate
Posted on October 13, 2003 at 13:40

Syncronize the timer in Output Compare mode

2 REPLIES 2
abenassi9
Associate
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?
jatin
Associate II
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.