108
D.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
operating 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. The 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
Summary of Contents for MIC-3716
Page 2: ...ii This page is left blank for hard printing...
Page 6: ...vi This page is left blank for hard printing...
Page 8: ...viii Table E 2 D A binary code table 117...
Page 11: ...1 Introduction 1 CHAPTER...
Page 17: ...7 Fig 1 1 Installation Flow Chart...
Page 21: ...11 Installation and Configuration CHAPTER 2...
Page 40: ...30 This page is left blank for hard printing...
Page 41: ...31 Signal Connections CHAPTER 3...
Page 44: ...34 Fig 3 1 I O connector pin assignments for the MIC 3716...
Page 50: ...40...
Page 54: ...44 This page is left blank for hard printing...
Page 55: ...45 Software Programming Overview CHAPTER 4...
Page 60: ...50 This page is left blank for hard printing...
Page 61: ...51 Calibration CHAPTER 5...
Page 77: ...67 Appendixes...
Page 81: ...71 Appendix B Block Diagrams...
Page 82: ...72 This page is left blank for hard printing...
Page 120: ...110 This page is left blank for hard printing...