Building an IR Receiver | Cypress Semiconductor
Building an IR Receiver
I've been experimenting with a PSoC 3 'FirstTouch' eval kit. So far I am very pleased with it.
I am beginning to think about a serious application for a PSoC 3 chip, and thought I would circulate a few ideas here and see what the rest of the community think of it.
I'd like to build a universal IR (Infrared) receiver and decoder. One which can decode just about any common infra red remote control signal. The front end would be Vishay or Sharp Infrared receivers which demodulate the 36/38KHz signal.
I think I'd connect the output of the IR Receiver to a digital input pin.
So what would be best next? Can I implement an IR Signal decoder in hardware? Or should I simply generate an interrupt on the falling edge of the signal, then decode it all in software?
I've already done this several times in various projects, but using traditional micro-processors and doing it all in software. Mainly I just count deltas (the time the signal stays hi or low) and compare against a look up table, with a certain amount of jitter built in.
However in this new approach I wonder if it's possible to actually decode the IR signal and extract the control codes - preferably in hardware, or a combination of hardware/software. Any thoughts?
I already understand how to decode IR signals such as RC-5, RC-6 and so on, so I don't need references to 'understanding ir' - I'm more looking for any insight on the best approach to take to doing this on PSoC.
What would be best? A simple digital Input Pin, and ISR and software counters? Or some kind of digital input connected to a timer and shift register? How would that handle the preamble, and how could I detect different encoding schemes?