bug with 16f88 - Resolved

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

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

bug with 16f88 - Resolved

Post by hertz89 »

hi
i have pic16f88 ..when try simple program for test the delay get bigger...i mean before the led start there are 300 msec delay

in real life the delay become 3 second! i thought the problem from the pic so i bought 3 more from other shop and same problem

i have pickit2 clone and it work fine for all my other mcu....i think the problem from flowcode 6
Attachments
Flowcode1.fcfx
(4.26 KiB) Downloaded 286 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: bug with 16f88

Post by LeighM »

Hi,
You have Project Options set to Internal RC Osc
osc.jpg
osc.jpg (34.04 KiB) Viewed 5286 times
Is that what you want?
Do you have an external crystal?

Internal RC will be very slow by default, but you also have Project Options->Clock Speed set to 4MHz, so the delay calculations in Flowcode will be wrong.

You can change the Internal RC Oscillator Frequency by writing to the OSCCON register, see Page 40 of PIC16F88 datasheet.

Leigh

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

Re: bug with 16f88

Post by hertz89 »

hii

how do that in flowcode? could you give me the code?

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: bug with 16f88

Post by medelec35 »

At the very start, so should be the first icon.
Place a C code block with

Code: Select all

osccon=0x60;
:
setting osccon.png
(36.5 KiB) Downloaded 3666 times
It's not a Flowcode bug so moved topic from the Bugs section.

Martin
Martin

Post Reply