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
bug with 16f88 - Resolved
Moderator: Benj
- 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
Hi,
You have Project Options set to Internal RC Osc
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
You have Project Options set to Internal RC Osc
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
-
- 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
At the very start, so should be the first icon.
Place a C code block with:
It's not a Flowcode bug so moved topic from the Bugs section.
Martin
Place a C code block with
Code: Select all
osccon=0x60;
Martin
Martin