Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/17/00 05:02
Read: times


 
#2234 - RE: Also Programing Style:
Dear Peter,

I would like to comment on my remote docoding.

It never failed.

It always works only and only with the control I program for.

It only needs to be adjusted if the crystal is changed.

I have done it for at least 05 remote controls all of diffrent companies and different formats.

By trial and error, I don't mean absolutely working in dark without knowing the secrects involved.

Once I have selected a crystal, if it is labled 10 MHz no matter even if it is one cylce slower or faster.

What ever is the IR format, but one thing is for sure, that it is a stream of Hs and Ls.

What I do is, I use JB and JNB wait for the change while counting with timer in parallel. When pulse changes I read the count. So I get the almost exact duration of all pulses H or L ready to write code or to plot as the graph.

The only secret to be cared in the code is, when a pulse is changed from H to L or L to H, I read it after a small delay, i.e. in the middle of the next pulse.

I am happy that no two different remote controls have ever worked on the same code.

Documentation, I never felt ashamed to write notes at the end of every line of my code.

It is always advised to move in a quantified way, by calculating every thing in advance. But in many cases, trial and error is faster and takes less effort.

What is most important to keep in mind, is that we should be knowing what's hapenning in every when the code executes.

Regards

Babar/
In the end

List of 5 messages in thread
TopicAuthorDate
Also Programing Style:            01/01/70 00:00      
RE: Also Programing Style:            01/01/70 00:00      
RE: Also Programing Style:            01/01/70 00:00      
RE: Also Programing Style:            01/01/70 00:00      
RE: Also Programing Style:            01/01/70 00:00      

Back to Subject List