Appendix A 8524 Counter Chip Functions 41
A.4 Counter Operations
Read/Write Operation
Before you write the initial count to each counter, you must first
specify the read/write operation type, operating mode and counter
type in the control byte and write the control byte to the control
register [BASE + 30(Dec)].
Since the control byte register and all three counter read/write
registers have separate addresses and each control byte specifies the
counter it applies to (by SC1 and SC0), no instructions on the operat-
ing sequence are required. Any programming sequence following the
82C54 convention is acceptable.
There are three types of counter operations: Read/load LSB, read /
load MSB and read /load LSB followed by MSB. It is important that
you make your read/write operations in pairs and keep track of the
byte order.
Counter Read-back Command
The 82C54 counter read-back command lets you check the count
value, programmed mode and current states of the OUT pin and Null
Count flag of the selected counter(s). You write this command to the
control word register. Format is as shown at the beginning of this
section.
The read-back command can latch multiple counter output latches.
Simply set the CNT bit to 0 and select the desired counter(s). This
single command is functionally equivalent to multiple counter latch
commands, one for each counter latched.
The read-back command can also latch status information for selected
counter(s) by setting STA bit = 0. The status must be latched to be
read; the status of a counter is accessed by a read from that counter.
The counter status format appears at the beginning of the chapter.
Summary of Contents for PCI-1713
Page 1: ...PCI 1713 32 channel Isolated Analog Input Card User s manual ...
Page 5: ...Chapter 1 General Information 1 1 General Information C H A P T E R ...
Page 11: ...Chapter 2 Installation 7 2 Installation C H A P T E R ...
Page 14: ...1 0 PCI 1713 User s Manual ...
Page 15: ...Chapter 3 Signal Connections 11 3 Signal Connections C H A P T E R ...
Page 23: ...Chapter 4 Register Structure and Format 19 4 Register Structure and Format C H A P T E R ...
Page 34: ...30 PCI 1713 User s Manual ...
Page 35: ...Chapter 5 Calibration 31 5 Calibration C H A P T E R ...
Page 39: ...Appendix A 8524 Counter Chip Functions 35 A 82C54 Counter Chip Functions A P P E N D I X ...
Page 54: ...50 PCI 1713 User s Manual ...