Weird problem - just a comment
OPTION_REG defaults to $FF on power up. It looks like when you define the OPTION_REG value you are setting bits 4 and 5 but you are actually clearing bits 0-3 and 6-7. Bits 0-3 are harmless since they relate to the prescale of TMRO. Bit 6 sets the method of interrupt for RA2 - but the Interrupts are not enabled. That leaves Bit 7, which turns on the weak pull-ups. How strong of signal are you using to drive pin 11?
EDIT: a bit late but not the problem - glad it works
Last edited by paul borgmeier; - 16th February 2008 at 04:03.
Reason: solution reached before my post
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks