Here is part of my code... I am using a 12F629, and I am trying to get this nailed down in MPLAB. I have the TMR0 interupt enabled, with no prescaler.
org 4
bcf 0x0B,2
movlw 0xA5
movwf 01h
retfie
An interrupt happens every
.1 mS
Using the stopwatch, with a breakpoint on the "bcf 0x0B,2" line, I am able too see that it stops every .1 mS. This works fine until it is suppose to go to 1.4 mS, instead it goes to 1.399 mS. This doesn't happen again until after 21 mS. My stopwatch is reading 21.498 mS. right now.
Any tips on solving this little timing error?
Thanks,
Steve
org 4
bcf 0x0B,2
movlw 0xA5
movwf 01h
retfie
An interrupt happens every
.1 mS
Using the stopwatch, with a breakpoint on the "bcf 0x0B,2" line, I am able too see that it stops every .1 mS. This works fine until it is suppose to go to 1.4 mS, instead it goes to 1.399 mS. This doesn't happen again until after 21 mS. My stopwatch is reading 21.498 mS. right now.
Any tips on solving this little timing error?
Thanks,
Steve