Page 1 of 1

Servo component problems

Posted: Mon Aug 22, 2011 6:15 pm
by mariusvd
I have a problem with the servo component. I run a windows7 professional based system (32 Bit).

Please help.



File name: C:\Users\Marius\Desktop\Servo Test\ServoMinimal.c

Generated by: Flowcode v4.5.18.74

Date: Monday, August 22, 2011 19:06:12

Licence: Professional

Registered to: ***************





http://www.matrixmultimedia.com





Launching the compiler...

c:\program files\matrix multimedia\flowcode v4\boostc\boostc_pic16_flowcode.exe -v -t PIC16F88 "ServoMinimal.c"

BoostC Optimizing C Compiler Version 7.04 (for PIC16 architecture)

http://www.sourceboost.com

Copyright(C) 2004-2011 Pavel Baranov

Copyright(C) 2004-2011 David Hobday



Licensed to FlowCode User under Single user Pro License for 1 node(s)

Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited





ServoMinimal.c

Starting preprocessor: c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\pp.exe ServoMinimal.c -i c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include -d _PIC16F88 -la -c2 -o ServoMinimal.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX





.



ServoMinimal.c(543:2): error: unknown identifier 'ccp2con'

ServoMinimal.c(543:2): error: invalid operand 'ccp2con'

ServoMinimal.c(543:10): error: failed to generate expression

ServoMinimal.c(544:21): error: unknown identifier 'CCP2IE'

ServoMinimal.c(544:21): error: invalid operand 'CCP2IE'

ServoMinimal.c(544:16): error: failed to generate expression

ServoMinimal.c(544:16): error: invalid operand '<<'

ServoMinimal.c(544:10): error: failed to generate expression

ServoMinimal.c(586:2): error: unknown identifier 'ccpr2h'

ServoMinimal.c(586:2): error: invalid operand 'ccpr2h'

ServoMinimal.c(586:9): error: failed to generate expression

ServoMinimal.c(587:2): error: unknown identifier 'ccpr2l'

ServoMinimal.c(587:2): error: invalid operand 'ccpr2l'

ServoMinimal.c(587:9): error: failed to generate expression

ServoMinimal.c(593:24): error: unknown identifier 'CCP2IF'

ServoMinimal.c(593:24): error: invalid operand 'CCP2IF'

ServoMinimal.c(593:19): error: failed to generate expression

ServoMinimal.c(593:19): error: invalid operand '<<'

ServoMinimal.c(593:14): error: failed to generate expression

ServoMinimal.c(593:55): error: unknown identifier 'CCP2IE'

ServoMinimal.c(593:55): error: invalid operand 'CCP2IE'

ServoMinimal.c(593:50): error: failed to generate expression

ServoMinimal.c(593:50): error: invalid operand '<<'

ServoMinimal.c(593:45): error: failed to generate expression

ServoMinimal.c(593:14): error: invalid operand '& '

ServoMinimal.c(593:45): error: invalid operand '& '

ServoMinimal.c(593:34): error: failed to generate expression

ServoMinimal.c success



failure



Return code = 1



Flowcode was unable to compile the flowchart's C code due to the following errors:





If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.



FINISHED

Re: Servo component problems

Posted: Mon Aug 22, 2011 6:35 pm
by medelec35
Hi mariusvd.

The servo component requires 2 PWM components. 16F88 only has one, so that's why you get the errors.
You will need to select a chip that has 2 pwm see:
http://www.matrixmultimedia.com/mmforum ... 201#p22195
Or I have posted created a servo controller article using no PWM modules, so will work with 16F88.
See: http://www.matrixmultimedia.com/article.php?a=435

Martin

Re: Servo component problems

Posted: Tue Aug 23, 2011 7:17 am
by mariusvd
Thank you for the speedy reply.