16f1827 delay issue

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Safak
Posts: 4
http://meble-kuchenne.info.pl
Joined: Tue Aug 30, 2022 9:15 am

16f1827 delay issue

Post 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 ?

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

Re: 16f1827 delay issue

Post by chipfryer27 »

Hi

You will need to attach your Flowcode file.

Regards

Safak
Posts: 4
Joined: Tue Aug 30, 2022 9:15 am

Re: 16f1827 delay issue

Post by Safak »


WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: 16f1827 delay issue

Post 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

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: 16f1827 delay issue

Post 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.

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: 16f1827 delay issue

Post by Steve-Matrix »

Also, see the following post for more information:
viewtopic.php?f=3&t=866&p=4795&hilit=os ... rnal#p4795

Safak
Posts: 4
Joined: Tue Aug 30, 2022 9:15 am

Re: 16f1827 delay issue

Post by Safak »

O ıı try tomorrow morning. Thank you.

Safak
Posts: 4
Joined: Tue Aug 30, 2022 9:15 am

Re: 16f1827 delay issue

Post by Safak »

it worked properly. thanks for support.

Post Reply