DscQMMSetHoldRegister

Universal Driver Documentation
This function is identical to dscQMMSetLoadRegister() except the data is loaded into the selected counter's Hold register instead of the Load register. In some operating modes of the 9513 counter chip, the counter alternates between the Load register and the Hold register when reloading. This feature can be used to generate square waves with variable duty cycles (PWM signals) by loading different values in the Load and Hold registers. See the descriptions of the counter modes in the 9513 datasheet for more detail on the uses of this register.

Function Definition

BYTE dscQMMSetHoldRegister(DSCB board, BYTE counter, WORD value)

Function Parameters

NameDescription
boardThe handle of the board to operate on
counterCounter no., 1-5 for QMM-5, 1-10 for QMM-10
value16-bit load value, range 0-65535

Return Value

Error code or 0.


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