Wow, this is going to be very cool Darrel!
I know you said to keep trying if it wouldn't compile but I can't seem to get it to "go thru" when using it in the same program as DT-Ints... Boiled down example, this compiles:
Code:
PRECISION CON 4 SYSTEM
INCLUDE "N-Bit_Math.pbp"
Setpoint VAR BYTE[PRECISION]
Position VAR BYTE[PRECISION]
Error VAR BYTE[PRECISION]
Start:
Pause 10
Goto Start
This does not compile (or assemble):
Code:
PRECISION CON 4 SYSTEM
INCLUDE "N-Bit_Math.pbp"
INCLUDE "DT_INTS-18.pbp" 'Include the interrupt system files.
INCLUDE "ReEnterPBP-18.pbp"
ASM
INT_LIST macro ;IntSource Label Type ResetFlag
INT_Handler INT2_INT, _DoStep, PBP, yes
endm
INT_CREATE
ENDASM
@ INT_ENABLE INT2_INT
Setpoint VAR BYTE[PRECISION]
Position VAR BYTE[PRECISION]
Error VAR BYTE[PRECISION]
Start:
Pause 10
Goto Start
DoStep:
Toggle PortB.7
@ INT_RETURN
I get a whole bunch of Symbol not previously defined FSR0L0L and so on.
Similarily, same code as above but simply removing the INCLUDE "N-Bit_Math.pbp"-line also compiles fine so there seems to be some incompatibillity there.I'm using 18F2431 but the device selected in MCS+ doesn't seem to matter.
Any ideas what might be the issue?
Thanks!
/Henrik.
Bookmarks