I need to do accurate analog to digital sampling (at 4000Hz) with a PIC16F876 , perform calculations after each sample and then transmit the result over a rs232 interface. I am using CCS C compiler. How would I manage to perform the routines between each sample and still sample at a accurate sample rate? Shaun -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu