> -----Original Message----- > From: Alex Kilpatrick [SMTP:AlexK@HCITRAINING.COM] > Sent: Wednesday, March 12, 2003 11:57 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: Doing modulated IR with 16F628 internal clock > > > I've attached the source code for the IR function below, in case anyone > is interested. I am using the CCS compiler, and a 4 MHz clock. The > 16/4 loop makes a 38 KHz pulse. > > Alex > Out of interest why didn't you use the CCP module to generate the 38KHz carrier with zero CPU overhead? Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads