Mitsubishi Electronics Q173CPU(N) Home Security System User Manual


 
7 - 79
7 OPERATION CONTROL PROGRAMS
[Program examples]
(1) Program which batch-transfers a contents for 5 words from D0 to all data for 5
words from #10
BMOV #10, D0, K5
D0
34
12
56
78
90
D1
D2
D3
D4
#10
#
34
12
56
78
90
#11
#12
#13
#14
Batch transfer
(2) Program which batch-transfers a contents for 2048 words from #0 to the data area
of cam No.2 (resolution 2048)
BMOV N2, #0, K2048
Batch transfer
#0
H0005
H0000
H000A
:
H0000
#1
#2
#2047
:
0th stroke ratio
H0005
H0000
H000A
:
H0000
First stroke ratio
Second stroke ratio
:
2047th stroke ratio
Cam data of cam No.2
POINT
Cam stroke ratio is set within 0 to 7FFFH.
(3) Program which batch-transfers a contents for 4 words from X0 to all data for 4
words from #20
BMOV #20, X0, K4
#20
0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
Batch transfer
#21
#22
#23
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0
XF X0
X1F X10
X2F X20
X3F X30
0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0
b15 b0
b15 b0
b15 b0
b15 b0