I'm currently working on making a simple IR remote just to create the framework for some future projects. I'm using the PIC16F628A and would like to utilize the hardware PWM to free up the processor for other applications. I have the hardware PWM working and according to my scope appears to be outputting ~38.46kHz. I've read a lot of posts on this site and I've seen that Nigel recommends implementing the PWM using software but as I mentioned because of my programming style I would like to continue using the hardware PWM. I'm trying to modulate the carrier signal but most diagrams I've seen use something like th 74HCT132 NAND Schmitt trigger (Simple infrared data communications). I've looked through my stock of parts and I don't appear to have any Schmitt triggered logic devices lying around. I've tried substituting a normal NAND and my signal was all over the place (I expected this but the normal NAND was all I had). My question is, what are my option (While using the hardware PWM) for modulating the carrier signal? I'm trying to avoid placing another order of parts for the time being. I've tried feeding the carrier signal and my data signal back into the PIC but that seems to defeat the purpose of using the hardware PWM. I've been looking for a solution for a few days and I've gotten to the point where I'm going in circles.