A drink:P
Is there any way of setting the OSC to HS in the program itself rather than having to change it on the programmer each time?
A drink:P
Is there any way of setting the OSC to HS in the program itself rather than having to change it on the programmer each time?
Depends on the IDE you're using ...
For MPLAB :
For µCode StudioCode:@ __config _HS_OSC
AlainCode:@ DEVICE pic16F877a,HS_OSC
Last edited by Acetronics2; - 9th April 2008 at 14:40.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
sooooo,
For µCode Studio
RegardsCode:@ DEVICE pic16F877a,HS_OSC
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Its really wierd...
It wont accept that or any of the other suggestions, the only way I could get the HS_OSC in the code so it produced no errors was to use DEFINE pic16F877a,HS_OSC
However, although this gives no errors when you compile it, when you try and program it using Picflash it still sets Oscillator to XT and not HS
guess i'll just have to keep an eye on it and change it whenever I program it
DEFINE only sets PbP internal values ... doesn't deal with Pic Registers.
I think there is a consistent thread about that on the Forum, Written by Melanie.
A SEARCH will be welcome ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
From post 1 to 5
Presetting Configuration Fuses (PIC Defines) into your Program
http://www.picbasic.co.uk/forum/showthread.php?t=543
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks