This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timer 2 interrupt problem w/ Philips 89C668

Is anyone using timer 2 on a 89C668 chip. I based some code using the 8051Fx_timer2 example and it worked fine using the reg52 header. When I chaged the header file to reg668 it wouldn't interrupt(5). I checked the spec sheet and found that timer 2 on the 89C668 used vector address 3BH instead of 2BH which is used by the I2C interrupt. Can anybody suggest a resolution?

Parents Reply Children
  • Well, that didn't fix it. Changing from interrupt 5 to 7 was correct to access the 3BH vector, but he timer2 still isn't vectoring during the overflow. It works fine using reg52 (using interrupt 5) but not with reg668.

    Has anyone been able to get timer2 to interrupt on a 89C668 using the reg668 header?

  • Has anyone been able to get timer2 to interrupt on a 89C668 using the reg668 header?
    Due to conventions and having been burned too often by canned reg.h files I use my own p89c668.h; however I am using interrupt 7 with full succes.

    Erik