[(Bits to be counted -1)/16] + 1
Rounded down to the nearest integer
● The number of bits to be counted that is specified by [n] is 1 to 65535. However, this range
must not exceed the device area.
■
Processing
Example 1) Carry out counting for 8 points from WX0
[i]…UL [S1]…WX0 [S2]…DT0 [n]…U 8 [D]…DT10
Targeted bits: 8 bits from X0 to X7
[S1]
WX0
Working area for counting
[S2]
DT0
[D]
DT10
X0 counted value
DT11
2DT12
X1 counted value
DT13
3DT14
X2 counted value
DT15
4DT16
X3 counted value
DT17
5DT18
X4 counted value
DT19
6DT20
X5 counted value
DT21
7DT22
X6 counted value
DT23
8DT24
X7 counted value
DT25
10.9 EVENTC (Instruction to Count the Number of Events)
10-34 WUME-FP7CPUPGR-12