At 12:48 PM 2/12/2005, Michael J. Pawlowsky wrote: >Yes it's PicBasic Pro but the interrupt routine is in asm. >(So NOT a PicBasic interrupt that checks some function every line) >I can do some asm, I just don't feel proficient enough to re-write the >whole thing in asm. > >I have thought about going to a 40Mhz, but either way I would like to >optimize the code. If this is a production design, the higher operating frequency may give you problems with part 15 certification. >Simply the way I like to do things. I prefer to optimize the code as >much as possible first and then upgrade the hardware if need be. :) >The interrupt routine is simply toggling the state of an output pin >continously to send a pulswitdh to a hobby servo. >The rest of the code (not in the interrupt) determines what the length >of the pulse width needs to be. Really, you could use the Picbasic code as a spec, and put it in pretty much anything. (speaking as an experienced Atmel AVR assembler contractor) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist