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) .
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.)
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)
P26
ZIN0
INT7Event 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
CExternal reset input pin
CHardware 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
120P30EGeneral-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, DA1Analog 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.
FLCD 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
34CG
82 to 85V0 to V3NPower 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 operating at 3.3 V or lower, connect to V
CC.
8, 54, 94V
33, 63, 91, 119V
42AV
43AVRHJ
44AVRLH“L” reference voltage for the A/D converter
45AV
38DV
39DV
*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
CCH
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.
SSHGND level power supply input pin for the analog circuit
CCH
SSH
“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
■
TypeCircuitRemarks
• 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
TypeCircuitRemarks
• 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)
TypeCircuitRemarks
• 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 stabilization 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.
*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.
* : 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 NamePeripheral NameInitial Value
000000
HPDR0Port 0 data registerPort 0XXXXXXXXB
000001HPDR1Port 1 data registerPort 1XXXXXXXXB
000002HPDR2Port 2 data registerPort 2XXXXXXXXB
000003HPDR3Port 3 data registerPort 3XXXXXXXXB
000004HPDR4Port 4 data registerPort 4XXXXXXXXB
000005HPDR5Port 5 data registerPort 5XXXXXXXXB
000006HPDR6Port 6 data registerPort 6XXXXXXXXB
000007HPDR7Port 7 data registerPort 7XXXXXXXXB
000008HPDR8Port 8 data registerPort 8XXXXXXXXB
000009HPDR9Port 9 data registerPort 9XXXXXXXXB
00000AHPDRAPort A data registerPort AXXXXXXXXB
HWDTCWatchdog timer control registerWatchdog timerXXXXXXXXB
(Access prohibited)
0000A9HTBTCTimebase timer control registerTimebase timer1XX00000B
0000AAHWTCClock timer control registerClock timer1X001000B
0000ABH
to
0000AD
H
(Access prohibited)
0000AE
HFMCSFlash memory control status register1 Mbit flash memory000X0000B
0000AFH (Access prohibited)
0000B0
HICR00Interrupt control register 00
00000111B
0000B1HICR01Interrupt control register 0100000111B
0000B2HICR02Interrupt control register 0200000111B
0000B3HICR03Interrupt control register 0300000111B
0000B4HICR04Interrupt control register 0400000111B
0000B5HICR05Interrupt control register 0500000111B
0000B6HICR06Interrupt control register 0600000111B
Interrupt controller
0000B7HICR07Interrupt control register 0700000111B
0000B8HICR08Interrupt control register 0800000111B
0000B9HICR09Interrupt control register 0900000111B
0000BAHICR10Interrupt control register 1000000111B
0000BBHICR11Interrupt control register 1100000111B
0000BCHICR12Interrupt control register 1200000111B
0000BDHICR13Interrupt control register 1300000111B
(Continued)
26
(Continued)
Address
Abbreviated
Register
Name
MB90520A/520B Series
Register NamePeripheral NameInitial Value
0000BE
HICR14Interrupt control register 14
00000111B
Interrupt controller
0000BFHICR15Interrupt control register 1500000111B
0000C0H
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#08FFFFDC
INT 9 instruction#09FFFFD8
Exception#10FFFFD4H
• 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
8/16-bit up/down counter/timer 0
Extended I/O serial interface 1
TIN0/OUT4,
Port 7
P70 − P73
P74 − P77COM0 − COM3LCD control driver common output
Port 8P80 − P87SEG16 − SEG23LCD control driver segment output
Port 9P90 − P97SEG24 − SEG31LCD control driver segment output
Port APA0 − PA7SEG8 − SEG15LCD 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.
Loading...
+ 69 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.