Figure 2-7: Counter 0 Function Block - 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

CTR0F & CTR1F: Counter 0 & Counter 1 interrupt flag bit
CTR0Gate & CTR1Gate: Counter 0 and Counter 1 gate control bit
CTR0Out & CTR1Out: Counter 0 and Counter 1 output status bit
CTR0CLKSet & CTR1CLKSet: Counter 0 and Counter 1 clock source
control bit
CTR0GateSet & CTR1GateSet: Counter 0 and Counter 1 gate source
control bit
CTR0OutSet & CTR1OutSet: Counter 0 and Counter 1 output destina-
tion control bit
CTR0IntSet & CTR1IntSet: Counter 0 and Counter 1 interrupt control
bit
S0 & S1: Counter 0 and counter 1 internal clock control bit
CTR32Set: Cascaded 32-bit counter control bit
Counter 0 Function Block
CTR0GateSet
DI4
CTR0Gate
CTR0CLKSet
DI6
100KHz
10KHz
1KHz
100Hz
S1 S0
CTR0GateSet=1
Gate
CTR0GateSet=0
Counter 0
CTR0CLKSet=1
CLK
CTR0CLKSet=0

Figure 2-7: Counter 0 function block

Chapter 2 Hardware Functionality
CTR0OutSet
CTR0Ou tSet=1
Ou tpu t to DO6
CTR0Ou tSet=0
Out
Disable
CTR0IntSet
In terru pt Circu it
DO6
CTR0OUT
CTR0Ou tSet=0
Diable Interru pt
CTR0F
CTR0Ou tSet=1
En able Interru pt
1 9

Advertisement

Table of Contents
loading

Table of Contents