Page 1 of 1

SERVO

Posted: Wed Apr 25, 2018 1:02 am
by electron67
Hello, I have problems with the servo when you use other pic (pic16f819, 12f1840, 16f628, 16f648a)

in the example the program uses a PIC16F877A and if it compiles well flowcode7, but you change the pic by the PIC16F819 and when you compile it says error 1

Can someone help me ?
Enrique

Re: SERVO

Posted: Wed Apr 25, 2018 9:54 am
by Benj
Hello Enrique,

The Servo component requires 2 PWM channels to allow the Servo output to be generated. The 16F819 only has one PWM channel available, hence the compile errors.

You can use the DeviceHelper component from the Tools menu to tell you how many peripherals your selected chip has onboard.

Re: SERVO

Posted: Wed Apr 25, 2018 2:04 pm
by electron67
Hello Benj,

Thanks for the information, I thought that only 1 PWM was needed

Best Regards !!!
Enrique