10
- 69
10.7 File Register (R)
10
DEVICE EXPLANATION
10.7 File Register (R)
(1) Definition
File registers are expansion devices for data registers.
The file registers can be used at the same processing speed as the data registers.
(2) Bit configuration of file register
(a) Bit configuration and write/read units
File registers, which consist of 16 bits per point, writes/reads data in 16bit units.
(b) When file register is used for 32-bit instruction
If the file registers are used for 32-bit instructions, the data will be stored in
registers Rn and Rn + 1.
The lower 16 bits of data are stored in the file register No. (Rn) designated in the
sequence program, and the upper 16 bits of data are stored in the designated file
register No.+ 1.
For example, if file register R2 is designated in the DMOV instruction, the lower 16
bits are stored in R2, and the upper 16 bits are stored in R3.
Two file registers can store a range of numeric data from -2147483648 to
2147483647 or from 0
H
to FFFFFFFF
H
. (The most significant bit in a 32-bit
configuration is a sign bit.)
Figure 10.66 Write to file register
Figure 10.67 Bit configuration of file register
Figure 10.68 Data transfer by 32-bit instruction and storage destination
K100 R2
MOV
"100" is written to R2.
File register
R0
R1
R2
Rn
b15
to
b0
The most significant bit is sign bit.
D0 R2
DMOV
R3
Upper 16 bits Lower 16 bits
R2
Processing object: R2, R3