> > If the duty cycle needs to be controlled, using a timer interrupt as > > Jinx suggested may simply things. > > Of course, but still more complicated than using the CCP module. Until / unless Philip gets a PIC with PWM he doesn't have that option Philip - sample away lad > In your opinion, would this be easy enough for a beginner to do in > assembly, or should I just stick with one of the C variants? The timer foundation would be fairly straightforward in assembly. It will get more involved if this sensor you're trying to emulate has fine variability and you have to be extra-careful with code timing. Get something working in what ever language you feel comfortable with, then play around -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist