DSCCR
Structure containing information on all counters. This is used for functions operating on 82C54 counters.
Structure Definition
Structure Members
Name
Description
Applicable Boards
control_code
Control code to write to or read from the control word register
Diamond-MM-16RP-AT
counter_number
Selected counter, 0-2
Diamond-MM-16RP-AT
counter_data
Counter divisor value, 0-65535
Diamond-MM-16RP-AT
counter0
Status and data read from counter 0
Diamond-MM-16RP-AT
counter1
Status and data read from counter 1
Diamond-MM-16RP-AT
counter2
Status and data read from counter 2
Diamond-MM-16RP-AT
control_bit
Used in conjunction with control_code
NA
counter[]
Counter 2 data read
NA
CtrClock
Clock source
NA
CtrOutEn
Enable and disable output onto corresponding I/O pin
NA
CtrOutPol
Output pulses high or low only used if CtrOutEn = 1
NA
CtrCountDir
Setting counter direction
NA
CtrReload
Setting auto reload
NA
Rate
Desired output rate, Hz
NA
ctrOutWidth
Counter output width in terms of clock
NA
CtrCmd
Counter commands
NA
CtrCmdData
Auxiliary data for counter command
NA
ActRate
Actual rate resulting from the closest divisor available for the desired rate
NA
Start
To start the counter
NA
GateEn
To enable external gate in RMM1616
NA
Last updated
Was this helpful?