Skip to main content
Visitor II
October 13, 2003
Question

Syncronize the timer in Output Compare mode

  • October 13, 2003
  • 2 replies
  • 771 views
Posted on October 13, 2003 at 13:40

Syncronize the timer in Output Compare mode

    This topic has been closed for replies.

    2 replies

    abenassi9Author
    Visitor II
    October 10, 2003
    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?
    Visitor II
    October 13, 2003
    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.