thanks for your support.
my file starts so :
@ __config _HSPLL_OSC_1H
DEFINE OSC 40
i compile with the mpasm and get this error message :
[126] .. : argument out of range (not a valid config register address)
thanks for your support.
my file starts so :
@ __config _HSPLL_OSC_1H
DEFINE OSC 40
i compile with the mpasm and get this error message :
[126] .. : argument out of range (not a valid config register address)
NOP.... Read the bottom of your .inc file. you must write...
@ __CONFIG _CONFIG1H, _HSPLL_OSC_1H
DEFINE OSC 40
what about now![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
first i got two error messages about "overwriting previous address content" which i fixed with comment out the line "_CONFIG1H......" in 18F242.inc from the PBP root.
for testing i work with a simple programm which blinking a led. it works..., but the pause command is 4 times slower then it should be. so, it seems the pic works with the 10mhz from the external oscillator, not with the 40mhz i wish.
in the melabs programmer i've set the oscillator to HS as HSPLL too for testing, the result is the same. what can be wrong again?
thanks a lot for a support
That's strange. I'm not 100% of what i say but, looks like your programmer don't program the configuration bits for your device.
What's happening if you use a 20 MHZ oscillator and use HS mode???
what about now if you use a 4mhz and and use XT mode???
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Whether you set the config bits in your program or not, you should be capable of setting those bits manually prior to burning the PIC. If your programmer is incapable of doing that, you may need a sortware update for it, or alternatively you might need a better programmer.
that's for sure Melanie. But i think you can setup Melabs programmer to write configuration bits or not... i'm really not sure of what i say. Maybe some EPIC user or Bruce can second this ?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
first of all, thanks to steve and melanie for their feedback and help.
unfortunalety is doesn't work better.
i have this versions :
MicroCode Studio Plus 2.1.07
PicBasic Pro 2.44
MPASM 3.90 (updated today from 3.50)
melabs Serial Programmer 3.13 (updated today from 3.10)
firmware of the programmer 3.5 (updated today from 3.2)
my code is this :
@ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HSPLL_OSC_1H
DEFINE OSC 40
led var porta.0
init:
clear
TRISA = %00000000
PORTA = 0
main:
high led
pause 1000
low led
pause 1000
GOTO main
END
in the 18f242.inc file of the pbp root, i set line 20 as follow :
; __CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
assembled with MPASM 3.90, getting no errors and no warnings. nothing.
problem : if i set the osc to 10, it works fine. when i set the osc to 40,
it works 4 times slower. (i work with a 10 mhz at a 18f242 and capacitors
with 22pf). in the melabs settings i test hs as osc as well as the hspll.
both settings have the same effect.
many thanks for any comment and idea...
Bookmarks