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.
pic 16f88 and servo
Moderator: Benj
-
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
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
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
- Attachments
-
- servotest_Modified_Config.fcf
- (5 KiB) Downloaded 313 times
Martin
- 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
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.
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.
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
-
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
Thanks for clearing that up Ben. I personally have never had any dealings with servos, so not looked into this deeply enough.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.
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