delay function does not work. FC5

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
User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

delay function does not work. FC5

Post by rene »

Hi Boys en Girls....

I make use the 16F628A. and it seems that with FC5 the delay's not work anymore ...
I have a serious time problem :(

oscillator set to: INTOSC I/O
Clock Speed ​​4000000 hz selected ..

as additional setting in C at the start of program >>>> set_bit (pcon, 3)
To force the 4MHz clock, But should not be necessary.

someone with sugestions?

Thanks....

René

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: delay function does not work. FC5

Post by kersing »

Adding a simple flowchart that shows the problem helps... It allows those trying to answer the question to take a look at your code, verify the settings are right and (if we own that particular chip) even try it.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply