Sony SIRCS Decoding
I am curous to know why, when you change the device· OSCXT2 to OSC4MHZ, the program does not run as expected, the IR part does not work. Is their a problem with the pulsin command when it is run at the OSC4MHZ setting? It seems to me that I did not have this problem before, although I could be mistaken. I am using the example program that is listed in the SX/B example projects.
Thanks
Ray
Thanks
Ray
Comments
· The internal oscillator is not accurate enough for timing such things. SERIN and SEROUT won't work correctly either when using the internal oscillator. It is about +/- 8% so it can vary quite a bit. An even if you use IRC_CAL it it very unreliable.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"You're braver than you believe, stronger than you seem, and smarter than you think" Christopher Robin to Pooh
·
Thanks
Ray
I'll have to check, but I think if you are DEBUGGING, then the SX-Key will provide the clock "even if you specify OSC4MHZ", but if you just RUN from the IDE, then I think the internal oscillator is used. If I get time today I will verify that.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"You're braver than you believe, stronger than you seem, and smarter than you think" Christopher Robin to Pooh
·
I have confirmed with a frequency counter, that when you are debugging, the SX-Key generates the clock, even if you specify OSC4MHZ on the device line.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"You're braver than you believe, stronger than you seem, and smarter than you think" Christopher Robin to Pooh
·