View previous topic :: View next topic |
Author |
Message |
deperkin
Joined: 04 Feb 2009 Posts: 83 Location: PA
|
PWM using a 30F4013 |
Posted: Wed Sep 29, 2010 9:02 am |
|
|
I realize that many do not use the dsPIC's...
I have a question regarding the PWM however.
Would the PWM work the same way as an 8-bit uC on a 30F4013?
by 'same way' I mean just picking a duty cycle and calling the same function as you would with an 8-bit uC ...
If anyone has an example for this PIC i would appreciate it...
I do not need any whole code here, just an example of how it is implemented.
appreciated as always |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Sep 29, 2010 11:27 am |
|
|
CCS has an example for the 30F2010 in this file. It may help:
Code: |
c:\program files\picc\examples\ex_pwm.c
|
|
|
|
deperkin
Joined: 04 Feb 2009 Posts: 83 Location: PA
|
Thanks |
Posted: Wed Sep 29, 2010 12:55 pm |
|
|
Thanks as always.
Also, I have tried your CCP example to capture and measure a frequency, which worked very well (thank you)
Do you know if this would be just as applicable for the IC pins on the dsPICs ?
I cannot see why it would not work, but thought you may know if it would not. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Sep 29, 2010 2:13 pm |
|
|
The problem is that I don't have the PCD compiler so I can't check it.
So I don't know. |
|
|
deperkin
Joined: 04 Feb 2009 Posts: 83 Location: PA
|
|
Posted: Wed Sep 29, 2010 2:49 pm |
|
|
No problem, thanks though...
I will check it and see before long and let you know. |
|
|
|