Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reliable RC5 decoder in PIC assembler

Status
Not open for further replies.

btbass

Advanced Member level 5
Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,896
Helped
438
Reputation
880
Reaction score
288
Trophy points
1,363
Location
Oberon
Activity points
12,887
rc5 decoder

Here's my very cool and reliable RC5 decoder in pic assembler. If you think you can write smaller, tighter code than this, put it on the LINE!
 

rc5 decoder schematic

Hello,

Can you provide a simple schematic for this Remote control?

Thanks
 

Pic rc5 decoder

You just need something like a IS1U60 or similar, from RS, Farnell or Maplin, which is an infra red receiver with filter, limiter, BPF, Demodulator, Integrator and comparator all built in, and hook up the output to your pic. Preferably on RB0 so u can use interrupts.
 
Re: Pic rc5 decoder

Hello, I found some of those integrated "receivers" used in TV remote control in TV sets. but I couldn't figure the frequency of modulation. (I think the range is 33 to 48 Khz)

Is there a way to find this out by experimenting?

Thanks
 

Re: Pic rc5 decoder

Hello, I found some of those integrated "receivers" used in TV remote control in TV sets. but I couldn't figure the frequency of modulation. (I think the range is 33 to 48 Khz)

Is there a way to find this out by experimenting?

The best way is to know wich IR_sensor are you dealing with, then get the datasheet and find the nominal frequency of modulation it expect.
Take in mind that this sensors has an internal bandpass filter that have a "center frequency" in a wide range that you must know prior to activate it.
Regarding the range, you are rigth but will be up to 64 Khz.

Hope this help.

humber555
 

Pic rc5 decoder

The modulation frequency of RC5 is 36KHz. Most of them are close enough to work ok. I updated the program a bit with more info on rc5 format and a return flag. Please try the new version.
 

    V

    Points: 2
    Helpful Answer Positive Rating
Pic rc5 decoder

where can i get the new version

thnkx
 

Hello btbass,

Would you please post your latest version of your RC5 decoder ?

I would be pleased to try it.

Many thanks,
 

I have since modified it to an tnterrupt driven version and written it in c.
 

Attachments

  • rc5_interrupt.zip
    2 KB · Views: 197
  • Like
Reactions: crocu

    crocu

    Points: 2
    Helpful Answer Positive Rating
Would you please also post the schematic associated to your code ?

i'm novice, this could help me a lot to understand it.

Many thanks,


Edit : What PIC and compiler did you use ?
Is it Mplab C18 or Hightec compiler ?
 

**broken link removed**

There is no special schematic.
I just use a TSOP4838 IR receiver and the output goes straight to pin RA2 on a pic16f690. Which is the external interrupt pin.

I use the Hi-Tech compiler.
 

Thanks,

What compiler did you use ?
Is it Mplab C18 or Hightec compiler ?
 

I used the Hi-Tech compiler.
As the code is written in C, it should compile ok with any good C compiler. The decoder will work with most 8-bit Pic micros.
Most pic chips have common names for their special function registers so you might not have to change a lot to port it to a different variant.
You need to use the external interrupt pin for the IR input. So you might have to change that to suit.
Also, depending on your clock frequency, you might have to adjust the timer prescaler.
 

Thanks, I will try it and let you know.

Once we get the RC5 address on serial port, it can be saved.
Afterward, it is easy to send back the learned RC5 ir code ?

My goal is to learn and save home remote ir codes in an eeprom and be able to call them back bythe serial interface.

Have you ever done that ?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top