The MB90560/565 series is a general-purpose 16-bit microcontroller designed for industrial, OA, and process
control applications that require high-speed real-time processing. The device f eatures a multi-function timer ab le
to output a programmable waveform.
The microcontroller instruction set is based on the same AT architecture as the F
with additional instructions for high-lev el languages, extended addressing modes, enhanced signed multiplication
and division instructions, and a complete range of bit manipulation instructions. The microcontroller has a
32-bit accumulator for processing long word (32-bit) data.
2
MC-8L and F2MC-16L families
DS07-13715-3E
FEATURES
■
•Clock
• Internal oscillator circuit and PLL clock multiplication circuit
• Oscillation clock
Clock speed selectable from either the machine cloc k, main clock, or PLL clock. The main clock is the oscillation
clock divided into 2 (0.5 MHz to 8 MHz for a 1 MHz to 16 MHz base oscillation) . The PLL cloc k is the oscillation
clock multiplied by one to four (4 MHz to 16 MHz for a 4 MHz base oscillation) .
• Minimum instruction execution time : 62.5 ns (for oscillation = 4 MHz, PLL clock setting = × 4, V
• Enhanced calculation precision using a 32-bit accumulator
• Enhanced signed multiplication and division instructions and RETI instruction
• Instruction set designed for high level language (C) and multi-tasking
• Uses a system stack pointer
• Symmetric instruction set and barrel shift instructions
• Program patch function (2 address pointers) .
• 4-byte instruction queue
• Interrupt function
• Priority levels are programmable
• 32 interrupts
• Data transfer function
• Extended intelligent I/O service function : Up to 16 channels
• Low-power consumption modes
• Sleep mode (CPU operating clock stops.)
• Timebase timer mode (Only oscillation clock and timebase timer continue to operate.)
• Stop mode (Oscillation clock stops.)
• CPU intermittent operation mode (The CPU operates intermittently at the specified interval.)
• Package
• LQFP-64P (FTP-64P-M09 : 0.65 mm pin pitch)
• QFP-64P (FTP-64P-M06 : 1.00 mm pin pitch)
• SH-DIP (DIP-64P-M01 : 1.778 mm pin pitch)
• Process : CMOS technology
PERIPHERAL FUNCTIONS (RESOURCES)
■
• I/O ports : 51 ports (max.)
• Timebase timer : 1 channel
• Watchdog timer : 1 channel
• 16-bit reload timer : 2 channel 5
• Multi-function timer
• 16-bit free-run timer : 1 channel
• Output compare : 6 channels
Can output an interrupt request when a match occurs between the count in the 16-bit freerun timer and the
value set in the compare register.
• Input capture : 4 channels
On detecting an active edge on the input signal from an external input pin, copies the count value of the 16bit freerun timer to the input capture data register and generates an interrupt request.
• 8/16-bit PPG timer (8-bit × 6 channels or 16-bit × 3 channels) The period and duty of the output pulse can
be set by the program.
• Waveform generator (8-bit timer : 3 channels)
•
UART : 2 channels
• Full-duplex, double-buffered (8-bit)
• Can be set to asynchronous or clock synchronous serial transfer (I/O expansion serial) operation
• DTP/external interrupt circuit (8 channels)
• External interrupts can activate the extended intelligent I/O service.
• Generates interrupts in response to external interrupt inputs.
2
• Delayed interrupt generation module
• Generates an interrupt request for task switching.
• 8/10-bit A/D converter : 8 channels
• 8-bit or 10-bit resolution selectable
MB90560/565 Series
3
MB90560/565 Series
PRODUCT LINEUP
■
1.MB90560 Series
Part NumberMB90F562/BMB90562/AMB90561/AMB90V560
Classification
ROM size64 Kbytes32 KbytesNo ROM
RAM size2 Kbytes1 Kbytes4 Kbytes
Dedicated emula-
tor power supply
CPU functions
PortsI/O ports (CMOS) : 51
UART
16-bit reload timer
Multi-function
timer
Internal flash memory
product
*
Number of instructions : 351
Minimum instruction execution time : 62.5 ns for a 4 MHz oscillation (with ×4 multiplier)
Addressing modes : 23 modes
Program patch function : 2 address pointers
Maximum memory space : 16 Mbytes
Full-duplex, double-buffered
Clock synchronous or asynchronous operation selectable
Can be used as I/O serial
Internal dedicated baud rate generator
2 channels
Sleep mode, timebase timer mode, stop mode, and CPU intermittent operation mode
MB90560/565 Series
2.MB90565 Series
Part NumberMB90F568MB90568MB90567
ClassificationInternal flash memory productInternal mask ROM product
ROM size128 Kbytes96 Kbytes
RAM size4 Kbytes4 Kbytes
Dedicated emula-
tor power supply
CPU functions
PortsI/O ports (CMOS) : 51
UART
16-bit reload timer
Multi-function
timer
8/10-bit A/D
converter
*
Number of instructions : 351
Minimum instruction execution time : 62.5 ns for a 4 MHz oscillation (with ×4 multiplier)
Addressing modes : 23 modes
Program patch function : 2 address pointers
Maximum memory space : 16 Mbytes
Full-duplex, double-buffered
Clock synchronous or asynchronous operation selectable
Can be used as I/O serial
Internal dedicated baud rate generator
2 channels
(Only support MB90F562/B, MB90561/A, and MB90562/A.)
* : Not support on the MB90F568, MB90567, and MB90568.
9
MB90560/565 Series
■ PIN DESCRIOTIONS
Pin No.
QFPM06 LQFPM09SDIP
23, 2422, 2330, 31X0, X1AOscillator
201927RST
26 to 3325 to 3233 to 40
34 to 4033 to 3941 to 47
414048
424149
434250
Pin
Name
P00 to
P07
P10 to
P16
INT0 to
INT6
P17
FRCK
P20
TIN0
P21
TO0
Circuit
Type
B
C
C
C
D
D
State/
Function
*
at Reset
Reset
inputs
outputs)
input
Port
(Hi-Z
Description
Connect oscillator to these pins.
If using an external clock, leave X1 open.
External reset input pin
I/O ports
I/O ports
Can be used as interrupt request inputs ch0 to ch6.
In standby mode, these pins can operate as inputs
by setting the bits corresponding to EN0 to EN6 to
“1” and setting as input ports. When used as a port,
set the corresponding bits in the analog input
enable register (ADER) to “port”.
I/O port
External clock input pin for the freerun timer.
This pin can be used as an input when set as the
clock input for the freerun timer and set as an input
port. When used as a port, set the corresponding
bit in the analog input enable register (ADER) to
“port”.
I/O port
External clock input pin for reload timer ch0. This
pin can be used as an input when set as the external clock input and set as an input port.
I/O port
Event output pin for reload timer ch0. Output oper-
ates when event output is enabled.
P22
444351
TIN1
P23
454452
TO1
P24 to
P27
46 to 4945 to 4853 to 56
IN0 to
IN3
* : See “■ I/O CIRCUITS” for details of the circuit types.
10
D
D
D
I/O port
External clock input pin for reload timer ch1. This
pin can be used as an input when set as the external clock input and set as an input port.
I/O port
Event output pin for reload timer ch1. Output oper-
ates when event output is enabled.
I/O ports
Trigger input pins for input capture ch0 to ch3.
These pins can be used as an input when set as an
input capture trigger input and set as an input port.
(Continued)
MB90560/565 Series
Pin No.
QFPM06 LQFPM09SDIP
51 to 5650 to 5558 to 63
59582
60593
Pin
Name
P30 to
P35
RTO0
to
RTO5
P36
SIN0
P37
SOT0
P40
Cir-
cuit
Type
E
D
D
State/
Function
*
at Reset
inputs
(Hi-Z)
Port
Description
I/O ports
Event output pins for the output compare and wave-
form generator output pins. The pins output the
specified waveform generated by the waveform
generator. If not using waveform generation, these
terminals enable output compare event output to
use as output compare outputs. When used as a
port, set the corresponding bits in the analog input
enable register (ADER) to “port”.
I/O port
Serial data input pin for UART ch0.
This pin is used continuously when input operation
is enabled for UART ch0. In this case, do not use as
a general input pin.
I/O port
Serial data output pin for UART ch0.
Output operates when UART ch0 output is enabled.
I/O port
61604
SCK0
P41 to
P46
62 to 64,
1 to 3
61 to 64,
1, 2
5 to 10
PPG0
to
PPG5
P50 to
P57
4 to 113 to 1011 to 18
AN0 to
AN7
121119AV
CC
131220AVRG
141321AV
SS
D
D
F
Analog
inputs
Power
supply
input
Reference voltage input
Power
supply
input
Serial clock I/O pin for UART ch0.
Output operates when UART ch0 clock output is
enabled.
I/O ports
Output pins for PPG ch0 to ch5.
The outputs operate when output is enabled for
PPG ch0 to ch5.
I/O ports
Analog input pins for the A/D converter. Input is
available when the corresponding analog input enable register bits are set. (ADER : bit0 to bit7)
VCC power supply input pin for A/D converter.
Reference voltage input pin for A/D converter.
Ensure that the voltage does not exceed V
CC.
VSS power supply input pin for A/D converter.
* : See “■ I/O CIRCUITS” for details of the circuit types.
(Continued)
11
MB90560/565 Series
(Continued)
Pin No.
QFPM06 LQFPM09SDIP
Pin
Name
Circuit
Type
Function
*1
at Reset
State/
Description
151422
161523
171624
181725
P60
SIN1
P61
SOT1
P62
SCK1
P63
INT7
DTTI
D
D
D
D
Port input
(Hi-Z)
I/O port
Serial data input pin for UART ch1.
This pin is used continuously when input operation is enabled for UART ch1. In this case, do not
use as a general input pin.
I/O port
Serial data output pin for UART ch1.
Output operates when UART ch1 output is enabled.
I/O port
Serial clock I/O pin for UART ch1.
Output operates when UART ch1 clock output is
enabled.
I/O port
This pin can be used as interrupt request input
ch7. In standby mode, this pin can operate as an
input by setting the bit corresponding to EN7 to
“1” and setting as an input port.
Fixed pin level input pin when RTO0 to RTO5
pins are used. Input is enabled when “input enabled” set in the waveform generator.
Capacitor
58571C
*2
pin, power supply
input
191826MD0B
212028MD1B
Mode
input pins
222129MD2B
25, 5024, 4932, 57VSS
Power
supply
575664V
CC
inputs
*1 : See “■ I/O CIRCUITS” for details of the circuit types.
*2 : N.C. on the MB90F568, MB90567, and MB90568
Capacitor pin for stabilizing the power supply.
Connect an external ceramic capacitor of approximately 0.1 µF.
Input pin for setting the operation mode.
Connect directly to V
CC or VSS.
Input pin for setting the operation mode.
Connect directly to V
CC or VSS.
Input pin for setting the operation mode.
Connect directly to V
SS.
Power supply (GND) input pin
MB90560 series is power supply (5 V) input pin
• CMOS hysteresis I/O pin with pull-up
control
CMOS output
CMOS hysteresis input (with input cutoff function in standby mode)
Internal pull-up resistor (R
< Note >
• The pull-up resistor is active when the
port is set as an input.
p)
Standby control signal
• CMOS hysteresis I/O pin
CMOS output
Pch
Pout
CMOS hysteresis input (with input cutoff function in standby mode)
Nch
D
Nout
Input signal
Standby control signal
< Notes >
• The I/O port output and internal
resource output share the same output buffer.
• The I/O port input and internal
resource input share the same input
buffer.
(Continued)
13
MB90560/565 Series
(Continued)
TypeCircuitRemarks
•CMOS I/O pin
Pch
Nch
Pout
Nout
E
Hysteresis input
Standby control signal
Pch
Nch
F
Pout
Nout
Input signal
Standby control signal
A/D converter analog input
CMOS output
CMOS hysteresis input (with input cutoff function in standby mode)
< I
OL= 12 mA >
• Analog/CMOS hysteresis I/O pin
CMOS output
CMOS hysteresis input (with input cutoff function in standby mode)
Analog input (Analog input to A/D converter is enabled when “1” is set in the
corresponding bit in the analog input
enable register (ADER) .)
• The I/O port output and internal
resource output share the same output buffer.
• The I/O port input and internal
resource input share the same input
buffer.
• A/D converter (AVR) voltage input pin
14
Pch
G
Nch
Pch
Nch
AVR input
Analog input
enable signal
from A/D converter
MB90560/565 Series
HANDLING DEVICES
■
Take note of the following nine points when handling devices :
• Do not exceed maximum rated voltage (to prevent latch-up)
• Supply voltage stability
• Power-on precautions
• Treatment of unused pins
• Treatment of A/D converter power supply pins
• Notes on using an external clock
• Power supply pins
• Sequence for connecting and disconnecting the A/D converter power supply and analog input pins
• Notes on using the DIV A, Ri and DIVW A, RWi instructions
• Device Handling Precautions
(1) Do not exceed maximum rated voltage (to prevent latch-up)
Do not apply a voltage grater than V
ensure that the voltage between V
CC or less than VSS to the MB90560/565 series input or output pins. Also
CC and VSS does not exceed the rating. Applying a voltage in excess of the
ratings may result in latch-up causing thermal damage to circuit elements.
Similarly, when connecting or disconnecting the power to the analog power supply (AVCC, AVR) and analog
inputs (AN0 to AN7) , ensure that the analog power supply voltages do not exceed the digital voltage (V
(2) Supply voltage stability
Rapid changes in the V
CC supply voltage ma y cause the de vice to misoper ate . Accordingly, ensure that the VCC
power supply is stable. The standard for power supply voltage stability is a peak-to-peak VCC ripple voltage at
the supply frequency (50 to 60 Hz) of 10% or less of V
CC and a transient fluctuation in the voltage of 0.1 V/ms
or less when turning the power supply on or off.
(3) Power-on precautions
To prevent misoper ation of the internal regulator circuit, ensure that the voltage rise time at pow er-on is at least
50 µs (between 0.2 V to 2.7 V) .
(4) Treatment of unused pins
Leaving unused input pins unconnected can cause misoperation or permanent damage to the device due to
latchup. Always pull-up or pull-down unused pins using a 2 kΩ or larger resistor.
If some I/O pins are unused, either set as outputs and leave open circuit or set as inputs and treat in the same
way as input pins.
CC) .
(5) Treatment of A/D converter power supply pins
If not using the A/D converter, connect the analog power supply pins so that AV
CC= AVR = VCC and AVSS= VSS.
(6) Notes on using an external clock
Even if using an external clock, an oscillation stabilization delay time occurs after a power-on reset and when
recovering from stop mode in the same way as when an oscillator is connected. When using an external clock,
drive the X0 pin only and leave the X1 pin open.
15
MB90560/565 Series
X0
X1OPEN
MB90560/565 series
Example of using an external clock
(7) Power supply pins
The multiple V
such as latch-up. However, always connect all V
spurious radiation, prevent misoper ation of strobe signals due to increases in the ground le vel, and maintain the
overall output current rating.
CC and VSS pins are connected together in the internal device design so as to prevent misoper ation
CC and VSS pins to the same potential externally to minimize
Also, ensure that the impedance of the V
To minimize these problems, connect a b ypass capacitor of approximately 0.1 µF between V
the capacitor close to the V
CC and VSS pins.
CC and VSS connections to the power supply is as low as possible.
CC and VSS. Connect
(8) Sequence for connecting and disconnecting power supply
Do not apply voltage to the A/D converter power supply pins (AV
until the digital power supply (V
CC) is turned on. When turning the device off, turn off the digital power supply
CC, AVR, AVSS) or analog inputs (AN0 to AN7)
after disconnecting the A/D converter power supply and analog inputs. When turning the power on or off, ensure
that AVR does not exceed AV
CC.
When using the I/O ports that share pins with the analog inputs, ensure that the input voltage does not exceed
AVCC (turning the analog and digital power supplies on and off simultaneously is OK) .
(9) Conditions when output from ports 0 and 1 is undefined
After turning on the power supply, the outputs from ports 0 and 1 are undefined during the oscillation stabilization
delay time controlled by the regulator circuit (during the powe r-on reset) if the RST
RST
pin level is “L”, ports 0 and 1 go to high impedance.
pin level is “H”. When the
Figures 1 and 2 show the timing (for the MB90F562/B and MB90V560) .
Note that this undefined output period does not occur on products without an internal regulator circuit as these
products do not have an oscillation stabilization delay time.
(MB90561/A, MB90562/A, MB90F568, and MB90567/8)
16
MB90560/565 Series
•
Figure 1 Timing chart for undefined output from ports 0 and 1 (When RST
Oscillation stabilization delay time
Regulator circuit
stabilization delay time
VCC (Power supply pin)
PONR (Power-on reset) signal
RST (External asynchronous reset) signal
RST (Internal reset) signal
Oscillation clock signal
KA (Internal operating clock A) signal
KB (Internal operating clock B) signal
PORT (port output) signalUndefined output time
*1
*1 : Regulator circuit oscillation stabilization delay time :
17
2
/Oscillation clock frequency (approx. 8.19 ms for a 16 MHz oscillation clock frequency)
*2 : Oscillation stabilization delay time :
18
2
/Oscillation clock frequency (approx. 16.38 ms for a 16 MHz oscillation clock frequency)
pin level is “H”)
*2
17
MB90560/565 Series
•
Figure 2 Timing chart for ports 0 and 1 going to high impedance state (When RST
Oscillation stabilization delay time
Regulator circuit
stabilization delay time
VCC (Power supply pin)
PONR (Power-on reset) signal
RST (External asynchronous reset) signal
RST (Internal reset) signal
Oscillation clock signal
KA (Internal operating clock A) signal
KB (Internal operating clock B) signal
PORT (port output) signal
High impedance
*1
pin level is “L”)
*2
*1 : Regulator circuit oscillation stabilization delay time :
17
2
/Oscillation clock frequency (approx. 8.19 ms for a 16 MHz oscillation clock frequency)
*2 : Oscillation stabilization delay time :
18
2
/Oscillation clock frequency (approx. 16.38 ms for a 16 MHz oscillation clock frequency)
(10) Notes on using the DIV A, Ri and DIVW A, RWi instructions
The location in which the remainder value produced by the signed division instructions “DIV A, Ri” and “DIVW
A, RWi” is stored depends on the bank register. The remainder is stored in an address in the memor y bank
specified in the bank register.
Set the bank register to “00
H” when using the “DIV A, Ri” and “DIVW A, RWi” instructions.
(11) Notes on using REALOS
The extended intelligent I/O service (EI
2
OS) cannot be used when using REALOS.
(12) Caution on Operations during PLL Clock Mode
If the PLL clock mode is selected in the microcontroller , it may attempt to continue the operation using the freerunning frequency of the self oscillation circuit in the PLL circuitry even if the oscillator is out of place or the clock
input is stopped. Performance of this operation, however, cannot be guaranteed.
18
BLOCK DIAGRAM
■
MB90560/565 Series
X0, X1
RST
MD0 to MD2
SIN0
SOT0
SCK0
SIN1
SOT1
SCK1
AV
AVR
AVSS
AN0 to AN7
TO0
TIN0
TO1
TIN1
CC
Clock
control circuit
Interrupt controller
RAM
ROM
UART
ch0
UART
ch1
8/10-bit
A/D converter
16-bit
reload timer
ch0
16-bit
reload timer
ch1
F2MC-16LX
CPU
Internal data bus
8/16-bit
PPG timer
ch0 to ch5
capture
ch0 to ch3
compare
ch0 to ch5
Waveform generator circuit
*
Input
16-bit
freerun
timer
Output
PPG0 to PPG5
IN0 to IN3
FRCK
RTO0
RTO1
RTO2
RTO3
RTO4
RTO5
DTTI
INT0 to INT7
DTP/
external interrupts
P00
P07
I/O ports (Ports 0, 1, 2, 3, 4, 5, and 6)
P10
P17
P20
P27
P30
P37
P40
P46
P50
P57
P60
P63
* : Channel numbers when used as 8-bit timers. Three channels (ch1, ch3, and ch5) are av ailable when used
as 16-bit timers.
Note: The I/O ports share pins with the various peripheral functions (resources) .
See the Pin Assignment and Pin Description sections for details.
Note that, if a pin is used by a peripheral function (resource) , it may not be used as an I/O port.
* : “V” products do not contain internal ROM. Treat this address as the ROM decode area
used by the tools.
Memory map of MB90560/565 series
Notes : • When specified in the ROM mirror function register, the upper part of 00 bank (“004000
contains a mirror of the data in the upper part of FF bank (“FF4000
H to FFFFFFH”) .
H to 00FFFFH”)
• See “10. ROM Mirror Function Selection Module” in the Peripheral Functions section for details of the
ROM mirror function settings.
Remarks : • The ROM mirror function is provided so the C compiler’s small memory model can be used.
• The lower 16 bits of the FF bank and 00 bank addresses are the same. However, as the FF bank ROM
area exceeds 48 KBytes, the entire ROM data area cannot be mirrored in 00 bank.
• When using the C compiler’s small memory model, locating data tables in the area “FF4000
FFFFFF
H” makes the image of the data visible in the “004000H to 00FFFFH” area. This means that
data tables located in ROM can be referenced without needing to declare far pointers.
H to
20
I/O MAP
■
MB90560/565 Series
Address
000000
Abbreviat-
ed Register
Register name
Name
HPDR0Port 0 data registerR/WPort 0XXXXXXXXB
Read/
Write
Resource NameInitial Value
000001HPDR1Port 1 data registerR/WPort 1XXXXXXXXB
000002HPDR2Port 2 data registerR/WPort 2XXXXXXXXB
000003HPDR3Port 3 data registerR/WPort 3XXXXXXXXB
000004HPDR4Port 4 data registerR/WPort 4XXXXXXXXB
000005HPDR5Port 5 data registerR/WPort 5XXXXXXXXB
000006HPDR6Port 6 data registerR/WPort 6XXXXXXXXB
000007H