<< Previous | Next >> | |
|
unsigned long pwm_init( unsigned long frequency );
Description
- Sets the base frequency for the pulse width modulation (PWM) and enables the PWM driver on all four channels. The base frequency is the frequency without pulse spreading. Pulse spreading (see
pwm_set()
) will increase the frequency by a factor of 4.
- This function is intended for use with the Rabbit 3000 and Rabbit 4000.
Parameter
- frequency
- Requested frequency (in Hz)
Return Value
- The actual frequency that was set. This will be the closest possible match to the requested frequency.
Library
- PWM.LIB (was in R3000.LIB prior to DC 10)
Dynamic C Functions | << Previous | Next >> | rabbit.com |