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
SERVO
Moderator: Benj
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
- 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
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.
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.
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
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
Re: SERVO
Hello Benj,
Thanks for the information, I thought that only 1 PWM was needed
Best Regards !!!
Enrique
Thanks for the information, I thought that only 1 PWM was needed
Best Regards !!!
Enrique