Use the HPWM to generate the modulation; change the status of the HPWM pin to an output when you want a '1' to be transmitted, and change it to an input for a '0'. This way, you can achieve the IR transmission with only 1 pin, and no external gating circuitry.
BTW, if you are modulating the IR signal, you'd get much better results using a 3 pin IR demod. module.
Regards,
Anand Dhuru
Bookmarks