![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
razavi
Joined: 19 Jul 2010 Posts: 10
|
PIC16F886 PWM |
Posted: Mon Aug 23, 2010 3:47 am |
|
|
Hi,
I have this development kit
http://www.ccsinfo.com/product_info.php?products_id=wirelesszigb
Sorry for my newbie question, I want to generate 10Khz PWM with one of the 16F886 module. Is it possible ?
From the examples and header files I don't get when we enable the pwm, which pin generates the frequency output ?
Regards |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19359
|
|
Posted: Mon Aug 23, 2010 8:37 am |
|
|
The key part of this, is to start by looking at the chip's data sheet.
A lot may be beyond you initially, but look for the section on the CCP, and it'll give the logical 'name' for the output pin. Then look at the pin diagram, and find which physcial pin this is on. 'Viola', you have then found which pin the PWM comes out on....
The data sheet for the PIC you are using, is a vital part of the data you need to have, to work with PIC's. The compiler doesn't tell you, because there are hundreds of different PICs, with dozens of different output pin combinations...
On whether you 'can' develop a 10K PWM, almost certainly. What resolution you will have, and how close you can get will depend on the clock frequency of the PIC.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
pmuldoon
Joined: 26 Sep 2003 Posts: 218 Location: Northern Indiana
|
|
Posted: Mon Aug 23, 2010 8:48 am |
|
|
Good answer, Ttelmah.
I'm starting to think that some of the vague questions I see on this forum are just looking for a nudge to push them in the right direction, rather than a detailed analysis and solution. |
|
![](templates/subSilver/images/spacer.gif) |
razavi
Joined: 19 Jul 2010 Posts: 10
|
|
Posted: Mon Aug 23, 2010 6:40 pm |
|
|
Thank you for your response Ttelmah, I'll try to find it out from data sheet.
and I think this place is not only for professional people, 3 weeks ago I didn't know anything about PIC and in this place that I'm living there is no one that know anything about these things, at least with help of people like Ttelmah I established my xigbee, i2c, serial connection, A2D, D2A with max519 and ....
I know these kind of questions may not be useful for pro people.
Sorry for my bad english.
Regards. |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|