That is correct, there are two versions - one (DT_INTS-18) for PIC18 and one (DT_INTS-14) for PIC12 and 16. See here for more details.
That is correct, there are two versions - one (DT_INTS-18) for PIC18 and one (DT_INTS-14) for PIC12 and 16. See here for more details.
Hmmm.... it would appear that DT_INST-14 doesn't work with PIC12F683
I downloaded Ver 1.1 of the application and trialed the "Hello World" program from Darrel's website.
I made the necessary change from PORTB.1 to GPIO.1 for the LED1 variable but got a host of errors when compiling:
Error[101] DT_INTS-14 TEST.ASM 235 : ERROR: (wsave variable not found,)
Error[101] DT_INTS-14 TEST.ASM 201 : ERROR: (" Add:" wsave VAR BYTE $20 SYSTEM)
Error[101] DT_INTS-14 TEST.ASM 256 : ERROR: (Chip has RAM in BANK1, but wsave1 was not found.)
Error[101] DT_INTS-14 TEST.ASM 208 : ERROR: (" Add:" wsave1 VAR BYTE $A0 SYSTEM)
Should I be able to do this with a PIC12F683?
Can anyone provide some input to this problem?
I have attached a copy of the full code for review.
Cheers
Barry
The cool thing is the answer is in the error message.
So..Error[101] DT_INTS-14 TEST.ASM 235 : ERROR: (wsave variable not found,)
Error[101] DT_INTS-14 TEST.ASM 201 : ERROR: (" Add:" wsave VAR BYTE $20 SYSTEM)
Put
wsave VAR BYTE $20 SYSTEM
in your code's variable section.
Dave
Always wear safety glasses while programming.
Thanks Dave.
I have added the two variables wsave and wsave1 as specified in DT_INST-14.bas
I now have more errors at compilation:
Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p12F683 "DT_INTS-14 Test.bas"
Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p12F683 "DT_INTS-14 Test.bas"
PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
All Rights Reserved.
Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p12F683 "DT_INTS-14.bas"
Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p12F683 "DT_INTS-14.bas"
PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
All Rights Reserved.
ERROR: Unable to execute mpasmwin.Error[113] C:\PBP\PBPPIC14.LIB 1165 : Symbol not previously defined (INT_ENTRY)
Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 187 : ERROR: (wsave variable not found,)
Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 153 : ERROR: (" Add:" wsave VAR BYTE $20 SYSTEM)
Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 208 : ERROR: (Chip has RAM in BANK1, but wsave1 was not found.)
Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 160 : ERROR: (" Add:" wsave1 VAR BYTE $A0 SYSTEM)
Halting build on first failure as requested.
Any clues here?
Again, I have attached a copy of my main code for review.
Cheers
Barry
It's trying to compile both your source file and the include file separately.
Remove DT_INTS-14.bas from the "Source Files".
You should only have your main program in the source files list of MPLAB.
DT
Thanks Darrel - that did the trick.
Now that I have the simple things sorted it is onwards and upwards to bigger and better phases of my project.
Cheers
Barry
OK, I have now tried to implement the DT_INST-14 routines into my main project code. The attached code file has sufficient comments to explain what it is doing.
I am getting the following errors when I try to compile the program:
Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k- -p12F683 "PICSprayer.bas"
Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k- -p12F683 "PICSprayer.bas"
PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
All Rights Reserved.
ERROR: Unable to execute mpasmwin.Error[127] C:\PBP\PROJECTS\PIC SPRAYER\PICSPRAYER.ASM 912 : Too many arguments
Error[128] C:\PBP\PROJECTS\PIC SPRAYER\PICSPRAYER.ASM 473 : Missing argument(s)
Halting build on first failure as requested.
BUILD FAILED: Fri Jul 08 11:35:51 2011
My code compiles properly without the interrupt routine for the manual switch operation. Now I just don't know where to start looking to fix these errors.
Any help would be greatly appreciated.
Cheers
Barry
PICSprayer.bas
PICSPRAYER_r6.pdf
Bookmarks