The MB90520 series is a general-purpose 16-bit microcontroller developed and designed by Fujitsu for process
control applications in consumer products that require high-speed real-time processing.
The instruction set of the F
instruction sets for high-level languages, extended addressing mode, enhanced multiplication/division
instructions, and enhanced bit manipulation instructions. The microcontroller has a 32-bit accumulator for
processing long word data.
The MB90520 series has peripheral resources of 8/10-bit A/D converter, 8-bit D/A converter, UART (SCI),
extended I/O serial interfaces 0 and 1, 8/16-bit up/down counter/timers 0 and 1, 8/16-bit PPG timers 0 and 1,
I/O timer (16-bit free-run timers 1 and 2, input captures 0 and 1 (ICU), output compares 0 and 1 (OCU)), and
an LCD controller/driver.
2
MC stands for FUJITSU Flexible Microcontroller, a registered trademark of FUJITSU LIMITED.
*:F
2
MC-16LX CPU core inherits AT architecture of the F2MC* family with additional
FEATURES
■
•Clock
Embedded PLL clock multiplication circuit
Operating clock (PLL clock) can be selected from divided-b y-2 of oscillation or one to four times the oscillation
(at oscillation of 4 MHz, 4 MHz to 16 MHz).
The system can be operated by a sub-clock (rated at 32.768 kHz).
Minimum instruction execution time: 62.5 ns (at oscillation of 4 MHz, four times the oscillation clock, operation
at V
CC of 5.0 V)
PACKAGES
■
120-pin Plastic LQFP
(FPT-120P-M05)
120-pin Plastic QFP
(FPT-120P-M13)
(Continued)
MB90520 Series
(Continued)
• Maximum memory space
16 Mbytes
• Instruction set optimized for controller applications
Rich data types (bit, byte, word, long word)
Rich addressing mode (23 types)
Enhanced signed multiplication/division instruction and RETI instruction functions
Enhanced precision calculation realized by 32-bit accumulator
• Instruction set designed for high level language (C) and multi-task operations
Adoption of system stack pointer
Enhanced pointer indirect instructions
Barrel shift instructions
• Program patch function (for two address pointers)
• Low-power consumption (stand-by) mode
Sleep mode (mode in which CPU operating clock is stopped)
Stop mode (mode in which oscillation is stopped)
CPU intermittent operation mode
Hardware stand-by mode
Clock mode (mode in which other than sub-clock and timebase timer are stopped)
•Process
CMOS technology
• I/O port
General-purpose I/O ports (CMOS): 53 ports
•UART (SCI)
With full-duplex double buffer
Clock asynchronized or clock synchronized transmission can be selectively used.
• DTP/external interrupt circuit (8 channels)
A module for starting extended intelligent I/O service (EI
by an external input.
• Wak e-up interrupt
Receives external interrupt requests and generates an interrupt request upon an “L” level input.
• Delayed interrupt generation module
Generates an interrupt request for switching tasks.
• 8/10-bit A/D converter (8 channels)
8/10-bit resolution can be selectively used.
Starting by an external trigger input.
Conversion time: minimum 15.0 µs (at machine clock frequency of 16 MHz, including sampling time)
• 8-bit D/A converter (based on the R-2R system)
8-bit resolution: 2 channels (independent)
Setup time: 12.5 µs
• Clock timer: 1 channel
• LCD controller/driver
A common driver and a segment driver that can directly drive the LCD (liquid crystal display) panel
• Clock output function
2
OS) and generating an external interrupt triggered
Note: Do not set external bus mode for the MB90520 series because it cannot be operated in this mode.
3
MB90520 Series
PRODUCT LINEUP
■
Part number
Item
ClassificationMask ROM productFlash ROM product Evaluation product
ROM size64 kbytes128 kbytesNone
RAM size4 kbytes6 kbytes
CPU functions
MB90522MB90523MB90F523MB90V520
Number of instructions: 351
Instruction bit length: 8 bits, 16 bits
Instruction length: 1 byte to 7 bytes
Data bit length: 1 bit, 8 bits, 16 bits
Minimum execution time: 62.5 ns
(at machine clock frequency of 16 MHz)
Interrupt processing time: 1.5 µs
(at machine clock frequency of 16 MHz, minimum value)
Stop conversion mode (converts selected channel and stop operation repeatedly)
Number of channels: 1 (8-bit × 2 channels)
PPG operation of 8-bit or 16-bit
Pulse wave of given intervals and given duty ratios can be output.
Pulse interval: 62.5 ns to 1 µs (at machine clock frequency of 16 MHz)
Number of channels: 1 (8-bit × 2 channels)
Event input: 6 channels
8-bit up/down counter/timer used: 2 channels
8-bit re-load/compare function supported: 1 channel
16-bit
I/O timer
4
16-bit free-run
timers 1, 2
Number of channels: 2
Overflow interrupts
(Continued)
(Continued)
MB90520 Series
Part number
Item
Output
16-bit
I/O timer
DTP/external interrupt circuit
Wake-up intrrupt
Delayed interrupt generation
module
Extended I/O serial
interfaces 0, 1
Timebase timer
compares 0, 1
(OCU)
Input captures
0, 1 (ICU)
MB90523MB90523MB90F523MB90V520
Number of channels: 8
Pin input factor: Match signal of compare register
Number of channels: 2
Rewriting register value upon pin input (rising, falling, or both edges)
Number of inputs: 8
Started by rising edge, falling edge, “H” level input, or “L” level input.
External interrupt circuit or extended intelligent I/O service (EI
Number of inputs: 8
Started by “L” level input.
Interrupt generation module for switching tasks
Used in real-time operating systems.
Clock synchronized transmission (3125 bps to 1 Mbps)
LSB first/MSB first
18-bit counter
Interrupt interval: 1.024 ms, 4.096 ms, 16.384 ms, 131.072 ms
(at oscillation of 4 MHz)
2
OS) can be used.
8-bit resolution
8-bit D/A converter
LCD controller/driver
Watchdog timer
Low-power consumption
(stand-by) mode
ProcessCMOS
Power supply voltage for
operation*
* :Varies with conditions such as the operating frequency. (See section “■ Electrical Characteristics.”)
Assurance for the MB90V520 is given only for operation with a tool at a power voltage of 3.0 V to 5.5 V, an
operating temperature of 0 to 55 degrees centigrade, and an operating frequency of 1 MHz to 16 MHz.
Note: For more information about each package, see section “■ Package Dimensions.”
DIFFERENCES AMONG PRODUCTS
■
Memory Size
In evaluation with an evaluation chip, note the difference between the evaluation chip and the chip actually used.
The following items must be taken into consideration.
• The MB90V520 does not have an internal ROM. How ev er , operations equivalent to those perf ormed by a chip
with an internal ROM can be evaluated by using a dedicated development tool, enabling selection of ROM
size by setting the development tool.
• In the MB90V520, images from FF4000
mapped to bank FE and FF only. (This setting can be changed by configuring the development tool.)
• In the MB90522, images from FF4000
FF only.
• In the MB90523/F523, images from FF4000H to FFFFFFH are mapped to bank 00, and FE0000H to FF3FFFH
to bank FE and bank FF.
H to FFFFFFH are mapped to bank 00, and FE0000H to FF3FFFH are
H to FFFFFFH are mapped to bank 00, and FF0000H to FF3FFFH to bank
89 to 87MD0 to MD2CThis is an input pin for selecting operation modes.
95 to 101P00 to P06DThis is a general-purpose I/O port.
102P07DThis is a general-purpose I/O port.
103 to 110P10 to 17DThis is a general-purpose I/O port.
111,
112,
113,
114
115P24EThis is a general-purpose I/O port.
116P25EThis is a general-purpose I/O port.
1
2
X0,
93
73
90RSTCThis is an external reset request signal input pin.
86HST
X1
X0A,
X1A
INT0 to INT6This is a request input pin of the DTP/external interrupt circuit ch.0
WI0 to WI7This is an I/O pin for wake-up interrupts.
P20,
P21,
P22,
P23
IC00,
IC01,
IC10,
IC11
AIN0This port can be used as count clock A input for 8/16-bit up/down
BIN0This port can be used as count clock B input for 8/16-bit up/down
Circuit
type
A This is a high-speed crystal oscillator pin.
BThis is a low-speed crystal oscillator pin.
Connect directly to V
CThis is a hardware stand-by input pin.
This function can be set by the port 0 input pull-up resistor setup
register (RDR0) for input. For output, however, this function is
invalid.
to ch.6.
This function can be set by the port 0 input pull-up resistor setup
register (RDR0) for input. For output, however, this function is
invalid.
This function can be set by the port 1 input pull-up resistor setup
register (RDR1) for input. For output, however, this function is
invalid.
EThis is a general-purpose I/O port.
This is a trigger input pin for input capture (ICU) 0 and 1.
Since this input is used as required for input capture 0 and 1 (ICU)
ch.0, ch.01, ch.10 and ch.11 input operation, output by other
functions must be suspended except for intentional operation.
counter/timer 0.
counter/timer 0.
CC or VSS.
Function
*1: FPT-120P-M05
*2: FPT-120P-M13
8
(Continued)
Pin no.
Pin name
LQFP-120*
QFP-120*
117P26EThis is a general-purpose I/O port.
118P27EThis is a general-purpose I/O port.
120P30EThis is a general-purpose I/O port.
1
2
ZIN0This port can be used as count clock Z input for 8/16-bit up/down
INT7This is a request input pin of the DTP/external interrupt circuit
ADTG
1P31EThis is a general-purpose I/O port.
CKOTThis is a clock monitor function output pin.
2P32EThis is a general-purpose I/O port.
OUT0This is an event output pin for output compare 0 (OCU) ch.0.
3P33EThis is a general-purpose I/O port.
OUT1This is an event output pin for output compare 0 (OCU) ch.1.
4P34EThis is a general-purpose I/O port.
OUT2This is an event output pin for output compare 0 (OCU) ch.2.
5P35EThis is a general-purpose I/O port.
OUT3This is an event output pin for output compare 0 (OCU) ch.3.
6P36EThis is a general-purpose I/O port.
PG00This is an output pin of 8/16-bit PPG timer 0.
Circuit
type
counter/timer 0.
ch.7.
This is an external trigger input pin of the 8/10-bit A/D converter.
Since this input is used as required for 8/10-bit A/D conv erter input
operation, output by other functions must be suspended e xcept f or
intentional operation.
This function is valid when clock monitor output is enabled.
This function becomes valid when waveform output from the
OUT0 is disabled.
This function is valid when output for each channel is enabled.
This function becomes valid when waveform output from the
OUT1 is disabled.
This function is valid when output for each channel is enabled.
This function becomes valid when waveform output from the
OUT2 is disabled.
This function is valid when output for each channel is enabled.
This function becomes valid when waveform output from the
OUT3 is disabled.
This function is valid when output for each channel is enabled.
This function becomes valid when wa vef orm output from the PG00
is disabled.
This function becomes valid when waveform output from PG00 is
enabled.
MB90520 Series
Function
*1: FPT-120P-M05
*2: FPT-120P-M13
(Continued)
9
MB90520 Series
Pin no.
Pin name
LQFP-120*
QFP-120*
1
2
7P37EThis is a general-purpose I/O port.
PG01This is an output pin of 8/16-bit PPG timer 0.
9,
10
11P42DThis is a general-purpose I/O port.
12P43DThis is a general-purpose I/O port.
13P44DThis is a general-purpose I/O port.
14P45DThis is a general-purpose I/O port.
P40,
P41
PG10,
PG11
SIN0This is a serial data input pin of UART (SCI).
SOT0This is a serial data output pin of UART (SCI).
SCK0This is a serial clock I/O pin of UART (SCI).
SIN1This is a data input pin for extended I/O serial interface 0.
Circuit
type
This function becomes valid when wa vef orm output from the PG01
is disabled.
This function becomes valid when waveform output from PG01 is
enabled.
DThis is a general-purpose I/O port.
This function becomes valid when wa vef orm output from the PG10
and PG11 are disabled.
This function can be set by the pull-up resistor setup register
(RDR4) for input. For output, however, this function is invalid.
This is an output pin of 8/16-bit PPG timer 1.
This function becomes valid when waveform outputs from PG10
and PG11 are enabled.
This function can be set by the pull-up resistor setup register
(RDR4) for input. For output, however, this function is invalid.
Because this input is used as required when UART (SCI) is
performing input operations, it is necessary to stop outputs by
other functions unless such outputs are made intentionally.
When using other output functions as well, disable output during
SIN operation.
This function can be set by the pull-up resistor setup register
(RDR4) for input. For output, however, this function is invalid.
This function becomes valid when serial data output from UART
(SCI) is enabled.
This function can be set by the pull-up resistor setup register
(RDR4) for input. For output, however, this function is invalid.
This function becomes valid when serial clock output from UART
(SCI) is enabled.
This function can be set by the port 4 input pull-up resistor setup
register (RDR4) for input. For output, however, this function is
invalid.
Since this input is used as required for serial data input operation,
output by other functions must be suspended e xcept for intentional
operation. When using other output functions as well, disable
output during SIN operation.
Function
*1: FPT-120P-M05
*2: FPT-120P-M13
10
(Continued)
Pin no.
Pin name
LQFP-120*
QFP-120*
40,
46 to 53P60 to P67KThis is a general-purpose I/O port.
1
2
15P46DThis is a general-purpose I/O port.
SOT1This is a data output pin for extended I/O serial interface 0.
16P47DThis is a general-purpose I/O port.
SCK1This is a serial clock I/O pin for extended I/O serial interface 0.
35P50DThis is a general-purpose I/O port.
SIN2This is a data input pin for extended I/O serial interface 1.
AIN1This port can be used as count clock A input for 8/16-bit up/down
36P51DThis is a general-purpose I/O port.
SOT2This is a data output pin for extended I/O serial interface 1.
BIN1This port can be used as count clock B input for 8/16-bit up/down
37P52DThis is a general-purpose I/O port.
SCK2This is a serial clock I/O pin for extended I/O serial interface 1.
ZIN1This port can be used as control clock Z input for 8/16-bit up/do wn
P53,
41
P54
DA0,
DA1
AN0 to AN7These are analog input pins of the 8/10-bit A/D converter.
Circuit
type
This function can be set by the port 4 input pull-up resistor setup
register (RDR4) for input. For output, however, this function is
invalid.
This function becomes valid when serial data output from SOT1 is
enabled.
This function can be set by the port 4 input pull-up resistor setup
register (RDR4) for input. For output, however, this function is
invalid.
This function becomes valid when serial clock output from SCK1 is
enabled.
Since this input is used as required for serial data input operation,
output by other functions must be suspended e xcept for intentional
operation.
counter/timer 1.
This function becomes valid when serial data output from SOT2 is
enabled.
counter/timer 1.
This function becomes valid when serial clock output from serial
SCK2 is enabled.
counter/timer 1.
IThis is a general-purpose I/O port.
These are analog signal output pins for 8-bit D/A converter ch.0
and ch.1.
The input function become valid when the analog input enable
register (ADER) is set to select a port.
This function is valid when the analog input enable register
(ADER) is enabled.
Function
MB90520 Series
*1: FPT-120P-M05
*2: FPT-120P-M13
(Continued)
11
MB90520 Series
Pin no.
Pin name
57
58
1
2
P70,
P72
TI0,
TI1
OUT4,
OUT6
P71,
P73
LQFP-120*
QFP-120*
55,
56,
Circuit
type
EThis is a general-purpose I/O port.
These are event input pins for 16-bit re-load timers 0 and 1.
Since this input is used as required for 16-bit re-load timers 0 and
1 operation, output by other functions must be suspended except
for intentional operation.
These are event output pins for output compare 1 (OCU) ch.4 and
ch.6.
This function is valid when output for each channel is enabled.
EThis is a general-purpose I/O port.
This function is valid when TO0 and TO1 output are disabled.
Function
TO0,
TO1
OUT5,
OUT7
These are output pins for 16-bit re-load timers 0 and 1.
This function is valid when TO0 and TO1 output are enabled.
These are event output pins for output compare 1 (OCU) ch.5 and
ch.7.
This function is valid when output for each channel is enabled.
59 to 62P74 to P77LThis is a general-purpose I/O port.
This function is valid with port output specified for the LCD
controller/driver control register.
COM0 to
COM3
These are common pins for the LCD controller/driver.
This function is valid with common output specified for the LCD
controller/driver control register.
64 to 71P80 to P87LThis is a general-purpose I/O port.
This function is valid with port output specified for the LCD
controller/driver control register.
SEG16 to
SEG23
These are segment outputs for the LCD controller/driver.
This function is valid with segment output specified for the LCD
controller/driver control register.
72,
75 to 81
P90,
P91 to P97
MThis is a general-purpose I/O port.
The maximum I
OL can be 10mA.
This function is valid with port output specified for the LCD
controller/driver control register.
SEG24,
SEG25 to
SEG31
17 to 24SEG00 to
SEG07
FThese are pins dedicated to LCD segments 00 to 07 for the LCD
These are segment outputs for the LCD controller/driver.
This function is valid with port output specified for the LCD
controller/driver control register.
controller/driver.
25 to 32PA0 to PA7LThis is a general-purpose I/O port.
This function is valid with port output specified for the LCD
controller/driver control register.
SEG08 to
SEG15
These are pins for LCD segments 08 to 15 for the LCD controller/
driver.
Units of four ports or segments can be selected by the internal
register in the LCD controller.
*1: FPT-120P-M05
*2: FPT-120P-M13
(Continued)
12
MB90520 Series
(Continued)
Pin no.
1
LQFP-120*
QFP-120*
Pin name
2
34CGThis is a capacitance pin for power supply stabilization.
82 to 85V0 to V3NThis is a pin for the reference power supply for the LCD controller/
8,
V
CCPower
54,
94
33,
V
SSPower
63,
91,
119
42AV
CCHThis is a power supply for the analog circuit.
43AVRHJThis is a reference v oltage input to the analog circuit.
44AVRLHThis is a reference voltage input to the analog circuit.
45AV
38DV
39DV
SSHThis is a GND level of the analog circuit.
CCHThis is the Vref input pin for the D/A converter.
SSHThis is the GND level pin for the D/A converter.
Circuit
type
supply
supply
Function
Connect an external ceramic capacitor rated at about 0.1 µF. This
capacitor is not, however, required for the M90F523 (flash
product).
driver.
This is a power supply (5.0 V) input pin to the digital circuit.
This provides the GND level (0.0 V) input pin for the digital circuit.
Make sure to turn on/turn off this power supply with a voltage
exceeding AV
CC applied to VCC.
Make sure to turn on/turn off this power supply with a voltage
exceeding AVRH applied to AV
The voltage to be applied must not exceed V
The potential must be the same as V
CC.
CC.
SS.
*1: FPT-120P-M05
*2: FPT-120P-M13
13
MB90520 Series
I/O CIRCUIT TYPE
■
TypeCircuitRemarks
A• High-speed oscillation feedback resistor
X1
approx. 1MΩ
X0
Nch
Pch
Pch
Nch
Standby control signal
B• Low-speed oscillation feedback resistor
X1A
X0A
Nch
Pch
Pch
Nch
Standby control signal
approx. 1MΩ
C• Hysteresis input
R
Hysteresis input
14
D• Hysteresis input (can be set with the input
Pch
Pch
Selecting signal
with or without a
input pull-up resistor
pull-up resistor)
CMOS level output
• Pull-up resistor approx. 50 kΩ
• Provided with a standby control function
I
OL= 4 mA
Nch
R
Hysteresis input
Standby control for
input interruption
for input interruption
(Continued)
MB90520 Series
TypeCircuitRemarks
E• CMOS hysteresis input/output
Pch
R
IOL= 4 mA
F• Pins dedicated to segment output
CC
V
Nch
Hysteresis input
Standby control for input interruption
• CMOS level output
• Provided with a standby control function
for input interruption
Pch
Nch
R
G• C pin output
(Pin for capacitor connection)
Pch
Nch
N.C. pin for the MB90F523
H• Analog power input protector
Pch
AVP
Nch
I• CMOS hysteresis input/output
• Pin for analog output/CMOS output
(During analog output, CMOS output is
not produced.)
Pch
CC
V
(Analog output has priority over CMOS
Nch
output: DAE = 1)
• Provided with a standby control function
I
OL= 4 mA
R
Hysteresis input
Standby control for input interruption
DAO
for input interruption
(Continued)
15
MB90520 Series
TypeCircuitRemarks
J• Input pin for ref+ power for the A/D
Pch
Nch
Pch
Nch
ANE
AVR
ANE
K• Hysteresis input/analog input
Pch
Nch
converter
Provided with power protection
• CMOS output
• Provided with a standby control for input
interruption
I
OL= 4 mA
R
Standby control for input interruption
Hysteresis input
Analog input
L• CMOS hysteresis input/output
Pch
• Segment input
• Standby control to cut off the input is
available in segment input operation
Nch
R
Standby control for input interruption
IOL= 4 mA
Hysteresis input
SEG
M• Hysteresis input
Nch
• Nch open-drain output
(High current for LCD drive)
• Standby control to cut off the input is
R
IOL= 10 mA
Nch
Hysteresis input
Standby control for input interruption
available in segment input operation
16
N• Reference power supply pin for the LCD
controller
IOL= 10 mA
Pch
Nch
R
MB90520 Series
HANDLING DEVICES
■
1. Ensuring that the Voltage does not exceed the Maximum Rating (to Avoid a Latch-up).
In CMOS ICs, a latch-up phenomenon is caused when a voltage exceeding VCC or below VSS is applied to
input or output pins or if a voltage exceeding the rating is applied across VCC and VSS.
When a latch-up is caused, the power supply current may be dramatically increased, resulting in thermal
breakdown of devices. To avoid the latch-up, make sure that the voltage does not exceed the maximum rating.
In turning on/turning off the analog power supply, make sure the analog power voltages (AVCC, AVRH, DVCC)
and analog input voltages do not exceed the digital voltage (V
And also make sure the voltages applied to the LCD power supply pins (V3 to V0) do not exceed the power
supply voltage (V
CC).
2. Handling Unused Pins
• Unused input pins left open may cause abnormal operation, or latch-up leading to permanent damage. Unused
input pins should be pulled-up or pull-down through at least 2 kΩ resistance.
• Unused input/output pins may be left open in output state, but if such pins are in input state they should be
handled in the same way as input pins.
CC).
3. Notes on Using External Clock
In using the external clock, drive X0 pin only and leave X1 pin unconnected.
Using external cloc k
•
X0
Open
MB90520 series
X1
4. Unused Sub Clock Mode
If sub clock modes are not used, the oscillator should be connected to the X0A pin and X1A pin.
5. Power Supply Pins
In products with multiple Vcc or Vss pins, pins with the same potential are internally connected in the device to
avoid abnormal operations including latch-ups. However, the pins should be connected to external powers and
ground lines to lower the electro-magnetic emission level, to prevent abnormal operation of strobe signals caused
by the rise in the ground level, and to conform to the total current rating.
Make sure to connect V
It is recommended that a bypass capacitor of around 0.1 µF be placed between the V
device.
cc and Vss pins via lowest impedance to power lines.
cc and Vss pins near the
17
MB90520 Series
Using
•
power supply pins
V
CC
V
SS
V
CC
V
SS
V
SS
MB90520 series
V
CC
V
SS
V
CC
V
SS
V
CC
6. Crystal Oscillator Circuit
Noise around the X0 and X1 pins may cause abnormal operation in this device. In designing printed circuit
boards, the X0 and X1 pins and crystal oscillator (or ceramic oscillator), as well as the bypass capacitor to the
ground, should be placed as close as possible, and the related wiring should have as few crossings with other
wiring as possible.
Circuit board artwork in which the area of the X0 and X1 pins is surrounded by grounding is recommended for
stabilizing the operation.
7. Turning-on Sequence of Power Supply to A/D Converter and Analog Inputs
Make sure to turn on the A/D converter power supply, D/A converter power supply (AVCC, AVRH, AVRL, DVCC,
DVSS) and analog inputs (AN0 to AN7) after turning on the digital power supply (VCC).
Turn off the digital power after turning off the A/D converter supply and analog inputs. In this case, make sure
that AVRH and DV
acceptable).
CC do not exceed AVCC (turning on/off the analog and digital supplies simultaneously is
8. Connection of Unused Pins of A/D Converter
Connect unused pins of A/D converter and those of D/A converter to AVCC = DVCC = VCC, AVSS = AVRH = AVRL
= V
SS.
9. N.C. Pin
The N.C. (internally connected) pin must be opened for use.
10.Notes on Energization
To prevent the internal regulator circuit from malfunctioning, set the voltage rise time during energization at
50 µs or more (0.2 V to 2.7 V).
11.Use of SEG/COM Pins for the LCD Controller/Driver as Ports
In MB90520 series, pins SEG08 to SEG31, and COM0 to COM3 can also be used as general-purpose ports.
The electrical standard is such that pins SEG08 to SEG23, and COM0 to COM3 have the same ratings as the
CMOS output port, while pins SEG24 to SEG31 have the same ratings as the open-drain type.
18
MB90520 Series
12.
Indeterminate outputs from ports 0 and 1
The outputs from ports 0 and 1 become indeterminate during oscillation setting time of step-down circuit (during
a power-on reset) after the power is turned on.
Pay attention to the port output timing shown as follow
Timming chart of indeterminate outputs from ports o and 1
•
Oscillation setting time
∗2
Step-down circuit
setting time
∗1
Vcc(power-supply pin)
PONR(power-on reset) signal
(external asynchronous reset) signal
RST
RST(internal reset) signal
Oscillation clock signal
KA(internal operation clock A) signal
KB(internal operation clock B) signal
PORT(port output)signal
indereterminate period
* : 1:Step-down circuit setting time : 217/oscillation clock frequency (oscillation clock frequency of 16 MHz: 8.19 ms)
* :2:Oscillation setting time: 2
18
/oscillation clock frequency (oscillation cllock frequency of 16 MHz: 16.38 ms)
13.Initialization
The device contains internal registers that can be initialized only by a power-on reset. To initialize the internal
registers, restart the power supply.
14. Interrupt Recovery from Standby
If an external interrupt is used for recovery from standby, use an “H” level input request. An “L” level request
causes abnormal operation.
15.Precautions for Use of “DIV A, Ri”, and “DIVW A, Ri” Instructions
The signed multiplication-division instructions “DIV A, Ri”, and “DIVW A, RWi” should be used when the
corresponding bank registers (DTB, ADB, USB, SSB) are set to value “00h”. If the corresponding bank registers
(DTB, ADB, USB, SSB) are set to a value other than “00h,” then the remainder obtained after the execution of
the instruction will not be placed in the instruction operand register.
Notes: Actually 16-bit free-run timer 1 is supported although two free-run timers are seemingly supported.
*1: The clock control circuit comprises a watchdog timer, a timebase timer, and a power consumption controller.
*2: A register for setting a pull-up resistor is supported.
*3: This is a high-current port for an LCD drive.
*4: A register for setting a pull-up resistor is supported. Signals in the CMOS level are input and output.
*5: Also used for LCD output. With this port used as is, Nch open-drain output develops . A register f or setting a pull-up resi stor
is supported.
20
CC
SS
MEMORY MAP
■
H
FFFFFF
Address #1
H
FE0000
H
010000
Address #2
H
004000
H
002000
Address #3
H
000100
H
0000C0
H
000000
Single chip mode
A mirroring function
is supported.
*: Addresses #1, #2 and #3 vary with product type.
Note: The ROM data of bank FF is reflected in the upper address of bank 00, realizing effective use of the C
compiler small model. The lower 16-bit of bank FF and the lower 16-bit of bank 00 are assigned to the
same address, enabling reference of the table on the ROM without stating “far.”
For e xample, if an attempt has been made to access 00C000
H, the contents of the ROM at FFC000H are
actually accessed. Since the ROM area of the FF bank exceeds 48k bytes, the whole area cannot be
reflected in the image for the 00 bank. The ROM data at FF4000
were the image for 00400
the area of FF4000
H to 00FFFFH. Thus, it is recommended that the ROM data table be stored in
H to FFFFFFH.
H to FFFFFFH looks, therefore, as if it
21
MB90520 Series
2
F
MC-16LX CPU PROGRAMMING MODEL
■
• Dedicated registers
AHAL
USP
SSP
PS
PC
DPR
PCB
DTB
USB
: Accumlator (A)
Dual 16-bit register used for storing results of calculation, etc. The two 16-bit
registers can be combined to be used as a 32-bit register.
: User stack pointer (USP)
16-bit pointer for containing a user stack address.
: System stack pointer (SSP)
16-bit pointer for displaying the status of the system stack address.
: Processor status (PS)
16-bit register for displaying the system status.
: Program counter (PC)
16-bit register for displaying the storing location of the current instruction code.
: Direct page register (DPR)
8-bit register for specifying bit 8 through 15 of the operand address in the short
direct addressing mode.
: Program bank register (PCB)
8-bit register for displaying the program space.
: Data bank register (DTB)
8-bit register for displaying the data space.
: User stack bank register (USB)
8-bit register for displaying the user stack space.
32-bit
16-bit
SSB
ADB
8-bit
: System stack bank register (SSB)
8-bit register for displaying the system stack space.
: Additional data bank register (ADB)
8-bit register for displaying the additional data space.
22
• General-purpose registers
MB90520 Series
Maximum of 32 banks
H
000180
+ (RP × 10H )
• Processor status (PS)
ILMRPCCR
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
PS
ILM2B4ILM1 ILM0B3B2B1B0—ISTNZVC
R7
R5
R3
R1
RW3
RW2
RW1
RW0
16-bit
R6
R4
R2
R0
RW7
RL3
RW6
RW5
RL2
RW4
RL1
RL0
Initial value
— : Unused
X : Indeterminate
00 00000010XXXXX
—
23
MB90520 Series
I/O MAP
■
Address
000000
Abbreviated
register
Register name
name
HPDR0Port 0 data register R/WPort 0XX X XXXXX B
Read/
write
Resource nameInitial value
000001HPDR1Port 1 data register R/WPort 1XX X XXXXX B
000002HPDR2Port 2 data register R/WPort 2XX X XXXXX B
000003HPDR3Port 3 data register R/WPort 3XX X XXXXX B
000004HPDR4Port 4 data register R/WPort 4XX X XXXXX B
000005HPDR5Port 5 data register R/WPort 5XX X XXXXX B
000006HPDR6Port 6 data register R/WPort 6XX X XXXXX B
000007HPDR7Port 7 data register R/WPort 7XX X XXXXX B
000008HPDR8Port 8 data register R/WPort 8XX X XXXXX B
000009HPDR9Port 9 data register R/WPort 9XX X XXXXX B
00000AHPDRAPort A data register R/WPort AXXXXX X X X B
00000BHLCDCMRPort 7/COM pin selection registerR/W
00000CH
OCP4OCU compare register ch.4R/W
00000DHXXXXXXXXB
Port 7,
LCD controller/driver
16-bit I/O timer
(output compare 1
(OCU) section)
XXXX0 000B
XXXXXXXXB
00000EH(Disabled)
00000F
HEIFRWake-up interrupt flag registerR/W
Wake-up interrupt
XXXXXXX0 B
000010HDDR0Port 0 direction registerR/WPort 00 0 0 0 0 0 0 0 B
000011HDDR1Port 1 direction registerR/WPort 10 0 0 0 0 0 0 0 B
000012HDDR2Port 2 direction registerR/WPort 20 0 0 0 0 0 0 0 B
000013HDDR3Port 3 direction registerR/WPort 30 0 0 0 0 0 0 0 B
000014HDDR4Port 4 direction registerR/WPort 40 0 0 0 0 0 0 0 B
000015HDDR5Port 5 direction registerR/WPort 5XXX 0 0 0 0 0 B
000016HDDR6Port 6 direction registerR/WPort 60 0 0 0 0 0 0 0 B
000017HDDR7Port 7 direction registerR/WPort 70 0 0 0 0 0 0 0 B
000018HDDR8Port 8 direction registerR/WPort 80 0 0 0 0 0 0 0 B
000019HDDR9Port 9 direction registerR/WPort 90 0 0 0 0 0 0 0 B
00001AHDDRAPort A direction registerR/WPort A0 0 0 0 0 0 0 0 B
00001BHADERAnalog input enable registerR/W
00001CH
OCP5OCU compare register ch.5R/W
00001DHXXXXXXXXB
Port 6,
A/Dconverter
16-bit I/O timer
(output compare 1
(OCU) section)
11111111B
XXXXXXXXB
00001EH(Disabled)
00001F
HEICRWake-up interrupt enable registerW
Wake-up interrupt
00000000B
24
(Continued)
MB90520 Series
Address
register
Register name
name
Abbreviated
000020
HSMRSerial mode register R/W
000021HSCRSerial control register
Read/
write
R/W or
W
Resource
name
Initial value
00000000B
00000100B
UART
000022H
SIDR/
SODR
000023HSSRSerial status register
000024HSMCSL0Serial mode control lower status register 0R/W
000025HSMCSH0Serial mode control upper status register 0R/W0 0 0 0 0 0 1 0 B
000026HSDR0Serial data register 0R/WXXXXXXXXB
Serial input data register/
serial output data register
R
W
R/W or
R
(SCI)
Extended I/O
serial
interface 0
XXXXXXXX
00001X00B
XXXX0 000B
Communica-
000027HCDCRCommunications prescaler control registerR/W
tions prescaler
0XXX1111B
control register
000028HSMCSL1Serial mode control lower status register 1R/W
000029HSMCSH1Serial mode control upper status register 1R/W0 0 0 0 0 0 1 0 B
00002AHSDR1Serial data register 1R/WXXXXXXXXB
0000XX00
00002FHXXX0 00 00B
000030HENIRDTP/interrupt enable registerR/W
000031HEIRRDTP/interrupt factor registerR/WX X X X XXXX B
000032H
DTP/external
interrupt circuit
00000000B
00000000
ELVRRequest level setting registerR/W
000033H00000000B
000034H
OCP6OCU compare register ch.6R/W
000035HXXXXXXXXB
16-bit I/O timer
(output com-
pare 1 (OCU)
section)
000036HADCS1A/D control status register lower digitsR/W
000037HADCS2A/D control status register upper digitsR/W0 0 0 0 0 0 0 0 B
000038HADCR1A/D data register lower digitsRX X X X XXXX B
8/10-bit A/D
converter
XXXXXXXXB
00000000B
000039HADCR2A/D data register upper digitsR or W0 0 0 0 1 XX X B
00003AHDADR0D/A converter data register ch.0R/W
00003BHDADR1D/A converter data register ch.1R/WXXXXX X X X B
00003CHDACR0D/A control register 0R/WXXXXXXX0B
8-bit D/A
converter
XXXXXXXXB
00003DHDACR1D/A control register 1R/WXXXXXXX0B
00003EHCLKRClock output enable registerR/W
Clock monitor
function
XXXX0 000B
(Continued)
B
B
B
25
MB90520 Series
Address
register
Register name
name
Abbreviated
00003F
000040
H(Disabled)
HPRLL0PPG0 re-load register LR/W
000041HPRLH0PPG0 re-load register HR/WXXXX X X X X B
000042HPRLL1PPG1 re-load register LR/WXX X XXXXX B
000043HPRLH1PPG1 re-load register HR/WXXXX X X X X B
000044HPPGC0PPG0 operating mode control registerR/W0 X 0 0 0 X X 1 B
000045HPPGC1PPG1 operating mode control registerR/W0 X 0 0 0 0 0 1 B
000046H
PPGOE0/
PPGOE1
PPG0 and 1 output control registersR/W0 0 0 0 0 0 0 0
000047H(Disabled)
000048
H
Timer control status register lower ch.0
TMCSR0
000049HTimer control status register upper ch.0XXXX 0 0 0 0 B
00004AH
00004BHXXXXXXXXB
00004CH
control register
0000A1HCKSCRClock select register
0000A2H
to
(Disabled)
0000A7H
0000A8
HWDTCWatchdog timer control registerR or WWatchdog timerX X XXXXXX B
0000A9HTBTCTimebase timer control registerR/WTimebase timer1 XX 0 0 0 0 0 B
0000AAHWTCClock timer control register
0000ABH
to
0000AD
0000AE
H
HFMCSFlash control registerR/WFlash interface1 XX 0 0 1 0 0 B
(Disabled)
0000AFH(Disabled)
0000B0
HICR00Interrupt control register 00R/W
0000B1HICR01Interrupt control register 01R/W0 0 0 0 0 1 1 1 B
0000B2HICR02Interrupt control register 02R/W0 0 0 0 0 1 1 1 B
0000B3HICR03Interrupt control register 03R/W0 0 0 0 0 1 1 1 B
0000B4HICR04Interrupt control register 04R/W0 0 0 0 0 1 1 1 B
0000B5HICR05Interrupt control register 05R/W0 0 0 0 0 1 1 1 B
0000B6HICR06Interrupt control register 06R/W0 0 0 0 0 1 1 1 B
0000B7HICR07Interrupt control register 07R/W0 0 0 0 0 1 1 1 B
0000B8HICR08Interrupt control register 08R/W0 0 0 0 0 1 1 1 B
0000B9HICR09Interrupt control register 09R/W0 0 0 0 0 1 1 1 B
0000BAHICR10Interrupt control register 10R/W0 0 0 0 0 1 1 1 B
0000BBHICR11Interrupt control register 11R/W0 0 0 0 0 1 1 1 B
0000BCHICR12Interrupt control register 12R/W0 0 0 0 0 1 1 1 B
0000BDHICR13Interrupt control register 13R/W0 0 0 0 0 1 1 1 B
Read/
write
R/W
R/W
R/W or
W
R/W or
R
R/W or
R
Resource nameInitial value
3
Address match
detection
00000000B
function
Delayed inter-
rupt generation
XXXXXXX0 B
module
Low-power
00011000B
consumption
(stand-by) mode
11111100
Clock timer1X001000B
00000111B
Interrupt
controller
(Continued)
B
28
(Continued)
MB90520 Series
Address
register
Register name
name
Abbreviated
0000BE
HICR14Interrupt control register 14R/W
0000BFHICR15Interrupt control register 15R/W0 0 0 0 0 1 1 1 B
Read/
write
Resource nameInitial value
Interrupt
00000111B
controller
0000C0H
to
(External area)*
1
0000FFH
000100H
to
00####
(RAM area)*
H
2
00####H
to
001FEF
001FF0H
001FF1HProgram address detection register 1R/WXXXXXX X X B
H
Program address detection register 0R/W
PADR0
(Reserved area)*
3
XXXXXXXX
Address match
001FF2HProgram address detection register 2R/WXXXXXX X X B
001FF3H
001FF4HProgram address detection register 4R/WXXXXXX X X B
PADR1
Program address detection register 3R/WX X X X X X X X
detection
function
001FF5HProgram address detection register 5R/WXXXXXX X X B
001FF6H
to
001FFF
(Reserved area)*
H
3
B
B
Descriptions for read/write
R/W: Readable and writable
R: Read only
W: Write only
Descriptions for initial value
0 : The initial value is “0.”
1 : The initial value is “1.”
X : The initial value is indeterminate.
*1: This area is the only external access area having an address of 0000FF
H or lower . An access oper ation to this
area is handled as that to external I/O area.
*2: For details of the “RAM area”, see the memory map.
*3: The “reserved area” is basically disabled because it is used in the system.
*4: “Area used by the system” is the area set by the resistor for evaluating tool.
Notes: • F or bits initialized by reset operations , the initial value set by the reset oper ation is listed as an initial value.
Note that the values are different from reading results.
For LPMCR/CKSCR/WDTC, there are cases in which initialization is performed or not performed,
depending on the types of the reset. The value listed is the initial value in cases where initialization is per
formed.
• The addresses following 0000FF
H are reserved. No external bus access signal is generated.
• Boundary ####H between the “RAM area” and the“ reserved area” varies with the product models.
• Channels 0 to 3 of the OCU compare register use 16-bit free-run timer 2, while channels 4 to 7 of the OCU
compare register use 16-bit free-run timer 1. 16-bit free-run timer 1 is also used by input captures (ICU)
0 and 1.
29
MB90520 Series
INTERRUPT FACTORS, INTERRUPT VECTORS, INTERRUPT CONTROL REGISTERS