Servo C Compiler Error

Moderator: Benj

Post Reply
User avatar
BChappy
Posts: 15
Joined: Fri Jun 19, 2009 11:03 pm
Location: Lincoln, UK.
Has thanked: 13 times
Been thanked: 7 times
Contact:

Servo C Compiler Error

Post by BChappy »

Hello,

I am getting compiler errors when I add the "servo macros"
Attached are the "cut down" versions of my program.

I have the latest V5.1 Pro. install.
My old V4 Pro. seems to show similar errors!

[img]
Screen_FCv5_errors.jpg
Screen_FCv5_errors.jpg (166.64 KiB) Viewed 2937 times
[/img]

Thanks

Brian
Attachments
16F690_NO_enable_servo_.fcf
(6.5 KiB) Downloaded 278 times
16F690_with_enable_servo_.fcf
(6.5 KiB) Downloaded 289 times
Is your Project Not Working? - Help and General Advice Click here!
Flowcode v8 forum topic - Click here!

User avatar
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: Servo C Compiler Error

Post by Benj »

Hello,

The Servo component requires 2 x capture compare PWM peripherals to allow the component code to define the mark and space of the servo signal correctly.

The 16F690 only has one hardware PWM channel available so it currently cannot be used with the servo component.

Post Reply