> I have never used a hardware PWM port on the PIC before and am wondering if that is a more > efficient way to go than to generate the 38khz in software. I have been looking specifically > at the PIC16F628. I have 2 questions for the group. 1) Do you recommend using the hardware PWM > for the modulation to simplify coding and 2) What is the "appropriate" way of turning the > 38khz on and off? 1) unless you have something else for the chip to do, I would suggest generating the carrier in software. It is pretty trivial, just blink-a-led but a bit faster. 2) how about setting the I/O pin to input? -- Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist