Discussion in "8051 Discussion Forum" started by    Sharad chandra    Oct 27, 2007.
Sat Oct 27 2007, 02:25 AM
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.

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.


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.

E-mail [email protected]
Country-INDIA City-Lucknow
Mobile +91-9415544351

Sat Oct 27 2007, 06:44 AM
Ok simple answers to your problems...
read the working of RC-5 Protocol here...

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


Powered by e107 Forum System


Fri Nov 15 2019, 08:19 AM
Allison Wink
Want to submit your business on 1000's of Advertising sites monthly? For a small monthly payment you can get virtually unlimited traffic to your site forever!For details check out: http://www.submitmyadnow.tech
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html



Wed Nov 13 2019, 06:25 AM
Mon Nov 11 2019, 01:31 PM
Sun Nov 10 2019, 04:42 AM
Sat Nov 09 2019, 03:41 PM
Fri Nov 08 2019, 10:06 AM
Fri Nov 08 2019, 07:28 AM
Tue Oct 15 2019, 04:32 PM
Tue Oct 15 2019, 02:27 AM


Guests: 47, Members: 0 ...

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

Members: 38103
Newest member: Casmir
Forum Activity
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...