
User’s Manual
53
4.4.6 Analog Outputs
This function from the
R3000.LIB
library in
Lib\Rabbit3000
sets the base frequency for the
PWM pulses and enables the PWM driver on all four channels. The base frequency is the frequency
without pulse spreading. Pulse spreading will increase the frequency by a factor of 4.
PARAMETER
frequency
is the frequency (in Hz)
RETURN VALUE
Actual frequency set. This will be the closest possible match to the requested frequency.
Option flags are used to enable features on an individual PWM channels. Use
pwm_init()
to set the
frequency.
An exception error will occur if
brdInit()
has not been called previously.
PARAMETERS
channel
is the PWM output channel to set: 0 for DA0, 1 for DA1.
pwmoption
is used to set the PWM options as a combination of the following bit masks:
PWM_NORMAL
—sets normal push-pull logic output.
PWM_SPREAD
—Set pulse spreading. The duty cycle is spread over four separate pulses to increase
the pulse frequency. Use this option for A/D and D/A conversions.
PWM_OPENDRAIN
—sets the PWM output pin to be open-drain. This mask is usually not used.
RETURN VALUE
None.
SEE ALSO
pwm_init, brdInit
unsigned long pwm_init(unsigned long frequency);
void pwmOutConfig(unsigned int channel,
int pwmoption);
Содержание Coyote BL2500
Страница 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Страница 6: ...Coyote BL2500...
Страница 71: ...User s Manual 65 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the Coyote...
Страница 90: ...84 Coyote BL2500...
Страница 103: ...User s Manual 97 function calls readUserBlock 36 writeUserBlock 36 sample programs USERBLOCK_INFO C 52 55 56...
Страница 104: ...98 Coyote BL2500...
Страница 106: ......