Page 1 of 1

internal RC and Delay..need advise

Posted: Wed Jan 25, 2017 4:27 pm
by hertz89
hi all

i am using 16f88 internal RC 4MHZ (in the main"osccon=0x60;//4MHZ")

when i test the program on Proteus i found that my delay 5ms become 9ms !

is it normal for internal RC?

thanks

Re: internal RC and Delay..need advise

Posted: Wed Jan 25, 2017 5:41 pm
by QMESAR
hertz89 wrote:hi all

i am using 16f88 internal RC 4MHZ (in the main"osccon=0x60;//4MHZ")
when i test the program on Proteus i found that my delay 5ms become 9ms !
s
In my opinion is Proteus doing what it says Simulating you can not expect a simulator to yield real time execution of your code and Oscillator ,you will never get the real time 5 msec in a simulator
test your code on real hardware and you will see that it runs as expected

Re: internal RC and Delay..need advise

Posted: Thu Jan 26, 2017 4:54 pm
by hertz89
thanks alot :D