solarwind wrote: >> For longer delays, wrap the above in loops. > > That would work. But I don't know dsPIC33 assembler. It would be a good idea to know the machine instructions anyway, even if you're programming in a high level language. > I'm looking for some pre-made routines. I you knew assembler, you'd have been done before you could have typed the first question. This stuff is really trivial. > Using the timer is another option, but the > dsPIC33 datasheet doesn't explain too much about TIMER1. On the dsPICs (24, 30, 33 PICs), the peripheral details are in the family reference manual. The datasheet only tells you the specific mix of peripherals and other unique configuration info for the particular part. I like this scheme better because its clear that the same peripheral will work the same way on different parts without minor differences. You don't have to read the section on the peripheral in each separate datasheet wondering what little thing they might have changed. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist