Well MAYbe that is why LATC didn't work, but the numbers seem pretty right on. main loop speed free running seems to show there are 7 instructions being executed. heres the math:
8Mhz clock / 4=
2Mips
1/2000000 = .0000005 sec per instruction
.5uSec * 7 = 3.5uSec
1/.0000035 = 285,714.xx Hertz ( close to 284K as posted)
Using PBP instead of ASM, show clearly the Interupt is firing WAY faster then the time it takes to get in and out. If you are game to it, I think we can come to a definate minimun.
With PBP and main loop at 1K, what was ISR frequency?
Bookmarks