Hi,
I may have mis-understood your post but if you're just trying to set the configuration bits try:
for PM Assembler:
Is this what you're after?Code:@ device INT_OSC, MCLR_OFF
Kind regards
Rob
Hi,
I may have mis-understood your post but if you're just trying to set the configuration bits try:
for PM Assembler:
Is this what you're after?Code:@ device INT_OSC, MCLR_OFF
Kind regards
Rob
Hi Darrenmac,
see this thread for configs.
http://www.picbasic.co.uk/forum/showthread.php?t=543
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.
I have read the suggested post again. All examples in this post appear to set each option in the config seperatly, ie pic type, mclr, pwrt as seperate comands but the datasheet for the 16f688 shows a config register called 11.1 (page 100) with each option as seperate bits either set or cleared. Can I just send this as a binary string (or hex equivelent)? if so how?
It never worked that way for me, every newbie reads that and tries it,(I did) and it has never worked that I heard of. You can string the commands together though, like so:
The data sheet shows you what happens in those registers, but you can access them only at program time and require you to use the proper syntax as shown in Melanies post.Code:@ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON & _LVP_OFF & _CP_ALL & _DATA_CP_ON
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.
Ok that clears that up a bit. I guess its more reading and experementing. Thanks
I have tried some of the examples in the suggested post but I get compile errors.
Here are some of what I have tried
@ CONFIG FOSC = HS
opcode expected instead of config
ASM
CONFIG OSCS=OFF ; Oscillator switch OFF
ENDASM
Same error
@ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H
Same error
I am using Picbasicpro with microcode studios
Bookmarks