Discussion in "8051 Discussion Forum" started by    Sharad chandra    Oct 27, 2007.
Sat Oct 27 2007, 02:25 AM
#1
Respected Ajay Sir,

My self Sharad Chandra Sharma ,sir I have read the RC5 IR remote switch source code from 8051projects.net it is an excellent effort yet I m confused by two type problem both are inlisted below . Please try to solve it I will be very thankful to you.

PROBLEM-1
I am unable to understand the concept that------How can microcontroller 8051 READ the received data( RC5 bits ) by using the software time delay.

In the software program of Phillips RC5 decoding (an 8-switch control asm code) , I have great confusion in “reading the IR bits along with the time delay” .I have explain my problem in details under problem 2.

PROBLEM-2

Sir under the ‘main’ label after giving the 3.024ms a delay is given for AGC bits, after then the IR data is moved to carry bit (for reading the flip bit ) and further stored in FLIP location.

Under ‘fadd’ label the first 1.728ms delay is given then IR is moved to carry bit and further rotated into Accumulator , and DJNZ COUNT,fadd loop runs .

Sir my question is that way do you not given the delay for ‘FLIP bit or TOGGLE bit’ also under the ‘fcmd’ label initially 1.728ms delay is given and then command bit is readed way !
Or in other words we an say that
….moving the ‘flip bit’ into carry bit and further stored in FLIP location , DOSEN’T need time delay.

Yours
SHARAD CHANDRA SHARMA
E-mail [email protected]
Country-INDIA City-Lucknow
Mobile +91-9415544351


Sat Oct 27 2007, 06:44 AM
#2
Ok simple answers to your problems...
read the working of RC-5 Protocol here...
http://www.ustr.net/infrared/infrared1.shtml

regarding your second problem whose answer lies in the above website itself.. You must understand that all the bits are spaced at 1.728mS away from each other.. and after the detection of first AGC bit.. i am giving delay till flip bit because we know that AGC bits are constant 1,1. So giving a delay of 3.024mS take straight to the center of Flip bit.
moving data from one location to other location need few microseconds. of course i have taken care of that...

I want you to please go through the documentation of IR in the link given above so that you can get a better picture. I am sure it will help you answer your doubts. If you still feel any problem.. feel free to ask me..

Get Social

Information

Powered by e107 Forum System

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 98, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123