14.6.4 Initialization Register $2122
7 6 5 4 3 2 1 0
If the zero signal from hardware counter 0 is selected as the interrupt source, bit 1 must be set on the
positive edge. Otherwise no interrupt is executed.
Changing bit 1 is only accepted if bits 0 - 3 of the mode register are changed.
14.6.5 Addresses of Operating System Routines
Address
$C114
$C117
$C11A
$C11D
$C123
$C126
$C129
$C12C
$C12F
$C132
$C135
$C138
$C13B
$C13E
$C141
Initialization of the counter functions and the hardware
Reserved for later use
Edge for Input Capture Interrupt
0 ... Negative edge
1 ... Positive edge
Counter activation
0 ... Deactivate counter
1 ... Activate counter
Actual value
Set mode register
Activate reference pulse
Read reference pulse
Activate interrupt source zero signal hardware counter 0
Load counter 0 with preset value
Load counter 1 with preset value
Load counter 2 with preset value
Load 2 channel counter (encoder) with preset value
Read counter 0
Read counters 1 and 2
Read two channel counter (encoder)
Enable Input Capture Interrupt
Disable Input Capture Interrupt
End referencing
Initialize counter
B&R COMPACT PLC
- 185 -