Woooo Hoooo, Promises, promises, promises ! Now I can't remember what PIC means . . .![]()
Woooo Hoooo, Promises, promises, promises ! Now I can't remember what PIC means . . .![]()
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Ohhh, lock me and whip me too please.
On a more serious note, I recall reading somewhere
(with certain programmers) there was a problem with
erasing the F88 with internal osc configured. Keep this
in mind if your have trouble reprogramming. Hopefully
this won't apply to you.
My programmer programs no problem, but it still just doesn't work.
I know exactly what I need to do after reading the whole darned datasheet again (without any bear ;_, but using the setting in pbp is not working.
I need to change the osccon to %1111100 (most important are that the last two are %00 this makes the pic use the fosc2:fosc0 registry determine the osc setup.
the fosc2:fosc0 is bit 4 1-0 (i am not 100 percent clear on what that means if u have any insight) of the configuration word 1 register whose main address is 2007h.
According to the legend for Configuration word 1 to achieve INTRC (INTERNAL OSC) with i/o on RA6 and RA7 the Fosc2:fosc0 registers need to be changed to %100.
I have tried the _INTRC_OSC_NOCLKOUT, and it did not work, I had the same result.
Now i'll try to break it down a little more.
As a note actually putting the heading 0 on the osccon registry causes the pic to fail to work stabily. It is for now my belief that pbp puts the header there for you.
osccon %111 (first three bits set osc frequincy)
%1(makes us primary only on osc) %1(frequincy is stable ^^)
And with the last two you have some options:
%00 OSC is defined by FOSC<2>
%01 T1OSC used as clock
%10 INTRC FOR SYSTEM CLOCK
%11 Reserved (I have no clue what that means, but I figure I shouldn't try it ^^)
-------------------------------------------------------------------------
So what I am trying looks something like this.
Code:_pic16f88 _INTRC_OSC_NOCLKOUT 'hopefully this modifies the configuration word 1 but it doesn't seem to. OSCCON=%1111100 'sets the osccon register CMCOM=7 'turns comparators off. ANSEL=%00000000 'porta all digital. main: HIGH porta.6 HIGH porta.7 GOTO main: END
Any help would be much appreciated and thankyou very much.
I sense more Whipping in the near future ...
Or, you could opt for the Painless version ..._pic16f88
_INTRC_OSC_NOCLKOUT 'hopefully this modifies the configuration word 1 but it doesn't seem to.
Presetting Configuration Fuses (PIC Defines) into your Program
http://www.picbasic.co.uk/forum/showthread.php?t=543
<br>
DT
Bookmarks