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.

Decoding RC5 signal using p89v51rd2 microcontroller

Status
Not open for further replies.

bpramod

Member level 1
Member level 1
Joined
Sep 21, 2011
Messages
38
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,534
hi friends...i m using keil to write my c program to decode the rc5 signal.. and also how to connect IR detector to the microcontroller...wat r the libraries and functions should i use to write program...can anybody help me?....
 

amol_shah

Full Member level 3
Full Member level 3
Joined
Apr 21, 2008
Messages
151
Helped
31
Reputation
62
Reaction score
15
Trophy points
1,298
Location
Nasik
Activity points
2,034
Use TSOP1836 and connect it directly to any micro controller pin use a Pullup of 4.7k. I am not sure if there are any ready library available for it but you can study the waveform of RC5 protocol and implement it. Check this link for waveform Introduction to RC5 Protocol | 8051 Tutorial | Tutorial
 

    V

    Points: 2
    Helpful Answer Positive Rating

bpramod

Member level 1
Member level 1
Joined
Sep 21, 2011
Messages
38
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,534
getting digital output(0&1 )from a input signal given to the microcontroller 8051

hi friends..
plz help me..i want to write the c program to read the input signal (in 0's and 1's) given to the 8051 microcontroller..i planned to use the counter programming but it only counts pulses so how to check wheather 0 and 1's are passing the pin of mc...

---------- Post added at 17:03 ---------- Previous post was at 16:52 ----------

thank you amol for ur valuable reply..ya i used the TSOP1836,its working well...thankq
 
Last edited:

technovm

Junior Member level 3
Junior Member level 3
Joined
Jan 7, 2011
Messages
25
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,429
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

dont use timer as a counter. use the timer to generate the bit timing and sample the input in the timer interrupt routine.
 

bpramod

Member level 1
Member level 1
Joined
Sep 21, 2011
Messages
38
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,534
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

dont use timer as a counter. use the timer to generate the bit timing and sample the input in the timer interrupt routine.
thankq.. u said me to use timers,,but i dont know the timing of input signal...its unknown signal given to pin of mc...then how to get the passing 0&1's through that pin..so we can identify it trough the counters only na..?or any other way?..
 

nandhu015

Advanced Member level 5
Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,959
Helped
300
Reputation
600
Reaction score
222
Trophy points
1,353
Location
India
Activity points
9,879
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

thankq.. u said me to use timers,,but i dont know the timing of input signal...its unknown signal given to pin of mc...then how to get the passing 0&1's through that pin..so we can identify it trough the counters only na..?or any other way?..

As you mentioned you are going to decode RC5, if so RC5 protocol has timings.
Look here
RC-5 - Wikipedia, the free encyclopedia
you will find everything you need.
 

bpramod

Member level 1
Member level 1
Joined
Sep 21, 2011
Messages
38
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,534
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

As you mentioned you are going to decode RC5, if so RC5 protocol has timings.
Look here
RC-5 - Wikipedia, the free encyclopedia
you will find everything you need.

sorry nandhu ....not only for RC5,i want to generate dig output(0's and 1's) from any unknown signal passing through the pin of mc...so how to do that?....
plz reply..
 

technovm

Junior Member level 3
Junior Member level 3
Joined
Jan 7, 2011
Messages
25
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,429
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

sorry nandhu ....not only for RC5,i want to generate dig output(0's and 1's) from any unknown signal passing through the pin of mc...so how to do that?....
plz reply..

If you need digital output of unknown signal, you will need time base. Without time base I don't think it is possible.
 

sujan1380

Newbie level 5
Newbie level 5
Joined
Jul 17, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Dhaka,Bangladesh
Activity points
1,326
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

is the output of TSOP1836 in analog form??
plz anyone help.
 

bpramod

Member level 1
Member level 1
Joined
Sep 21, 2011
Messages
38
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,534
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

is the output of TSOP1836 in analog form??
plz anyone help.

the output of tsop1836 is digital..
 

sujan1380

Newbie level 5
Newbie level 5
Joined
Jul 17, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Dhaka,Bangladesh
Activity points
1,326
Re: getting digital output(0&1 )from a input signal given to the microcontroller 8051

that means output is 1/0 for sensing is it, or PWM output.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top