> 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 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .