Quote Originally Posted by Chris Barron View Post
That sounds very very cool !

Just a look at the processing time......(your minimum execution time assembly example)

2000 bits = 250bytes = 250 RLF's = 250 clock cycles

At 4MHz (crystal) , clock cycles = 1MHz, shift frequency = 4kHz (1MHz/250)


Chris,

I'm using a 20mhz crystal, so cycle time is 200nsec. My ~260 cycle assembler SR should thus take about 52 usec, if my math is correct. I was planning to use the crystal to run a Timer1 timer to generate prescise 100usec interrupts. If I sample at 100usec (10khz), that leaves about 48usec to do 'other things'. That would do it in the assembler version.

The big question, is there a PBP alternative that would be fast enough, and in fact leave a little time for other things?? I suspect not, and that I'll end up with a hybrid solution, using assembler for the SR, and PBP for the 'other things'.

Joe

Joe