Panasonic FP7 Series Command Reference Manual page 364

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

7.7 DECO (Decoding)
Processing
Example) Decode 4 bits from Bit 4
[S]...DT1
[n]...H 0404
* Store the result of decoding the specified portion ("0111 "=7) into the 16-bit
(2
4
-bit) device address starting with DT2.
* The 16-bit area starting with DT2 turns ON, while the other bits become '0'.
15
DT1
0000 0000 0111 0000
Flag operations
Name
SR7
SR8
(ER)
7-16
[D]...DT2
4
0
4 bits
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when the conversion-enabled bit length "nL" is not in the following range: 1 ≤ nL ≤
8.
To be set when the sum of the conversion starting bit number (nH) and the conversion-
enabled bit length (nL) is not in the following range: 1 ≤ "nH + nL" ≤ 16.
To be set if, when the decoded result is stored in the device address specified by [D], it
exceeds the area.
15
7
DT2
0000 0000 1000 0000
16 bits
0
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents