Quote Originally Posted by flotulopex View Post
The port IRM_Out = 1 because the IR Module idles HIGH. Not setting this port to HIGH will make the LEARN: routine start immediately - not waiting for a real incomming signal.
I believe most of the IR receiver modules are open drain or open collector. They have a pullup to Vdd and are pulled low by the presence of IR. This also pulls the PIC pin low.