FUJITSU DS07-13707-3E DATA SHEET

查询MB90520A供应商
FUJITSU SEMICONDUCTOR
DATA SHEET
DS07-13707-3E
16-bit Proprietary Microcontroller
CMOS
F2MC-16LX MB90520A/520B Series
DESCRIPTION
The MB90520A/520B series is a general-purpose 16-bit microcontroller designed for process control applications in consumer products that require high-speed real-time processing.
The microcontroller instruction set is based on the AT architecture of the F for high-level languages, extended addressing modes, enhanced 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.
The MB90520A/520B series peripheral resources include an 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/do wn counter/timers 0 and 1, 8/16-bit PPG timers 0 and 1, a range of I/O timers (16-bit free-run timers 1 and 2, input capture (ICU) 0 and 1, and output compare (OCU) 0 and 1) , an LCD controller/driver, 8 external interrupt inputs, and 8 wakeup interrupts.
2
* : F
MC stands for FUJITSU Flexible MicroController, a registered trademark of FUJITSU LIMITED.
FEATURES
•Clock
• Internal PLL clock multiplication circuit
• Selectable machine clock (PLL clock) : Base oscillation divided by two or multiplied by one to four (For a 4 MHz base oscillation, the machine clock range is 4 MHz to 16 MHz) .
PACKAGES
2
MC* family with additional instructions
(Continued)
120-pin, Plastic, LQFP 120-pin, Plastic, QFP
(FPT-120P-M05) (FPT-120P-M13)
MB90520A/520B Series
(Continued)
• Sub-clock (32.768 KHz) operation available Minimum instruction execution time : 62.5 ns (for oscillation = 4 MHz, PLL clock setting = ×4, VCC = 5.0 V)
16MB CPU memory space
Internal 24-bit addressing
Instruction set optimized for controller applications
Rich data types (bit, byte, word, long-word) Extended addressing modes (23 types) Enhanced signed multiplication and division instructions and RETI instruction Enhanced calculation precision using a 32-bit accumulator
Instruction set designed for high-level language (C) and multi-tasking
System stack pointer Enhanced pointer-indirect instructions and barrel shift instructions
Faster execution speed
4-byte instruction queue ROM mirror function (48 Kbytes of bank FF is mirrored in bank 00)
Program patch function
Interrupt function
32 programmable interrupts with 8 levels
Automatic data transmission function independent of CPU operation
Extended intelligent I/O service function (EI
Low-power consumption (stand-by) modes
Sleep mode (CPU operating clock stops, peripherals continue to operate.) Pseudo-clock mode (Only oscillation clock and timebase timer continue to operate.) Clock mode (Main oscillation clock stops, sub-clock and clock timer continue to operate.) Stop mode (Main oscillation and sub-clock both stop.) CPU intermittent operation mode Hardware stand-by mode (Change to stop mpde by operating hardware stand-by pins.)
Process
CMOS technology
•I/
O ports
General-purpose I/O ports (CMOS input/output) : 53 ports General-purpose I/O ports (inputs with pull-up resistors) : 24 ports General-purpose I/O ports (Nch open-drain outputs) : 8 ports
Timers
Timebase timer, clock timer, watchdog timer : 1 channel each 8/16-bit PPG timers 0 and 1 : 8-bit × 2 channels or 16-bit × 1 channel 16-bit reload timers 0 and 1 : 2 channels 16-bit I/O timers : 16-bit free-run timers 0 and 1 : 2 channels 16-bit input capture 0 : 2 channels (2 channels per unit) 16-bit output compare 0 and 1 : 8 channels (4 channels per unit) 8/16-bit up/down counter/timers 0 and 1 : 8-bit × 2 channels or 16-bit × 1 channel Clock output function : 1 channel
Communications macro (communication interface
Extended I/O serial interfaces 0 and 1 : 2 channels UART (full-duplex, double-buffered, SCI : Can also be used for synchronous serial transfer) : 1 channel
:
An address match detection function (2
2
OS) : Up to 16 channels
)
×
addresses
)
2
MB90520A/520B Series
External event interrupt control function
DTP/external interrupts : 8 channels (Can be set to detect rising edges, falling edges, “H” levels, or “L” le v els) Wake-up interrupts : 8 channels (Detects “L” levels only) Delayed interrupt generation module : 1 channel (for task switching)
Analog/digital conversion
8/10-bit A/D converter : 8 channels (Can be initiated by an external trigger. Minimum conversion time = 10.2 µs for a 16 MHz machine clock)
8-bit D/A converter : 2 channels (R-2R type. Settling time = 12.5 µs for a 16 MHz machine clock)
Display function
LCD controller/driver : 32 × segment drivers + 4 × common drivers
Other
Supports serial writing to flash memory. (Only on versions with on-board flash memory.)
Note : The MB90520A and 520B series cannot be used in external bus mode. Always set these devices to single-
chip mode.
3
MB90520A/520B Series
PRODUCT LINEUP
Part Number MB90522A MB90523A MB90522B MB90523B MB90F523B MB90V520A
Parameter
Classification Mask ROM Flash ROM ROM size 64 Kbytes 128 Kbytes 64 Kbytes 128 Kbytes 128 Kbytes
RAM size 4 Kbytes 6 Kbytes Separate emulator
power supply Process CMOS Operating power
supply voltage Internal regulator circuit not mounted mounted
CPU functions
Low power operation (standby modes)
I/O ports
Timebase timer
*1
*2
No
3.0 V to 5.5 V 2.7 V to 5.5 V 3.0 V to 5.5 V
Number of instructions : 340 Instruction sizes : 8-bit, 16-bit Instruction length : 1 byte to 7 bytes Data sizes : 1-bit, 8-bit, 16-bit
Minimum instruction execution time : 62.5 ns (for a 16 MHz machine clock) Interrupt processing time : 1.5 µs min. (for a 16 MHz machine clock) Sleep mode, clock mode, pseudo-clock mode, stop mode, hardware standby mode,
and CPU intermittent operation mode General-purpose I/O ports (CMOS outputs) : 53
General-purpose I/O ports (inputs with pull-up resistors) : 24 General-purpose I/O ports (Nch open drain outputs) : 8 Total : 85
18-bit counter Interrupt interval : 1.024 ms, 4.096 ms, 16.384 ms, 131.072 ms (for a 4 MHz base oscillation)
Evaluation
product
Watchdog timer
16-bit I/O timers
16-bit reload timer
4
16-bit freerun timer
16-bit output compare
16-bit input capture
Reset trigger period
For a 4 MHz base oscillation : 3.58, 14.33, 57.23, 458.75 ms
For 32.768 sub-clock operation : 0.438, 3.500, 7.000, 14.000 s Number of channels : 2
Generates an interrupt on overflow
Number of channels : 8 Pin change timing : Free run timer register value equals output compare register value.
Number of channels : 2 Saves the value of the freerun timer register when a pin input occurs (rising edge, falling edge, either edge) .
Number of channels : 2 Count clock frequency : 0.125, 0.5, or 2.0 µs for a 16 MHz machine clock Can be used to count an external event clock.
(Continued)
(Continued)
Parameter
MB90520A/520B Series
Part Number MB90522A MB90523A MB90522B MB90523B MB90F523B MB90V520A
Clock timer
8/16-bit PPG timer
8/16 -bit up/down counter/timers
15-bit timer Interrupt interval : 0.438, 0.5, or 2.0 µs for sub-clock frequency = 32.768 kHz
Number of channels : 1 (Can be used in 2 × 8-bit channel mode) Can generate a pulse waveform output with specified period and 0 to 100% duty ratio.
Number of channels : 1 (Can be used in 2 × 8-bit channel mode) External event inputs : 6 channels
Reload/compare function : 8-bit × 2 channels Clock monitor Clock output frequency : Machine clock/2 Delayed interrupt
generation module
Interrupt generation module for task switching. (Used by REALOS.)
Input channels : 8 DTP/External interrupts
Generates interrupts to the CPU on rising edges, falling edges with input “H” level, or “L”
level.
Can be used for external event interrupts and to activate EI Wakeup interrupts
Input channels : 8
Triggered by “L” level.
Number of channels : 8 8/10-bit A/D converter
(successive approximation type)
Resolution : 8-bit or 10-bit selectable
Conversion can be performed sequentially for multiple consecutive channels.
Single-shot conversion mode : Converts specified channel once only.
Continuous conversion mode : Repeatedly converts specified channel.
Intermittent conversion mode : Converts specified channel then halts temporarily.
1
to machine clock/2
2
OS.
8
8-bit D/A converter (R-2R type)
Number of channels : 2
Resolution : 8-bit
Number of channels : 1 UART (SCI)
Clock synchronous transfer : 62.5 Kbps to 1 Mbps
Clock asynchronous transfer : 1202 bps to 31250 bps
Supports bi-directional and master-slave communications. Extended I/O serial
interface
Number of channels : 2
Clock synchronous transfer : 31.25 Kbps to 1 Mbps (Using internal shift clock)
Transmission format : Selectable LSB-first or MSB-first
Number of common outputs : 4
Number of segment outputs : 32 LCD controller/driver
Number of power supply pins for LCD drive : 4
LCD display memory : 16 bytes
Divider resistor for LCD drive : Internal
*1 : As for the necessity of a DIP switch setting (S2) when using the emulation pod (MB2145-507) .
Refer to the hardware manual for the emulation pod (MB2145-507) fomr details.
*2 : Take note of the maximum operating frequency and A/D con verter precision restrictions when operating at 3.0 V
to 3.6 V. See the “Electrical Characteristics” section for details.
5
MB90520A/520B Series
PACKAGES AND CORRESPONDING PRODUCTS
Package MB90522A MB90523A MB90522B MB90523B MB90F523B MB90V520A
FPT-120P-M05
(LQFP)
×
FPT-120P-M13
(QFP)
PGA-256C-A01
(PGA)
: Available, : Not available
Note : See the “■ PACKAGE DIMENSIONS” section for more details.
ЧЧЧЧЧ
×
×
6
PIN ASSIGNMENT
MB90520A/520B Series
(TOP VIEW)
P31/CKOT
P32/OUT0 P33/OUT1 P34/OUT2 P35/OUT3
P36/PG00 P37/PG01
CC
V P40/PG10 P41/PG11
P42/SIN0 P43/SOT0 P44/SCK0
P45/SIN1 P46/SOT1 P47/SCK1
SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6
SEG7 PA0/SEG8 PA1/SEG9
PA2/SEG10 PA3/SEG11 PA4/SEG12 PA5/SEG13
P30
VSSP27/ADTG
P26/ZIN0/INT7
P25/BIN0
P24/AIN0
P23/IC11
P22/IC10
P21/IC01
P20/IC00
P17/WI7
P16/WI6
P15/WI5
P14/WI4
P13/WI3
P12/WI2
P11/WI1
P10/WI0
P07
P06/INT6
P05/INT5
P04/INT4
P03/INT3
P02/INT2
P01/INT1
120
119
118
117
116
115
114
113
112
111
110
109
108
107
106
105
104
103
102
101
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
3132333435363738394041424344454647484950515253545556575859
1009998979695949392
P00/INT0
VCCX1X0V
SS
91 90
89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
60
RST MD0 MD1 MD2 HST V3 V2 V1 V0 P97/SEG31 P96/SEG30 P95/SEG29 P94/SEG28 P93/SEG27 P92/SEG26 P91/SEG25 X0A X1A P90/SEG24 P87/SEG23 P86/SEG22 P85/SEG21 P84/SEG20 P83/SEG19 P82/SEG18 P81/SEG17 P80/SEG16 V
SS
P77/COM3 P76/COM2
PA6/SEG14
PA7/SEG15
SS
V
C
P50/SIN2/AIN1
P51/SOT2/BIN1
P52/SCK2/ZIN1
CC
DV
CC
DVSS
AV
AVRL
AVRH
P53/DA0
P54/DA1
(FPT-120P-M05) (FPT-120P-M13)
SS
AV
P60/AN0
P61/AN1
P62/AN2
P63/AN3
P64/AN4
P65/AN5
P66/AN6
P67/AN7
CC
V
P70/TI0/OUT4
P71/TO0/OUT5
P72/TI1/OUT6
P73/TO1/OUT7
P74/COM0
P75/COM1
7
MB90520A/520B Series
PIN DESCRIPTIONS
Pin No.
*1
LQFP-120
QFP-120
92, 93 X0, X1 A Oscillator pin 74, 73 X0A, X1A B Sub-oscillator pin
89 to 87
90 RST 86 HST
95 to 101
102 P07 D
103 to 110
111, 112,
113, 114
115
116
117
Pin Name
*2
MD0 to
MD2
P00 to
P06
INT0 to
INT6
P10 to
P17
WI0 to
WI7
P20, P21,
P22, P23
IC00, IC01,
IC10, IC11
P24
AIN0
P25
BIN0
P26 ZIN0 INT7 Event input pin for ch.7 of the DTP/external interrupt circuit
Circuit
Type
Input pins for setting the operation mode.
C
Connect directly to V C External reset input pin C Hardware standby input pin
General-purpose I/O ports
The settings in the pull-up resistor setup register (RDR0) are enabled
when ports are set as inputs. D
The RDR0 settings are ignored when ports are set as outputs.
Event input pins for ch.0 to ch.6 of the DTP/external interrupt circuit
General-purpose I/O port
The settings in the pull-up resistor setup register (RDR0) are enabled when
ports are set as inputs.
The RDR0 settings are ignored when ports are set as outputs.
General-purpose I/O ports
The settings in the pull-up resistor setup register (RDR1) are enabled when
ports are set as inputs. D
The RDR1 settings are ignored when ports are set as outputs.
Event input pins for the wakeup interrupts.
General-purpose I/O ports
Trigger input pins for input capture units (ICU) 0 and 1.
E
Input operates continuously when channels 0 and 1 of input capture units
(ICU) 0 and 1 are operating. Accordingly, output to the pins from other func-
tions that share this pin must be suspended unless performed intentionally.
General-purpose I/O port E
Also can be used as the count clock A input to 8/16-bit up/down counter/
timer 0.
General-purpose I/O port E
Also can be used as the count clock B input to 8/16-bit up/down counter/
timer 0.
General-purpose I/O port
Also can be used as the control clock Z input to 8/16-bit up/down counter/
E
timer 0.
Function
CC or VSS.
*1 : FPT-120P-M05 *2 : FPT-120P-M13
8
(Continued)
MB90520A/520B Series
Pin No.
*1
LQFP-120
QFP-120
118
120 P30 E General-purpose I/O port
1
2
3
4
Pin Name
*2
P27
ADTG
P31
CKOT
P32
OUT0
P33
OUT1
P34
OUT2
Circuit
Type
E
E
E
E
E
General-purpose I/O port External trigger input to the 8/10-bit A/D converter
Input operates continuously when the 8/10-bit A/D converter is performing input. Accordingly, output to the pin from other functions that share this pin must be suspended unless performed intentionally.
General-purpose I/O port Output pin for clock monitor function
The clock monitor is output when clock monitor output is enabled. General-purpose I/O port
Only available when waveform output from output compare 0 is disabled. Event output pin for ch.0 of output compare unit 0 (OCU)
Only available when event output is enabled for output compare unit 0. General-purpose I/O port
Only available when waveform output from output compare 1 is disabled. Event output pin for ch.1 of output compare unit 0 (OCU)
Only available when event output is enabled for output compare unit 0. General-purpose I/O port
Only available when waveform output from output compare 2 is disabled. Event output pin for ch.2 of output compare unit 0 (OCU)
Only available when event output is enabled for output compare unit 0.
Function
5
6
7
*1 : FPT-120P-M05 *2 : FPT-120P-M13
P35
OUT3
P36
PG00
P37
PG01
General-purpose I/O port Only available when waveform output from output compare 3 is disabled.
E
Event output pin for ch.3 of output compare unit 0 (OCU) Only available when event output is enabled for output compare unit 0.
General-purpose I/O port Only available when waveform output from PG00 is disabled.
E
Output pin for 8/16-bit PPG timer 0 Only available when waveform output is enabled for PG00.
General-purpose I/O port Only available when waveform output from PG01 is disabled.
E
Output pin for 8/16-bit PPG timer 0 Only available when waveform output is enabled for PG01.
(Continued)
9
MB90520A/520B Series
Pin No.
LQFP-120
QFP-120
9, 10
11
12
*1
*2
Pin Name
P40, P41
PG10,
PG11
P42
SIN0
P43
Circuit
Type
D
D
D
Function
General-purpose I/O ports Only available when waveform outputs from PG10 and PG11 are disabled. The settings in the pull-up resistor setup register (RDR4) are enabled when ports are set as inputs. The RDR4 settings are ignored when ports are set as outputs.
Output pins for 8/16-bit PPG timer 1 Only available when waveform output is enabled for PG10 and PG11.
General-purpose I/O port The settings in the pull-up resistor setup register (RDR4) are enabled when ports are set as inputs. The RDR4 settings are ignored when ports are set as outputs.
UART (SCI) serial data input pin Input operates continuously when the UART is performing input. Accordingly, output to the pin from other functions that share this pin must be suspended unless performed intentionally.
General-purpose I/O port The settings in the pull-up resistor setup register (RDR4) are enabled when ports are set as inputs. The RDR4 settings are ignored when ports are set as outputs.
13
14
15
SOT0
P44
SCK0
P45
SIN1
P46
SOT1
UART (SCI) serial data output pin Only available when serial data output is enabled for the UART (SCI) .
General-purpose I/O port The settings in the pull-up resistor setup register (RDR4) are enabled when ports are set as inputs. The RDR4 settings are ignored when ports
D
are set as outputs. UART (SCI) serial clock input/output pin
Only available when serial clock output is enabled for the UART (SCI) . General-purpose I/O port
The settings in the pull-up resistor setup register (RDR4) are enabled when ports set as inputs. The RDR4 settings are ignored when ports set are as outputs.
D
Data input pin for extended I/O serial interface 1 Input operates continuously when the performing serial input. Accordingly, output to the pin from other functions that share this pin must be suspended unless performed intentionally.
General-purpose I/O port The settings in the pull-up resistor setup register (RDR4) are enabled when ports set as inputs. The RDR4 settings are ignored when ports are
D
set as outputs. Data output pin for extended I/O serial interface 1
Only available when serial data output is enabled for SOT1.
*1 : FPT-120P-M05 *2 : FPT-120P-M13
10
(Continued)
MB90520A/520B Series
Pin No.
LQFP-120
QFP-120
16
35
36
*1
*2
Pin Name
P47
SCK1
P50
SIN2
AIN1
P51
SOT2
BIN1
Circuit
Type
D
E
E
Function
General-purpose I/O port The settings in the pull-up resistor setup register (RDR4) are enabled when ports are set as inputs. The RDR4 settings are ignored when ports are set as outputs.
Serial clock input/output pin for extended I/O serial interface 1 Only available when serial clock output is enabled for SCK1.
General-purpose I/O port Data input pin for extended I/O serial interface 2
Input operates continuously when the performing serial input. Accordingly, output to the pin from other functions that share this pin must be suspended unless performed intentionally.
Also can be used as the count clock A input to 8/16-bit up/down counter/ timer 1.
General-purpose I/O port Data output pin for extended I/O serial interface 2
Only available when serial data output is enabled for SOT2. Also can be used as the count clock B input to 8/16-bit up/down counter/
timer 1.
37
40, 41
46 to 53
55, 57
P52
SCK2
ZIN1
P53, P54
DA0, DA1 Analog output pins for ch.0 and ch.1 of the 8-bit D/A converter
P60 to P67
AN0 to
AN7
P70, P72
TI0, TI1
OUT4,
OUT6
General-purpose I/O port Serial clock input/output pin for extended I/O serial interface 2
E
Only available when serial clock output is enabled for SCK2. Also can be used as the control clock Z input to 8/16-bit up/down counter/
timer 1. General-purpose I/O ports
I
General-purpose I/O ports Port input is enabled when the analog input enable register (ADER) is set to the ports.
K
Analog inputs for the 8/10-bit A/D converter Analog input is enabled when the analog input enable register (ADER) is set.
General-purpose I/O ports Event input pins for 16-bit reload timers 0 and 1
Input operates continuously when 16-bit reload timers 0 and 1 input an
E
external clock. Accordingly, output to these pins from other functions that share the pins must be suspended unless performed intentionally.
Event output pins for ch. 4 and ch. 6 of output compare unit 1 (OCU) Only available when event output from output compare 1 is enabled.
*1 : FPT-120P-M05 *2 : FPT-120P-M13
(Continued)
11
MB90520A/520B Series
Pin No.
LQFP-120
QFP-120
56, 58
59 to 62
64 to 71
*1
*2
Pin Name
P71, P73
TO0, TO1
OUT5,
OUT7
P74 to P77
COM0 to
COM3
P80 to P87
SEG16 to
SEG23
Circuit
Type
E
L
L
Function
General-purpose I/O ports Only available when event outputs from 16-bit reload timers 0 and 1 are disabled.
Output pins for 16-bit reload timers 0 and 1. Only available when output is enabled for 16-bit reload timers 0 and 1.
Event output pins for ch. 5 and ch. 7 of output compare unit 1 (OCU) Only available when event output from output compare 1 is enabled.
General-purpose I/O ports Only available when the LCD controller/driver control register is set to the ports.
Common pins for the LCD controller/driver Only available when the LCD controller/driver control register is set to the common outputs.
General-purpose I/O ports Only available when the LCD controller/driver control register is set to the ports.
LCD segment output pins for the LCD controller/driver Only available when the LCD controller/driver control register is set to the segment outputs.
72,
P91 to P97
75 to 81
SEG25 to
17 to 24
PA0 to PA7
25 to 32
*1 : FPT-120P-M05 *2 : FPT-120P-M13
P90,
SEG24,
SEG31
SEG0 to
SEG7
SEG8 to
SEG15
General-purpose I/O ports (Support up to I
OL = 10 mA)
Only available when the LCD controller/driver control register is set to the ports.
M
LCD segment output pins for the LCD controller/driver Only available when the LCD controller/driver control register is set to the segment outputs.
F LCD segment 00 to 07 pins for the LCD controller/driver
General-purpose I/O ports Only available when the LCD controller/driver control register is set up to the ports.
L
LCD segment 08 to 15 pins for the LCD controller/driver Only available when the LCD controller/driver control register is set to the segment outputs.
(Continued)
12
MB90520A/520B Series
(Continued)
Pin No.
Pin Name
LQFP-120
QFP-120
*1
*2
34 C G
82 to 85 V0 to V3 N Power supply input pins for the LCD controller/driver
Circuit
Type
Function
Capacitor connection pin for stabilizing power supply Connect an external ceramic capacitor of approximately 0.1 µF. If operat­ing at 3.3 V or lower, connect to V
CC.
8, 54, 94 V
33, 63, 91, 119 V
42 AV
43 AVRH J
44 AVRL H “L” reference voltage for the A/D converter 45 AV
38 DV
39 DV
*1 : FPT-120P-M05 *2 : FPT-120P-M13
CC
SS
Power supply
Power supply
Power supply input pins for the digital circuit
GND level power supply input pins for the digital circuit Power supply input for the analog circuit
CC H
Ensure that a voltage greater than AVCC is applied to VCC before turning the analog power supply on or off.
“H” reference voltage for the A/D converter Ensure that a voltage greater than AVRH is applied to AV the power supply to this pin on or off.
SS H GND level power supply input pin for the analog circuit CC H
SS H
“H” reference voltage for the D/A converter Ensure that this voltage does not exceed VCC.
“L” reference voltage for the D/A converter Apply the same voltage level as VSS.
CC before turning
13
MB90520A/520B Series
I/O CIRCUIT TYPE
Type Circuit Remarks
• High-speed oscillation feedback
X0
Nch
Pch
X1
A
Pch Nch
Standby control signal
Clock input
resistor Approx. 1 M
X0A
Nch
Pch
X1A
B
Pch
Nch
Standby control signal
Clock input
resistor Approx. 10 M
• Hysteresis input
• Low-speed oscillation feedback
C
R
Hysteresis input
• Selectable pull-up option
• CMOS hysteresis input
• CMOS level output
• With standby control
Pch
Pull-up connect/
CC
V
disconnect selection signal
Pch
Digital output
D
Digital output
Hysteresis input
I
OL = 4 mA
Nch
V
R
SS
Standby control
14
CC
V
Pch
E
R
IOL = 4 mA
Nch
VSS
Standby control
Digital output
Digital output
Hysteresis input
• CMOS level output
• With standby control
(Continued)
• CMOS hysteresis input
MB90520A/520B Series
Type Circuit Remarks
• Segment output pins
VCC
F
R
Nch
VSS
• Capacitor connection pin
CC
V
Pch
(This is an N.C. pin on the MB90522A and MB90523A.)
G
Nch
VSS
• Analog power supply input
CC
V
Pch
H
VSS
AVP
Nch
protection circuit
• CMOS hysteresis input
CC
V
Pch
Digital output
• CMOS level output (CMOS output is not availab le when analog output is operating.)
Digital output
I
I
OL = 4 mA
R
Nch
VSS
Hysteresis input
• Also used as analog output (Analog output has priority)
• With standby control
Standby control Analog output
• A/D converter ref+ power supply
VCC
Pch
J
Nch
VSS
Pch Nch
ANE AVP ANE
input pin (Incorporates power supply protection circuit.)
(Continued)
15
MB90520A/520B Series
(Continued)
Type Circuit Remarks
• CMOS hysteresis input
CC
V
Pch
Digital output
Digital output
K
IOL = 4 mA
R
L
IOL = 4 mA
R
Nch
VSS
Standby control Analog input
CC
V
Pch
Digital output
Digital output
Nch
V
SS
Hysteresis input
Hysteresis input
• CMOS level output
• Also used as analog input.
• With standby control
• CMOS hysteresis input
• CMOS level output
• Also used as segment output pin.
• With standby control (only available when segment output is not operating.)
M
Standby control Segment output/common output
• CMOS hysteresis input
VCC
Pch
• N-ch open-drain output
• Also used as segment output pin.
• With standby control (only available when segment output is not operaing.)
IOL = 10 mA
Nch
R
VSS
Standby control Segment output
Open drain
Hysteresis input
• Reference voltage pin for LCD
CC
V
Pch
R
controller
N
Nch
IOL = 10 mA
VSS
16
MB90520A/520B Series
HANDLING DEVICES
Take note of the following points when handling devices :
• Do not exceed maximum rated voltage (to prevent latch-up)
• Supply voltage stability
• Power-on precautions
• Power supply pins
• Crystal oscillator circuit
• Notes on using an external clock
• Precautions when not using sub-clock mode
• Treatment of unused pins
• Treatment of N.C. pins
• Treatment of pins when A/D converter is not used
• Sequence for connecting and disconnecting the A/D converter power supply and analog input pins
• Shared use of general-purpose I/O ports and LCD controller/driver SEG/COM pins
• Conditions when output from ports 0 and 1 is undefined
• Initialization
• Notes on using the DIV A, Ri and DIVW A, RWi instructions
• Notes on using REALOS
Device Handling Precautions
Do not exceed maximum rated voltage (to prevent latch-up
Latch-up occurs in CMOS ICs if a voltage greater than V
CC or less than VSS is applied to an input or output pin
)
(other than a high or medium withstand voltage pin) or if the voltage applied between VCC and VSS exceeds the rating. If latch-up occurs, the power supply current increases rapidly resulting in thermal damage to circuit elements. Therefore, ensure that maximum ratings are not exceeded in circuit operation. Similarly, when turning the analog power supply on or off, ensure the analog power supply voltages (AV AVRH, DVCC) and analog input voltages do not exceed the digital voltage (VCC) . Also ensure that the voltages applied to the LCD power supply pins (V3 to V0) do not e xceed the power supply voltage (V
Supply voltage stability
CC) .
Rapid changes in supply voltage may cause the device to misoperate, even if the voltage remains within the allowed operating range. Accordingly, ensure that the V
CC supply is stable.
The standard for power supply voltage stability is a peak-to-peak VCC ripple voltage at the mains supply frequency (50 to 60 Hz) of 10% or less of VCC and a transient voltage change rate of 0.1 V/ms or less when turning the power supply on or off.
Power-on precautions
To prev ent misoper ation of the internal regulator circuit at power-on, ensure that the power supply rising time (0.2 V to 2.7 V) is at least 50 µs.
Power supply pins
When multiple V
CC and VSS pins are provided, connect all VCC and VSS pins to power supply or ground e xternally .
Although pins at the same potential are connected together in the internal device design so as to prevent misoperation such as latch-up, connecting all V
CC and VSS pins appropriately minimizes unwanted radiation,
prevents misoperation of strobe signals due to increases in the ground level, and keeps the overall output current rating. Also, ensure that the impedance of the V
CC and VSS connections to the power supply are as low as possible.
CC,
17
MB90520A/520B Series
Connection of a bypass capacitor of approximately 0.1 µF between V power supply noise. Connect the capacitor close to the V
Crystal oscillator circuit
CC and VSS pins.
CC and VSS is recommended to prevent
Noise on the X0 and X1 pins can be a cause of device misoperation. Place the X0 and X1 pins, crystal oscillator (or ceramic oscillator) , and bypass capacitor to ground as close together as possible . Also, design the circuit board so that the X0 and X1 pin wiring does not cross other wiring. Surrounding the X0/X1 and X0A/X1A pins with ground in the printed circuit board design is recommended to ensure stable operation.
Notes on using an external clock
When using an external clock, drive the X0 pin only and leave the X1 pin open. The figure below shows an example of how to use an external clock.
Example of how to use an external clock
X0
Open circuit
Precautions when not using sub-clock mode
X1
MB90520A/520B series
Connect an oscillator to X0A and X1A, even if not using sub-clock mode.
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.
Treatment of N.C. pins
Always leave N.C. (non connect) pins open circuit.
Treatment of pins when A/D converter not used
When not using the A/D converter and D/A converter, always connect AV AVRL = V
Sequence for connecting and disconnecting the A/D converter power supply and analog input pins
SS.
Do not apply voltage to the A/D and D/A converter power supply (AV inputs (AN0 to AN7) until the digital power supply (V
CC) is turned on.
CC = DVCC = AVRH = VCC and AVSS =
CC, AVRH, AVRL, DVCC, DVSS) or analog
When turning the device off, turn off the digital power supply after disconnecting the A/D converter power supply and analog inputs. When turning the power on or off, ensure that AVRH and DVCC do not e xceed AVCC (turning the analog and digital power supplies on and off simultaneously is OK) .
Shared use of general-purpose I/O ports and LCD controller/driver SEG/COM pins
The SEG08 to SEG31 and COM0 to COM3 pins are shared with general-purpose I/O por ts. The electrical ratings for SEG08 to SEG23 and COM0 to COM3 are the same as f or CMOS outputs and the electrical ratings for SEG24 to SEG31 are the same as for N-ch open-drain ports.
18
MB90520A/520B Series
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 stabili­zation delay time controlled by the regulator circuit (during the power-on reset) . The figure below shows the timing. 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.
Timing chart for undefined output from ports 0 and 1
*2
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
Oscillation stabilization delay time
Regulator circuit stabilization delay time
Undefined output time
*1
*1 : Regulator circuit oscillation stabilization delay time : 217/Oscillation clock frequency
(approx. 8.19 ms for a 16 MHz oscillation clock frequency)
*2 : Oscillation stabilization delay time : 2
18
/Oscillation clock frequency
(approx. 16.38 ms for a 16 MHz oscillation clock frequency)
Note : See the “ PRODUCT LINEUP” section f or details of which MB90520A/520B series products hav e an internal
regulator circuit.
Initialization
The device contains internal registers that are only initialized by a po wer-on reset. To initialize these registers, restart the power supply.
Notes on using the DIV A, Ri and DIVW A, RWi instructions
Set the corresponding bank registers (DTB, ADB, USB, SSB) to “00
H” when using the signed division instruc-
tions “DIV A, Ri” and “DIVW A, RWi”. If the corresponding bank registers (DTB, ADB, USB, SSB) are set to other than “00
H”, the remainder value
produced by the instruction is not stored in the instruction operand register.
Notes on using REALOS
The extended intelligent I/O service (EI
2
OS) cannot be used when using REALOS.
Caution on Operations during PLL Clock Mode
If the PLL clock mode is selected, the microcontroller attempt to be working with the self-oscillating circuit ev en when there is no external oscillator or external clock input is stopped. Performance of this operation, however, cannot be guaranteed.
19
MB90520A/520B Series
• BLOCK DIAGRAM
F2MC-16LX
CPU
X0, X1 X0A, X1A
RST HST
P07
P00/INT0 to P06/INT6
P24/AIN0 P25/BIN0 P26/ZIN0/INT7
P20/IC00 P21/IC01 P22/IC10 P23/IC11
P32/OUT0 P33/OUT1 P34/OUT2 P35/OUT3
P31/CKOT P30
P36/PG00 P37/PG01
P40/PG10 P41/PG11
P42/SIN0 P43/SOT0 P44/SCK0
P45/SIN1 P46/SOT1 P47/SCK1
Main clock
Sub-clock
7
Clock controller
(Includes
timebase timer)
Port 0
7
DTP/
external
interrupt
circuit
Port 2
8/16-bit
3
up/down
counter/
timer 0, 1
16-bit
I/O timer 1
Input
2
capture 0
(ICU)
16-bit
freerun
timer 0 Output
4
compare 0
(OCU)
Clock
output
Port 3
2
8/16-bit
PPG
2
timer 0, 1
UART
(SCI)
SIO ch.1
Port 4
*1
*2
*2
Ports 8, 9*3, A
LCD
controller/
driver
Port 7
16-bit
reload
timer 0
16-bit
reload
timer 1
16-bit
I/O timer 2
Output
compare 1
(OCU)
16-bit
freerun
timer 1
Internal data bus
Port 6
8/10-bit
A/D
converter
Port 2
Interrupt controller
Port 5
SIO ch.2
24
8
P80/SEG16 to P87/SEG23
8
P90/SEG24 to P97/SEG31
8
PA0/SEG08 to PA7/SEG15
8
SEG00 to SEG07
4
4
4
8
V0 to V3
4
P74/COM0 to P77/COM3
P70/TI0/OUT4 P71/TO0/OUT5 P72/TI1/OUT6 P73/TO1/OUT7
8
P60/AN0 to P67/AN7 AVCC
AVSS AVRH AVRL
P27/ADTG
P50/SIN2/AIN1 P51/SOT2/BIN1 P52/SCK2/ZIN1
*2
P10/WI0 to P17/WI7
Other pins
MD0 to MD2, C,
V
CC, VSS
Port 1
88
Wakeup
interrupts
8-bit
D/A
converter
× 2 ch
RAM
ROM
2
P53/DA0 P54/DA1
DVCC
DVSS
*1 : The clock control circuit includes the watchdog timer and timebase timer low power consumption control circuits. *2 : Incorporates a pull-up register setting register. CMOS level input and output. *3 : As this port shares pins with the LCD output, the port uses N-ch open-drain circuits.
20
MEMORY MAP
MB90520A/520B Series
Single chip mode with mirror function
FFFFFFH
ROM area
Address #1
Part No.
FE0000
010000H
Address #2
004000H 002000H
Address #3
000100H
0000C0H
000000H
Address #1
H
ROM area
(image of FF bank)
Registers
RAM
Peripherals
*
Address #2*Address #3
MB90522A/B FF0000H 004000H 001100H MB90523A/B FE0000H 004000H 001100H
MB90F523B FE0000H 004000H 001100H MB90V520A 001900H
: Internal memory access : Access prohibited
*
* : The values of addresses #1, #2, and #3 vary by product.
Note : The upper part of 00 bank contains a mirror of the ROM data in FF bank. This is called the mirror ROM
function and enables use of the C compiler’ s small memory model. As the lower 16 bits of the FF bank and 00 bank addresses are the same, tables located in ROM can be referenced without needing to declare far pointers. For e xample, accessing 00C000
H actually accesses the contents of ROM at FFC000H. Note that, as the FF
bank ROM area exceeds 48 KBytes, the entire R OM image cannot be mirrored in 00 bank. Accordingly, as ROM data from FF4000 the range FF4000
H to FFFFFFH is mirrored in 004000H to 00FFFFH, always locate R OM data tables in
H to FFFFFFH.
21
MB90520A/520B Series
I/O MAP
Abbreviated
Address
Register
Name
Register Name Peripheral Name Initial Value
000000
H PDR0 Port 0 data register Port 0 XXXXXXXXB
000001H PDR1 Port 1 data register Port 1 XXXXXXXXB 000002H PDR2 Port 2 data register Port 2 XXXXXXXXB 000003H PDR3 Port 3 data register Port 3 XXXXXXXXB 000004H PDR4 Port 4 data register Port 4 XXXXXXXXB 000005H PDR5 Port 5 data register Port 5 XXXXXXXXB 000006H PDR6 Port 6 data register Port 6 XXXXXXXXB 000007H PDR7 Port 7 data register Port 7 XXXXXXXXB 000008H PDR8 Port 8 data register Port 8 XXXXXXXXB 000009H PDR9 Port 9 data register Port 9 XXXXXXXXB 00000AH PDRA Port A data register Port A XXXXXXXXB
00000BH LCDCMR Port 7/COM pin selection register 00000CH
LCD controller/driver
Port 7,
XXXX 0 0 0 0B
XXXXXXXX
OCP4 OCU compare register ch.4 16-bit I/O timer
00000DH XXXXXXXXB 00000EH (Access prohibited) 00000F
H EIFR Wakeup interrupt flag register Wakeup interrupts XXXXXXX0B
000010H DDR0 Port 0 direction register Port 0 0 0 0 0 0 0 0 0B
B
000011H DDR1 Port 1 direction register Port 1 0 0 0 0 0 0 0 0B 000012H DDR2 Port 2 direction register Port 2 0 0 0 0 0 0 0 0B 000013H DDR3 Port 3 direction register Port 3 0 0 0 0 0 0 0 0B 000014H DDR4 Port 4 direction register Port 4 0 0 0 0 0 0 0 0B 000015H DDR5 Port 5 direction register Port 5 XXX 0 0 0 0 0B 000016H DDR6 Port 6 direction register Port 6 0 0 0 0 0 0 0 0B 000017H DDR7 Port 7 direction register Port 7 0 0 0 0 0 0 0 0B 000018H DDR8 Port 8 direction register Port 8 0 0 0 0 0 0 0 0B 000019H DDR9 Port 9 direction register Port 9 0 0 0 0 0 0 0 0B 00001AH DDRA Port A direction register Port A 0 0 0 0 0 0 0 0B 00001BH ADER Analog input enable register Port 6, A/D converter 1 1 1 1 1 1 1 1B 00001CH
XXXXXXXX
OCP5 OCU compare register ch.5 16-bit I/O timer
00001DH XXXXXXXXB 00001EH (Access prohibited) 00001FH EICR Wakeup interrupt enable register Wakeup interrupts 0 0 0 0 0 0 0 0B
(Continued)
B
22
Address
Abbreviated
Register
Name
MB90520A/520B Series
Register Name Peripheral Name Initial Value
000020
H SMR Serial mode register
0 0 0 0 0 0 0 0B
000021H SCR Serial control register 0 0 0 0 0 1 0 0B
UART
000022H
SIDR/
SODR
Serial input data register/ Serial output data register
(SCI)
XXXXXXXXB
000023H SSR Serial status register 0 0 0 0 1 X 0 0B 000024H 000025H 0 0 0 0 0 0 1 0B
SMCS1 Serial mode control status register 1
Extended I/O serial
interface 1
XXXX
0 0 0 0B
000026H SDR1 Serial data register 1 XXXXXXXXB 000027H CDCR
Communication prescaler control register
000028H
SMCS2 Serial mode control status register 2
000029H 0 0 0 0 0 0 1 0B
Communication prescaler
register
Extended I/O serial
interface 2
0 XXX 1 1 1 1B XXXX
0 0 0 0B
00002AH SDR2 Serial data register 2 XXXXXXXXB 00002BH (Access prohibited) 00002C
H
0
0 0 0 XX 0 0B
OCS45 OCU control status register ch.45
00002DH XXX 0 0 0 0 0B
16-bit I/O timer
00002EH
0 0 0 XX 0 0B
0
OCS67 OCU control status register ch.67
00002FH XXX 0 0 0 0 0B 000030H ENIR DTP/interrupt enable register 000031H EIRR DTP/interrupt request register XXXXXXXXB 000032H
DTP /external interrupt
circuit
0 0 0 0 0 0 0 0B
0
0 0 0 0 0 0 0B
ELVR Request level setting register
000033H 0 0 0 0 0 0 0 0B 000034H
XXXXXXXX
OCP6 OCU compare register ch.6 16-bit I/O timer
000035H XXXXXXXXB 000036H
0
0 0 0 0 0 0 0B
ADCS A/D control status register
000037H 0 0 0 0 0 0 0 0B
8/10-bit A/D converter
000038H
XXXXXXXX
ADCR A/D data register
000039H 0 0 0 0 1 XXXB 00003AH DADR0 D/A converter data register ch.0
XXXXXXXXB
00003BH DADR1 D/A converter data register ch.1 XXXXXXXXB
8-bit D/A converter
00003CH DACR0 D/A control register 0 XXXXXXX 0B 00003DH DACR1 D/A control register 1 XXXXXXX 0B 00003EH CLKR Clock output enable register Clock monitor function XXXX 0 0 0 0B
(Continued)
B
B
23
MB90520A/520B Series
Abbreviated
Address
Register
Name
Register Name Peripheral Name Initial Value
00003F 000040
H (Access prohibited) H PRLL0 PPG0 reload register L
XXXXXXXXB 000041H PRLH0 PPG0 reload register H XXXXXXXXB 000042H PRLL1 PPG1 reload register L XXXXXXXXB 000043H PRLH1 PPG1 reload register H XXXXXXXXB
8/16-bit PPG timer 0, 1 000044H PPGC0 PPG0 operation mode control register 0 X 0 0 0 XX 1B 000045H PPGC1 PPG1 operation mode control register 0 X 0 0 0 0 0 1B 000046H PPGOE PPG0, 1 output control register 0 0 0 0 0 0 0 0B 000047H (Access prohibited) 000048
H
0
0 0 0 0 0 0 0B
TMCSR0 Timer control status register ch.0
000049H XXXX 0 0 0 0B
16-bit reload timer 0
00004AH 00004BH XXXXXXXXB
TMR0/
TMRLR0
16-bit timer register ch.0/ 16-bit reload register ch.0
00004CH
XXXXXXXX
0
0 0 0 0 0 0 0B
TMCSR1 Timer control status register ch.1
00004DH XXXX 0 0 0 0B
16-bit reload timer 1
00004EH 00004FH XXXXXXXXB
TMR1/
TMRLR1
16-bit timer register ch.1/ 16-bit reload register ch.1
000050H
XXXXXXXX
XXXXXXXX
IPCP0 ICU data register ch.0
000051H XXXXXXXXB
B
B
B
000052H
16-bit I/O timer
XXXXXXXX
IPCP1 ICU data register ch.1
000053H XXXXXXXXB 000054H ICS01 ICU control status register 0 0 0 0 0 0 0 0B 000055H (Access prohibited) 000056
H
0 0 0 0 0 0 0B
0
TCDT0 Freerun timer data register 0
000057H 0 0 0 0 0 0 0 0B
16-bit I/O timer 000058H TCCS0 Freerun timer control status register 0 0 0 0 0 0 0 0 0B 000059H (Access prohibited) 00005AH
XXXXXXXX
OCP0 OCU compare register ch.0
00005BH XXXXXXXXB 00005CH
OCP1 OCU compare register ch.1
16-bit I/O timer
XXXXXXXX 00005DH XXXXXXXXB 00005EH
XXXXXXXX
OCP2 OCU compare register ch.2
00005FH XXXXXXXXB
24
B
B
B
B
(Continued)
Address
Abbreviated
Register
Name
MB90520A/520B Series
Register Name Peripheral Name Initial Value
000060
H
XXXXXXXX
OCP3 OCU compare register ch.3
000061H XXXXXXXXB 000062H
OCS01 OCU control status register ch.0, ch.1
16-bit I/O timer
0
0 0 0 XX 0 0B
000063H XXX 0 0 0 0 0B 000064H
0 0 0 XX 0 0B
0
OCS23 OCU control status register ch.2, ch.3
000065H XXX 0 0 0 0 0B 000066H
0 0 0 0 0 0 0B
0
TCDT1 Freerun timer data register 1
000067H 0 0 0 0 0 0 0 0B
16-bit I/O timer 000068H TCCS1 Freerun timer control status register 1 0 0 0 0 0 0 0 0B 000069H (Access prohibited) 00006A
H LCR0 LCDC control register 0
0 0 0 1 0 0 0 0B
LCD controller/driver
00006BH LCR1 LCDC control register 1 0 0 0 0 0 0 0 0B 00006CH
XXXXXXXX
OCP7 OCU compare register ch.7 16-bit I/O timer
00006DH XXXXXXXXB 00006EH (Access prohibited)
00006F
H ROMM ROM mirror function selection register
ROM mirror function
selection module
XXXXXXX1B
000070H
to
00007F
H
VRAM Data memory for LCD display LCD controller/driver XXXXXXXXB
B
B
000080H UDCR0 Up/down count register 0
0 0 0 0 0 0 0 0B 000081H UDCR1 Up/down count register 1 0 0 0 0 0 0 0 0B 000082H RCR0 Reload compare register 0 0 0 0 0 0 0 0 0B
8/16-bit up/down
counter/timer 0, 1
000083H RCR1 Reload compare register 1 0 0 0 0 0 0 0 0B 000084H CSR0 Counter status register 0 0 0 0 0 0 0 0 0B 000085H (Reserved) 000086H
CCR0 Counter control register 0
000087H 0 0 0 0 0 0 0 0B
*3
8/16-bit up/down
counter/timer 0, 1
X
0 0 0 0 0 0 0B
000088H CSR1 Counter status register 1 0 0 0 0 0 0 0 0B 000089H (Reserved) 00008AH
CCR1 Counter control register 1
00008BH X 0 0 0 0 0 0 0B 00008CH RDR0
00008DH RDR1
Port 0 input pull-up resistor setup register
Port 1 input pull-up resistor setup register
*3
8/16-bit up/down
counter/timer 0, 1
X
0 0 0 0 0 0 0B
Port 0 0 0 0 0 0 0 0 0B
Port 1 0 0 0 0 0 0 0 0B
(Continued)
25
MB90520A/520B Series
Abbreviated
Address
Register
Name
Register Name Peripheral Name Initial Value
00008E
H RDR4
00008FH
to
00009D
H
00009EH PACSR Address detection control register
00009FH DIRR
0000A0H LPMCR
Port 4 input pull-up resistor setup register
(Access prohibited)
(Area reserved for system use)
Delayed interrupt request output/clear register
Low power consumption mode control register
Port 4 0 0 0 0 0 0 0 0B
*4
Address match detection
function
Delayed interrupt
generation module
Low power consumption
0 0 0 0 0 0 0 0B
XXXXXXX 0B
0
0 0 1 1 0 0 0B
(standby) mode
0000A1H CKSCR Clock selection register 1 1 1 1 1 1 0 0B 0000A2H
to
0000A7 0000A8
H
H WDTC Watchdog timer control register Watchdog timer XXXXXXXXB
(Access prohibited)
0000A9H TBTC Timebase timer control register Timebase timer 1 XX 0 0 0 0 0B 0000AAH WTC Clock timer control register Clock timer 1 X 0 0 1 0 0 0B 0000ABH
to
0000AD
H
(Access prohibited)
0000AE
H FMCS Flash memory control status register 1 Mbit flash memory 0 0 0 X 0 0 0 0B
0000AFH (Access prohibited)
0000B0
H ICR00 Interrupt control register 00
0 0 0 0 0 1 1 1B 0000B1H ICR01 Interrupt control register 01 0 0 0 0 0 1 1 1B 0000B2H ICR02 Interrupt control register 02 0 0 0 0 0 1 1 1B 0000B3H ICR03 Interrupt control register 03 0 0 0 0 0 1 1 1B 0000B4H ICR04 Interrupt control register 04 0 0 0 0 0 1 1 1B 0000B5H ICR05 Interrupt control register 05 0 0 0 0 0 1 1 1B 0000B6H ICR06 Interrupt control register 06 0 0 0 0 0 1 1 1B
Interrupt controller
0000B7H ICR07 Interrupt control register 07 0 0 0 0 0 1 1 1B 0000B8H ICR08 Interrupt control register 08 0 0 0 0 0 1 1 1B 0000B9H ICR09 Interrupt control register 09 0 0 0 0 0 1 1 1B
0000BAH ICR10 Interrupt control register 10 0 0 0 0 0 1 1 1B 0000BBH ICR11 Interrupt control register 11 0 0 0 0 0 1 1 1B 0000BCH ICR12 Interrupt control register 12 0 0 0 0 0 1 1 1B 0000BDH ICR13 Interrupt control register 13 0 0 0 0 0 1 1 1B
(Continued)
26
(Continued)
Address
Abbreviated
Register
Name
MB90520A/520B Series
Register Name Peripheral Name Initial Value
0000BE
H ICR14 Interrupt control register 14
0 0 0 0 0 1 1 1B
Interrupt controller
0000BFH ICR15 Interrupt control register 15 0 0 0 0 0 1 1 1B 0000C0H
to
0000FF
(Access prohibited)
H
*1
000100H
to
00####
(RAM area)
H
*2
00####H
to
001FEF
001FF0H
001FF1H
001FF2H
001FF3H
001FF4H
(Reserved area)
H
Detection address setting register 0 (low byte)
PADR0
Detection address setting register 0 (middle byte)
Detection address setting register 0 (high byte)
Detection address setting register 1 (low byte)
PADR1
Detection address setting register 1 (middle byte)
*3
XXXXXXXX
XXXXXXXXB
XXXXXXXXB
Address match
detection function
XXXXXXXX
XXXXXXXXB
B
B
001FF5H
Detection address setting register 1 (high byte)
XXXXXXXXB
001FF6H
to
001FFF
(Reserved area)
H
*3
Initial value notation
0 : Initial value of bit is “0”. 1 : Initial value of bit is “1”.
X : Initial value of bit is undefined.
*1 : Access is prohibited to the address range 0000C0
H to 0000FFH. See the “■ MEMORY MAP” section.
*2 : See the “ MEMORY MAP” section for details of the “ (RAM area) ”. *3 : “ (Reserved areas) ” are addresses used internally by the system and may not be used. *4 : The “ (Area reserved for system use) ” contains setting registers used by the evaluation tools. Notes : LPMCR, CKSCR, and WDTC are initialized by some types of reset and not by others. The initial values
listed are for the case when the registers are initialized.
The boundary address “####
H” between the “ (RAM area) ” and “ (Reserved area) ” differs depending on
the product. See the “ MEMORY MAP” section for details.
OCU compare registers ch.0 to ch.3 use 16-bit freerun timer 0 and OCU compare registers ch.4 to ch.7 use 16-bit freerun timer 1. Note that 16-bit freerun timer 0 is also used by input capture 0 and 1 (ICU) .
27
MB90520A/520B Series
INTERRUPTS, INTERRUPT VECTORS, AND INTERRUPT CONTROL REGISTERS
2
EI
Interrupt
Reset #08 FFFFDC INT 9 instruction #09 FFFFD8 Exception #10 FFFFD4H 
OS
Support
× × ×
8/10-bit A/D converter #11 FFFFD0 Timebase timer #12 FFFFCCH
×
DTP0/DTP1 (external interrupt 0/external interrupt 1)
16-bit freerun timer 0 overflow #14 FFFFC4H
×
Interrupt Vector Interrupt Control Register
Priority
No. Address ICR Address
H High
H 
H
ICR00 0000B0H
#13 FFFFC8H
ICR01 0000B1H
Extended I/O serial interface 1 #15 FFFFC0H Wakeup interrupt #16 FFFFBCH
×
ICR02 0000B2H
Extended I/O serial interface 2 #17 FFFFB8H DTP2/DTP3
(external interrupt 2/external interrupt 3) 8/16-bit PPG timer 0 counter borrow #19 FFFFB0H
×
DTP4/DTP5 (external interrupt 4/external interrupt 5)
#18 FFFFB4H
#20 FFFFACH
ICR03 0000B3H
ICR04 0000B4H
8/16-bit up/down counter/timer 0 compare match
8/16-bit up/down counter/timer 0 overflow, up/down direction change
8/16-bit PPG timer 1 counter borrow #23 FFFFA0H
×
DTP6/DTP7 (external interrupt 6/external interrupt 7)
#21 FFFFA8H
#22 FFFFA4H
#24 FFFF9CH
Output compare 1 (OCU) ch.4, ch.5 match #25 FFFF98H Clock timer #26 FFFF94H
×
Output compare 1 (OCU) ch.6, ch.7 match #27 FFFF90H 16-bit freerun timer 1 overflow #28 FFFF8CH 8/16-bit up/down counter/timer 1
compare match 8/16-bit up/down counter/timer 1
overflow, up/down direction change
×
#29 FFFF88H
#30 FFFF84H
Input capture 0 (ICU) capture #31 FFFF80H Input capture 1 (ICU) capture #32 FFFF7CH Output compare 0 (OCU) ch.0 match #33 FFFF78H Output compare 0 (OCU) ch.1 match #34 FFFF74H
ICR05 0000B5H
ICR06 0000B6H
ICR07 0000B7H
ICR08 0000B8H
ICR09 0000B9H
ICR10 0000BAH
ICR11 0000BBH
28
(Continued)
(Continued)
Interrupt
2
OS
EI
Support
MB90520A/520B Series
Interrupt Vector Interrupt Control Register
Priority
No. Address ICR Address
Output compare 0 (OCU) ch.2 match #35 FFFF70
H
ICR12 0000BCH
Output compare 0 (OCU) ch.3 match #36 FFFF6CH UART (SCI) receive complete #37 FFFF68H
ICR13 0000BDH
16-bit reload timer 0 #38 FFFF64H UART (SCI) send complete #39 FFFF60H
ICR14 0000BEH
16-bit reload timer 1 #40 FFFF5CH Flash memory #41 FFFF58H Delayed interrupt generation module #42 FFFF54H Low
× ×
ICR15 0000BFH
: Supported
×
: Not supported : Supported, includes EI
2
OS stop function
29
MB90520A/520B Series
PERIPHERAL RESOURCES
1. I/O Ports
• The I/O ports can be used as general-purpose I/O ports (parallel I/O ports) . The MB90520A and 520B series have 11 ports (85 pins) . The ports share pins with the inputs and outputs of the peripheral functions.
• The port data registers (PDR) are used to output data to the I/O pins and capture the input signals from the I/O ports. Similarly, the port direction registers (DDR) set the I/O direction (input or output) for each individual port bit.
• The following tables list the I/O ports and peripheral functions with which they share pins.
Pin Name
(Port)
Pin Name (Peripheral) Peripheral Function that Shares Pin
Port 0
Port 1 P10 P17 WI0 − WI7 Wakeup interrupts
Port 2
Port 3
Port 4
Port 5
Port 6 P60 P67 AN0 AN7 8/16-bit A/D converter
P00 P06 INT0 INT6 External interrupts P07 Not shared
P20 P23 IN00 IN11 Input capture (unit 0) P24, P25 AIN0, BIN0 8/16-bit up/down counter/timer 0 P26 ZIN0/INT7 8/16-bit up/down counter/timer 0, external interrupt P30 Not shared P31 CKOT Clock monitor function P32 − P35 OUT0 − OUT3 Output compare (unit 0) P36, P37 PPG00, PPG01 8/16-bit PPG timer 0 P40, P41 PPG10, PPG11 8/16-bit PPG timer 1 P42 P44 SIN0, SOT0, SCK0 UART (SCI) P45 P47 SIN1, SOT1, SCK1 Extended I/O serial interface 0
SIN2/AIN1,
P50 P52
P53, P54 DA0, DA1 8-bit D/A converter
SOT1/BIN1, SCK1/ZIN1
8/16-bit up/down counter/timer 0 Extended I/O serial interface 1
TIN0/OUT4,
Port 7
P70 P73
P74 P77 COM0 COM3 LCD control driver common output Port 8 P80 P87 SEG16 SEG23 LCD control driver segment output Port 9 P90 P97 SEG24 SEG31 LCD control driver segment output
Port A PA0 PA7 SEG8 SEG15 LCD control driver segment output
Notes
• Port 9 contains general-purpose I/O ports with N-ch open-drain output circuits.
• Connect an external pull-up resistor when using port 9 pins as outputs.
• Port 6 shares pins with the analog inputs. When using port 6 as a general-purpose por t, ensure that the corresponding analog input enable register (ADER) bits are set to “0”. ADER is initialized to “FF
30
TOT0/OUT5, TIN1/OUT6, TOT1/OUT7
16-bit reload timers 0, 1 Output compare (unit 1)
H” after a reset.
+ 69 hidden pages