
Originally Posted by
john_mac
i am trying to figure out how to use "extensions" to pbp variables...i'm sure that isn't the right name, but what i mean is something like:
Intcon.intedg
this works in asm, but gives an error in pbp. If i use:
Intcon.6
it works fine.
I have a pbp program that has an asm interrupt routine. When i use the first example above it knows what value intedg is and works fine. Same program in the pbp section, it gives an error. All these "extensions" are defined in the .sym file, but the compiler doesn't seem to know about it for pbp code.
I use the following line config line at the start of the program:
@ device pic16f627a, intrc_osc_noclkout, wdt_off, pwrt_on, mclr_off, lvp_off, protect_off
i haven't seen these "extensions" used in any of the sample programs, but i haven't looked at them all.
Thanks
john
Hi John, something like this ?
Code:
INTEDG Var INTCON.6
INTEDG = 0
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