7-75
SEG(P)
1
2
3
4
6
6
7
8
7.5 Data processing instructions
7.5.5 7-segment decode (SEG(P))
7.5.5 7-segment decode (SEG(P))
SEG(P)
Function
(1) Decodes the data from 0 to F designated by the lower 4 bits of to 7-segment display data,
and stores at .
(2) If is a bit device, indicates the head number of the devices storing the 7-segment display
data; if it is a word device, indicates the number of the device storing the data.
Operation Error
(1) There are no operation errors associated with the SEG(P) instruction.
: Data to be decoded or head number of the devices where the data to be decoded is stored (BIN 16 bits)
: Head number of the devices where the decoding result will be stored (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
Basic
Process
High
performance
Redundant
Universal
Command
Command
SEGP
SEG
S
S
SEG
SEGP
D
D
S
D
S
D
S
D
D
Y4F
00100111
8 points
Y48
SEG K7 K2Y48
After execution
Before execution
b15
0000000
0
b8
SEG K7D8
Bit device
Word device
00
1
00
11
1
b7
b0
D8
7-segment display data is
stored in lower 8 bits.
Upper 8 bits are
always filled with 0s.