The MB90242A is a 16-bit microcontroller optimized for “mechatronics” control applications such as hard disk
drive unit control.
The instruction set is based on the AT architecture of the F
language supporting instruction, expanded addressing modes, enhanced multiplication and division instructions,
and improved bit processing instructions. In addition, long-word data can now be processed due to the inclusion
of a 32-bit accumulator.
2
MC*-16, 16H family, with additional high-level
DS07-13506-1E
The MB90242A has a multiply/accumulate unit as a peripheral resource, allowing easy realization of digital
filters such as IIR or FIR. The MB90242A has abundant embedded peripheral features, such as 6-channel 8/
10-bit A/D converter, UART, 2-channel + 1-channel timer, 4-channel input capture and 4-channel external
interrupt.
2
*1: F
MC stands for FUJITSU Flexible Microcontroller.
FEATURES
2
•F
MC-16F CPU
Minimum execution time: 62.5 ns (32 MHz oscillation: 5.0 V ± 10%)
Instruction set optimized for controller applications
Improved instruction set applicable to high-level language (C) and multitasking
Improved execution speed: 8-byte queue
Powerful interrupt fuctions (interrupt processing time: 1.0 µ s 32 MHz oscillation)
Automatic transfer function independent of instructions
Extended intelligent I/O Service
(Continued)
PACKAGE
80-pin Plastic LQFP
(FPT-80P-M05)
To Top / Lineup / Index
MB90242A Series
(Continued)
• DSP unit
Specific function for calculations of IIR
A maximum of 8 product resulted from signed 16-bit × 16-bit multiplications can be accumulated.
N
Yk = Σ bn Yk-n + Σ am Xk-m is executed in 0.625 µs (at oscillation of 32 MHz, N = M = 3)
n = 0
M
m = 0
The N and M value is set to a maximum of 3, independently.
• Internal RAM: 2 Kbytes (MB90242A)
Depending on mode settings, data stored on RAM can be executed as CPU instructions.
• General-purpose ports: max. 38 channels
• A/D converter (analog inputs: 6 channels)
Resolution: 10 bits
Conversion time: min. 1.25 µ s
Switchable to 8/10 bits
Number of registers for storing conversion results: 4
1 to 8P20 to P27FThese pins cannot be used as general-purpose ports.
10 to 17P30 to P37FThese pins cannot be used as general-purpose ports.
18P40FGeneral-purpose I/O port
19P41FGeneral-purpose I/O port
20P42FGeneral-purpose I/O port
21P43FGeneral-purpose I/O port
Pin nameCircuit typeFunction
A00 to A07Output pins for the lower 8 bits of the external address bus
A08 to A15Output pins for the middle 8 bits of the external address bus
This function is available when corresponding bit of the upper
address control register specifies port.
A16External address bus output pin bit 16
This function is available when corresponding bit of the upper
address control register specifies address.
This function is available when corresponding bit of the upper
address control register specifies port.
A17External address bus output pin bit 17
This function is available when corresponding bit of the upper
address control register specifies address.
This function is available when corresponding bit of the upper
address control register specifies port.
A18External address bus output pin bit 18
This function is available when corresponding bit of the upper
address control register specifies address.
SID0UART #0 data input pin
This pin, as required, is used for input during UART #0 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
This function is available when data output of UART #0 is disabled
and corresponding bit of the upper address control register
specifies port.
A19External address bus output pin bit 19
This function is available when data output of UART #0 is disabled
and corresponding bit of the upper address control register
specifies address.
SOD0UART #0 data output pin
This function is available when data output of UART #0 is enabled.
* :FPT-80P-M05
(Continued)
5
MB90242A Series
To Top / Lineup / Index
Pin no.
LQFP*
22P44FGeneral-purpose I/O port
23P45FGeneral-purpose I/O port
24P46FGeneral-purpose I/O port
Pin nameCircuit typeFunction
This function is available when clock output of UART #0 and SSI #2
are disabled and corresponding bit of the upper address control
register specifies port.
A20External address bus output pin bit 20
This function is available when clock output of UART #0 is disabled
and corresponding bit of the upper address control register
specifies address.
SCK0UART #0 clock input pin
This function is available when the UART #0 clock output is
enabled.
This function is available when data output of SSI #2 is disabled
and corresponding bit of the upper address control register
specifies port.
A21External address bus output pin bit 21
This function is available when data output of SSI #2 is disabled
and corresponding bit of the upper address control register
specifies address.
ASR0Input capature #0 data input pin
This pin, as required, is used for input during input capture #0 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
TIN016-bit timer #0 data input pin
This pin, as required, is used for input during 16-bit timer #0 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
This function is available when corresponding bit of the upper
address control register specifies port.
A22External address bus output pin bit 22
This function is available when corresponding bit of the upper
address control register specifies address.
ASR1Input capature #1 data input pin
This pin, as required, is used for input during input capture #1 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
TIN116-bit timer #1 data input pin
This pin, as required, is used for input during 16-bit timer #1 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
* :FPT-80P-M05
6
(Continued)
To Top / Lineup / Index
MB90242A Series
Pin no.
Pin nameCircuit typeFunction
LQFP*
25P47FGeneral-purpose I/O port
This function is available when corresponding bit of the upper
address control register specifies port.
A23External address bus output pin bit 23
This function is available when corresponding bit of the upper
address control register specifies address.
ASR2Input capature #2 data input pin
This pin, as required, is used for input during input capture #2 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
26AV
CC
Power supply Analog circuit power supply pin
This power supply must only be turned on or off when electric
potential of AV
or greater is applied to V
CC
CC
27AVRHPower supply A/D converter external reference voltage input pin
This pin must only be trendy on or off when electric potential of
AVRH or greater is applied to AV
Power supply Analog circuit power supply (GND) pin
30, 31P60, P61HN-ch open-drain I/O ports
When corresponding bit of the ADER are set to “0,” reading data
register with an instruction other than read-modify-write group
instructions reads the level on these pins, while data written on the
data register is output on these pins directly.
AN0, AN1A/D converter analog input pins
Set corresponding bit of the ADER to “1,” and corresponding bit of
the data register to “1.”
33, 34P62, P63HN-ch open-drain I/O ports
When corresponding bit of the ADER are set to “0,” reading data
register with an instruction other than read-modify-write group
instructions reads the level on these pins, while data written on the
data register is output on these pins directly.
AN2, AN3A/D converter analog input pins
Set corresponding bit of the ADER to “1,” and corresponding bit of
the data register to “1.”
35, 36P66, P67HN-ch open-drain I/O ports
When corresponding bit of the ADER are set to “0,” reading data
register with an instruction other than read-modify-write group
instructions reads the level on these pins, while data written on the
data register is output on these pins directly.
AN6, AN7A/D converter analog input pins
Set corresponding bit of the ADER to “1,” and corresponding bit of
the data register to “1.”
37, 38OPEN—Open pins
No internal connections are made.
.
* :FPT-80P-M05
(Continued)
7
MB90242A Series
To Top / Lineup / Index
Pin no.
LQFP*
39 to 41MD0 to MD2COperating mode selection input pins
42HST
43, 44P70, P71FGeneral-purpose I/O ports
45P72FGeneral-purpose I/O port
46P73FGeneral-purpose I/O port
47P74FGeneral-purpose I/O port
48P75FGeneral-purpose I/O port
49, 50P80, P81GGeneral-purpose I/O ports
51P82FGeneral-purpose I/O port
Pin nameCircuit typeFunction
or V
SS
.
Connect directly to V
DHardware standby input pin
This function is available when neither output of 16-bit timer #0 nor
#1 is enabled.
TOT0, TOT116-bit timer output pins
This function is available when outputs of both 16-bit timer #0 and
#1 are enabled.
This function is available when clock output of SSI #1 is disabled.
SCK1SSI #1 clock I/O pin
This function is always valid.
SID1SSI #1 data input pin
This pin, as required, is used for input during SSI #1 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
This function is available when data output of SSI #1 is disabled.
SOD1SSI #1 data output pin
This function is available when data output of SSI #1 is enabled.
This function is always valid.
INT0, INT1External interrupt input pins
These pins, as required, are used for input while external interrupt is
enabled, and it is necessary to disable input/output for other
functions from these pins unless such input/output is made
intentionally.
This function is always valid.
INT2External interrupt input pin
This pin, as required, is used for input while external interrupt is
enabled, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
This pin is clamped to “LOW” level when CPU is in the “STOP”
status. Use INT0 or INT1 to resume operation.
ATGA/D converter activation trigger input pin
This pin, as required, is used for input while A/D conv erter is waiting
for activation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
CC
* :FPT-80P-M05
8
(Continued)
To Top / Lineup / Index
MB90242A Series
Pin no.
LQFP*
52P50FGeneral-purpose I/O port
53P51EGeneral-purpose I/O port
54P52EGeneral-purpose I/O port
55P53EGeneral-purpose I/O port
56P54FGeneral-purpose I/O port
57P55FGeneral-purpose I/O port
58P56FThis pin cannot be used as a general-purpose port.
59P57FGeneral-purpose I/O port
60RSTBExternal reset request input pin
62, 63X0, X1ACrystal oscillator pins (32 MHz)
* :FPT-80P-M05
Pin nameCircuit typeFunction
This function is available when CLK output is disabled.
CLKCLK output pin
This function is available when CLK output is enabled.
This function is available when ready function is disabled.
RDYReady input pin
This function is available when ready function is enabled.
This function is available when hold function is disabled.
HAK
HRQHold request input pin
WRHWrite strobe output pin for the upper eight bits of the data bus
WRLWrite strobe output pin for the lower eight bits of the data bus
RDRead strobe output pin for the data bus
ASR3Input capture #3 data input pin
INT3External interrupt #3 data input pin
Hold acknowledge output pin
This function is available when hold function is enabled.
This function is available when hold function is disabled.
This function is available when hold function is enabled.
This function is available when the external bus 8-bit mode is
selected or WRH pin output is disabled.
This function is available when the external bus 16-bit mode is
selected and WRH pin output is enabled.
This function is available when WRL pin output is disabled.
This function is available when WRL pin output is enabled.
This pin, as required, is used for input during input capture #3 input
operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
This pin, as required, is used for input during external interrupt #3
input operation, and it is necessary to disable input/output for other
functions from this pin unless such input/output is made
intentionally.
(Continued)
9
To Top / Lineup / Index
MB90242A Series
(Continued)
Pin no.
LQFP*
64V
9, 32, 61V
65 to 72P00 to P07EThese pins cannot be used as general-purpose ports.
73 to 80P10 to P17EGeneral-purpose I/O ports
Pin nameCircuit typeFunction
CC
SS
D00 to D07I/O pins for the lower 8 bits of the external data bus
D08 to D15I/O pins for the upper 8 bits of the external data bus
Power supply Digital circuit power supply pin
Power supply Digital circuit power supply (GND) pins
This function is available when the external bus 8-bit mode is
selected.
This function is available when the 16-bit bus mode is selected.
* :FPT-80P-M05
10
■
To Top / Lineup / Index
MB90242A Series
I/O CIRCUIT TYPE
TypeCircuitRemarks
A• 32 MHz
• Oscillation feedback resistor:
approx. 1 M Ω
Clock stop input
X0
X1
Clock input
B• CMOS-level hysteresis input
(without standby control)
Pull-up resistor: approx. 50 k Ω
Diffused resistor
VCC
V
CMOS
P-channel-type Tr
N-channel-type Tr
SS
Digital input
C• CMOS-level input
VCC
(without standby control)
P-channel-type Tr
N-channel-type Tr
Diffused resistor
VSS
Digital input
CMOS
D• CMOS-level hysteresis input
(without standby control)
VCC
P-channel-type Tr
N-channel-type Tr
Diffused resistor
VSS
Digital input
CMOS
(Continued)
11
MB90242A Series
TypeCircuitRemarks
E• CMOS-level output
• TTL-Level input
Digital output
(with standby control)
To Top / Lineup / Index
Digital output
Digital input
TTL
Standby control signal
F• CMOS-level input
CMOS-level hysteresis input
Digital output
Digital output
Digital input
CMOS
Standby control signal
(with standby control)
G• CMOS-level output
CMOS-level hysteresis input
Digital output
Standby control (when interrupt disabled)
available
12
Digital output
Digital input
CMOS
Standby interrupt disabled
⊃
H• N-ch open-drain
CMOS-level output
Digital output
CMOS-level hysteresis input
Analog input
(with analog input control)
Latchup may occur on CMOS ICs if voltage higher than V
CC
or lower than V
pins other than medium-and high voltage pins or if higher than the voltage is applied between V
SS
is applied to the input or output
and V
CC
When latchup occurs, power supply current increases rapidly might thermally damage elements. When using,
take great care not to exceed the absolute maximum ratings.
In addition, for the same reasons take care to prevent the analog power supply from exceeding the digital power
supply.
2. Treatment of Unused Pins
Leaving unused input pins open could cause malfunctions. They should be connected to a pull-up or pull-down
resistors.
3. Precautions when Using an External Clock
When an external clock is used, drive X0 only and X1 should be left open.
• Using an External Clock
X0
MB90242A
X1
SS
.
4. Power Supply Pins
When there are several V
within the device when the device is designed in order to prevent misoperation, such as latchup. However, all
of those pins must be connected to the power supply and ground externally in order to reduce unnecessary
emissions, prevent misoperation of strobe signals due to an increase in the ground level, and to observe the
total output current standards.
In addition, give a due consideration to the connection in that current supply be connected to V
the lowest possible impedance.
Finally, it is recommended to connect a capacitor of about 0.1 µ F between V
bypass capacitor.
14
CC
and V
SS
pins, those pins that should have the same electric potential are connected
CC
and V
CC
SS
near this device as a
and V
SS
with
To Top / Lineup / Index
MB90242A Series
5. Crystal Oscillation Circuit
Noise in the vicinity of the X0 and X1 pins will cause this device to operate incorrectly. Design the printed circuit
board so that the bypass capacitor connecting X0, X1 and the crystal oscillator (or ceramic oscillator) to ground
is located as close to the device as possible.
In addition, because printed circuit board artwork in which the area around the X0 and X1 pins is surrounded
by ground provides stable operation, such an arrangement is strongly recommended.
6. CLK Pin
ex. 32 MHz
* : In the external bus mode, the P50/CLK pin is initially configured as a CLK output pin.
X1
X0
Divide by 2 circuit
P50/CLK*
STOP
P50 output
P50 input
7. Cautions in Applying Power Supply
Hold the HST
When the RST pin is in the “L” level, do not hold the HST pin to “L” level.
pin to the “H” level when applying power supply.
to internal blocks
CLK output
15
MB90242A Series
BLOCK DIAGRAM
To Top / Lineup / Index
■
SCK0
SID0
SOD0
SCK1
SID1
SOD1
CC
AV
AVRH
AVRL
SS
AV
AN0 to AN3
AN6
AN7
ATG
TIN0, TIN1
TOT0, TOT1
3
UART
Simple serial
11
2
2
A/D converter
Multiply/accumulate
module
16-bit
timer × 3
MC-16F bus
2
F
16-bit timer
ICU × 4
I/O port × 38
External bus interface
2
MC-16F
F
CPU
63
16
24
4
ASR0 to ASR3
P00 to P07
P10 to P17
P20 to P27
P30 to P37
P40 to P47
P50 to P57
P60 to P63,
P66, P67,
P70 to P75
P80 to P82
D00 to D15
A00 to A23
CLK
RDY
HAK
4
HRQ
WRH
WRL
RD
16
INT0 to INT3
X0
X1
RST
HST
MD2 to MD0
RAM
4
External interrupt
timer × 4
7
Clock controller
ELECTRICAL CHARACTERISTICS
1. Absolute Maximum Ratings
To Top / Lineup / Index
MB90242A Series
■
SS
(V
= AV
Value
Parameter
Symbol
UnitRemarks
Min.Max.
CCVSS – 0.3VSS + 7.0V
V
Power supply voltage
AVCCVCC – 0.3VCC + 7.0V
Input voltage VI*VSS – 0.3VCC + 0.3V
Output voltageVO*VSS – 0.3VCC + 0.3V
“L” level output current IOL10mA
“L” level average output current IOLAV4mA
“L” level total average output currentΣIOLAV50mA
“H” level output currentIOH–10mA
“H” level average output currentIOHAV–4mA
“H” level total average output currentΣIOHAV–48mA
Power consumptionPD600mW
Operating temperatureTA–30+70°C
Storage temperatureTstg–55+150°C
* :V
and V
I
must not exceed V
O
+ 0.3 V.
CC
SS
= 0.0 V)
WARNING: Semiconductor devices can be permanently damaged by application of stress (voltage, current,
temperature, etc.) in excess of absolute maximum ratings. Do not exceed these ratings.
2. Recommended Operating Conditions
(VSS = AVSS = 0.0 V)
Parameter
Power supply voltageV
Operating temperatureT
Symbol
CC
A–30+70°CExternal bus mode
WARNING: Recommended operating conditions are normal operating ranges for the semiconductor device. All
the device’s electrical characteristics are warranted when operated within these ranges.
Always use semiconductor de vices within the recommended operating conditions . Operation outside
these ranges may adversely affect reliability and could result in device failure.
No warranty is made with respect to uses, operating conditions, or combinations not represented on
the data sheet. Users considering application outside the listed conditions are advised to contact their
FUJITSU representative beforehand.
Value
Min.Max.
4.5
2.0
5.5
5.5
UnitRemarks
V
V
For retaining RAM data in the stop
mode
17
To Top / Lineup / Index
MB90242A Series
3. DC Characteristics
(VCC = 5.0 V ±10%, VSS = AVSS = 0.0 V, TA = –30°C to +70°C)
CC = 5.0 V ±10%, VSS = 0.0 V, TA = –30°C to +70°C)
(V
Pin
name
X0
X1
X0
X1
Condition
——32MHz
—1/FC—ns
X0—10—ns
X0——8ns
Value
UnitRemarks
Min.Max.
• Clock Timing
tC
PWH
tCF
PWL
• Relationship between Clock Frequency and Supply Voltage
VCC
[V]
5.5
Operating garantee range
A = –30°C to +70°C, external bus mode)
(T
0.7 VCC
0.3 VCC
tCR
4.5
0
32
FC
[MHz]
19
To Top / Lineup / Index
MB90242A Series
(2) Clock Output Timing
(VCC = 5.0 V ±10%, VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Machine cycle timet
SymbolPin nameCondition
CYCCLK—tC× 2—ns
CLK ↑ → CLK↓tCHCLCLK—tCYC/2 – 20tCYC/2ns
tCYC
tCHCL
Value
Min.Max.
UnitRemarks
CLK
(3) Reset and Hardware Standby Input
(V
CC = 5.0 V ±10%, VSS = 0.0 V, TA = –30°C to +70°C)
Value
Parameter
Reset input timet
SymbolPin nameCondition
Min.Max.
RSTLRST—tCYC × 5—ns
UnitRemarks
Hardware standby input timetHSTLHST—tCYC × 5—ns
Note: The machine cycle time (tCYC) at hardware standby is set to 1/32 divided oscillation.
tRSTL, tHSTL
RST
HST
20
To Top / Lineup / Index
MB90242A Series
(4) Power-on Reset
(VCC = 5.0 V ±10%, VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Power supply rising timet
SymbolPin nameCondition
RVCC——30ms
Power supply cut-off timetOFFVCC—1—ms
Note: The above standards are the values needed in order to activate a power-on reset.
tR
Value
UnitRemarks
Min.Max.
VCC must be lower
than 0.2 V before
power is applied.
VCC
If power supply voltage needs to be changed in the course of operation, a smooth voltage rise is
recommended by suppressing the voltage variation as shown below.
5.0 V
CC 2.0 V
V
V
SS
+2.97 V
+0.2 V
Holding RAM data
tOFF
It is recommended that the rate of
increase in the voltage be kept to
no more that 50 mV/ms.
21
To Top / Lineup / Index
MB90242A Series
(5) Bus Read Timing
(VCC = 5.0 V ±10%, VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Address cycle timet
Symbol Pin nameCondition
ACYCAddress—2 tCYC – 10—ns
Valid address → RD ↓ timetAVRLAddress—tCYC/2 – 15—ns
RD pulse widthtRLRHRD—tCYC – 25—ns
RD ↓→ Valid data inputtRLDV
RD ↑→ data hold timetRHDX—0—ns
Sampling period——560——ns
Conversion period a——125——ns
Conversion period b——125——ns
Conversion period c——250——ns
Value
UnitRemarks
Specified by the
ADCT register
settings.*
1
VCC = 5.0 V±10%
Analog port input current I
Analog input voltage—
AIN
AN0 to AN3
AN6, AN7
AN0 to AN3
AN6, AN7
—0.13µA
AVRL—AVRHV
—AVRHAVRL + 2.7—AVCCV
Reference voltage
—AVRL0—AVRH – 2.7V
Power supply current
Reference voltage
supply current
Interchannel disparity—
*1: When F
C = 32 MHz, and the machine cycle is 62.5 ns.
IA
AVCC
2
AS*
I
IR
AVRH
2
RS*
I
AN0 to AN3
AN6, AN7
—1520mA
—— 5µA
—1.52mA
—— 5µA
——4LSB
*2: IAS and IRS are current when the A/D converter is not operating and the CPU is stopped.
Notes: • The smaller | AVRH – AVRL |, the greater the error would become relatively.
• If the output impedance of the external circuit of an analog input is too high, an analog voltage sampling
time might be insufficient. When the sampling period close to the minimum value is used, the output
impedance of the external circuit should be less than approximately 300 Ω.
AVRH – AVRL ≥ 2.7
AVCC = 5.5 V
in stop mode
AVCC = 5.5 V
in stop mode
30
• Analog Input Circuit Model Diagram
To Top / Lineup / Index
MB90242A Series
C0 Approx. 60 pF
Analog input pin
AVRH
AVRL
Note: Use the values shown as guides only.
RON1
Approx. 300 Ω
Switched on only during
A/D conversion.
Approx. 150 Ω
R
ON2
Approx.
4 pF
1
C
Comparator
Comparator
.
.
Comparator
31
To Top / Lineup / Index
MB90242A Series
6. A/D Converter Glossary
• Resolution
Analog changes that are identifiable with the A/D converter.
If the resolution is 10 bits, the analog voltage can be resolved into 2
• Total error
The difference between theoretical and actual conv ersion values caused b y the zero transition error , full-scale
transition error, non-linearity error, differential linearity error, and noise.
• Linearity error
The deviation of the straight line connecting the zero transition point (“00 0000 0000” ↔ “00 0000 0001”) with
the full-scale transition point (“11 1111 1110” ↔ “11 1111 1111”) from actual conversion characteristics.
• Differential linearity error
The deviation of input voltage needed to change the output by 1 LSB from the theoretical value.
Digital output
11 1111 1111
11 1111 1110
•
•
•
•
•
•
•
•
•
•
•
•
11 1111 1110
00 0000 0001
00 0000 0000
(1 LSB × N + V
VOT
VNT
OT)
V(N+1)T
10
.
Linearity error
V
FST
32
• 1 LSB =
• Linearity error =(LSB)
• Differential linearity error =–1 (LSB)
VFST – VOT
1022
NT – (1 LSB × N + VOT)
V
1 LSB
(N+1)T – VNT
V
1 LSB
To Top / Lineup / Index
MB90242A Series
■ INSTRUCTION SET (412 INSTRUCTIONS)
Table 1 Explanation of Items in Table of Instructions
ItemExplanation
MnemonicUpper-case letters and symbols: Represented as they appear in assembler
Lower-case letters: Replaced when described in assembler.
Numbers after lower-case letters: Indicate the bit width within the instruction.
#Indicates the number of bytes.
~Indicates the number of cycles.
See Table 4 for details about meanings of letters in items.
BIndicates the correction value for calculating the number of actual cycles during
execution of instruction.
The number of actual cycles during execution of instruction is summed with the value in
the “cycles” column.
OperationIndicates operation of instruction.
LHIndicates special operations involving the bits 15 through 08 of the accumulator.
Z: Transf ers “0”.
X: Extends before transferring.
—: Transf ers nothing.
AHIndicates special operations involving the high-order 16 bits in the accumulator.
*: Transfers from AL to AH.
—: No transfer.
Z: Transf ers 00
X: Transf ers 00H or FFH to AH by extending AL.
IIndicates the status of each of the following flags: I (interrupt enable), S (stack), T (sticky
S
T
N
Z
V
C
RMWIndicates whether the instruction is a read-modify-write instruction (a single instruction
bit), N (negative), Z (zero), V (overflow), and C (carry).
*: Changes due to execution of instruction.
—: No change.
S: Set by execution of instruction.
R: Reset by execution of instruction.
that reads data from memory, etc., processes the data, and then writes the result to
memory.).
*: Instruction is a read-modify-write instruction
—: Instruction is not a read-modify-write instruction
Note: Cannot be used for addresses that have different meanings depending on
whether they are read or written.
H to AH.
33
MB90242A Series
Table 2 Explanation of Symbols in Table of Instructions
SymbolExplanation
A32-bit accumulator
The number of bits used varies according to the instruction.
Byte: Low order 8 bits of AL
Word: 16 bits of AL
Long: 32 bits of AL, AH
AHHigh-order 16 bits of A
ALLow-order 16 bits of A
SPStack pointer (USP or SSP)
PCProgram counter
SPCUStack pointer upper limit register
SPCLStack pointer lower limit register
PCBProgram bank register
DTBData bank register
ADBAdditional data bank register
SSBSystem stack bank register
USBUser stack bank register
SPBCurrent stack bank register (SSB or USB)
Register direct
“ea” corresponds to byte, word, and
long-word types, starting from the
left
Register indirect 0
Register indirect with post-increment 0
Register indirect with 8-bit
displacement
Register indirect with 16-bit
displacemen
Register indirect with index
Register indirect with index
PC indirect with 16-bit displacement
Direct address
Number of bytes in
address extemsion*
—
1
2
0
0
2
2
* :The number of bytes for address extension is indicated by the “+” symbol in the “#” (number of bytes) column in
the Table of Instructions.
36
To Top / Lineup / Index
MB90242A Series
Table 4 Number of Execution Cycles for Each Form of Addressing
CodeOperand
00 to 07Ri
RWi
RLi
08 to 0B@RWj1
0C to 0F@RWj +4
10 to 17@RWi + disp81
18 to 1B@RWj + disp161
1C
1D
1E
1F
* :“(a)” is used in the “cycles” (number of cycles) column and column B (correction value) in the Table of Instructions.
Table 5 Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles
Operand
Internal register +0+0+0
Internal RAM even address+0+0+0
Internal RAM odd address+0+1+2
Even address not in internal RAM+1+1+2
Odd address not in internal RAM+1+3+6
External data bus (8 bits)+1+3+6
@RW0 + RW7
@RW1 + RW7
@PC + dip16
@addr16
Number of execution cycles for each from of addressing
Listed in Table of Instructions
(b)*(c)*(d)*
bytewordlong
(a)*
2
2
2
1
* :“(b)”, “(c)”, and “(d)” are used in the “cycles” (number of cycles) column and column B (correction value) in the
Table of Instructions.
37
MB90242A Series
Table 6 Transfer Instructions (Byte) [50 Instructions]
Mnemonic#cyclesBOperationLH AHISTNZVC RMW
MOVA, dir
MOVA, addr16
MOVA, Ri
MOVA, ear
MOVA, eam
MOVA, io
MOVA, #imm8
MOVA, @A
MOVA, @RLi+disp8
MOVA, @SP+disp8
MOVP A, addr24
MOVP A, @A
MOVN A, #imm4
2
3
1
2
2+
2
2
2
3
3
5
2
1
2
2
1
1
2+ (a)
2
2
2
6
3
3
2
1
(b)
byte (A) ← (dir)
(b)
byte (A) ← (addr16)
0
byte (A) ← (Ri)
0
byte (A) ← (ear)
(b)
byte (A) ← (eam)
(b)
byte (A) ← (io)
0
byte (A) ← imm8
(b)
byte (A) ← ((A))
(b)
byte (A) ← ((RLi))+disp8)
(b)
byte (A) ← ((SP)+disp8)
(b)
byte (A) ←(addr24)
(b)
byte (A) ← ((A))
0
byte (A) ← imm4
To Top / Lineup / Index
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
–
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
*
–
–
–
*
*
–
–
–
Z
–
–
–
–
*
*
–
–
–
Z
*
–
–
–
R
*
–
–
–
MOVX A, dir
MOVX A, addr16
MOVX A, Ri
MOVX A, ear
MOVX A, eam
MOVX A, io
MOVX A, #imm8
MOVX A, @A
MOVX A,@RWi+disp8
MOVX A, @RLi+disp8
MOVX A, @SP+disp8
MOVPXA, addr24
MOVPXA, @A
MOVdir, A
MOVaddr16, A
MOVRi, A
MOVear, A
MOVeam, A
MOVio, A
MOV@RLi+disp8, A
MOV@SP+disp8, A
MOVP addr24, A
MOVRi, ear
MOVRi, eam
MOVP @A, Ri
MOVear, Ri
MOVeam, Ri
MOVRi, #imm8
MOVio, #imm8
MOVdir, #imm8
MOVear, #imm8
MOVeam, #imm8
2
3
2
2
2+
2
2
2
2
3
3
5
2
2
3
1
2
2+
2
3
3
5
2
2+
2
2
2+
2
3
3
3
3+
2
2
1
1
2+ (a)
2
2
2
3
6
3
3
2
2
2
1
2
2+ (a)
2
6
3
3
2
3+ (a)
3
3
3+ (a)
2
3
3
2
2+ (a)
(b)
byte (A) ← (dir)
(b)
byte (A) ← (addr16)
0
byte (A) ← (Ri)
0
byte (A) ← (ear)
(b)
byte (A) ← (eam)
(b)
byte (A) ← (io)
0
byte (A) ← imm8
(b)
byte (A) ← ((A))
(b)
byte (A) ← ((RWi))+disp8)
(b)
byte (A) ← ((RLi))+disp8)
(b)
byte (A) ← ((SP)+disp8)
(b)
byte (A) ←(addr24)
(b)
byte (A) ← ((A))
(b)
byte (dir) ← (A)
(b)
byte (addr16) ← (A)
0
byte (Ri) ← (A)
0
byte (ear) ← (A)
(b)
byte (eam) ← (A)
(b)
byte (io) ← (A)
(b)
byte ((RLi)) +disp8) ← (A)
(b)
byte ((SP)+disp8) ← (A)
(b)
byte (addr24) ← (A)
0
byte (Ri) ← (ear)
(b)
byte (Ri) ← (eam)
(b)
byte ((A)) ← (Ri)
0
byte (ear) ← (Ri)
(b)
byte (eam) ← (Ri)
0
byte (Ri) ← imm8
(b)
byte (io) ← imm8
(b)
byte (dir) ← imm8
0
byte (ear) ← imm8
(b)
byte (eam) ← imm8
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
–
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
*
–
–
–
*
*
–
–
–
X
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
MOV@AL, AH
38
2
2
(b)
byte ((A)) ← (AH)
–
–
–
–
–
*
*
–
–
–
(Continued)
To Top / Lineup / Index
MB90242A Series
(Continued)
Mnemonic#cyclesBOperationLH AHISTNZVC RMW
XCHA, ear
XCHA, eam
XCHRi, ear
XCHRi, eam
For an explanation of “(a)” and “(b)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
Table 7 Transfer Instructions (Word) [40 Instructions]
Mnemonic#cyclesBOperationLH AHISTNZVC RMW
MOVW A, dir
MOVW A, addr16
MOVW A, SP
MOVW A, RWi
MOVW A, ear
MOVW A, eam
MOVW A, io
MOVW A, @A
MOVW A, #imm16
MOVW A, @RWi+disp8
MOVW A, @RLi+disp8
MOVW A, @SP+disp8
MOVPW A, addr24
MOVPW A, @A
MOVW dir, A
MOVW addr16, A
MOVW SP, # imm16
MOVW SP, A
MOVW RWi, A
MOVW ear, A
MOVW eam, A
MOVW io, A
MOVW @RWi+disp8, A
MOVW @RLi+disp8, A
MOVW @SP+disp8, A
XCHW A, ear
XCHW A, eam
XCHW RWi, ear
XCHW RWi, eam
Note: For an explanation of “(a)” and “(c)”, refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual
Cycles.”
40
2+
2
2+
3
3+ (a)
4
5+ (a)
2× (c)
2× (c)
word ((A)) ← (AH)
0
word (A) ↔ (ear)
word (A) ↔ (eam)
0
word (RWi) ↔ (ear)
word (RWi) ↔ (eam)
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
To Top / Lineup / Index
MB90242A Series
Table 8 Transfer Instructions (Long Word) [11 Instructions]
Mnemonic#cyclesBOperationLH AHISTNZVC RMW
MOVL A, ear
MOVL A, eam
MOVL A, # imm32
MOVL A, @SP + disp8
MOVPL A, addr24
MOVPL A, @A
2
2+
5
3
5
2
1
3+ (a)
3
4
4
3
0
long (A) ← (ear)
(d)
long (A) ← (eam)
0
long (A) ← imm32
(d)
long (A) ← ((SP) +disp8)
(d)
long (A) ← (addr24)
(d)
long (A) ← ((A))
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
MOVPL @A, RLi
MOVL @SP + disp8, A
MOVPL addr24, A
MOVL ear, A
MOVL eam, A
For an explanation of “(a)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
2
3
5
2
2+
5
4
4
2
3+ (a)
(d)
long ((A)) ← (RLi)
(d)
long ((SP) + disp8) ← (A)
(d)
long (addr24) ← (A)
0
long (ear) ← (A)
(d)
long (eam) ← (A)
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
41
To Top / Lineup / Index
MB90242A Series
Table 9 Addition and Subtraction Instructions (Byte/Word/Long Word) [42 Instructions]
Mnemonic#cyclesBOperationLH AH ISTNZVC RMW
ADDA, #imm8
ADDA, dir
ADDA, ear
ADDA, eam
ADDear, A
ADDeam, A
ADDC A
ADDC A, ear
ADDC A, eam
ADDDC A
word (A) ← (AH) + (AL)
word (A) ← (A) +(ear)
word (A) ← (A) +(eam)
word (A) ← (A) +imm16
word (ear) ← (ear) + (A)
word (eam) ← (eam) + (A)
word (A) ← (A) + (ear) + (C)
word (A) ← (A) + (eam) + (C)
word (A) ← (AH) – (AL)
word (A) ← (A) – (ear)
word (A) ← (A) – (eam)
word (A) ← (A) –imm16
word (ear) ← (ear) – (A)
word (eam) ← (eam) – (A)
word (A) ← (A) – (ear) – (C)
word (A) ← (A) – (eam) – (C)
long (A) ← (A) + (ear)
long (A) ← (A) + (eam)
long (A) ← (A) +imm32
Z
–
–
–
–
*
*
*
*
–
Z
–
–
–
–
*
*
*
*
–
Z
–
–
–
–
*
*
*
*
–
Z
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
*
*
*
*
*
Z
–
–
–
–
*
*
*
*
–
Z
–
–
–
–
*
*
*
*
–
Z
–
–
–
–
*
*
*
*
–
Z
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
*
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
*
*
*
*
–
SUBLA, ear
SUBLA, eam
SUBLA, #imm32
For an explanation of “(a)”, “(b)”, “(c)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
42
2
2+
5
5
6+ (a)
4
0
long (A) ← (A) – (ear)
(d)
long (A) ← (A) – (eam)
0
long (A) ← (A) –imm32
–
–
–
–
–
*
*
*
–
–
–
–
–
*
*
*
–
–
–
–
–
*
*
*
*
–
*
–
*
–
To Top / Lineup / Index
MB90242A Series
Table 10 Increment and Decrement Instructions (Byte/Word/Long Word) [12 Instructions]
Mnemonic#cyclesBOperationLH AH ISTNZVC RMW
INCear
INCeam
2
2+
2
3+ (a)
0
2× (b)
byte (ear) ← (ear) +1
byte (eam) ← (eam) +1
–
–
–
–
–
*
*
*
–
–
–
–
–
*
*
*
–
*
–
*
DECear
DECeam
INCWear
INCWeam
DECW ear
DECW eam
INCLear
INCLeam
DECLear
DECLeam
For an explanation of “(a)”, “(b)”, “(c)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
word (AH) – (AL)
word (A) – (ear)
word (A) – (eam)
word (A) – imm16
long (A) – (ear)
long (A) – (eam)
long (A) – imm32
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
*
*
*
–
For an explanation of “(a)”, “(b)”, “(c)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
long (A)/word (ear)
Quotient → word (A) Remainder → word (ear)
7
long (A)/word (eam)
*
Quotient → word (A) Remainder → word (eam)
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
*
*
–
*
–
*
–
*
–
*
–
MULU A
MULUA, ear
MULUA, eam
MULUW A
MULUW A, ear
MULUW A, eam
1
2
2+
1
2
2+
8
*
9
*
10
*
11
*
12
*
13
*
byte (AH) × byte (AL) → word (A)
0
0
byte (A) × byte (ear) → word (A)
(b)
byte (A) × byte (eam) → word (A)
0
word (AH) × word (AL) → long (A)
0
word (A) × word (ear) → long (A)
(c)
word (A) × word (eam) → long (A)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)” and “(c), refer to Table 5, “Correction Values for Number of Cycle Used to Calculate
Number of Actual Cycles.”
*1: 3 when dividing into zero, 6 when an overflow occurs, and 14 normally.
*2: 3 when dividing into zero, 5 when an overflow occurs, and 13 normally.
*3: 5 + (a) when dividing into zero, 7 + (a) when an overflow occurs, and 17 + (a) normally.
*4: 3 when dividing into zero, 5 when an overflow occurs, and 21 normally.
*5: 4 + (a) when dividing into zero, 7 + (a) when an overflow occurs, and 25 + (a) normally.
*6: (b) when dividing into zero or when an overflow occurs, and 2 × (b) normally.
*7: (c) when dividing into zero or when an overflow occurs, and 2 × (c) normally.
*8: 3 when byte (AH) is zero, and 7 when byte (AH) is not 0.
*9: 3 when byte (ear) is zero, and 7 when byte (ear) is not 0.
*10:4 + (a) when byte (eam) is zero, and 8 + (a) when byte (eam) is not 0.
*11:3 when word (AH) is zero, and 11 when word (AH) is not 0.
*12:3 when word (ear) is zero, and 11 when word (ear) is not 0.
*13:4 + (a) when word (eam) is zero, and 12 + (a) when word (eam) is not 0.
44
To Top / Lineup / Index
MB90242A Series
Table 13 Signed Multiplication and Division Instructions (Word/Long Word) [11 Insturctions]
Mnemonic# cycles BOperationLH AH ISTNZVC RMW
DIVA
DIVA, ear
DIVA, eam
DIVWA, ear
DIVWA, eam
MULA
MULA, ear
MULA, eam
MULW A
MULW A, ear
MULW A, eam
2+
2+
2+
2+
1
2
0
*
word (AH) /byte (AL)
Z
–
–
–
–
–
–
*
*
Quotient → byte (AL) Remainder → byte (AH)
2
2
0
*
word (A)/byte (ear)
Z
–
–
–
–
–
–
*
*
Quotient → byte (A) Remainder → byte (ear)
3
6
*
word (A)/byte (eam)
*
Z
–
–
–
–
–
–
*
*
Quotient → byte (A) Remainder → byte (eam)
4
2
*
5
*
long (A)/word (ear)
0
Quotient → word (A) Remainder → word (ear)
7
*
long (A)/word (eam)
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
*
*
Quotient → word (A) Remainder → word (eam)
8
0
2
*
9
2
*
10
*
11
2
*
12
2
*
13
*
byte (AH) × byte (AL) → word (A)
0
byte (A) × byte (ear) → word (A)
(b)
byte (A) × byte (eam) → word (A)
0
word (AH) × word (AL) → long (A)
0
word (A) × word (ear) → long (A)
(b)
word (A) × word (eam) → long (A)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)” and “(c)”, refer to Table 5, “Correction Values for Number of Cycles Used to Calculate
Number of Actual Cycles.”
*1: 3 when dividing into zero, 8 or 18 when an overflow occurs, and 18 normally.
*2: 3 when dividing into zero, 10 or 21 when an overflow occurs, and 22 normally.
*3: 4 + (a) when dividing into zero, 11 + (a) or 22 + (a) when an overflow occurs, and 23 + (a) normally.
*4: When the dividend is positive: 4 when dividing into zero, 10 or 29 when an overflow occurs, and 30 normally.
When the dividend is negative: 4 when dividing into zero, 11 or 30 when an overflow occurs, and 31 normally.
*5: When the dividend is positive: 4 + (a) when dividing into zero, 11 + (a) or 30 + (a) when an overflow occurs,
and 31 + (a) normally.
When the dividend is negative: 4 + (a) when dividing into zero, 12 + (a) or 31 + (a) when an overflow occurs,
and 32 + (a) normally.
*6: (b) when dividing into zero or when an overflow occurs, and 2 × (b) normally.
*7: (c) when dividing into zero or when an overflow occurs, and 2 × (c) normally.
*8: 3 when byte (AH) is zero, 12 when the result is positive, and 13 when the result is negative.
*9: 3 when byte (ear) is zero, 12 when the result is positive, and 13 when the result is negative.
*10:4 + (a) when byte (eam) is zero, 13 + (a) when the result is positive, and 14 + (a) when the result is negative.
*11:3 when word (AH) is zero, 12 when the result is positive, and 13 when the result is negative.
*12:3 when word (ear) is zero, 16 when the result is positive, and 19 when the result is negative.
*13:4 + (a) when word (eam) is zero, 17 + (a) when the result is positive, and 20 + (a) when the result is negative.
Note: Which of the two values given for the number of execution cycles applies when an overflow error occurs in
a DIV or DIVW instruction depends on whether the overflow was detected before or after the operation.
word (A) ← (AH) and (A)
word (A) ← (A) and imm16
word (A) ← (A) and (ear)
word (A) ← (A) and (eam)
word (ear) ← (ear) and (A)
word (eam) ← (eam) and (A)
word (A) ← (AH) or (A)
word (A) ← (A) or imm16
word (A) ← (A) or (ear)
word (A) ← (A) or (eam)
word (ear) ← (ear) or (A)
word (eam) ← (eam) or (A)
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
XORW A
XORW A, #imm16
XORW A, ear
XORW A, eam
XORW ear, A
XORW eam, A
NOTW A
NOTW ear
NOTW eam
For an explanation of “(a)”, “(b)”, “(c)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
46
1
3
2
2+
2
2+
1
2
2+
2
2
2
3+ (a)
3
3+ (a)
2
2
3+ (a)
0
0
0
(c)
0
2× (c)
0
0
2× (c)
word (A) ← (AH) xor (A)
word (A) ← (A) xor imm16
word (A) ← (A) xor (ear)
word (A) ← (A) xor (eam)
word (ear) ← (ear) xor (A)
word (eam) ← (eam) xor (A)
word (A) ← not (A)
word (ear) ← not (ear)
word (eam) ← not (eam)
For an explanation of “(a)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
Mnemonic#cyclesBOperationLH AHISTNZVC RMW
NEGA
NEGear
NEGeam
NEGW A
NEGW ear
NEGW eam
For an explanation of “(a)”, “(b)” and “(c)” and refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
Table 17 Absolute Value Instructions (Byte/Word/Long Word) [3 Insturctions]
byte (A) ← Arithmetic right barrel shift (A, imm8)
0
byte (A) ← Logical right barrel shift (A, imm8)
0
byte (A) ← Logical left barrel shift (A, imm8)
0
word (A) ← Arithmetic right shift (A, 1 bit)
0
word (A) ← Logical right shift (A, 1 bit)
0
word (A) ← Logical left shift (A, 1 bit)
0
word (A) ← Arithmetic right barrel shift (A, R0)
0
word (A) ← Logical right barrel shift (A, R0)
0
word (A) ← Logical left barrel shift (A, R0)
0
word (A) ← Arithmetic right barrel shift (A, imm8)
0
word (A) ← Logical right barrel shift (A, imm8)
0
word (A) ← Logical left barrel shift (A, imm8)
0
long (A) ← Arithmetic right shift (A, R0)
0
long (A) ← Logical right barrel shift (A, R0)
0
long (A) ← Logical left barrel shift (A, R0)
–
–
–
–
–
*
*
–
*
*
–
–
–
–
–
*
*
–
*
*
–
–
–
–
–
*
*
–
*
*
–
–
–
–
–
*
*
–
*
*
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
–
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
–
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
R
*
–
*
–
–
–
–
–
–
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
–
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
–
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
–
*
*
–
*
–
ASRLA, #imm8
LSRLA, #imm8
LSLLA, #imm8
4
3
*
3
*
3
*
0
4
long (A) ← Arithmetic right shift (A, imm8)
0
4
long (A) ← Logical right barrel shift (A, imm8)
0
long (A) ← Logical left barrel shift (A, imm8)
–
–
–
–
*
*
*
–
–
–
–
–
*
*
*
–
–
–
–
–
–
*
*
–
For an explanation of “(a)” and “(b)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
*1: 3 when R0 is 0, 3 + (R0) in all other cases.
*2: 3 when R0 is 0, 4 + (R0) in all other cases.
*3: 3 when imm8 is 0, 3 + (imm8) in all other cases.
*4: 3 when imm8 is 0, 4 + (imm8) in all other cases.
word (PC) ← (A)
word (PC) ← addr16
word (PC) ← (ear)
word (PC) ← (eam)
word (PC) ← (ear), (PCB) ← (ear +2)
word (PC) ← (eam), (PCB) ← (eam +2)
word (PC) ← ad24 0 to 15
(PCB) ← ad24 16 to 23
word (PC) ← (ear)
word (PC) ← (eam)
word (PC) ← addr16
Vector call linstruction
word (PC) ← (ear) 0 to 15,
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
(PCB) ← (ear) 16 to 23
CALLP @eam *
CALLP addr24 *
6
7
2+
4
8+ (a)
7
2
*
2× (c)
word (PC) ← (eam) 0 to 15,
(PCB) ← (eam) 16 to 23
word (PC) ← addr 0 to 15,
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
(PCB) ← addr 16 to 23
For an explanation of “(a)”, “(c)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each F orm of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
*1: 3 when branching, 2 when not branching.
*2: 3 × (c) + (b)
*3: Read (word) branch address.
*4: W: Save (word) to stack; R: Read (word) branch address.
*5: Save (word) to stack.
*6: W: Save (long word) to W stack; R: Read (long word) branch address.
*7: Save (long word) to stack.
pointer to stack, set new frame
pointer, and allocate local pointer
area
1
5
At constant entry, retrie ve old frame
(c)
–
–
–
–
–
–
–
–
–
–
pointer from stack.
RET *
RETP *
7
8
1
4
1
5
Return from subroutine
(c)
Return from subroutine
(d)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)”, “(c)” and “(d)”, refer to Table 5, “Correction V alues for Number of Cycles Used to Calculate
Number of Actual Cycles.”
*1: 4 when branching, 3 when not branching
*2: 5 when branching, 4 when not branching
*3: 5 + (a) when branching, 4 + (a) when not branching
*4: 6 + (a) when branching, 5 + (a) when not branching
*5: 3 × (b) + 2 × (c) when an interrupt request is generated, 6 × (c) when returning from the interrupt.
*6: High-speed interrupt return instruction. When an interrupt request is detected during this instruction, the
instruction branches to the interrupt vector without performing stack operations when the interrupt is generated.
*7: Return from stack (word)
*8: Return from stack (long word)
50
–
–
–
–
To Top / Lineup / Index
MB90242A Series
Table 22 Other Control Instructions (Byte/Word/Long Word) [36 Instructions]
No operation
Prefix code for AD space access
Prefix code for DT space access
Prefix code for PC space access
Prefix code for SP space access
Prefix code for no flag change
Prefix code for the common register bank
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
*
–
–
–
*
*
*
*
*
*
*
–
–
–
*
*
*
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Z
*
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
MOVW SPCU, #imm16
MOVW SPCL, #imm16
SETSPC
CLRSPC
BTSCN A
BTSCNS A
BTSCND A
4
2
4
2
2
2
2
2
5
2
*
6
2
*
7
2
*
word (SPCU) ← (imm16)
0
word (SPCL) ← (imm16)
0
Stack check ooperation enable
0
Stack check ooperation disable
0
byte (A)← position of “1” bit in word (A)
0
byte (A)← position of “1” bit in word (A) × 2
0
byte (A)← position of “1” bit in word (A) × 4
0
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Z
–
–
–
–
–
Z
–
–
–
–
–
Z
–
–
–
–
–
For an explanation of “(a)” and “(c)”, refer to Tables 4 and 5.
*1: PCB, ADB, SSB, USB, and SPB: 1 cycle*4: Pop count × (c), or push count × (c)
DTB: 2 cycles*5: 3 when AL is 0, 5 when AL is not 0.
DPR: 3 cycles*6: 4 when AL is 0, 6 when AL is not 0.
*2: 3 + 4 × (pop count)*7: 5 when AL is 0, 7 when AL is not 0.
*3: 3 + 4 × (push count)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
*
–
–
–
*
–
–
–
51
To Top / Lineup / Index
MB90242A Series
Table 23 Bit Manipulation Instructions [21 Instructions]
Mnemonic#cyclesBOperationLH AHISTNZVC RMW
MOVB A, dir:bp
MOVB A, addr16:bp
MOVB A, io:bp
3
3
(b)
byte (A) ← (dir:bp) b
4
3
(b)
byte (A) ← (addr16:bp) b
3
3
(b)
byte (A) ← (io:bp) b
Z
*
–
–
–
*
*
Z
*
–
–
–
*
*
Z
*
–
–
–
*
*
–
–
–
–
–
–
–
–
–
MOVB dir:bp, A
MOVBaddr16:bp , A
MOVB io:bp, A
SETBdir:bp
SETBaddr16:bp
SETBio:bp
CLRBdir:bp
CLRBaddr16:bp
CLRBio:bp
BBCdir:bp, rel
BBCaddr16:bp, rel
BBCio:bp, rel
BBSdir:bp, rel
BBSaddr16:bp, rel
BBSio:bp, rel
SBBSaddr16:bp, rel
WBTS io:bp
WBTC io:bp
3
4
2× (b)
4
4
2× (b)
3
4
2× (b)
3
4
2× (b)
4
4
2× (b)
3
4
2× (b)
3
4
2× (b)
4
4
2× (b)
3
4
2× (b)
4
5
4
4
5
4
5
3
3
1
*
1
*
1
*
1
*
1
*
1
*
2
2× (b)
*
3
*
3
*
bit (dir:bp) b ← (A)
bit (addr16:bp) b ← (A)
bit (io:bp) b ← (A)
bit (dir:bp) b ← 1
bit (addr16:bp) b ← 1
bit (io:bp) b ← 1
bit (dir:bp) b ← 0
bit (addr16:bp) b ← 0
bit (io:bp) b ← 0
(b)
Branch when (dir:bp) b = 0
(b)
Branch when (addr16:bp) b = 0
(b)
Branch when (io:bp) b = 0
(b)
Branch when (dir:bp) b = 1
(b)
Branch when (addr16:bp) b = 1
(b)
Branch when (io:bp) b = 1
Branch when (addr16:bp) b = 1, bit = 1
4
Wait until (io:bp) b = 1
*
4
Wait until (io:bp) b = 0
*
–
–
–
–
–
*
*
–
–
*
–
–
–
–
–
*
*
–
–
*
–
–
–
–
–
*
*
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
*
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)”, refer to Table 5, “Correction Values for Number of Cycles Used to Calculate Number of
Actual Cycles.”
*1: 5 when branching, 4 when not branching
*2: 7 when condition is satisfied, 6 when not satisfied
*3: Undefined count
*4: Until condition is satisfied
m: RW0 value (counter value)
*1: 3 when RW0 is 0, 2 + 6 × (RW0) for count out, and 6n + 4 when match occurs
*2: 4 when RW0 is 0, 2 + 6 × (RW0) in any other case
*3: (b) × (RW0)
*4: (b) × n
*5: (b) × (RW0)
*6: (c) × (RW0)
*7: (c) × n
*8: (c) × (RW0)
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
–
–
–
–
*
*
*
*
–
–
–
–
*
*
–
–
–
53
MB90242A Series
Table 26 Multiple Data Transfer Instructions [18 Instructions]
Multiple data transfer
byte (bnk:addr16) ← (bnk:addr16)
4
Multiple data transfer
word (bnk:addr16) ← (bnk:addr16)
To Top / Lineup / Index
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*1: 5 + imm8 × 5, 256 times when imm8 is zero.
*2: 5 + imm8 × 5 + (a), 256 times when imm8 is zero.
*3: Number of transfers × (b) × 2
*4: Number of transfers × (c) × 2
*5: The bank register specified by “bnk” is the same as for the MOVS instruction.
54
■ ORDERING INFORMATION
Part numberPackageRemarks
To Top / Lineup / Index
MB90242A Series
MB90242A
80-pin Plastic LQFP
(FPT-80P-M05)
55
MB90242A Series
■ PACKAGE DIMENSIONS
80-pin Plastic LQFP
(FPT-80P-M05)
14.00±0.20(.551±.008)SQ
60
6140
80
12.00±0.10(.472±.004)SQ
INDEX
To Top / Lineup / Index
+0.20
−0.10
1.50
(Mounting height)
+.008
.059
41
21
−.004
9.50
(.374)
REF
13.00
(.512)
NOM
LEAD No.
1
0.50±0.08
(.0197±.0031)
0.10(.004)
C
1995 FUJITSU LIMITED F80008S-2C-5
0.18
.007
20
+0.08
−0.03
+.003
−.001
"A"
0.127
.005
+0.05
−0.02
+.002
−.001
Details of "A" part
0.10±0.10
(.004±.004)
(STAND OFF)
0.50±0.20(.020±.008)
0 10˚
Dimensions in mm (inches)
56
FUJITSU LIMITED
For further information please contact:
Japan
FUJITSU LIMITED
Corporate Global Business Support Division
Electronic Devices
KAWASAKI PLANT, 4-1-1, Kamikodanaka
Nakahara-ku, Kawasaki-shi
Kanagawa 211-88, Japan
Tel: (044) 754-3763
Fax: (044) 754-3329
North and South America
FUJITSU MICROELECTRONICS, INC.
Semiconductor Division
3545 North First Street
San Jose, CA 95134-1804, U.S.A.
Tel: (408) 922-9000
Fax: (408) 432-9044/9045
FUJITSU MICROELECTRONICS ASIA PTE. LIMITED
#05-08, 151 Lorong Chuan
New Tech Park
Singapore 556741
Tel: (65) 281-0770
Fax: (65) 281-0220
To Top / Lineup / Index
MB90242A Series
All Rights Reserved.
The contents of this document are subject to change without
notice. Customers are advised to consult with FUJITSU sales
representatives before ordering.
The information and circuit diagrams in this document presented
as examples of semiconductor device applications, and are not
intended to be incorporated in devices for actual use. Also,
FUJITSU is unable to assume responsibility for infringement of
any patent rights or other rights of third parties arising from the
use of this information or circuit diagrams.
FUJITSU semiconductor devices are intended for use in
standard applications (computers, office automation and other
office equipment, industrial, communications, and measurement
equipment, personal or household devices, etc.).
CAUTION:
Customers considering the use of our products in special
applications where failure or abnormal operation may directly
affect human lives or cause physical injury or property damage,
or where extremely high levels of reliability are demanded (such
as aerospace systems, atomic energy controls, sea floor
repeaters, vehicle operating controls, medical devices for life
support, etc.) are requested to consult with FUJITSU sales
representatives before such use. The company will not be
responsible for damages arising from such use without prior
approval.
Any semiconductor devices have inherently a certain rate of
failure. You must protect against injury, damage or loss from
such failures by incorporating safety design measures into your
facility and equipment such as redundancy, fire protection, and
prevention of over-current levels and other abnormal operating
conditions.
F9704
FUJITSU LIMITED Printed in Japan
If any products described in this document represent goods or
technologies subject to certain restrictions on export under the
Foreign Exchange and Foreign Trade Control Law of Japan, the
prior authorization by Japanese government should be required
for export of those products from Japan.
57
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.