hisham.i
Joined: 22 Aug 2010 Posts: 43
|
PIC18f2331, PWM module |
Posted: Fri Aug 27, 2010 7:49 am |
|
|
Hello,
Am using pic18f2331, and I want to get pwm outputs...but am not so good in pwm, so I want to know some information about the parameters of pwm functions.
Code: |
setup_power_pwm(modes, postscale, time_base, period, compare, compare_postscale, dead_time)
|
What is meant by the time base?
How can I calculate it?
The second thing is in the calculation of the pwm period. In the data sheet there is a parameter called PTMRPS, which I don't know what it is. |
|