The MB89640 series has been developed as a general-purpose version of the F2MC*-8L family consisting of
proprietary 8-bit, single-chip microcontrollers.
DS07-12505-3E
In addition to a compact instruction set, the microcontrollers contain a variety of peripheral functions such as
dual-clock control system, five operating speed control stages, timers, a PWM timer, serial interface, an A/D
converter, a D/A converter, an external interrupt, and a watch prescaler.
2
MC stands for FUJITSU Flexible Microcontroller.
*: F
FEATURES
■
•F2MC-8L family CPU core
Multiplication and division instructions
Instruction set optimized for controllers
PACKAGE
■
80-pin Plastic QFP
16-bit arithmetic operations
Test and branch instructions
Bit manipulation instructions, etc.
RAM size256 × 8 bits512 × 8 bits 768 × 8 bits1 K × 8 bits
CPU functionsNumber of instructions:136
MB89643MB89645MB89646MB89647MB89P647MB89PV640
(internal mask
ROM)
Mass production products
(mask ROM products)
16 K × 8 bits
(internal mask
ROM)
24 K × 8 bits
(internal mask
ROM)
32 K × 8 bits
(internal mask
ROM)
One-time
PROM product
32 K × 8 bits
(internal PROM,
programming with
general-purpose
programmer)
Instruction bit length:8 bits
Instruction length:1 to 3 bytes
Data bit length:1, 8, 16 bits
Minimum execution time:0.4 µs/10 MHz to 6.4 µs/10 MHz,
or 61.0 µs/32.768 kHz
Interrupt processing time:3.6 µs/10 MHz to 57.6 µs/10 MHz,
or 562.5 µs/32.768 kHz
Piggyback/
evaluation product
for evaluation and
development
32 K × 8 bits
(external ROM)
PortsInput ports (CMOS):9 (All also serve as a external interrupt.)
Output ports (CMOS):8 (All also serve as a bus control.)
I/O ports (CMOS):24 (8 ports also serve as peripherals,
16 ports also serve as a bus control.)
I/O ports (N-ch open-drain):8 (All also serve as peripherals.)
Output ports (N-ch open-drain): 16 (8 ports also serve as peripherals.)
Total:65
Clock timer21 bits × 1 (in main clock mode), 15 bits × 1 (at 32.768 kHz)
8-bit PWM
*1: Varies with conditions such as the operating frequency. (See section “■ Electrical Characteristics.”)
■
1
PACKAGE AND CORRESPONDING PRODUCTS
MB89643
Package
FPT-80P-M11×
FPT-80P-M06×
MQP-80C-P01×
MB89645
MB89646
MB89647
MB89P647
8-bit resolution × 2 channels, R-2R type
9 channels
2.2 V to 6.0 V2.7 V to 6.0 V
MB89PV640
MBM27C256A
-20TV
: Available
Note: For more information about each package, see section “■ External Dimensions.”
× : Not available
4
MB89640 Series
DIFFERENCES AMONG PRODUCTS
■
1. Memory Size
Before e v aluating using the piggyback product, v erify its diff erences from the product that will actually be used.
Take particular care on the following points:
• On the MB89643 register banks 16 to 32 cannot be used.
• On the MB89P647, the program area starts from address 8007
from 8000H.
(On the MB89P647, addresses 8000
by reading these addresses. On the MB89PV640 and MB89647, addresses 8000
used as a program ROM. However, do not use these addresses in order to maintain compatibility of the
MB89P647.)
• The stack area, etc., is set at the upper limit of the RAM.
• The external areas are used.
H to 8006H comprise the option setting area, option settings can be read
H but on the MB89PV640 and MB89647 starts
H to 8006H could also be
2. Current Consumption
• In the case of the MB89PV640, add the current consumed by the EPROM which is connected to the top soc ket.
• When operated at low speed, the product with an OTPROM (one-time PROM) or an EPROM will consume
more current than the product with a mask ROM.
• However, the current consumption in sleep/stop modes is the same. (For more information, see sections
“■ Electrical Characteristics” and “■ Example Characteristics.”)
3. Mask Options
Functions that can be selected as options and how to designate these options vary by the product.
Before using options check section “■ Mask Options.”
Take particular care on the following points:
• A pull-up resistor cannot be set for P40 to P47 and P50 to P57 on the MB89P647.
• For all products, P60 to P67 are available for no pull-up resistor when an A/D converter is used.
• For all products, P50 to P57 are available for no pull-up resistor when a D/A converter is used.
This pin is an N-ch open-drain output type with pull-up
resistor, and a h ysteresis input type . “L” is output from this
pin by an internal reset source. The internal circuit is
initialized by the input of “L”.
38 to 3140 to 33P00/AD0 to
P07/AD7
EGeneral-purpose I/O ports
Also serve as multiplex pins of lower address output and
data I/O.
30 to 2332 to 25P10/A08 to
P17/A15
22,
21,
18,
15
20,
19
17,
16
24,
23,
20,
17
22,
21
19,
18
P20/BUFC,
P21/HAK
,
P24/CLK,
P27/ALE
P22/HRQ,
P23/RDY
P25/WR
,
P26/RD
EGeneral-purpose I/O ports
Also serve as an upper address output.
GGeneral-purpose output-only ports
Also serve as a bus control signal output.
EGeneral-purpose output-only ports
Also serve as a bus control signal input.
EGeneral-purpose output-only ports
Also serve as a bus control signal output.
4648P30/ADSTFGeneral-purpose I/O port
4547P31/SCK1FGeneral-purpose I/O port
44,
43
4244P34/ECFGeneral-purpose I/O port
*1: FPT-80P-M11
*2: FPT-80P-M06
*3: MQP-80C-P01
8
46,
45
P32/SO1,
P33/SI1
Also serves as an A/D converter external activation. This
port is a hysteresis input type.
Also serves as the clock I/O for the serial I/O 1. This port
is a hysteresis input type.
FGeneral-purpose I/O ports
Also serve as the data output for the serial I/O 1. These
ports are a hysteresis input type.
Also serves as the external clock input for the 16-bit timer/
counter. This port is a hysteresis input type.
(Continued)
MB89640 Series
(Continued)
QFP
4143P35/PWCFGeneral-purpose I/O port
4042P36/WTOFGeneral-purpose I/O port
3941P37/PTO1FGeneral-purpose I/O port
55, 54,
52 to 47
6466P50/DA1KN-ch open-drain I/O port
6365P51/DA2KN-ch open-drain I/O port
6264P52/PWMHN-ch open-drain I/O port
Pin no.
*1
MQFP
54 to 49
*2
QFP
57, 56,
Pin name
*3
P40 to P47LN-ch medium-voltage open-drain output-only ports
Circuit
type
Also serves as the measured pulse input for the 8-bit pulse
width counter. This port is a hysteresis input type.
Also serves as the toggle output for the 8-bit pulse width
counter. This port is a hysteresis input type.
Also serves as the toggle output for the 1-channel PWM
timer.
Also serves as a D/A channel 1 output. This port is a
hysteresis input type.
Also serves as a D/A channel 2 output. This port is a
hysteresis input type.
Also serves as the PWM output by the two PWM timers.
This port is a hysteresis input type.
Function
6163P53/PTO2HN-ch open-drain I/O port
Also serves as the toggle output for the 2-channel PWM
timer. This port is a hysteresis input type.
6062P54/BZHN-ch open-drain I/O port
Also serves as a buzzer output. This port is a hysteresis
input type.
5961P55/SCK2HN-ch open-drain I/O port
Also serves as the clock I/O for the serial I/O 2. This port
is a hysteresis input type.
5860P56/SO2HN-ch open-drain I/O port
Also serves as the data output for the serial I/O 2. This
port is a hysteresis input type.
5759P57/SI2HN-ch open-drain I/O port
Also serves as the data input for the serial I/O 2. This port
is a hysteresis input type.
77 to 7079 to 72P60/AN0 to
P67/AN7
2, 1,
80 to 78
*1: FPT-80P-M11
*2: FPT-80P-M06
*3: MQP-80C-P01
4 to 1, 80P70/LI0 to
P74/LI4
IN-ch open-drain output-only ports
Also serve as the analog input for the A/D converter.
These ports are a hysteresis input type.
JInput-only ports
Also serve as external interrupt 1 input. These ports are a
hysteresis input type.
Outputs “H” during standby.
104A10OAddress output pin
105OE
OROM output enable pin
Outputs “L” at all times.
107
108
109
A11
A9
A8
110A13O
111A14O
112V
81
CCOEPROM power supply pin
N.C.—Internally connected pins
92
97
106
OAddress output pins
Be sure to leave them open.
11
MB89640 Series
I/O CIRCUIT TYPE
■
TypeCircuitRemarks
AMain clock
X1
• At an oscillation feedback resistor of approximately
X0
Standby control signal
BSubclock
X1A
1 MΩ/5.0 V
• At an oscillation feedback resistor of approximately
X0A
Standby control signal
4.5 MΩ/5.0 V
C
D• At an output pull-up resistor (P-ch) of approximately
R
P-ch
50 kΩ/5.0 V
• Hysteresis input
N-ch
E• CMOS output
R
P-ch
P-ch
N-ch
• CMOS input
• Pull-up resistor optional
(Continued)
12
MB89640 Series
(Continued)
TypeCircuitRemarks
F• CMOS output
R
• Hysteresis input
P-ch
P-ch
N-ch
• Pull-up resistor optional
G• CMOS output
R
P-ch
P-ch
N-ch
• Pull-up resistor optional
H• N-ch open-drain output
R
P-ch
N-ch
• Hysteresis input
• Pull-up resistor optional
I• N-ch open-drain output
R
P-ch
P-ch
N-ch
Analog input
• Analog input
• Pull-up resistor optional
J• Hysteresis input
R
• Pull-up resistor optional
(Continued)
13
MB89640 Series
(Continued)
TypeCircuitRemarks
K• N-ch open-drain output
R
P-ch
P-ch
N-ch
Analog output
• Hysteresis input
• Analog output
Enable
• Pull-up resistor optional
L• N-ch open-drain output
R
P-ch
N-ch
• Medium voltage
• Pull-up resistor optional
14
MB89640 Series
HANDLING DEVICES
■
1. Preventing Latchup
Latchup may occur on CMOS ICs if voltage higher than VCC or lo wer than VSS is applied to input and output pins
other than medium- to high-voltage pins or if higher than the voltage which shows on “1. Absolute Maximum
Ratings” in section “■ Electrical Characteristics” is applied between V
When latchup occurs, power supply current increases rapidly and might thermally damage elements. When
using, take great care not to exceed the absolute maximum ratings.
CC and VSS.
Also, tak e care to prevent the analog po wer supply (A V
power supply (VCC) when the analog system power supply is turned on and off.
CC and A VRH) and analog input from exceeding the digital
2. Treatment of Unused Input Pins
Leaving unused input pins open could cause malfunctions. The y should be connected to a pull-up or pull-do wn
resistor.
3. Treatment of Power Supply Pins on Microcontrollers with A/D and D/A Converters
Connect to be AVCC = DAVC = VCC and AVSS = AVRH = VSS even if the A/D and D/A converters are not in use.
4. Treatment of N.C. Pins
Be sure to leave (internally connected) N.C. pins open.
5. Power Supply Voltage Fluctuations
Although VCC power supply voltage is assured to oper ate within the rated range, a r apid fluctuation of the voltage
could cause malfunctions, ev en if it occurs within the rated range. Stabilizing voltage supplied to the IC is theref ore
important. As stabilization guidelines, it is recommended to control power so that V
value) will be less than 10% of the standard VCC value at the commercial frequency (50 to 60 Hz) and the tr ansient
fluctuation rate will be less than 0.1 V/ms at the time of a momentary fluctuation such as when power is switched.
CC ripple fluctuations (P-P
6. Precautions when Using an External Clock
Even when an external clock is used, oscillation stabilization time is required for power-on reset (optional) and
wake-up from stop mode.
15
MB89640 Series
PROGRAMMING TO THE EPROM ON THE MB89P647
■
The MB89P647 is an OTPROM version of the MB89640 series.
1. Features
• 32-Kbyte PROM on chip
• Options can be set using the EPROM programmer.
• Equivalency to the MBM27C256A in EPROM mode (when programmed with the EPROM programmer)
2. Memory Space
Memory space in each mode such as 32-Kbyte PROM, option area is diagrammed below.
Single chipAddressEPROM mode
(Corresponding addresses on the EPROM programmer)
0000H
0080H
0180H
I/O
RAM
Not available
8000H
8007H0007H
FFFFH
Not available
PROM
32 KB
0000H
Option area
EPROM
32 KB
7FFFH
• Precautions
(1) The program area of the MB89P647 is 7 bytes smaller than that of the MB89PV640 and MB89647 to provide
an option area. Note this point during program development.
(2) During normal operation, the option data is read when the option area is read from the CPU.
3. Programming to the EPROM
In EPROM mode, the MB89P647 functions equivalent to the MBM27C256A. This allows the PROM to be
programmed with a general-purpose EPROM programmer (the electronic signature mode cannot be used) by
using the dedicated socket adapter.
• Programming procedure
(1) Set the EPROM programmer to the MBM27C256A.
(2) Load program data into the EPROM programmer at 0007
while operating as internal ROM mode assign to 0007H to 7FFFH in EPROM mode).
Load option data into addresses 0000H to 0006H of the EPROM programmer. (For information about each
corresponding option, see “7. Setting OTPROM Options.”)
(3) Program with the EPROM programmer.
16
H to 7FFFH (note that addresses 8007H to FFFFH
MB89640 Series
4. Recommended Screening Conditions
High-temperature aging is recommended as the pre-assembly screening procedure f or a product with a blanked
OTPROM microcomputer program.
Program, verify
Aging
+150°C, 48 Hrs.
Data verification
Assembly
5. Programming Yield
All bits cannot be programmed at Fujitsu shipping test to a blank ed O TPR OM microcomputer, due to its nature.
For this reason, a programming yield of 100% cannot be assured at all times.
Note: Depending on the EPR OM programmer , inserting a capacitor of about 0.1 µF between V
and VSS can stabilize programming operations.
PP and VSS or VCC
17
MB89640 Series
7. Setting OTPROM Options
The programming procedure is the same as that for the PROM. Options can be set by programming values at
the addresses shown on the memory map. The relationship between bits and options is shown on the f ollowing
bit map:
• OTPROM option bit map
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
0000
Vacancy
Readable and
H
writable
Vacancy
Readable and
writable
Vacancy
Readable and
writable
Single/dualclock system
1: Dual clock
2: Single clock
Reset pin
output
1: Yes
2: No
Power-on
reset
1: Yes
2: No
Oscillation stabilization time
00: 24/FCH
01: 217/FCH
10: 214/FCH
11: 218/FCH
0001
0002
0003
0004
0005
0006
P07
Pull-up
H
1: No
0: Yes
P17
Pull-up
H
1: No
0: Yes
P37
Pull-up
H
1: No
0: Yes
P67
Pull-up
H
1: No
0: Yes
Vacancy
Readable and
H
writable
Vacancy
Readable and
H
writable
P06
Pull-up
1: No
0: Yes
P16
Pull-up
1: No
0: Yes
P36
Pull-up
1: No
0: Yes
P66
Pull-up
1: No
0: Yes
Vacancy
Readable and
writable
Vacancy
Readable and
writable
P05
Pull-up
1: No
0: Yes
P15
Pull-up
1: No
0: Yes
P35
Pull-up
1: No
0: Yes
P65
Pull-up
1: No
0: Yes
Vacancy
Readable and
writable
Vacancy
Readable and
writable
P04
Pull-up
1: No
0: Yes
P14
Pull-up
1: No
0: Yes
P34
Pull-up
1: No
0: Yes
P64
Pull-up
1: No
0: Yes
P74
Pull-up
1: No
0: Yes
Vacancy
Readable and
writable
P03
Pull-up
1: No
0: Yes
P13
Pull-up
1: No
0: Yes
P33
Pull-up
1: No
0: Yes
P63
Pull-up
1: No
0: Yes
P73
Pull-up
1: No
0: Yes
P83
Pull-up
1: No
0: Yes
P02
Pull-up
1: No
0: Yes
P12
Pull-up
1: No
0: Yes
P32
Pull-up
1: No
0: Yes
P62
Pull-up
1: No
0: Yes
P72
Pull-up
1: No
0: Yes
P82
Pull-up
1: No
0: Yes
P01
Pull-up
1: No
0: Yes
P11
Pull-up
1: No
0: Yes
P31
Pull-up
1: No
0: Yes
P61
Pull-up
1: No
0: Yes
P71
Pull-up
1: No
0: Yes
P81
Pull-up
1: No
0: Yes
P00
Pull-up
1: No
0: Yes
P10
Pull-up
1: No
0: Yes
P30
Pull-up
1: No
0: Yes
P60
Pull-up
1: No
0: Yes
P70
Pull-up
1: No
0: Yes
P80
Pull-up
1: No
0: Yes
18
Notes:
• Set each bit to 1 to erase.
• Do not write 0 to the vacant bit.
The read value of the vacant bit is 1, unless 0 is written to it.
MB89640 Series
PROGRAMMING TO THE EPROM WITH PIGGYBACK/EVALUATION DEVICE
■
1. EPROM for Use
MBM27C256A-20TV
2. Programming Socket Adapter
To program to the PROM using an EPROM programmer, use the socket adapter (manufacturer: Sun Hayato
Co., Ltd.) listed below.
PackageAdapter socket part number
LCC-32 (Rectangle)ROM-32LC-28DP-YG
Inquiry: Sun Hayato Co., Ltd.: TEL 81-3-3802-5760
3. Memory Space
Memory space in each mode, such as 32-Kbyte PROM is diagrammed below.
Address
0000H
0080H
0480H
8000H
8007H
FFFF
H
Single chip
I/O
RAM
Not available
Not available
PROM
32 KB
Corresponding addresses on the EPROM programmer
0000H
0007H
7FFF
H
4. Programming to the EPROM
(1) Set the EPROM programmer to the MBM27C256A.
(2) Load program data into the EPROM programmer at 0007H to 7FFFH.
The microcontrollers of the MB89640 series offer a memory space of 64 Kbytes for storing all of I/O, data, and
program areas. The I/O area is located at the low est address. The data area is pro vided immediately abov e the
I/O area. The data area can be divided into register, stack, and direct areas according to the application. The
program area is located at exactly the opposite end, that is, near the highest address. Provide the tables of
interrupt reset vectors and vector call instructions toward the highest address within the program area. The
memory space of the MB89640 series is structured as illustrated below.
Memory Space
MB89P647
0000 H
0080 H
0100 H
0200 H
0480 H
MB89PV640
I/O
RAM
1 KB
Register
0000
0080 H
0100 H
0180 H
0280
MB89643
H
RAM
256 B
Not available
H
I/O
Register
0000
0080 H
0100 H
0200 H
0280 H
H
MB89645
I/O
RAM
512 B
Register
0000
0080 H
0100 H
0200 H
0380 H
H
MB89646
I/O
RAM
768 B
Register
0000
0080 H
0100 H
0200 H
0480 H
MB89647
H
I/O
RAM
1 KB
Register
External area
8000 H
Not available
8007 H
External ROM
32 KB
FFFF
H
Note: Since addresses 8000H to 8006H for the MB89P647 comprise an option area, do not use this area for the
MB89PV640 and MB89647.
C000 H
E000 H
FFFF H
External area
Not available
ROM
8 KB
C000 H
FFFF H
External area
ROM
16 KB
External area
A000 H
ROM
24 KB
FFFF H
External area
8000 H
Not available
8007 H
ROM
32 KB
FFFF H
21
MB89640 Series
2. Registers
The F2MC-8L family has two types of registers; dedicated registers in the CPU and general-purpose registers
in the memory. The following dedicated registers are provided:
Program counter (PC): A 16-bit register for indicating instruction storage positions
Accumulator (A):A 16-bit temporary register for storing arithmetic operations, etc. When the
instruction is an 8-bit data processing instruction, the lower byte is used.
Temporary accumulator (T): A 16-bit register which performs arithmetic operations with the accumulator
When the instruction is an 8-bit data processing instruction, the lower byte is used.
Index register (IX):A 16-bit register for index modification
Extra pointer (EP): A 16-bit pointer for indicating a memory address
Stack pointer (SP): A 16-bit register for indicating a stack area
Program status (PS): A 16-bit register for storing a register pointer, a condition code
16 bits
PC
A
T
IX
EP
SP
PS
: Program counter
: Accumulator
: Temporary accumulator
: Index register
: Extra pointer
: Stack pointer
: Program status
Initial value
FFFD
H
Undefined
Undefined
Undefined
Undefined
Undefined
I-flag = 0, IL1, 0 = 11
Other bits are undefined.
The PS can further be divided into higher 8 bits for use as a register bank pointer (RP) and the lower 8 bits for
use as a condition code register (CCR). (See the diagram below.)
Structure of the Program Status Register
10987632101514131211
54
22
RPPS
RPCCR
Vacancy
Vacancy Vacancy
HIIL1, 0NZVC
MB89640 Series
The RP indicates the address of the register bank currently in use. The relationship between the pointer contents
and the actual address is based on the conversion rule illustrated below.
Rule for Conversion of Actual Addresses of the General-purpose Register Area
R1
A4
R0
↓
↓
A3
Lower OP codes
b2
b1
b0
↓
↓
↓
A2
A1
A0
Generated addresses
“0”
↓
A15
“0”
↓
A14
“0”
↓
A13
“0”
↓
A12
“0”
↓
A11
“0”
↓
A10
“0”
A9
RP
“1”
R4
R3
R2
↓
↓
↓
↓
↓
A8
A7
A6
A5
The CCR consists of bits indicating the results of arithmetic operations and the contents of transfer data and
bits for control of CPU operations at the time of an interrupt.
H-flag: Set when a carry or a borrow from bit 3 to bit 4 occurs as a result of an arithmetic operation. Cleared
otherwise. This flag is for decimal adjustment instructions.
I-flag:Interrupt is allowed when this flag is set to 1. Interrupt is prohibited when the flag is set to 0. Set to 0
when reset.
IL1, 0:Indicates the level of the interrupt currently allowed. Processes an interrupt only if its request level is
higher than the value indicated by this bit.
IL1IL0 Interrupt levelHigh-low
00
1
01
102
High
113
Low = no interrupt
N-flag: Set if the MSB is set to 1 as the result of an arithmetic operation. Cleared when the bit is set to 0.
Z-flag:Set when an arithmetic operation results in 0. Cleared otherwise.
V-flag:Set if the complement on 2 overflo ws as a result of an arithmetic operation. Reset if the o verflow does
not occur.
C-flag: Set when a carry or a borrow from bit 7 occurs as a result of an arithmetic operation. Cleared otherwise.
Set to the shift-out value in the case of a shift instruction.
23
MB89640 Series
The following general-purpose registers are provided:
General-purpose registers: An 8-bit register for storing data
The general-purpose registers are 8 bits and located in the register banks of the memory. One bank contains
eight registers. Up to a total of 16 banks can be used on the MB89643 and a total of 32 banks can be used on
the MB89645/646/647/P647/PV640. The bank currently in use is indicated by the register bank pointer (RP).
Note: The number of register banks that can be used varies with the RAM size.
“L” level average output current I
“L” level total average output
current
AVRHV
AVRLV
PPVSS – 0.313.0VMOD1 pin on MB89P647
V
IVSS – 0.3VCC + 0.3V
V
I2VSS – 0.3VSS + 7.0V
SS – 0.3VSS + 7.0V
SS – 0.3VSS + 7.0VAVRL must not exceed AVRH.
AVRH must not exceed AV
0.3 V.
P52 to P57 with a pull-up
resistor and other input ports
P52 to P57 without a pull-up
resistor
P40 to P47 and P52 to P57 with
OVSS – 0.3VCC + 0.3V
V
a pull-up resistor and other
output ports
O2VSS – 0.3
V
O3VSS – 0.3VSS + 7.0V
V
I
OL20mA
OLAV4mA
∑I
OLAV40mA
VSS + 17.0
P40 to P47 without a pull-up
V
resistor
P52 to P57 without a pull-up
resistor
Average value (operating
current × operating rate)
Average value (operating
current × operating rate)
CC +
“L” level total maximum output
current
“H” level maximum output
current
“H” level average output currentI
“H” level total average output
current
“H” level total maximum output
current
Power consumption P
OL100mA
∑I
OH–20mA
I
OHAV–4mA
OHAV–20mA
∑I
∑I
OH–50mA
D500mW
Average value (operating
current × operating rate)
Average value (operating
current × operating rate)
(Continued)
27
MB89640 Series
(Continued)
Parameter
Symbol
(AVSS = VSS = 0.0 V)
Value
UnitRemarks
Min.Max.
Operating temperature T
A–40+85°C
Storage temperatureTstg–55+150°C
* :Use DAVC and AVCC and VCC set at the same voltage.
Take care so that DAVC and AV
CC does not exceed VCC, such as when power is turned on.
Precautions: Permanent device damage may occur if the above “Absolute Maximum Ratings” are exceeded.
Functional operation should be restricted to the conditions as detailed in the operational sections of
this data sheet. Exposure to absolute maximum rating conditions for extended periods may affect
device reliability.
2. Recommended Operating Conditions
(AVSS = VSS = 0.0 V)
Parameter
Power supply voltage
A/D converter reference input
voltage
Symbol
V
CC
AVCC
DAVC
AVRH3.0AV
AVRL0.02.0V
Value
UnitRemarks
Min.Max.
2.2*6.0*V
2.7*6.0*V
Normal operation assurance range*
(MB89643/645/646/647)
Normal operation assurance range*
(MB89P647/PV640)
1.56.0VRetains the RAM state in stop mode
CCV
Operating temperature T
A–40+85°C
* :These values vary with the operating frequency and analog assurance range. See Figure 1, “5. A/D Converter
Electrical Characteristics,” and “6. D/A Converter Electrical Characteristics.”
28
MB89640 Series
6
5
4
3
Operating voltage (V)
2
1
1.010.0
Main clock operating frequency (at an instruction cycle of 4/F
4.00.40.82.0
Minimum execution time (instruction cycle) (µs)
Note: The shaded area is assured only for the MB89643/645/646/647.
Operation assurance range
5.0
1.00.5
Analog accuracy assured in the
VCC = AVCC = DAVC = 3.5 V to 6.0 V range.
CH) (MHz)
Figure 1 Operating Voltage vs. Main Clock Operating Frequency
Figure 1 indicates the operating frequency of the external oscillator at an instruction cycle of 4/F
CH.
Since the operating voltage range is dependent on the instruction cycle, see minimum execution time if the
operating speed is switched using a gear.
Input leakage
current (Hi-z output
leakage current)
Symbol
VIH
V
P00 to P07, P10 to
P17, P22, P23
RST, P30 to P37,
P50, P51, P70 to P74,
P80 to P83
IHS
P52 to P57
IHS2P52 to P570.8 VCC
V
VIL
P00 to P07, P10 to
P17, P22, P23
RST, P30 to P37,
P50 to P57, P70 to
ILS
V
P74, P80 to P83
DP40 to P47
V
VD2P52 to P57
P60 to P67
D3
V
P40 to P47, P52 to
P57
V
V
V
I
P00 to P07, P10 to P17,
OH
P20 to P27, P30 to P37
P00 to P07, P10 to P17,
P20 to P27, P30 to P37,
OL
P40 to P47, P50 to P57,
P60 to P67
OL2RSTIOL = +4.0 mA0.4V
P00 to P07, P10 to P17,
P20 to P27, P30 to P37,
P50 to P57, P70 to P74,
LI1
P80 to P83, MOD0,
MOD1
PinCondition
IOH = –2.0 mA2.4V
IOL = +1.8 mA0.4V
0.45 V < VI < VCC
Value
Min.Typ.Max.
CC
0.7 V
0.8 VCC
SS
V
− 0.3
SS
V
− 0.3
SS
V
− 0.3
SS
V
− 0.3
SS
V
− 0.3
VCC + 0.3
VCC + 0.3
VSS + 6.0
0.3 VCCV
0.2 VCCV
SS
V
+ 15.0
VSS + 6.0
VCC + 0.3
±5µA
UnitRemarks
V
V
With pull-up
resistor
Without pull-
V
up resistor
Without pull-
V
up resistor
Without pull-
V
up resistor
V
With pull-up
resistor
Without pullup resistor
(Continued)
30
(AV
Parameter
Pull-up resistanceR
Power supply
current
Power supply
current
Input capacitanceC
MB89640 Series
CC = DAVC = VCC = +5.0 V, AVSS = VSS = 0.0 V, FCH = 10 MHz, FCL = 32.768 kHz, TA = –40°C to +85°C)
Symbol
P00 to P07, P10 to P17,
P30 to P37, P40 to P47,
P50 to P57, P60 to P64,
PULL
P70 to P74, P80 to P83,
RST
I
CC1
CC2
I
I
CS1
VCC
I
CS2
I
CS3
ICCH
CSB
I
I
CCTVCC
I
AAVCC
Other than AVCC,
IN
AV
PinCondition
VI = 0.0 V2550100kΩ
VCC = +5.0 V
• Main clock
• High speed
VCC = +3.0 V
• Main clock
• Low speed
CC
V
• Main clock sleep
• High speed
CC
V
• Main clock sleep
• Low speed
CC
V
Subclock sleep
TA = +25°C
Subclock stop
CC
V
Subclock operation
(32.768 kHz)
VCC = +3.0 V
Watch mode
(32.768 kHz)
• Main clock
• High speed
SS, VCC, and VSS
f = 1 MHz—10pF
operation
operation
= +5.0 V
= +3.0 V
= +3.0 V
= +3.0 V
operation
Min.Typ.Max.
—1020mA
*2
—1123mA
—1.5 2mA
*3
*2
*3
—2.5 5mA
—3 7mA
—11.5mA
—2550µA
——10µA
—50100µA
—1 3mA
——15µA
—1 3mA
*2
Value
UnitRemarks
Without pullup resistor
MB89P647
only
MB89P647
only
MB89P647
only
*1: Connect MOD0 and MOD1 to VCC or VSS.
*2: High-speed operation is the operation when the system clock is set to the maxim um speed by the system cloc k
select bit at 10-MHz clock.
*3: Low-speed operation is the operation when the system cloc k is set to the maximu m speed by the system cloc k
select bit at 10-MHz clock.
31
MB89640 Series
4. AC Characteristics
(1) Reset Timing
Parameter
RST
“L” pulse widthtZLZH—48 tXCYL—ns
* :tXCYL is the oscillation cycle (1/FCH) to input to the X0 pin.
SymbolCondition
(VCC = +5.0 V±10%, AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
Value
UnitRemarks
Min.Max.
tZLZH
RST
0.2 V CC0.2 V CC
(2) Power-on Reset
(AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
Value
Parameter
SymbolCondition
UnitRemarks
Min.Max.
Power supply rising timet
R
—50ms
—
Power supply cut-off timet
OFF1—msDue to repeated operation
Note: Make sure that power supply rises within the selected oscillation stabilization time.
For example, when the main clock is operating at 10 MHz (F
option has been set to 2
14
/FCH, the oscillation stabilization delay time is 1.6 ms and accordingly the maximum
CH) and the oscillation stabilization time select
value of power supply rising time is about 1.6 ms.
Keep in mind that abrupt changes in power supply voltage may cause a power-on reset. If power supply
voltage needs to be varied in the course of operation, a smooth voltage rise is recommended.
VCC
t
2.0 V
0.2 V
R
0.2 V
tOFF
0.2 V
32
(3) Clock Timing
Parameter
SymbolPinCondition
MB89640 Series
(AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
Value
UnitRemarks
Min.Typ.Max.
CHX0, X1
F
Clock frequency
FCLX0A, X1A—32.768—kHz
XCYLX0, X1100—1000ns
t
Clock cycle time
t
LXCYLX0A, X1A—30.5—µs
P
WH
PWL
Input clock pulse width
WHL
P
PWLL
Input clock rising/falling time
tCR
tCF
X0 and X1 Timing and Conditions
X0
1—10MHz
X020——nsExternal clock
—
X0A—30.5—µs
X0——10nsExternal clock
tCRtCF
0.8 VCC
0.2 VCC
0.8 VCC
tXCYL
0.2 VCC
PWLPWH
0.2 VCC
Main Clock Conditions
When a crystal
ceramic resonator is used.
X0X1X0X1
or
When an external clock is used.
Open
33
MB89640 Series
X0A and X1A Timing and Conditions
tLXCYL
PWHLPWLL
tCRtCF
X0A
Subclock Conditions
ceramic resonator is used.
X0AX1AX0AX1A
(4) Instruction Cycle
Parameter
0.8 VCC
0.2 VCC
When a crystal
or
0.8 VCC
0.2 VCC
0.2 VCC
When an external clock is used.
Open
SymbolValue (typical) UnitRemarks
Instruction cycle
(minimum execution time)
34
inst = 0.4 µs when operating at FCH =
4/FCH system clock selection 11
8/FCH system clock selection 10
t
inst
16/FCH system clock selection 01
64/FCH system clock selection 00
t
µs
10 MHz
inst = 0.8 µs when operating at FCH =
t
µs
10 MHz
t
inst = 1.6 µs when operating at FCH =
µs
10 MHz
t
inst = 6.4 µs when operating at FCH =
µs
10 MHz
(5) Recommended Resonator Manufacturers
Sample Application of Piezoelectric Resonator (FAR series)
* :For information on tinst, see “(4) Instruction Cycle.”
CLK
ALE
AD
A
RD
2.4 V
0.8 V
2.4 V
0.8 V
tAVRL
tAVDV
tRLCH
0.8 V
tRLBL
tRLDV
tRLRH
2.4 V
0.7 VCC
0.3 VCC
0.8 V
2.4 V
tRHLH
0.7 V
0.3 VCC
t
RHDX
2.4 V
0.8 V
tCLRH
tRHAX
0.8 V
CC
2.4 V
0.8 V
2.4 V
0.8 V
tBHAV
BUFC
2.4 V
0.8 V
37
MB89640 Series
(8) Bus Write Timing
(VCC = +5.0 V±10%, FCH = 10 MHz, AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
ParameterSymbolPinCondition
Valid address → ALE ↓ time t
ALE ↓ → address invalid timet
Valid address → WR
↓ timetAVWLWR, ALE
AVLL
LLAX
AD7 to 0, ALE,
A15 to 08
AD7 to 0, ALE,
A15 to 08
WR pulse widthtWLWHWR
Write data → WR ↑ timetDVWH
WR
↑→ address invalid timetWHAX
WR ↑→ data hold timetWHDX
AD7 to 0, WR
WR, A15 to 08
AD7 to 0, WR
WR ↑→ ALE ↑ timetWHLHWR, ALE
WR
↓→ CLK ↑ timetWLCHWR, CLK
—
1/4 t
1/4 t
1/2 t
1/2 t
1/4 t
1/4 t
1/4 t
1/4 t
CLK ↓ → WR ↑ timetCLWHWR, CLK0—ns
ALE pulse widthtLHLLALE
ALE ↓ → CLK ↑ timet
LLCHALE, CLK
1/4 t
1/4 t
Value
Min.Max.
*1
inst
– 64 ns
*2
—ns
5—ns*2
*1
inst
inst
inst
inst
inst
inst
inst
*1
inst
*1
inst
– 60 ns
*1
– 20 ns
*1
– 60 ns
*1
– 40 ns
*1
– 40 ns
*1
– 40 ns
*1
– 40 ns
– 35 ns
– 30 ns
—ns
—ns
—ns
—ns
—ns
—ns
—ns
*2
—ns
*2
—ns
UnitRemarks
*1: For information on tinst, see “(4) Instruction Cycle.”
*2: These characteristics are also applicable to the bus read timing.
CLK
ALE
AD
A
WR
2.4 V
tAVLL
2.4 V
0.8 V
2.4 V
0.8 V
t
AVWL
2.4 V
0.8 V
tLLCHtLHLL
0.8 V
tLLAX
2.4 V
0.8 V
tWLCH
0.8 V
2.4 V
tDVWH
tWLWH
0.8 V
2.4 V
tWHLH
2.4 V
0.8 V
tWHDX
2.4 V
0.8 V
tCLWH
tWHAX
0.8 V
38
(9) Ready Input Timing
(VCC = +5.0 V±10%, FCH = 10 MHz, AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
ParameterSymbolPinCondition
RDY valid → CLK ↑ time t
CLK ↑ → RDY invalid timet
YVCHRDY, CLK
CHYXRDY, CLK0—ns*
* :These characteristics are also applicable to the read cycle.
MB89640 Series
Value
UnitRemarks
Min.Max.
60—ns*
—
CLK
ALE
AD
A
WR
RDY
Address
2.4 V2.4 V
Data
tYVCH tCHYX
Note: The bus cycle is also extended in the read cycle in the same manner.
tYVCH tCHYX
39
MB89640 Series
(10) Serial I/O Timing
Parameter
(VCC = +5.0 V±10%, FCH = 10 MHz, AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
SymbolPinCondition
Value
UnitRemarks
Min.Max.
Serial clock cycle timet
SCK1 ↓ → SO1 time
SCK2 ↓ → SO2 time
Valid SI1 → SCK1 ↑
Valid SI2 → SCK2 ↑
SCK1 ↑ → valid SI1 hold time
SCK2 ↑ → valid SI2 hold time
Serial clock “H” pulse widtht
Serial clock “L” pulse widtht
SCK1 ↓ → SO1 time
SCK2 ↓ → SO2 time
Valid SI1 → SCK1 ↑
Valid SI2 → SCK2 ↑
SCK1 ↑ → valid SI1 hold time
SCK2 ↑ → valid SI2 hold time
SCYCSCK1, SCK2
SLOV
t
IVSH
t
SHIX
t
SHSLSCK1, SCK2
SLSHSCK1, SCK21 tinst*—µs
t
SLOV
t
IVSH
t
SHIX
SCK1, SO1
SCK2, SO2
SI1, SCK1
SI2, SCK2
SCK1, SI1
SCK2, SI2
SCK1, SO1
SCK2, SO2
SI1, SCK1
SI2, SCK2
SCK1, SI1
SCK2, SI2
* :For information on tinst, see “(4) Instruction Cycle.”
Internal shift
clock mode
External shift
clock mode
2 tinst*—µs
–200200ns
1/2 t
inst*— µs
1/2 t
inst*— µs
1 tinst*—µs
0200ns
inst*— µs
1/2 t
1/2 t
inst*— µs
40
Internal Shift Clock Mode
SCYC
t
MB89640 Series
SCK1
SCK2
SO1
SO2
SI1
SI2
External Shift Clock Mode
SCK1
SCK2
0.8 V
0.2 VCC
tSLOV
2.4 V
0.8 V
tSLSH
tIVSH
0.8 VCC
0.2 VCC
0.2 VCC
2.4 V
tSHIX
0.8 VCC
0.8 V
0.8 VCC
0.2 VCC
tSHSL
0.8 VCC
SO1
SO2
SI1
SI2
tSLOV
2.4 V
0.8 V
tIVSH
0.8 VCC
0.2 VCC
tSHIX
0.8 VCC
0.2 VCC
41
MB89640 Series
(11) Peripheral Input Timing
Parameter
(VCC = +5.0 V±10%, FCH = 10 MHz, A VSS = VSS = 0.0 V, TA = –40°C to +85°C)
SymbolPinCondition
Value
UnitRemarks
Min.Max.
Peripheral input pulse “H”
width 1
Peripheral input pulse “L”
width 1
Peripheral input pulse “H”
width 2
Peripheral input pulse “L”
width 2
Peripheral input pulse “H”
width 2
Peripheral input pulse “L”
width 2
t
ILIH1
t
IHIL1
ILIH2ADST
t
t
IHIL2ADST32 tinst*— µs
ILIH2ADST
t
IHIL2ADST8 tinst*—µs
t
PWC, EC,
INT0 to INT3
PWC, EC,
INT0 to INT3
* :For information on tinst, see “(4) Instruction Cycle.”
tIHIL1
PWC
EC
INT0 to 3
0.2 VCC
—
A/D mode
Sense mode
0.8 VCC
0.2 VCC
2 t
inst*—µs
2 t
inst*—µs
32 tinst*— µs
8 tinst*—µs
tILIH1
0.8 VCC
42
ADST
0.2 VCC
tIHIL2
0.8 VCC
0.2 VCC
tILIH2
0.8 VCC
5. A/D Converter Electrical Characteristics
(AVCC = VCC = +3.5 V to +6.0 V, FCH = 10 MHz, AVSS = VSS = AVRL = 0.0 V, TA = –40°C to +85°C)
Parameter
Symbol
PinCondition
MB89640 Series
Value
UnitRemarks
Min.Typ.Max.
Resolution
Total error
Linearity error——±1.0LSB
—
Differential linearity
error
Zero transition voltageV
Full-scale transition
voltage
OT–1.0+0.5+2.0LSB
—
V
FST
Interchannel disparity
A/D mode conversion
time
—
Sense mode
conversion time
Analog port input
current
AIN
I
AN0 to
——— 8bit
——±3.0LSB
——±0.9LSB
AVRH = AV
CC
AVRH – 4.5 AVRH – 1.5 AVRH + 1.5
LSB
——0.5LSB
—44—t
—12—t
inst*
inst*
—
——10µA
AN7
Analog input voltage—0—AVRHV
Reference voltage—
I
R
Reference voltage
supply current
I
RH
AVRH
When A/D
conversion is
activated
AVRH = 5.0 V
When A/D
conversion is
stopped
AVRH = 5.0 V
0—AV
—100µA
—— 1µA
CCV
* : For information on tinst, see “(4) Instruction Cycle.”
43
MB89640 Series
(1) A/D Glossary
• Resolution
Analog changes that are identifiable with the A/D converter.
When the number of bits is 8, analog voltage can be divided into 2
• Linearity error (unit: LSB)
The deviation of the straight line connecting the zero transition point (“0000 0000” ↔ “0000 0001”) with the
full-scale transition point (“1111 1111” ↔
“1111 1110”) from actual conversion characteristics
• Differential linearity error (unit: LSB)
The deviation of input voltage needed to change the output code by 1 LSB from the theoretical value
• Total error (unit: LSB)
The difference between theoretical and actual conversion values
Digital output
8
= 256.
1111
1111
0000
0000
0000
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
1111
1110
0010
0001
0000
Theoretical conversion value
Actual conversion value
(1 LSB × N + V
VOTVNT V(N + 1)TVFST
OT)
Linearity error
Differential linearity error =
Analog input
1 LSB =
Linearity error =
AVRH – AVRL
Total error =
256
NT – (1 LSB × N + VOT)
V
V( N + 1 ) T – VNT
VNT – (1 LSB × N + 1 LSB)
1 LSB
1 LSB
– 1
1 LSB
(2) Precautions
• Input impedance of the analog input pins
The A/D converter used for the MB89640 series contains a sample hold circuit as illustrated below to fetch
analog input voltage into the sample hold capacitor for eight instruction cycles after activ ating A/D conv ersion.
For this reason, if the output impedance of the e xternal circuit for the analog input is high, analog input voltage
might not stabilize within the analog input sampling period. Therefore, it is recommended to keep the output
impedance of the external circuit low (below 10 kΩ).
Note that if the impedance cannot be kept low, it is recommended to connect an external capacitor of about
0.1 µF for the analog input pin.
44
MB89640 Series
Analog Input Equivalent Circuit
Sample hold circuit
Analog input pin
If the analog input
impedance is higher
than 10 kΩ, it is
recommended to
contact an external
capacitor of about
0.1 µF.
Analog channel selector
•Error
The smaller the | AVRH – AVRL |, the greater the error would become relatively.
.
C = 33 pF
.
.
R = 6 kΩ
.
Close for 8 instruction cycles after activating
A/D conversion.
Comparator
6. D/A Converter Electrical Characteristics
(DAVC = VCC = +3.5 V to +6.0 V, FCH=10 MHz, AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
to P17, P20 to P27, P30 to P37, P50 to P57,
P60 to P67)
OL (V)
V
0.6
0.5
0.4
0.3
0.2
0.1
0.0
010123456789
VOL vs. IOL
TA = +25°C
V
V
V
V
V
I
OL (mA)
CC = 2.5 V
CC = 3.0 V
CC = 4.0 V
CC = 5.0 V
CC = 6.0 V
(2) “H” Level Output Voltage (P00 to P07, P10 to
P17, P20 to P27, P30 to P37)
CC–VOH (V)
V
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0.0
VCC–VOHvs.IOH
–0.5–1.0–1.5–2.0–2.5–3.0
TA = +25°C
V
V
V
V
VCC = 6.0 V
I
OH (mA)
CC = 2.5 V
CC = 3.0 V
CC = 4.0 V
CC = 5.0 V
(3) “L” Level Output Voltage (P40 to P47)
OL (mV)
V
1500
1400
1300
1200
1100
1000
900
800
700
600
500
400
300
200
100
0
010123456789
VOL vs. IOL
TA = +25°C
11 12 13 14 15
I
OL (mA)
CC = 5 V
V
(4) “H” Level Input V oltage/“L” Le vel Input V oltage
(CMOS Input)
IN (V)
V
5.0
4.5
4.0
3.5
3.0
2.5
2.0
1.5
1.0
0.5
0.0
0123456
VIN vs. VCC
TA = +25°C
V
CC (V)
7
46
(5) “H” Level Input Voltage/“L” Level Input Voltage (Hysteresis Input)
MB89640 Series
IN (V)
V
5.0
4.5
4.0
3.5
3.0
2.5
2.0
1.5
1.0
0.5
0.0
0123 456
VIHS: Threshold when input voltage in hysteresischaracteristics is set to “H” level
VILS: Threshold when input voltage in hysteresis characteristics is set to “L” level
(6) Power Supply Current (External Clock)
VIN vs. VCC
TA = +25°C
V
IHS
VILS
V
7
CC (V)
Main clock operation mode (4/FCH instruction)
ICC vs. VCC
CC (mA)
I
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
23456
TA = +25°C
V
CC (V)
XTAL
10 MHz
8 MHz
6 MHz
4 MHz
2 MHz
1 MHz
I
CC vs. VCC
Main clock operation mode (64/FCH instruction)
CC (mA)
I
3
TA = +25°C
2
1
0
23456
V
CC (V)
XTAL
10 MHz
8 MHz
6 MHz
4 MHz
2 MHz
1 MHz
(Continued)
47
MB89640 Series
(Continued)
ICS1 vs. VCC
Main clock sleep mode (4/FCH instruction)
ICS1 (mA)
4
3
2
1
0
23456
TA = +25°C
V
CC (V)
XTAL
10 MHz
8 MHz
6 MHz
4 MHz
2 MHz
1 MHz
ICS3 vs. VCC
ICS3 (µA)
120
100
80
60
40
Subclock mode
T
A = +25°C
Operation
Sleep
CS2 vs. VCC
I
Main clock sleep mode (64/FCH instruction)
CS2 (µA)
I
1,500
1,000
500
0
23456
TA = +25°C
V
XTAL
10 MHz
8 MHz
6 MHz
4 MHz
2 MHz
1 MHz
CC (V)
20
0
23456
V
CC (V)
Watch
(7) Pull-up Resistance
PULL (kΩ)
R
1000
100
10
1
2345 6
RPULL vs. VCC
TA = +25°C
V
CC (V)
48
INSTRUCTIONS
■
Execution instructions can be divided into the following four groups:
• Transfer
• Arithmetic operation
• Branch
•Others
Table 1 lists symbols used for notation of instructions.
MB89640 Series
Table 1 Instruction Symbols
SymbolMeaning
dirDirect address (8 bits)
offOffset (8 bits)
extExtended address (16 bits)
#vctVector table number (3 bits)
#d8Immediate data (8 bits)
#d16Immediate data (16 bits)
dir: bBit direct address (8:3 bits)
AAccumulator A (Whether its length is 8 or 16 bits is determined by the instruction in use.)
AHUpper 8 bits of accumulator A (8 bits)
ALLower 8 bits of accumulator A (8 bits)
T
THUpper 8 bits of temporary accumulator T (8 bits)
TLLower 8 bits of temporary accumulator T (8 bits)
IXIndex register IX (16 bits)
Temporary accumulator T (Whether its length is 8 or 16 bits is determined by the
instruction in use.)
(Continued)
49
MB89640 Series
(Continued)
SymbolMeaning
EPExtra pointer EP (16 bits)
PCProgram counter PC (16 bits)
SPStack pointer SP (16 bits)
PSProgram status PS (16 bits)
drAccumulator A or index register IX (16 bits)
CCRCondition code register CCR (8 bits)
RPRegister bank pointer RP (5 bits)
RiGeneral-purpose register Ri (8 bits, i = 0 to 7)
×
( × )
(( × ))
Columns indicate the following:
Mnemonic:Assembler notation of an instruction
~:Number of instructions
#:Number of bytes
Operation:Operation of an instruction
TL, TH, AH:A content change when each of the TL, TH, and AH instructions is executed. Symbols in
Indicates that the very × is the immediate data.
(Whether its length is 8 or 16 bits is determined by the instruction in use.)
Indicates that the contents of × is the target of accessing.
(Whether its length is 8 or 16 bits is determined by the instruction in use.)
The address indicated by the contents of × is the target of accessing.
(Whether its length is 8 or 16 bits is determined by the instruction in use.)
the column indicate the following:
“–” indicates no change.
•
• dH is the 8 upper bits of operation description data.
• AL and AH must become the contents of AL and AH immediately bef ore the instruction
is executed.
• 00 becomes 00.
50
N, Z, V, C:An instruction of which the corresponding flag will change. If + is written in this column,
the relevant instruction will change its corresponding flag.
OP code:Code of an instruction. If an instruction is more than one code, it is written according to
the following rule:
Example: 48 to 4F ← This indicates 48, 49, ... 4F.
ADDC A,Ri
ADDC A,#d8
ADDC A,dir
ADDC A,@IX +off
ADDC A,@EP
ADDCW A
ADDC A
SUBC A,Ri
SUBC A,#d8
SUBC A,dir
SUBC A,@IX +off
SUBC A,@EP
SUBCW A
SUBC A
INC Ri
INCW EP
INCW IX
INCW A
DEC Ri
DECW EP
DECW IX
DECW A
MULU A
DIVU A
ANDW A
ORW A
XORW A
CMP A
CMPW A
RORC A
AND A,@EP
AND A,@IX +off
AND A,Ri
OR A
OR A,#d8
OR A,dir
OR A,@EP
OR A,@IX +off
OR A,Ri
CMP dir,#d8
CMP @EP,#d8
CMP @IX +off,#d8
CMP Ri,#d8
INCW SP
DECW SP
BZ/BEQ rel
BNZ/BNE rel
BC/BLO rel
BNC/BHS rel
BN rel
BP rel
BLT rel
BGE rel
BBC dir: b,rel
BBS dir: b,rel
JMP @A
JMP ext
CALLV #vct
CALL ext
XCHW A,PC
RET
RETI
Mnemonic~#OperationTLTHAHN Z V COP code
PUSHW A
POPW A
PUSHW IX
POPW IX
NOP
CLRC
SETC
CLRI
SETI
3
2
If Z = 1 then PC ← PC + rel
3
2
If Z = 0 then PC ← PC + rel
3
2
If C = 1 then PC ← PC + rel
3
2
If C = 0 then PC ← PC + rel
3
2
If N = 1 then PC ← PC + rel
3
2
If N = 0 then PC ← PC + rel
3
2
If V ∀ N = 1 then PC ← PC + rel
3
2
If V ∀ N = 0 then PC ← PC + reI
5
3
If (dir: b) = 0 then PC ← PC + rel
5
3
If (dir: b) = 1 then PC ← PC + rel
2
1
(PC) ← (A)
3
3
(PC) ← ext
6
1
Vector call
6
3
Subroutine call
3
1
(PC) ← (A),(A) ← (PC) + 1
4
1
Return from subrountine
6
1
Return form interrupt
Table 5 Other Instructions (9 instructions)
4
1
4
1
4
1
4
1
1
1
1
1
1
1
1
1
1
1
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– + – –
–
–
–
– + – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
dH
– – – –
–
–
–
– – – –
–
–
–
Restore
–
–
–
– – – –
–
–
dH
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – –
–
–
–
– – – R
–
–
–
– – – S
–
–
–
– – – –
–
–
–
– – – –
FD
FC
F9
F8
FB
FA
FF
FE
B0 to B7
B8 to BF
E0
21
E8 to EF
31
F4
20
30
40
50
41
51
00
81
91
80
90
53
MB89640 Series
INSTRUCTION MAP
■
rel
rel
BC
#1
CALLV
R1
DEC
R1
INC
dir: 1,rel
BBS
dir: 1
SETB
R1,#d8
CMP
R1,#d8
MOV
A,R1
OR
A,R1
AND
A,R1
XOR
R1,A
MOV
A,R1
SUBC
A,R1
ADDC
A,R1
CMP
A,R1
9MOV
MOVW
JMP
DECW
INCW
BBC
CLRISETICLRB
MOVW
MOV
POPW
PUSHW
0123456789ABCDEF
H
0NOPSWAPRETRETI
A,PC
@A
A
A
dir: 0,rel
dir: 0
A,PS
A,ext
A
A
A,SP
MOVW
SP,A
MOVW
SP
DECW
SP
INCW
BBC
dir: 1,rel
dir: 1
CLRCSETCCLRB
PS,A
MOVW
ext,A
MOV
IX
POPW
IX
PUSHW
addr16
CALL
addr16
JMP
A
DIVU
A
1MULU
A,IX
MOVW
IX,A
MOVW
IX
DECW
IX
INCW
BBC
dir: 2,rel
dir: 2
CLRB
A,@A
MOV
@A,T
MOV
A
OR
A
AND
A
XOR
A, T
XCH
A
SUBC
A
ADDC
A
CMP
A
2ROLC
A,EP
MOVW
EP,A
MOVW
EP
DECW
EP
INCW
BBC
dir: 3,rel
dir: 3
CLRB
A,@A
MOVW
@A,T
MOVW
A
ORW
A
ANDW
A
XORW
A, T
XCHW
A
SUBCW
A
ADDCW
A
CMPW
A
3RORC
A,PC
XCHW
A,#d16
MOVW
ext,A
MOVW
A,ext
MOVW
dir: 4,rel
BBC
dir: 4
DAADASCLRB
A,#d8
OR
A,#d8
AND
A,#d8
XOR
A,#d8
SUBC
A,#d8
ADDC
A,#d8
CMP
A,#d8
4MOV
A,SP
XCHW
SP,#d16
MOVW
dir,A
MOVW
A,dir
MOVW
dir: 5,rel
BBC
dir: 5
CLRB
dir,#d8
CMP
dir,#d8
MOV
A,dir
OR
A,dir
AND
A,dir
XOR
dir,A
MOV
A,dir
SUBC
A,dir
ADDC
A,dir
CMP
A,dir
5MOV
A,IX
XCHW
IX,#d16
MOVW
@IX +d,A
MOVW
A,@IX +d
MOVW
dir: 6,rel
BBC
dir: 6
CLRB
@IX +d,#d8
CMP
@IX +d,#d8
MOV
OR
A,@IX +d
AND
A,@IX +d
A,@IX +d
XOR
MOV @IX
+d,A
SUBC
A,@IX +d
ADDC
A,@IX +d
CMP
A,@IX +d
MOV
A,@IX +d
6
A,EP
XCHW
EP,#d16
MOVW
@EP,A
MOVW
A,@EP
MOVW
dir: 7,rel
BBC
dir: 7
CLRB
CMP
@EP,#d8
MOV
@EP,#d8
A,@EP
OR
A,@EP
AND
A,@EP
XOR
@EP,A
MOV
A,@EP
SUBC
A,@EP
ADDC
A,@EP
CMP
A,@EP
7MOV
rel
BNC
#0
CALLV
R0
DEC
R0
INC
dir: 0,rel
BBS
dir: 0
SETB
R0,#d8
CMP
R0,#d8
MOV
A,R0
OR
A,R0
AND
A,R0
XOR
R0,A
MOV
A,R0
SUBC
A,R0
ADDC
A,R0
CMP
A,R0
8MOV
L
54
rel
BP
#2
CALLV
R2
DEC
R2
INC
dir: 2,rel
BBS
dir: 2
SETB
R2,#d8
CMP
R2,#d8
MOV
A,R2
OR
A,R2
AND
A,R2
XOR
R2,A
MOV
A,R2
SUBC
A,R2
ADDC
A,R2
CMP
A,R2
AMOV
BN
#3
CALLV
R3
DEC
R3
INC
dir: 3,rel
BBS
dir: 3
SETB
R3,#d8
CMP
R3,#d8
MOV
A,R3
OR
A,R3
AND
A,R3
XOR
R3,A
MOV
A,R3
SUBC
A,R3
ADDC
A,R3
CMP
A,R3
BMOV
rel
BNZ
#4
CALLV
R4
DEC
R4
INC
dir: 4,rel
BBS
dir: 4
SETB
R4,#d8
CMP
R4,#d8
MOV
A,R4
OR
A,R4
AND
A,R4
XOR
R4,A
MOV
A,R4
SUBC
A,R4
ADDC
A,R4
CMP
A,R4
CMOV
rel
BZ
#5
CALLV
R5
DEC
R5
INC
dir: 5,rel
BBS
dir: 5
SETB
R5,#d8
CMP
R5,#d8
MOV
A,R5
OR
A,R5
AND
A,R5
XOR
R5,A
MOV
A,R5
SUBC
A,R5
ADDC
A,R5
CMP
A,R5
DMOV
rel
BGE
#6
CALLV
R6
DEC
R6
INC
dir: 6,rel
BBS
dir: 6
SETB
R6,#d8
CMP
R6,#d8
MOV
A,R6
OR
A,R6
AND
A,R6
XOR
R6,A
MOV
A,R6
SUBC
A,R6
ADDC
A,R6
CMP
A,R6
EMOV
rel
BLT
#7
CALLV
R7
DEC
R7
INC
dir: 7,rel
BBS
dir: 7
SETB
R7,#d8
CMP
R7,#d8
MOV
A,R7
OR
A,R7
AND
A,R7
XOR
R7,A
MOV
A,R7
SUBC
A,R7
ADDC
A,R7
CMP
A,R7
FMOV
MASK OPTIONS
■
No.
Specifying procedure
Pull-up resistors
P00 to P07, P10 to P17,
P30 to P37, P40 to P47,
1
P50 to P57, P60 to P67,
P70 to P74, P80 to P83
Power-on reset
2
With power-on reset
Without power-on reset
Main clock oscillation stabilization time
selection (when operating at 10 MHz)
Approx. 2
3
Approx. 2
Approx. 2
Approx. 2
F
CH: Main clock frequency
Reset pin output
4
With reset output
Without reset output
Selection either single- or dual-clock
system
5
Single clock
Dual clock
Part number
18
/FCH (Approx. 26.2 ms)
17
/FCH (Approx. 13.1 ms)
14
/FCH (Approx. 1.6 ms)
4
/FCH (Approx. 0 ms)
MB89640 Series
MB89643
MB89645
MB89646
MB89647
Specify when
ordering
masking
Selectable per pin
(P60 to P67 must be set to
without a pull-up resistor
when an A/D converter is
used. P51 and P50 are
must be set to without a
pull-up resistor when a D/A
converter is used.)
SelectableSetting possible
SelectableSetting possible
SelectableSetting possible
SelectableSetting possible
MB89P647MB89PV640
Set with EPROM
programmer
Can be set per pin
(Only P40 to P47
and P50 to P57
are without a pullup resistor.)
FUJITSU MICROELECTRONICS ASIA PTE. LTD .
#05-08, 151 Lorong Chuan,
New Tech Park,
Singapore 556741
Tel: +65-281-0770
Fax: +65-281-0220
http://www.fmap.com.sg/
Korea
FUJITSU MICROELECTRONICS K OREA LTD .
1702 KOSMO TOWER, 1002 Daechi-Dong,
Kangnam-Gu,Seoul 135-280
Korea
Tel: +82-2-3484-7100
Fax: +82-2-3484-7111
MB89640 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 are
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.
The contents of this document may not be reproduced or copied
without the permission of FUJITSU LIMITED.
FUJITSU semiconductor devices are intended for use in standard
applications (computers, office automation and other office
equipments, industrial, communications, and measurement
equipments, 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.
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.
F0005
FUJITSU LIMITED Printed in Japan
59
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.