pic 16f88 and servo

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
jeannot
Posts: 4
Joined: Sat Nov 28, 2009 2:57 pm

pic 16f88 and servo

Post 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.
Attachments
servotest.fcf
(5 KiB) Downloaded 295 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: pic 16f88 and servo

Post 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 :cry:
Attachments
servotest_Modified_Config.fcf
(5 KiB) Downloaded 313 times
Martin

jeannot
Posts: 4
Joined: Sat Nov 28, 2009 2:57 pm

Re: pic 16f88 and servo

Post by jeannot »

Thank you Medelec i am going to follow your advice.

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: pic 16f88 and servo

Post 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.

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: pic 16f88 and servo

Post by DavidA »

Im gonna move this out of "bugs" as its not specifically a bug!

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: pic 16f88 and servo

Post 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.
Martin

jeannot
Posts: 4
Joined: Sat Nov 28, 2009 2:57 pm

Re: pic 16f88 and servo

Post by jeannot »

Thank you for your advise.


DavidA, sorry for me mistake

Post Reply