typedef struct {
BYTE counter_group; BYTE fout_divider; BYTE fout_source; BYTE compare1_enable; BYTE compare2_enable; BYTE tod_mode;
} DSCQMMMMR;
Name | Description |
---|---|
counter_group | The control code to write to or read from the control word register |
fout_divider | Divider for the 9513 chip's internal frequency generator; range is 1-16. The output frequency of the fout pin is fout_source / fout_divider. The fout (frequency output) pin from counter chip 1 is available on pin 31 of the board's I/O header and may be used by counters 1-5. The fout signal from chip 2 is not available externally but may be used within the chip by counters no. 6-10. |
fout_source | Source frequency for the 9513 chip's internal frequency generator. Select from fout macros in above list. |
compare1_enable | TRUE = Enable the comparator on counter 1; FALSE = disabled |
compare2_enable | TRUE = Enable the comparator on counter 2; FALSE = disabled The comparator function allows the use of counters 1 and 2 on each 9513 chip as totalizers with alarm outputs. When the count of any counter whose comparator is enabled equals the value programmed in that counter's alarm register, the counter output will be true, otherwise it will be false. The alarm register is programmed with function dscQMMSpecialCounterFunction. |
tod_mode | Time-of-day mode; select from time-of-day macros in above list. The time-of-day circuit is intended to be used with an input frequency of 50Hz, 60Hz, or 100Hz. The divider of 5, 6, or 10 is chosen to match the input frequency and provide a 0.1 second resolution. On a CPU with a built-in real-time clock, the time-of-day circuit is generally not needed. |
Also see this list of QMM Macros.
This page was last modified 01:48, 30 Jan 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.