Counter Function; Table 4-11 Counter Mode Register - Advantech MIC-3756 Manual

Hide thumbs Also See for MIC-3756:
Table of Contents

Advertisement

4.4 Counter Function

The MIC-3756 provides one 16-bit up Counter/Timer function.
Counter/Timer function can be configured by setting the
corresponding counter registers. Moreover, you can setup the
Counter/Timer mode by Counter Mode Register, as shown in Table
4-11.
Base Add.+ Ch
Abbreviation
Counter Mode Register
Counter Gate control: CM1, CM0
Interrupt Control Register: CM2
CLK source control: CM3
DO00 output Control: CM5, CM4
Table 4-12 shows the counter read back value register. Users can read
this register to get the current value of counter. Table 4-13 show the
counter set value register. The register can set the initial value of
counter, and the MAX of initial value is 65535.
38

Table 4-11 Counter Mode Register

5
CM5
00 = stop counter
01 = DI16 as GATE high
10 = DI16 as GATE low
11 = No Gating
0 = disable interrupt
1 = Enable interrupt
0 = DI00
1 = 1MHz clock source on broad
00 = Digital Output DO00
01 = Counter output TC
Counter output TC
10 =
Counter Mode Register
4
3
CM4
CM3
2
1
CM2
CM1
Toggle
from low
0
CM0

Advertisement

Table of Contents
loading

Table of Contents