We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
"found that timer 2 on the 89C668 used vector address 3BH instead of 2BH which is used by the I2C interrupt" Are you saying that the 89c668 uses 3BH for both timer2 and I2C? Stefan
No, the I2C is using 2BH causing timer2 to use aonther vector. I should have searched the manual alittle closer. All I need to do is change interrupt 5 to 7 which vectors to 3BH. Thanks for your time Stefan.
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