101-0602 Rabbit Semiconductor, 101-0602 Datasheet - Page 59

no-image

101-0602

Manufacturer Part Number
101-0602
Description
COMPUTER SNGL BRD BL2500 44.2MHZ
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0602

Module/board Type
Single Board Computer Module
For Use With/related Products
BL2500
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
4.4.6 Analog Outputs
PARAMETER
RETURN VALUE
PARAMETERS
RETURN VALUE
SEE ALSO
User’s Manual
unsigned long pwm_init(unsigned long frequency);
void pwmOutConfig(unsigned int channel,
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.
frequency is the frequency (in Hz)
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.
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:
None.
int pwmoption);
PWM_NORMAL—sets normal push-pull logic output.
PWM_SPREAD—Set pulse spreading. The duty cycle is spread over four separate pulses to increase
PWM_OPENDRAIN—sets the PWM output pin to be open-drain. This mask is usually not used.
pwm_init, brdInit
the pulse frequency. Use this option for A/D and D/A conversions.
53

Related parts for 101-0602