>> So, I can tell the CCP to set or clear a pin on a match. Let's say I >> tell >> it to set the pin on the match. How do I clear the pin? > > bcf LATx,CCP_Pin_No > > I take it you're wondering about creating a pulse of a precisely > planned length without fiddle-farting around with a busy loop? > Start Timer1, setup the CCP module to go high on match, > put the appropriate value for the pulse length of interest into > CCPRx, clear TMR1L, clear TMR1H, clear the CCPx LAT > bit. Once Timer1 is running and the CCP module is set to > go high on match, all you need to do is clear the TMR1 > registers and the appropriate LAT bit. > Thanks for the response! I'm just thinking ahead on a new design. The datasheet seems to imply that the compare flip flop is not the same as the output latch, which is why I did not think a bcf of the latch bit would work. They could, of course, reset both flip flops with the bcf. The datasheet and ap notes just don't make that clear. Thanks for the ideas, though! I'll give it a try in the next couple weeks when I have the hardware ready to go. Harold -- FCC Rules Updated Daily at http://www.hallikainen.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist