OPERATION
Copyright 2007
5-18
S SC150e HARDWARE REFERENCE
5.10 General Purpose Counter/Timer
This 16-bit counter/timer is programmed by changing CSR9[13] and CSR9[14] to select
the desired mode as described in Table 5-5. CSR8[9] can be set to override the
counter/timer mode settings and allow the counter/timer to run free at 26.66 ns
(37.5 MHz). CSR9[12] can be set to generate an interrupt upon overflow of the
counter/timer. The output from the event counter/timer is stored in CSR13. See Appendix
B, page B-4, B-9, B-10, and B-12 for more information.
5.10.1 Available Modes
The General Purpose Counter/Timer register (CSR13) can be used as a counter or a
timer. The mode is selected via a combination of registers and bits that are explained on
page B-10. Table 5-5 describes the counter/timer modes available:
Table 5-5 General Purpose Counter/Timer Modes
Mode Description
Count Errors:
Each error detected in CSR1 will increment the counter by 1.
Count Trigger 1 and 2:
Each time a trigger event occurs the counter will increment.
Transit Time:
Set this mode and clear the counter. The counter will begin counting
when the next message is transmitted, and stop counting when any
message generated by this node is received.
Network Events:
Count incoming network messages.
Free Run @ 26.66 ns:
Increment counter using internal 37.5 MHz clock. Counter will roll
over every 1.78 ms.
Free Run @ 1.706
μ
s with
Trigger 2 to CLEAR:
Increment counter using the 585.9 KHz clock. Counter will roll over
every 111.8 ms. Assertion of Trigger 2 will clear the counter.
5.10.2 Rollover/Reset
A rollover/reset can generate an interrupt by setting Interrupt On General Purpose
Counter/Timer Overflow Mask CSR9[12]. When this bit is set, an interrupt is generated
to the host system whenever the counter register (CSR 13) rolls over or overflows.
Interrupt On Errors CSR0[7] mode must be enabled in order for this to work properly.
The counter/timer will roll over when it reaches 65,535 + 1.
Only one mode may be selected at a time since they use the same counter/timer register
(CSR13) for output.
5.10.3 Presetting Values
The counter/timer register counts upward and may be preset with a value to arrive at the
desired interrupt interval.
Содержание SCRAMNet+ SC150e
Страница 1: ...SC150e PCI PMC CPCI Bus Universal Signaling Hardware Reference Document No D T MR PCPMCPE A 1 A4 ...
Страница 2: ......
Страница 24: ...SCRAMNET OVERVIEW Copyright 2007 2 12 SCRAMNet SC150e HARDWARE REFERENCE This page intentionally left blank ...
Страница 32: ...PRODUCT OVERVIEW Copyright 2007 3 8 SCRAMNet SC150e HARDWARE REFERENCE This page intentionally left blank ...
Страница 45: ...INSTALLATION Copyright 2007 4 13 SCRAMNet SC150e HARDWARE REFERENCE Figure 4 13 Bypass State Power Off ...
Страница 79: ...OPERATION Copyright 2007 5 29 SCRAMNet SC150e HARDWARE REFERENCE Figure 5 10 Quad Switch ...
Страница 82: ......
Страница 94: ......
Страница 108: ......
Страница 120: ...CSR SUMMARY Copyright 2007 C 12 SCRAMNet SC150e HARDWARE REFERENCE This page intentionally left blank ...
Страница 121: ...D D CONFIGURATION AIDS APPENDIX D CONFIGURATION AIDS ...
Страница 122: ......
Страница 126: ...CONFIGURATION AIDS Copyright 2007 D 4 SCRAMNet SC150e HARDWARE REFERENCE This page intentionally left blank ...
Страница 127: ...1 GLOSSARY GLOSSARY ...
Страница 128: ......
Страница 134: ...GLOSSARY Copyright 2007 Glossary 6 SCRAMNet SC150e HARDWARE REFERENCE This page intentionally left blank ...
Страница 135: ...1 INDEX INDEX ...
Страница 136: ......