Page 1 of 1
pic 16f88 and servo
Posted: Thu Apr 14, 2011 7:52 pm
by jeannot
Hello,
excuse me i don't know where post my question .
I adapted this program for a PIC 16F88.(andPIC 16F84a , 16F628a)
The simulation with flowcode works well but the compilation is not possible .
That have me forgotten and badly understood ??
The compilation is possible with pic 18F8777a and 16f4455 .
thank you in advance for your advice and excuse me for my langage.
Re: pic 16f88 and servo
Posted: Thu Apr 14, 2011 10:49 pm
by medelec35
Hi jeannot.
The problem is with your configuration settings.
Best thing to do is set up Flowcode to show the full configuration screen (Expert Config Screen)
To do this, select 'Chip' 'Configure' then 'options..'
Un-tick 'Use simple config screen'.
After you have selected OK then you are ready to enter configuration.
Just select 'Chip' 'Configure' again. Now change chip to correct configuration.
See:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936
I am unable to test you flowchart, as I do not have any servos to test with

Re: pic 16f88 and servo
Posted: Thu Apr 14, 2011 11:01 pm
by jeannot
Thank you Medelec i am going to follow your advice.
Re: pic 16f88 and servo
Posted: Fri Apr 15, 2011 10:02 am
by Benj
Hello,
The 16F88 does not have the CCP2 peripheral that is used by the servo component. This is the source of your compilation problems. To use the servo component you need a device with both CCP1 and CCP2 registers i.e. 2 PWM channels in Flowcode.
Re: pic 16f88 and servo
Posted: Fri Apr 15, 2011 10:15 am
by DavidA
Im gonna move this out of "bugs" as its not specifically a bug!
Re: pic 16f88 and servo
Posted: Fri Apr 15, 2011 1:09 pm
by medelec35
Benj wrote:The 16F88 does not have the CCP2 peripheral that is used by the servo component. This is the source of your compilation problems. To use the servo component you need a device with both CCP1 and CCP2 registers i.e. 2 PWM channels in Flowcode.
Thanks for clearing that up Ben. I personally have never had any dealings with servos, so not looked into this deeply enough.
When I looked at the configuration settings, they were in default status. E.g Watchdog Timer on, Low Voltage Program Enabled etc.
@ jeannot, When you change chip, what I posted still will apply.
You had two issues rather than just the one I mentioned.
Re: pic 16f88 and servo
Posted: Fri Apr 15, 2011 3:45 pm
by jeannot
Thank you for your advise.
DavidA, sorry for me mistake