Page 1 of 1

16F675 interupt

Posted: Wed May 06, 2009 5:42 pm
by Billm
Hi i am try to use the GP2 interupt on the 16f675 but when compiling I get the following errors the program is just a simple test to get used to the function..... Help file attached

Bill Signal Solution....

sleep test.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\Documents and Settings\Bill\My Documents\Signal\LOOP\Industrial Loop\TAGS\MP\sleep test.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC12F675 -la -c2 -o "sleep test.pp" -v -d _BOOSTC -d _PIC16

C:\Documents and Settings\Bill\My Documents\Signal\LOOP\Industrial Loop\TAGS\MP\sleep test.c(115:2): error: unknown identifier 'iocb'
C:\Documents and Settings\Bill\My Documents\Signal\LOOP\Industrial Loop\TAGS\MP\sleep test.c(115:2): error: invalid operand 'iocb'
C:\Documents and Settings\Bill\My Documents\Signal\LOOP\Industrial Loop\TAGS\MP\sleep test.c(115:7): error: failed to generate expression
sleep test.c success
sleep test.fcf
(4 KiB) Downloaded 419 times

Re: 16F675 interupt

Posted: Wed May 06, 2009 5:45 pm
by Billm
this time with file

Re: 16F675 interupt

Posted: Wed May 06, 2009 10:54 pm
by kersing
Hi,

It looks like a (small) error in the flowcode definition. At least, looking at the processor definition IOC is defined, IOCB is not. You could try changing iocb to ioc (multiple times) in 12F675.fcd (directory Program Files\Matrix Multimedia\Flowcode V3\fcd) Or wait for Ben or Steve to provide the official word on the subject :P

Regards,

Jac

Re: 16F675 interupt

Posted: Thu May 07, 2009 8:09 am
by Benj
Hello

Yes Jac is correct it must be a small bug in the FCD file. Which version of Flowcode are you using?

If you go to Edit -> Supplementary code and add the following line to the defines input box then your program should compile correctly.

Code: Select all

#define  iocb  ioc
Alternativly you can fix the bug by opening the FCD file and doing a search and replace for the text "iocb" and changing it to ioc.

Re: 16F675 interupt

Posted: Sat May 09, 2009 9:19 am
by Billm
Thanks for the reply version is V3.6 11 53. I will try to ammend the FCD

Thanks

BillM.......