56
3
VMICPCI-7755 Product Manual
Each timer has an independently selectable clock source which is selected by the bit
pattern in the “Timer x Clock Select” field as follows:
Each timer can be independently enabled by writing a “1” to the appropriate “Timer x
Enable” field. Similarly, the generation of interrupts by each timer can be
independently enabled by writing a “1” to the appropriate “Timer x IRQ Enable”
field.
If an interrupt is generated by a timer, the source of the interrupt may be determined
by reading the “Timer x Caused IRQ” fields. If the field is set to “1”, then the
respective timer caused the interrupt. Note that multiple timers can cause a single
interrupt. Therefore, the status of all timers must be read to ensure that all interrupt
sources are recognized.
A particular timer interrupt can be cleared by writing a “0” to the appropriate “Timer
x Caused IRQ” field. Alternately, a write to the appropriate Timer x IRQ Clear (TxIC)
register will also clear the interrupt. When clearing the interrupt using the “Timer x
Caused IRQ” fields, note that it is very important to ensure that a proper bit mask is
used so that other register settings are not affected. The preferred method for clearing
interrupts is to use the “Timer x IRQ Clear” registers described below.
Timer Control Status Register 2 (TCSR2)
The timers are also controlled by bits in the Control Status Register 2 (TCSR2) located
at offset 0x04 from the address in BAR1. The mapping of the bits in this register are as
follows:
The “Read Latch Select” bit is used to select the latching mode of the programmable
timers (See “Timers” section above). If this bit is set to “0”, then each timer output is
latched upon a read of any one of its address. For example, a read to the TMRCCR12
register latches the count of timers 1 and 2. A read to the TMRCCR3 register latches
the count of timer 3. This continues for every read to any one of these registers. As a
Clock Rate
MSb
LSb
2MHz
0
0
1MHz
0
1
500kHz
1
0
250kHz
1
1
Field
Bits
Read or Write
Read Latch Select
TCSR2[0]
R/W
Reserved
All Other Bits
R/W
All of these bits default to “0” after system reset.
Summary of Contents for VMICPCI-7755
Page 2: ......
Page 4: ......
Page 10: ...10 ...
Page 12: ...12 ...
Page 14: ...14 ...
Page 24: ...VMICPCI 7755 Product Manual 24 ...
Page 27: ...27 Hardware Setup 1 Figure 1 1 VMICPCI 7755 PMC and Jumper Locations PMC 1 PMC 2 ...
Page 36: ...36 1 VMICPCI 7755 Product Manual ...
Page 68: ...68 3 VMICPCI 7755 Product Manual ...
Page 70: ...70 4 VMICPCI 7755 Product Manual ...
Page 84: ...84 A VMICPCI 7755 Product Manual ...
Page 96: ...96 B VMICPCI 7755 Product Manual ...
Page 112: ...112 C VMICPCI 7755 Product Manual ...
Page 118: ...118 D VMICPCI 7755 Product Manual ...