Sorry, forgot to add a wink ;-) I use interrupts for long-period stuff (like the period between steps for my sine generation). When I need short items, I pad with NOPs and delay loops (inline assembly works great). Essentially the same way as with assembly code, just easier to comprehend. Andy -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu