DscQMMPulseWidthModulation

Universal Driver Documentation
This function generates an output signal on the selected counter onf Quartz-MM to the selected frequency with the selected duty cycle. The duty cycle is defined as the percent of time that the output is high. A 50% duty cycle represents a square wave (equal high and low periods), while a duty cycle of 0% means always low and a duty cycle of 100% means always high. The range for duty cycle is 0 to 99.99 in steps of .01. a duty cycle of 100% is not possible with this function.

The function takes as inputs the desired counter, output frequency, and duty cycle. It returns status information indicating the selected input frequency, the resulting load and hold register values, and a flag indicating whether the function has reached either duty cycle limit.

Function Definition

BYTE dscQMMPulseWidthModulation(DSCB board, DSCQMMPWM* pwm);

Function Parameters

NameDescription
boardThe handle of the board to operate on
pwmStructure containing configuration data for the function; see definition DSCQMMPWM.

Return Value

Error code or 0.


This page was last modified 12:22, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.