On 19/06/2011 01:00, IVP wrote: >> I wish to drive a IR LED at 40khz > BTW, you can use a 555 (or any gated oscillator) to do most > of the work > > http://home.clear.net.nz/pages/joecolquitt/irtx2.gif > > It (a) modulates your data with 40kHz, so you simply supply the > 0s and 1s, and (b) has much better current capability (+/-300mA) > than a PIC pin > > Joe I've used 555 gated by PC serial port handshake pin for IR remote=20 transmitter. Very hard to do 38KHz in PC SW in application program, you=20 need a device driver. A very small series resistor needed to get sufficient range. But doing the 38KHz with Manchester Encoding is easy on a PIC with a=20 timer interrupt. I'd use a bipolar transistor though. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .