Discussion in "Project Addition or Changes" started by    bargur    Aug 18, 2009.
Sat Oct 01 2011, 11:29 pm
#31


hi kp.mastermind
code is for 1736 but i think it should run also on 1738

majoka



yes its working on both even on HS38
Sun Oct 16 2011, 06:20 pm
#32
@majoka: thank u sir...the project worked for me....i made a small change in ur reset circuit...instead of the rc ciruit u placed..i replaced it with a reset button!!! and it worked..does it make any difference???
Tue Oct 18 2011, 10:20 am
#33
@ avinash7
not problem at all reset button of RC circuit
i think RC circuit is not connect properly of C is open
Tue Nov 29 2011, 06:44 pm
#34
hello sir.....could u plz help me with the code of this project..........i am unable to understand why the ADDR,CMD,TEMP are assigned some values in the beginning of the program......and also why did u use "rlc a" command......what is the use of it???
Fri Dec 02 2011, 12:15 am
#35
@ avinash7
in this code
ADDR stans for address
CMD for command
temp IS A VARIABLE NAME
every device remote has its unique id that is called address
commands are the functions that performed in the response of transmission from remote
RLC is rotate left with carry
it is used to carry a data bit into accumulator and then assigned these values to variable then compares it with address that is it valid or not
Tue Dec 06 2011, 07:14 pm
#36
hello sir,
1.while studying your code i stucked at the line "cjne a,CMD,valid", for example if we press 4 at past instance and again 4 at present instance, the instruction skips to main instead of inverting the port status,will u please explain this.
2.in the instruction "cjne a,TEMP,valid1" where temp refers to flip bit and a refers to toggle bit.for example 5th port made on and then 6th port made on.now both flip and toggle contain same value 1.when we try to switch off 4th port this instruction skips . please clarify these two doubts
thank you sir.
Sun Dec 11 2011, 02:27 am
#37
@ avinash7
i think ajay can ans it better as i also want to ask ajay
but once read this page in detail i hope some clue is present there
http://www.ustr.net/infrared/index.shtml
i will test it in a week and update here
Fri Dec 16 2011, 02:47 am
#38
@avinash7 and Majoka, Well i wrote this code 4 yrs back.. at that time i just wrote what i thought is right.. coz RC5 for me was more of a hit and trial. after reading avinash's comment I realized that there are modifications required in the code related to checking. But it is surprising that things are working fine

You guys are free to modify the code and test it.. make it better.. and share back.. the power of open source
Fri Dec 23 2011, 05:47 pm
#39
@majoka Thank u sir but i have already read the information in the page u have sent and it isnt clarifying my doubt...
@ajay how can i test the modified code sir? should i burn the hex file again in to the mcu or is there any software to check it?
Sun Jan 08 2012, 01:35 am
#40
you can enable serial port and after capturing data display it to verify it. thats what i did. I guess I had attached RC5 debug code on forum somwhere... but it is not a big deal.. just enable searial port and send ascii of received number.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am
Anthonyvab
Wed Apr 17 2024, 08:48 am
RobertCix
Wed Apr 17 2024, 06:46 am