Page 24
Register Description
IF2008/PCIe / IF2008E
Value (F) = (F
Clock
/
F
OUT
)
- 1
Value (PW)
=
(PW
OUT
/
T
Clock
)
Example:
Desired frequency F
OUT
= 10 kHz
Desired pulse width PW
OUT
= 25 µs
Clock splitter = 0 > F
Clock
= 24 MHz,
T
Clock
= 41.667 ns (see
the following table for clock splitter)
Value (F) = (24 MHz / 10kHz) - 1 = 2399
Value (PW) = (25 µs / 41.667 ns) = 600
The input values must be whole numbers!
F
PW
Fig. 32: Timer frequency and pulse width
i
The pulse width only affects the “sensor trigger” and
“optocoupler” outputs and not the internal synchroniza-
tion signals. For this, the zero crossing timer is used. To
turn off the timer, the frequency must be programmed to
be „0“. If pulse width > 0 is programmed when the timer
is turned off, output is permanently set to High. However,
if the pulse width is also programmed to be „0“, output is
permanently set to Low.
10.10 Counter Preload
Base addr. Counter channel Value
Access
+ 18h
1 LSW
0 to 65.535 only write access
+ 1Ah
1 MSW
0 to 65.535 only write access
+ 1Ch
2 LSW
0 to 65.535 only write access
+ 1Eh
2 MSW
0 to 65.535 only write access
Fig. 29: Base addresses for counter preload
10.11 Counter Value
Base addr. Counter channel Value
Access
+ 18h
1 LSW
0 to 65.535 only read access
+ 1Ah
1 MSW
0 to 65.535 only read access
+ 1Ch
2 LSW
0 to 65.535 only read access
+ 1Eh
2 MSW
0 to 65.535 only read access
Fig. 30: Base addresses for counter value
10.12 Timer
Base addr. Counter channel Value
Access
+ 20h
1 frequency
0 to 65,535 only write access
+ 22h
1 pulse width
0 to 65,535 only write access
+ 24h
2 frequency
0 to 65,535 only write access
+ 26h
2 pulse width
0 to 65,535 only write access
+ 28h
3 frequency
0 to 65,535 only write access
+ 2Ah
3 pulse width
0 to 65,535 only write access
+ 2Ch
Clock splitter
Read and write access
Fig. 31: Base addresses for timer