Intel LPCI-7200S Network Card User Manual


 
56
C/C++ Libraries
5.27 _7200_DI_Timer
@ Description
This function is used to set the internal timer pacer for digital input. There are
two configurations for the internal timer pacer:
1. Non-cascaded (One COUNTER 0 only)
Counter 0
CLK0
GATE0
OUT0
8254 Timer/Counter
4MHz Input
Digital Input Trig
g
Timer pacer frequency = 4Mhz / C0
2. Cascaded (TIME2 cascaded with COUNTER0)
Counter 0
Counter 1
Counter 2
CLK0
GATE0
OUT0
CLK1
GATE1
CLK2
GATE2
OUT1
OUT2
8254 Timer/Counter
4MHz Input
Digital Input Trig
g
Timer pacer frequency = 4Mhz / (C0 * C2)
@ Syntax
Visual C++ (Windows 95)
int W_7200_DI_Timer (U16 c0, U16 c2, Boolean mode)
Visual Basic (Windows 95)
W_7200_DI_Timer ( ByVal c0 As Integer, ByVal c2 As Integer,
ByVal mode As Byte ) As Long
C/C++ (DOS)
int _7200_DI_Timer (U16 c0, U16 c2, Boolean mode)
@ Argument
c0: frequency divider of Counter #0. Valid value ranges from 2 to 65535.
c2: frequency divider of Counter #2. Valid value ranges from 2 to 65535.
Note
: Since the Integer type in Visual Basic is a signed integer. Its range is
within -32768 and 32767. In Visual Basic, to set c0 or c2 to a value
larger than 32767, set it as the intended value minus 65536. For
example, to set c0 as 40000, set c0 as 40000-65536=-25536.