internal RC and Delay..need advise

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
hertz89
Posts: 19
Joined: Sat Mar 22, 2014 6:30 pm
Been thanked: 3 times
Contact:

internal RC and Delay..need advise

Post 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

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: internal RC and Delay..need advise

Post 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

hertz89
Posts: 19
Joined: Sat Mar 22, 2014 6:30 pm
Been thanked: 3 times
Contact:

Re: internal RC and Delay..need advise

Post by hertz89 »

thanks alot :D

Post Reply