> -----Original Message----- > From: Jinx [SMTP:joecolquitt@CLEAR.NET.NZ] > Sent: Sunday, September 29, 2002 1:32 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Building an IR remote > > > Olin, you do bring up an interesting point. If the duty cycle is set to > 0 > > then does the output stay a flat low? Or does it glitch every cycle? > > If PWM dc=0 then the CCPx pin is not set (Midrange Manual 14.5.1) > > By pure chance one of the graduate engineers here has been making an IR remote using a PIC at home. I suggested using the CCP module in PWM mode for producing the carrier and it works perfectly by simply writing 0 and the desired "on" duty cycle into the CCP duty cycle register. Regards Mike -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics