Hi ngeronikolos,
Please read this thread:
http://www.picbasic.co.uk/forum/showthread.php?t=543
You will see to use internal Osc does not require you to set osc to HS, are you doing that manualy in the programmers fuse?, I ask because of your comment in define statement?
Early in your code put CMCON = 7 to disable comparators.
your statement:
Code:
'constants for RF configuration modes
CONRFRX var byte
CONRFTX var byte
these are set as variables not constants.
Call to nonexistant sub directory: GOSUB initRFConfig
What is " mpla " ?
your
Code:
'constants to define receive/transmit modes at 2402 Mhz frequency
CONRFTX = $04
RFCurrentState = CONRFTX
If you had properly set those as constants, I do not think you could redefine them later in code, since you set them as VAR it works. to make them constants just rewrite as:'at the beginning, then you give the variable RFCurrentState it's value as above RFCurrentState = CONRFTX .
This is your statament:
@ DEVICE pic16F648A, INTRC_OSC_NOCLKOUT ' system clock options
Change to :
@ DEVICE pic16F648A, INTOSC_OSC_NOCLKOUT ' use internal OSC instead of R/C osc
If you installed everything in the default places when you setup PBP then you should find a file called P16F648A in this directory:C:\Program Files\Microchip\MPASM Suite , open it and look at the last several lines to see all available config fuses for this chip.
Last edited by Archangel; - 2nd March 2008 at 19:57.
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.
Bookmarks