Andrew83
Joined: 16 Sep 2008 Posts: 51
|
For those interested in ir bit timing |
Posted: Fri Oct 24, 2008 10:03 am |
|
|
Hello 2 all !
My thread refers to the following code :http://www.ccsinfo.com/forum/viewtopic.php?t=26226.
I'm interested especially in the way the values of the ONE_MIN,ONE_MAX,ZERO_MIN,ZERO_MAX are calculated.
The calculation is, as follows :
- interrupt rate : 4/32000000 (clock rate)*65536(16 bit timer1) *1(prescaler value) = 8.192 ms --- so this is right
- in 1.8 ms there should be : 0,0018/0,000000125(clock period)=14400 --- again right
That's all folks !
Cheers![/url] |
|