The MB90220 ser ies of g eneral-pur pose hi gh-per formance 16 -bit mi crocon trollers ha s bee n develo ped prim arily
for applications that demand high-speed real-time processing and is suited for industrial applications, office
automation equipme nt, process control , and other appli cations. The F
Family with improved high- level language support functions and task switching functions, as well as addit ional
addressing modes.
2
MC-16F CPU is based on the F2MC*-16
On-chip perip heral resour ces in clude a 4-c hanne l PWC timer, a 4-channel ICU (In put Capt ure Un it), a 1-chann el
24-bit timer counter, an 8-channel OCU (Output Compare Unit), a 6-channel 16-bit reload timer, a 2-channel
16-bit PPG timer, a 10-bit A/D co nverter with 16 inputs, and a 4-ch annel serial po rt with a UART function (one
channel includes the CTS function).
The MB90P224B, MB90W224B, MB90224 is under development.
2
*: F
MC stands for FUJITSU Flexible Microcontroller.
■ PACKAGE
120-pin Plastic QFP
120-pin Ceramic QFP
(FPT-120P-M03)
(FPT-120C-C02)
MB90220 Series
■ FEATURES
F2MC-16F CPU
• Minimum execution time: 62.5 ns/16 MHz oscillation (using a duty control system)
• Instruction sets optimized for controllers
2
Upward object-compatible with the F
Various data types (bit, byte, word, and long-word)
Instruction cycle improved to speed up operation
Extended addressing modes: 25 types
High coding efficiency
Access method (bank access with linear pointer)
Enhanced multiplication and division instructions (with signed instructions added)
Higher-precision operation using a 32-bit accumulator
• Extended intelligent I/O service (automatic transfer function independent of instructions)
Access area expanded to 64 Kbytes
• Enhanced instruction set applicable to high-level language (C) and multitasking
System stack pointer
Enhanced pointer-indirect instructions
Barrel shift instruction
Stack check function
• CMOS-level hysteresis input with no standby
control
Digital output
Digital output
R
Digital input
Note: The pull-up and pull-down resistors are always connected, regardless of the state.
(Continued)
13
MB90220 Series
TypeCircuitRemarks
C• CMOS-level output
• CMOS-level hysteresis input with standby
Digital output
Digital output
R
Digital input
D• CMOS-level input with no standby control
control
Mask ROM products only:
MD2: with pull-down resistor
MD1: with pull-up resistor
MD0: with pull-down resistor
R
Digital input
• CMOS-level input with no standby control
MD2 of OTPROM products/EPROM products
only
R
Digital input
VPP power supply
E• CMOS-level hysteresis input with no standby
control
• With input analog filter (40 ns Typ.)
R
Analog filter
Digital input
Note: The pull-up and pull-down resistors are always connected, regardless of the state.
14
(Continued)
MB90220 Series
(Continued)
TypeCircuitRemarks
F• N-channel open-drain output
• CMOS-level hysteresis i nput with A/D
control and with standby control
Digital output
R
A/D input
Digital input
G• CMOS-level hyste resi s input with no
Pull-up
resistor
standby control and with pull-up resistor
• With input analog filter (40 ns Typ.)
R
MB90223, MB90224: RST
to with or without a pull-up resistor by a
mask option.
R
MB90P224A: With pull-up resistor
MB90W224A: With pull-up resistor
MB90P224B: With no pull-up resistor
MB90W224B: With no pull-up resistor
Analog filter
: P-type transistor: N-type transistor
Digital input
Note: The pull-up and pull-down resistors are always connected, regardless of the state.
pin can be set
15
MB90220 Series
■ HANDLING DEVICES
1. Preventing Latchup
CMOS ICs may c ause latch up when a voltag e higher t han VCC or lower th an VSS is appl ied to i nput or ou tput
pins other than medium-and high-voltage pins, or when a voltage exceeding the rating is applied between V
and VSS.
If latch-up occurs, the power supply current increases rapidly, sometimes resulting in thermal breakdown of the
device. Use meticulous care not to let any voltage exceed the maximum rating.
Also, take care to preven t the analog power supply (AV
digital power supply (V
CC) when the analog system power supply is turned on and off.
2. Treatment of Unused Input Pins
Leaving unused input pins open could cause malfunctions. They should be connected to a pull-up or pull-down
resistor.
3. Treatment of Pins when A/D is not Used
Connect to be AVCC = AVRH = VCC and AVSS = AVRL = VSS even if the A/D converter is not in use.
CC and AVRH) and a nalog input from exceeding the
CC
4. Precautions when Using an External Input
To reset the internal circuit properly by the “L” level input to the RST pin, the “L” level input to the RST pin must
be maintained for at least five machine cycles. Pay attention to it if the chip uses external clock input.
5. VCC and VSS Pins
Apply equal potential to the VCC and VSS pins.
6. Supply Voltage Variation
The operation assurance range for the VCC supply voltage is as given in the ratings. Howev er, sudden changes
in the supply voltage can cause miso peration, even if the voltage remains within the rated range. Therefore, it
is impor tant to su pply a stable voltage to t he IC. The recommende d power supply co ntrol guideli nes are that
the commercial frequency (50 to 6 0 Hz) ripple var iation (P-P value) on V
standard V
CC value and that the transient rate of change during sudden changes, such as during power supply
CC should be less than 10% of the
switching, should be less than 0.1 V/ms.
7. Notes on Using an External Clock
When using an external clock, drive the X0 pin as illustrated below. When an external clock is used, oscillation
stabilization time is required even for power-on reset and wake-up from stop mode.
Use of External Clock
•
MB90220
X0
X1
Note: Wh en using an exter nal clock, be sure to in put external clo ck more than 6 machin e cycles after
setting the HST
pin to “L” to transfer to the hardware standby mode.
16
MB90220 Series
8. Power-on Sequence for A/D Converter Power Supplies and Analog Inputs
Be sure to turn on the digital power supply (VCC) before applying voltage to the A/D converter power supplies
(AV
CC, AVRH, and AVRL) and analog inputs (AN00 to AN15).
When turning power supplies off, turn off the A/D converter power supplies (A V
inputs (AN00 to AN15) first, then the digital power supply (V
When turning AVRH on or off, be careful not to let it exceed AV
CC).
CC.
CC, A VRH, and A VRL) and analog
17
MB90220 Series
■ PROGRAMMING FOR MB90P224A/P224B/W224A/W224B
In EPROM mode, the MB9 0P224A/P224B/W224A/W224B func tions equivalent to the MBM27C1000. This
allows the EPROM to be programmed with a general-pur pose EPROM programmer by using the dedicated
socket adapter (do not use the electronic signature mode).
1. Program Mode
When shipped from Fujitsu, an d after eac h erasure, all bits (96 K × 8 bits) in the MB9 0P224A /P224 B/W224 A/
W224B are in the “1” sta te. Data is written to the ROM by selectively programming “0’s” into the desired bit
locations. Bits cannot be set to “1” electrically.
2. Programming Procedure
(1) Set the EPROM programmer to MBM27C1000.
(2) Load program data into the EPROM programmer at 08000
H to 1FFFFH.
Note that ROM addresses FE8000
W224B series assign to 08000
FFFFFFH
H
FE8000
Operation mode
* : Be sure to set the programming, the start address and the stop address on the EPROM programmer to 08000
H to FFFFFFH in the operation mode in the MB90P224A/P224B/W224A/
H to 1FFFFH in the EPROM mode (on the EPROM programmer).
H *
1FFFF
08000H *
(Corresponding addresses on the EPROM mode)
EPROM mode
H/1FFFFH.
(3) Mount the MB90P224A/P224B/W224A/W224B on the adapter socket, then fit the adapter socket onto the
EPROM programmer. When mounting the device and the adapter socket, pay attention to their mounting
orientations.
(4) Start programming the program data to the device.
(5) If programming has not successfully resulted, connect a capacitor of approx. 0.1 µF between V
between V
PP and GND.
CC and GND,
Note: The mask ROM products (MB90223, MB90224) does not support EPROM mode. Data cannot, therefore, be
read by the EPROM programmer.
18
MB90220 Series
3. EPROM Programmer Socket Adapter and Recommended Programmer Manufacturer
Part No.
Package
Compatible socket adapter
Sun Hayato Co., Ltd.
Recommended
programmer
manufacturer
and
programmer
name
Inquiry: Sun Hayato Co., Ltd.: TEL: (81)-3-3986-0403
Advantest Corp.:TEL: Except JAPAN (81)-3-3930-4111
Advantest corp.
FAX: (81)-3-5396-9106
R4945A
(main unit)
R49451A
(adapter)
+
MB90P224B
QFP-120
ROM-120QF-32DP-16F
Recommended
4. Erase Procedure
Data written in the MB90W224A/W224B is erased (from “0” to “1”) by exposing the chip to ultraviolet rays with
a wavelength of 2,537 Å through the translucent cover.
2
Recommended irradiati on dosage for exposure is 10 Wsec/cm
with a commercial ultraviolet lamp positioned 2 to 3 cm above the package (when the package surface illuminance
is 1200 µW/cm
If the ultraviolet lamp has a filter, remove the filter before exposure. Attaching a mirrored plate to the la mp
increases the illuminance by a factor of 1.4 to 1.8, thus shortening the required erasure time. If the translucent
par t of the package is stained with oil o r adhesive, transmiss ion of ultraviolet rays is de graded, resulting in a
longer erasure time. In that case, clean the t ranslucent part usi ng alcohol (or other solvent not affecting the
package).
2
).
. This amount is reached in 15 to 20 mi nutes
The above recommended dosage is a value which takes the guard band into consideration and is a multiple of
the time in which all bits can be evaluated to have been erased. Observe the recommended dosage for erasure;
the purpo se of the guard band is to ensure erasur e in all temperature and supply voltage ranges. In addition,
check the life span of the lamp and control the illuminance appropriately.
Data in the MB90W224A/W224B is erased by exposure to light with a wavelength of 4,000 Å or less.
Data in the device is also erased even by exposure to fluorescent lamp light or sunlight although the exposure
results in a much lower erasure rate than exposure to 2,537 Å ultraviolet rays. Note that exposure to such lights
for an extended period will therefore affect system reliability. If the chip is used where it is exposed to any light
with a wavelength of 4,000 Å or less, cover the translucent part, for example, with a protective seal to pr event
the chip from being exposed to the light.
Exposure to light with a wavelength of 4,000 to 5,000 Å or more will not erase data in the device. If the light
applied to the chip has a ver y high illuminance, however, the device may cause malfunction in the circuit for
reasons of general semiconductor characteristics. Although the circuit will recover normal operation when
exposure is stopped, the device require s proper co unter meas ures for use in a place exposed continuously to
such light even though the wavelength is 4,000 Å or more.
19
MB90220 Series
5. Recommended Screening Conditions
High temperature aging is recommended as the pre-assembly screening procedure.
Program, verify
Aging
+150°C, 48 Hrs.
Data verification
Assembly
6. Programming Yeild
MB90P224A/P224B cannot be write-tested for all bits due to their nature. Therefore the write yield cannot always
be guaranteed to be 100%.
7. Pin Assignments in EPROM Mode
(1) Pins Compatible with MBM27C1000
MBM27C1000
MB90P224A/P224B/
MB90W224A/W224B
MBM27C1000
Pin no.Pin namePin no.Pin namePin no.Pin namePin no.Pin name
109
110
10 to 16
42
43
46
47
48 to 53
17 to 24
25 to 32
34 to 41
55 to 61
63 to 70
71 to 76
78
79
85
103 to 108
P16
P17
P41 to P47
AV
CC
AVRH
P60
P61
P62 to P67
P70 to P77
P80 to P82
P90 to P97
PA0 to PA7
PB0 to PB7
PC0 to PC5
P50
P51
P57
P10 to P15
Connect pull-up resistor of about 1 MΩ to each pin
V
SS
AVRL
SS
AV
P52
P53
RST
21
MB90220 Series
■ BLOCK DIAGRAM
X1
X0
RST
HST
MD0 to MD2
WI
CTS0
SID0 to SID2
SOD0 to SOD2
SCK0 to SCK2
SID3
SOD3
SCK3
5
4
3
3
UART0 × 3
Clock controller
Write-inhibit
RAM
UART1
PWC timer × 4
ICU (Input
Capture Unit)
Internal data bus
24-bit timer counter
OCU (Output
Compare Unit)
4
PWC0 to PWC3
4
POT0 to POT3
4
ASR0 to ASR3
× 4
8
DOT0 to DOT7
× 4
TOT0 to TOT5
TIN1 to TIN5
ATG
AN00 to AN15
AVCC
AVRH
AVRL
AV
SS
P00 to P07
P10 to P17
P20 to P27
P30 to P37
P40 to P47
P50 to P57
P60 to P67
P70 to P77
P80 to P87
P90 to P97
PA0 to PA7
PB0 to PB7
PC0 to PC5
PPG0
PPG1
TRG0
16-bit reload timer
6
21
102
2
× 6
5
10-bit
A/D converter
16 channels
16-bit PPG timer
I/O ports
× 2
DTP/External
interrupt
× 8
External bus
interface
2
MC-16F CPU
F
RAM
ROM
8
16
2
29
INT0 to INT7
D00 to D15
RDY
HRQ
A00 to A23
CLK
HAK
WRH
WRL
RD
22
■ PROGRAMMING MODEL
MB90220 Series
Dedicated Registers
AH
AL
USP
SSP
PS
PC
USPCU
SSPCU
USPCL
SSPCL
DPR
PCB
DTB
USB
SSB
ADB
Accumulator
User stack pointer
System stack pointer
Processor status
Program counter
User stack upper register
System stack upper register
User stack lower register
System stack lower register
Direct page register
Program bank register
Data bank register
User stack bank register
System stack bank register
Additional bank register
HPort 6 data registerPDR6R/WPort 611111111
HPort 7 data registerPDR7RPort 7XXXXXXXX
HPort 8 data registerPDR8R/WPort 8XXXXXXXX
HPort 9 data registerPDR9R/WPort 911111111
HPort A data registerPDRAR/WPort AXXXXXXXX
HPort B data registerPDRBR/WPort BXXXXXXXX
HPort C data registerPDRCR/WPort C––XXXXXX
HPort 6 analog input enable registerADER0R/WPort 611111111
HPort 7 data direction registerDDR7R/WPort 71 1111111
HPort 8 data direction registerDDR8R/WPort 80 0000000
HPort 9 analog input enable registerADER1R/WPort 911111111
HPort A data direction registerDDRAR/WPort A00000000
HPort B data direction registerDDRBR/WPort B00000000
H
Port C data direction registerDDRCR/WPort C
H
(Reserved area)
*1
000020HMode control register 0UMC0R/W
000021
000022
HStatus register 0USR0R/W00010000
Input data register 0
H
/output data register 0
UIDR0
/UODR0
R/WXXXXXXXX
––000000
00000100
UART 0 (ch.0)
(Continued)
25
MB90220 Series
AddressRegister
000023
000024
000025
000026
000027
000028
000029
00002A
00002B
00002C
00002D
HRate and data register 0URD0R/WUART0 (ch.0)0 000000X
HMode control register 1UMC1R/W
HStatus register 1USR1R/W00010000
Input data register 1
H
/output data register 1
HRate and data register 1URD1R/W0 000000X
HMode control register 2UMC2R/W
HStatus register 2USR2R/W00010000
Input data register 2
H
/output data register 2
HRate and data register 2URD2R/W0 000000X
HUART CTS control registerUCCRR/WUART0 (ch.0)– ––000––
H
Register
name
Access
UIDR1
/UODR1
UIDR2
/UODR2
(Reserved area)
R/W
R/W
*1
00002EHMode registerSMRR/W
00002F
000030
HControl registerSCRR/W00000100
Input data register
H
/output data register
SIDR
/SODR
R/W
Resouce
name
UART0 (ch.1)
UART0 (ch.2)
UART1
Initial value
00000100
XXXXXXXX
00000100
XXXXXXXX
00000000
XXXXXXXX
000031
000032
000033
000034
000035
HStatus registerSSRR/W00001–00
HA/D channel setting regist erADCHR/W
HA/D mode registerADMDR/W–––X0000
HA/D control status registerADCSR/W0000––00
HInterrupt control register 01ICR01R/W00000111
HInterrupt control register 02ICR02R/W00000111
HInterrupt control register 03ICR03R/W00000111
HInterrupt control register 04ICR04R/W00000111
HInterrupt control register 05ICR05R/W00000111
HInterrupt control register 06ICR06R/W00000111
HInterrupt control register 07ICR07R/W00000111
HInterrupt control register 08ICR08R/W00000111
HInterrupt control register 09ICR09R/W00000111
HInterrupt control register 10ICR10R/W00000111
HInterrupt control register 11ICR11R/W00000111
HInterrupt control register 12ICR12R/W00000111
HInterrupt control register 13ICR13R/W00000111
HInterrupt control register 14ICR14R/W00000111
HInterrupt control register 15ICR15R/W00000111
H
(External area)
*2
Interrupt
controller
00000000
PWC data buffer register 0PWCR0R/WPWC timer 0
H00000000
(Continued)
29
MB90220 Series
AddressRegister
001F02
H
PWC data buffer register 1PWCR1R/WPWC timer 1
001F03
001F04
H00000000
H
PWC data buffer register 2PWCR2R/WPWC timer 2
001F05
001F06
H00000000
H
PWC data buffer register 3PWCR3R/WPWC timer 3
001F07
001F08
H00000000
H
to 1F0FH
001F10H
001F11
001F12
001F13
001F14
001F15
001F16
001F17