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. 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. Mike Richard wrote: > Have you thought about using an 18F242 or similar and run it at twice > the speed? you wouldn't need to re-write anything and its pin > compatible. > Also is it a PIC basic (pro?) "on_interrupt" routine or asm and what > is it doing? > > Richard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist