I make reverse-engineering ... I put one IR-LED on output (driving by transistor) to see how the code work !
And... surprise ! It's totally different by Proteus simulation and my whis !!!
Despite I try to "PauseUs 560" the Pauseus, measured in IR_Scope, it's 202 to 208 us !
I read this : "PAUSEUS assumes an oscillator frequency of 4MHz ;PAUSEUS 1000 ' Delay for 1 millisecond "
It's not applicable on my code ?! Why ? I use an 4 MHz crystal , I define "XT_OSC" ... I really don't understand...
Bookmarks