Hi Bert,
You're onto something!
Firstly, this doesn't stack up, but when I disable interrupts my Main loop sees a frequency of 142Khz on my scope (therefore double that at 284khz?!)
Ok, now when I enable interrupts with the 'pbp' entry ....much baddo, my main loop toggle shows just 498Hz on my scope (therefore about 1khz)
change the bit you outlined to it so asm, I once again get the main running 142khz (albeit choppy - I guess the interrupts are stopping a nice clean toggle in the main) & the interrupt toggle showing about 15khz on my scope (30khz)
changing PR=200, changes the interrupt toggle rate to about 5khz on my scope (therefore 10khz)
it's after 1.30am here in London.....and so to bed, g'night.
Bookmarks