Page 1 of 1

16f1827 delay issue

Posted: Mon Dec 18, 2023 10:36 am
by Safak
I uploaded a video. link is ---> https://youtu.be/9TJ9FeB0X-8

In the on-off circuit written in Flowcode 10, is there more delay even though the delay is 1 second?

Does anyone know what is the problem ?

Re: 16f1827 delay issue

Posted: Mon Dec 18, 2023 10:41 am
by chipfryer27
Hi

You will need to attach your Flowcode file.

Regards

Re: 16f1827 delay issue

Posted: Mon Dec 18, 2023 11:10 am
by Safak

Re: 16f1827 delay issue

Posted: Mon Dec 18, 2023 1:32 pm
by WingNut
chipfryer27 wrote:
Mon Dec 18, 2023 10:41 am
Hi

You will need to attach your Flowcode file.

Regards
and maybe the circuit diagram

Re: 16f1827 delay issue

Posted: Mon Dec 18, 2023 2:50 pm
by Steve-Matrix
The internal oscillator defaults to 500kHz for that device, but you have told Flowcode that the oscillator is running at 8MHz. Either set the clock speed within Flowcode to the correct frequency for your project or add some startup code to make the oscillator run at the frequency you want.

To be clear, the drop-down when you have set "8MHz" is *not* setting the speed of the clock in your hardware. Instead, this is used by you to tell Flowcode what the oscillator speed actually is so delays can be calculated correctly.

Re: 16f1827 delay issue

Posted: Mon Dec 18, 2023 2:54 pm
by Steve-Matrix
Also, see the following post for more information:
viewtopic.php?f=3&t=866&p=4795&hilit=os ... rnal#p4795

Re: 16f1827 delay issue

Posted: Mon Dec 18, 2023 3:17 pm
by Safak
O ıı try tomorrow morning. Thank you.

Re: 16f1827 delay issue

Posted: Tue Dec 19, 2023 6:14 am
by Safak
it worked properly. thanks for support.