Hello - I had a quick question and I was wondering if anyone would be able to help me out -

Is there a way to generate a 38Khz square wave on any of the 16F877A pins? I am a bit confused because the PBP manual briefly talked about not being able to generate over 32Khz using the FREQOUT command - I know the 16F877A also has 2 PWM modules built in but I also wasn’t sure if they were capable of it - the manual from my understanding indicates no but I have a feeling that there is some way to do it.

I am looking to use two IR LEDs pulsed out at 38Khz and two IR 38Khz receiver modules as simple object detection for a small autonomous robot - I don't have a whole lot of room on the PCB so I hope to avoid using the 555 Timer IC

Any info regarding this problem would be great - thanks

Oh one other question - Has anyone messed around with the radio shack 38Khz IR receiver module? All the ones I have gotten from them seem to not function so I ended up having to order a couple PNA4602M which do seem to work.

Note -

If I posted this in the wrong area it was by accident please don't flame