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
16F675 interupt
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: 16F675 interupt
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
Regards,
Jac
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

Regards,
Jac
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: 16F675 interupt
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.
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: 16F675 interupt
Thanks for the reply version is V3.6 11 53. I will try to ammend the FCD
Thanks
BillM.......
Thanks
BillM.......