On-Board Isolated Counter/Timer; Table 2-9: Counter/Timer Control Register Bit Map - Advantech UNO-2050 User Manual

Gx1-300 universal network controller with 2 x lan, 2 x rs-232, 2 x isolated rs-232/422/485, 16 x isolated di/o
Table of Contents

Advertisement

2.6 On-board Isolated Counter/Timer

The UNO-2050 uses one 82C54 programmable timer/counter chip that
includes three independent 16-bit down counters: counter 0, counter 1
and counter 2. Counter 0 and counter 1 are for users, and counter 2 is
specified for the system and can't be used by user. Each counter has
clock input, gate input and pulse output. They can be programmed to
count from 2 up to 65535 or cascaded into one 32-bit counter.
The UNO-2050 has 2 isolated counter input channels designated DI6
and DI7 or 2 isolated timer output channels designated DO6 and DO7.
Therefore, you can set each counter of 82C54 as counter function or
timer function.
Counter/Timer Control Register
The Counter/Timer Control Register controls the function and status
of each counter/timer signal source. Table 2-9 shows the bit map of the
Counter/Timer Control Register. The register is readable/writable
register. While being written, it is used as a control register; and while
being read, it is used as a status register.
Base Address
Base+07H R/W
Base+08H R/W
Base+09H R/W
Base+0BH R/W
Base+0CH R/W
Base+0DH R/W
Base+0EH R/W
Base+0FH R/W
1 8
UNO-2050 User's Manual

Table 2-9: Counter/Timer control register bit map

7
6
5
Counter0 Start Control / Output Status Register
CTR0Out
Counter1 Start Control / Output Status Register
CTR1Out
CTR32Set S1
S0
4
3
Interrupt Flag/Clear Register
CTR1F
CTR0F
82C54 Chip Counter0 Register
82C54 Chip Counter1 Register
82C54 Chip Control Register
Counter0 Setting Register
CTR0IntSet CTR0OutSet CTR0GateSet CTR0CLKSet
Counter1 Setting Register
CTR1IntSet CTR1OutSig CTR1GateSig CTR1CLKSig
2
1
0
CTR0Gate
CTR1Gate

Advertisement

Table of Contents
loading

Table of Contents