Debbie Hynes wrote : > in the meantime, i'll adapt that excellent 555 design till > i get the hang of using a PIC to generate 38kHz bursts. Well that's *realy* easy. I just setup the PWM module to produce the basic 36/38/whatever carrier. I then just flipped a bit somewhere (I don't recal right now, could have been the TRIS bit...) to enable/disable the PWM module. Simple as that. When disabling/enabling the PWM, I synced to the TMR2 overflow flag, so I always got a nice clean carrier out without any half-cycles. The timing of the bits was done in the TMR2 overflow ISR. Just counting up and enabling/disabling when appropriate. 98% of the time the PIC was just idling and waiting for the hardware do the work... Now, since you insist on using that ol' F84, you might have to do it the hard way... Jan-Erik. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu