UPD78F0138 NEC, UPD78F0138 Datasheet - Page 461

no-image

UPD78F0138

Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
16-bit
operation
Multiply/
divide
Increment/
decrement
Rotate
BCD
adjustment
Bit
manipulate
Instruction
Notes 1.
Remarks 1. One instruction clock cycle is one cycle of the CPU clock (f
Group
2.
ADDW
SUBW
CMPW
MULU
DIVUW
INC
DEC
INCW
DECW
ROR
ROL
RORC
ROLC
ROR4
ROL4
ADJBA
ADJBS
MOV1
Mnemonic
2. This clock cycle applies to the internal ROM program.
3. n is the number of waits when the external memory expansion area is read.
4. m is the number of waits when the external memory expansion area is written.
When the internal high-speed RAM area is accessed or for an instruction with no data access
When an area except the internal high-speed RAM area is accessed
control register (PCC).
AX, #word
AX, #word
AX, #word
X
C
r
saddr
r
saddr
rp
rp
A, 1
A, 1
A, 1
A, 1
[HL]
[HL]
CY, saddr.bit
CY, sfr.bit
CY, A.bit
CY, PSW.bit
CY, [HL].bit
saddr.bit, CY
sfr.bit, CY
A.bit, CY
PSW.bit, CY
[HL].bit, CY
Operands
CHAPTER 28 INSTRUCTION SET
User’s Manual U16228EJ2V0UD
Bytes
3
3
3
2
2
1
2
1
2
1
1
1
1
1
1
2
2
2
2
3
3
2
3
2
3
3
2
3
2
Note 1
16
25
10 12 + n + m A
10 12 + n + m A
6
6
6
2
4
2
4
4
4
2
2
2
2
4
4
6
4
6
6
4
6
Clocks
8 + n + m (HL).bit ← CY
Note 2
7 + n
6
6
7
7
8
8
8
7
AX, CY ← AX + word
AX, CY ← AX − word
AX − word
AX ← A × X
AX (Quotient), C (Remainder) ← AX ÷ C
r ← r + 1
(saddr) ← (saddr) + 1
r ← r − 1
(saddr) ← (saddr) − 1
rp ← rp + 1
rp ← rp − 1
(CY, A
(CY, A
(CY ← A
(CY ← A
(HL)
(HL)
Decimal Adjust Accumulator after Addition
Decimal Adjust Accumulator after Subtract
CY ← (saddr.bit)
CY ← sfr.bit
CY ← A.bit
CY ← PSW.bit
CY ← (HL).bit
(saddr.bit) ← CY
sfr.bit ← CY
A.bit ← CY
PSW.bit ← CY
3 − 0
3 − 0
3 − 0
7 − 4
← (HL)
← (HL)
7
0
← A
← A
← (HL)
← (HL)
0
7
, A
, A
0
7
7
0
3 − 0
7 − 4
CPU
, A
, A
← CY, A
← CY, A
7 − 4
3 − 0
, (HL)
m − 1
m + 1
, (HL)
) selected by the processor clock
Operation
← A
← A
3 − 0
7 − 4
m − 1
m + 1
m
m
← A
← A
) × 1 time
) × 1 time
← A
← A
3 − 0
3 − 0
m
m
) × 1 time
) × 1 time
,
,
Z AC CY
×
×
×
×
×
×
×
×
×
×
Flag
×
×
×
×
×
×
×
×
×
×
461
×
×
×
×
×
×
×
×
×
×
×
×
×
×

Related parts for UPD78F0138