Discussion in "8051 Discussion Forum" started by    Sharad chandra    Oct 26, 2007.
Fri Oct 26 2007, 10:25 PM
#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, 02: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

scena
Tue May 19 2020, 06:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 03:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 09:39 AM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 06:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 08:55 AM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 12:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 11:58 AM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 05:12 AM
Pearl Olin
Hello,
Wed Jan 22 2020, 01:16 PM
MINU CHAUDHARY
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 02:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me

Downloads

Comments

Davidthils
Thu May 21 2020, 08:44 AM
Jakeror
Wed May 20 2020, 09:28 PM
motorCar
Wed May 20 2020, 03:05 PM
Vordrync
Wed May 20 2020, 07:52 AM
JadenjiT
Wed May 20 2020, 03:15 AM
scena
Tue May 19 2020, 06:08 PM
CodySiz
Tue May 19 2020, 02:22 PM
ClaireSat
Mon May 18 2020, 09:50 PM

Online

Guests: 83, Members: 0 ...

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

Members: 38211
Newest member: Davidthils
Forum Activity
xrxx Avatar
Posted By xrxx
Thu Apr 30 2020, 06:59 AM
BCD MULTIPLICATIONAssume that you have to 2 BCD nu...
liqian Avatar
Posted By liqian
Tue Apr 28 2020, 05:26 AM
I happened to see your post and I got many useful ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 28 2020, 04:21 AM
The code is hard to read.Please zip it and attach ...
rogermado Avatar
Posted By rogermado
Sun Apr 26 2020, 01:53 AM
@ExperimenterUK, thanks for your reply. You'll fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Apr 25 2020, 05:42 PM
Some simulators handle displays better than others...
rogermado Avatar
Posted By rogermado
Sat Apr 25 2020, 03:59 PM
Hello everyone, sorry in advance if i'm not in the...
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...