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
Initial value
0:The initial value of this bit is “0”.
1:The initial value of this bit is “1”.
X: The initial value of this bit is undefined.
–:This bit is not used. The initial value is undefined.
*:The initial value of this bit varies with the reset source.
#:The initial value of this bit varies with the operation mode.
*1: Access prohibi ted
*2: Only this area is open to external access in the area below address 0000FF
H (inclusive). All addresses which
are not described in the table are reserved areas, and accesses to these areas are handled in the same
manner as for internal areas. The access signal for the external bus is not generated.
*3: When an external bus is enable mode, never access to resisters which are not used as general ports in areas
address 000000
H to 000005H or 000010H to 000015H.
32
MB90220 Series
■ INTERRUPT SOURCES AND INTERRUPT VECTORS/INTERRUPT CONTROL
OS is supported; however, since two interrupt sources ar e al lo cat ed to a si ngl e ICR, in ca se EI2OS is used
for one of the two, EI
2
: EI
OS is supported; however, since two interrupt sources ar e al lo cat ed to a si ngl e ICR, in ca se EI2OS is used
for one of the two, EI
2
: EI
OS is not supported.
2
OS and ordinary interrupt are not both available for the other (with stop request).
2
OS and ordinary interrupt are not both available for the other (without stop request).
Note: Since the interrup t so urce s having i nter r u p t vector Nos. 15 t o 18 , 20 , and 25 to 28 are OR’ed, re sp ec tively,
select them by means of the interrupt enable bits of each resource.
2
OS is used with the above-mentioned interr upt s ources O R’ed wi th the in terr upt vector Nos. 15 to 18,
If EI
20, and 25 to 28, be sure to activate one of the interrupt sources.
Also in this case, a request flag in the same series as the one interrupt source is likely to be cleared
automatically by EI
2
OS.
Assume for example that an interrupt for compare 4 of the interrupt vector No. 25 is activated at this time by
2
ICR07, so that the compare 6 is disabled. If EI
OS is activated at this time by ICR07, so that the compare 6
interrupt takes place during generation of or simultaneously with the compare 4 interrupt, not only the interrupt
flag for the compare 4 but also that for the compare 6 will be automatically cleared after EI
2
OS is automatically
transferred due to the compare 4 interrupt.
34
■ PERIPHERAL RESOURCES
1. Parallel Ports
The MB90220 series has 86 I/O pins and 16 open-drain I/O pins.
(1) Register Configuration
• Port 0 to C Data Register (PDR0 to PDRC)
MB90220 Series
Register name Address
PDR1
PDR3
PDR5
PDR7
PDR9
PDRB
Register name Address
PDR0
PDR2
PDR4
PDR6
PDR8
PDRA
PDRC
Note: There are no register bits for bits 7 and 6 of port C.
000001 H
000003 H
000005 H
000007 H
000009 H
00000B H
000000
000002 H
000004 H
000006 H
000008 H
00000A H
00000C H
PDR7 only:
H
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
PD x 7 PD x 6 PD x 5 PD x 4 PD x 3 PD x 2 PD x 1 PD x 0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
(R)(R)(R)(R)(R)(R)(R)(R)
bit7 bit6 bit5 bit 4 bit3 bit2 bit1 bit0
PD x 7 PD x 6 PD x 5 PD x 4 PD x 3 PD x 2 PD x 1 PD x 0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• Port 0 to C Data Register (PDR0 to PDRC)
Register name Address
DDR1
DDR3
DDR5
DDR7
DDRB
000011 H
000013 H
000015 H
000017 H
00001B H
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
DD x 7 DD x 6 DD x 5 DD x 4 DD x 3 DD x 2 DD x 1 DD x 0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
Initial value
(PDR9 only: 11111111)
XXXXXXXX
Initial value
XXXXXXXX
(PDR6 only: 11111111)
Initial value
00000000
(PDR7 only: 11111111)
B
B
B
Register name Address
DDR0
DDR2
DDR4
DDR8
DDRA
DDRC
Note: There are no register bits for bits 7 and 6 of port C.
000010 H
000012 H
000014 H
000018 H
00001A H
00001C H
bit7 bit6 bit5 bit 4 bit3 bit2 bit1 bit0
DD x 7 DD x 6 DD x 5 DD x 4 DD x 3 DD x 2 DD x 1 DD x 0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• Port 6, 9 Analog Input Enable Register (ADER0, ADER1)
Register name Address
ADER0
Register name Address
ADER1 000019
000016
H
H
bit7 bit6 bit5 bit 4 bit3 bit2 bit1 bit0
AE07AE06AE05AE04AE03AE02AE01AE00
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
bit7 bit6 bit5 bit 4 bit3 bit2 bit1 bit0
AE15AE14AE13AE12AE11AE10AE09AE08
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
Initial value
00000000
Initial value
11111111
Initial value
11111111 B
B
B
35
MB90220 Series
(2) Block Diagram
• I/O Port (Port 0 to 5, 8, and A to C)
Data register read
Data register
Data register write
Direction register
Internal data bus
Direction register write
Direction register read
• I/O Ports with an Open-drain output (Port 6, and 9)
RMW
(read-modify-write instruction)
Data register read
Data register
Data register write
ADER
Internal data busInternal data bus
ADER register write
Pin
Pin
• I/O Port (Port 7)
36
ADER register read
DOT0 to DOT3 (OCU)
4
4
4
Port 7
Note: Port 7 is input port. This pin also usable as I/O port for OCU internal function.
The 16-bit reload timer 1 consists of a 16-bit down counter, a 16-bit reload register, an input pin (TIN), an output
pin (TOT), and a control r egister. The input clock can be selected f rom among three i nternal cl ocks and one
external clock. At the output pin (TOT), the pulses in the toggled output waveform are output in the reload mode;
the rectangular pulses indicating that the timer is counting are in the single-shot mode. The input pin (TIN) can
be used for event input in the event count mode, and for trigger input or gate input in the internal clock mode.
The MB90220 series has six channels for this timer.
(1) Register Configuration
• Timer Control Status Register 0 to 5 (TMCSR0 to TMCSR5)
Register name Address
TMCSR0
TMCSR1
TMCSR2
TMCSR3
TMCSR4
TMCSR5
Register name Address
TMCSR0
TMCSR1
TMCSR2
TMCSR3
TMCSR4
TMCSR5
000041 H
000043 H
000045 H
000047 H
000049 H
00004B H
000040
000042 H
000044H
000046 H
000048 H
00004A H
bit15bit14bit13bit12bit11bit10bit9
————CSL1CSL0MOD2
(—)(R/W)(—)(—)(—)(R/W)(R/W)(R/W)
H
bit7bit6bit5bit4bit3bit2bit1
MOD0 OUTEOUTLRELDINTEUFCNTE
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• 16-bit Timer Register 0 to 5 (TMR0 to TMR5)
Register name Address
TMR0
TMR1
TMR2
TMR3
TMR4
TMR5
Register name Address
TMR0
TMR1
TMR2
TMR3
TMR4
TMR5
001F31 H
001F35 H
001F39H
001F3D H
001F41 H
001F45H
001F30 H
001F34 H
001F38H
001F3C H
001F40H
001F44 H
bit15bit14bit13bit12bit11bit10bit9bit8
(R)(R)(R)(R)(R)(R)(R)(R)
bit7bit6bit5bit4bit3bit2bit1bit0
(R)(R)(R)(R)(R)(R)(R)(R)
MOD1
bit8
TRG
bit0
Initial value
- - - - 0000
Initial value
00000000 B
Initial value
XXXXXXXX
Initial value
XXXXXXXX
B
B
B
• 16-bit Timer Reload Register 0 to 5 (TMRLR0 to TMRLR5)
Register name Address
TMRLR0
TMRLR1
TMRLR2
TMRLR3
TMRLR4
TMRLR5
001F33 H
001F37 H
001F3BH
001F3F H
001F43 H
001F47 H
bit15bit14bit13bit12bit11bit10bit9bit8
(W)(W)(W)(W)(W)(W)(W)(W)
Initial value
XXXXXXXX
B
37
MB90220 Series
Register name Address
TMRLR0
TMRLR1
TMRLR2
TMRLR3
TMRLR4
TMRLR5
001F32
001F36 H
001F3A H
001F3E H
001F42 H
001F46 H
• Arbitrary baud-rate setting from external clock input or internal timer
• Variable data length (7 to 9 bits (without parity bit); 6 to 8 bits (with parity bit))
• Error detection function (Framing, overrun, parity)
• Interrupt function (Two sources for transmission and reception)
• Transfer in NRZ format
The MB90220 has three of these modules on chip.
(1) Register Configuration
• Mode Control Register 0 to 2 (UMC0 to UMC2)
Serial mode control register
Register name Address
UMC0
UMC1
UMC2
000020 H
000024 H
000028 H
bit7bit6bit5bit4bit3bit2bit1
PENSBLMC1MC0SMDERFCSCKE
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
SOE
bit0
Initial value
00000100
• Status Register 0 to 2 (USR0 to USR2)
Register name Address
USR0
USR1
USR2
000021
000025 H
000029 H
H
bit15bit14bit13bit12bit11bit10bit9bit8
RDRF ORFEPETDRERIETIERBFTBF
(R)(R)(R)(R)(R)(R/W)(R/W)(R)
Initial value
00001000 B
• Input Data Register 0 to 2 (UIDR0 to UIDR2)/Ouput Data Register 0 to 2 (UODR0 to UODR2)
Register name Address
UIDR0/UODR0
UIDR1/UODR1
UIDR2/UODR2
000022
000026 H
00002A H
H
bit7bit6bit5bit4bit3bit2bit1bit0
D7D6D5D4D3D2D1D0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
Initial value
XXXXXXXX
• Rate and Data Register 0 to 2 (URD0 to URD2)
Register name Address
URD0
URD1
URD2
000023
000027 H
00002B H
H
bit15bit14bit13bit12bit11bit10bit9bit8
BCHRC3RC2RC1RC0BCH0PD8
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
Initial value
0000000X
B
B
B
• UART CTS Control Register (UCCR)
Register name Address
UCCR
00002C H
bit7bit6bit5bit4bit3bit2bit1bit0
———
(—)(—)(—)(R/W)(R/W)(R/W)(—)(—)
CTECSPCTSE
——
Initial value
- - - 000 - -
B
39
MB90220 Series
(2) Block Diagram
CONTROL BUS
Receiving interrupt
(to CPU)
Dedicated baud rate clock
16-bit reload timer 5
(internally connected)
External clock
SID
Received status
determination circuit
Clock selector
Receiving clock
Receiving controller
Start bit detector
Received bit counter
parity counter
Receiving shifter
Received
Transmitting clock
Transmitted bit counter
SCK
Transmission interrupt
(to CPU)
Transmission controller
Transmission
start circuit
Transmission
parity counter
SOD
Transmitting shifter
40
UMC
register
Signal indicating occurrence
of receiving error for EI
PEN
SBL
MC1
MC0
SMDE
RFC
SCKE
SOE
2
OS (to CPU)
End of
reception
UIDR
Internal data bus
USR
register
RDRF
ORFE
PE
TDRE
RIE
TIE
RBF
TBF
URD
register
Start of
transmission
UODR
BCH
RC3
RC2
RC1
RC0
BCH
P
D8
CONTROL BUS
MB90220 Series
4. UART1
The UART1 is a serial I/O port for asynchronous communications (start-stop synchronization) or CLK
synchronized communications. It has the following features:
• Full-duplex double buffering
• Permits asynchronous (start-stop synchronization) and CLK synchronous communications
• Multiprocessor mode support
• Built-in dedicated baud rate generator
Asynchronous: 9615, 31250, 4808, 2404, and 1202 bps
CLK synchronization: 1 M, 500 K, 250 K bps
• Arbitray baud-rate setting from external clock input or internal timer
• Error detection function (parity errors, framing errors, and overrun errors)
• Transfer in format NRZ
• Extended supports intelligent I/O service
(1) Register Configuration
• Mode Register (SMR)
Register name Address
SMR
00002E
bit7bit6bit5bit4bit3bit2bit1
H
MD1MD0CS2CS1CS0BCHSCKESOE
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• SCR (Control Register)
Register name Address
SCR
00002F
bit15bit14bit13bit12bit11bit10bit9
H
PENPSBLCLA/DRECRXETXE
(R/W)(R/W)(R/W)(R/W)(R/W)(R)(R/W) (R/W)
• Input Data Register (SIDR)/Serial Output Data Register (SODR)
Register name Address
SIDR
Register name Address
SODR
000030
000030
bit7bit6bit5bit4bit3bit2bit1bit0
H
D7D6D5D4D3D2D1D0
(R)(R)(R)(R)(R)(R)(R)(R)
bit7bit6bit5bit4bit3bit2bit1bit0
H
D7D6D5D4D3D2D1D0
(W)(W)(W)(W)(W)(W)(W)(W)
• SSR (Status Register)
bit0
bit8
Initial value
00000000
Initial value
00000100
Initial value
XXXXXXXX
XXXXXXXXB
B
B
B
Register name Address
SSR
000031
bit15bit14bit13bit12bit11bit10bit9bit8
H
PEOREFRERDRFTDRE—RIETIE
(R)(R)(R)(R)(R)(R/W)(R/W)
Initial value
00001-00
B
41
MB90220 Series
(2) Block Diagram
Control signals
Receiving interrupt
(to CPU)
Dedicated baud rate generator
16-bit reload timer 4
(internally connected)
Clock selector
External clock
SID3
Received status
determination circuit
Receiving clock
Receiving controller
Start bit detector
Receiving shifter
Received
bit counter
Received
parity counter
Transmitting clock
Transmission controller
SCK3
Transmission interrupt
(to CPU)
Transmission
start circuit
Transmitted
bit counter
Transmission
parity counter
SOD3
Transmitting shifter
42
SMR
register
Signal indicating occurrence
of receiving error for EI
MD1
MD0
CS2
CS1
CS0
BCH
SCKE
SOE
2
OS (to CPU)
End of
reception
SIDR
Internal data bus
SCR
register
PEN
P
SBL
CL
A/D
REC
RXE
TXE
SSR
register
Start of
transmission
SODR
PE
ORE
FRE
RDRF
TDRE
RIE
TIE
Control signals
MB90220 Series
5. 10-bit A/D Converter
The 10-bit A/D converter converts analog in put voltage into a digital va lue. The features of this module are
described below:
• Uses RC-type sequential comparison and conversion method with built-in sample and hold circuit
• 10-bit resolution
• Analog input can be selected by software from among 16 channels
Single-conversion mode: Selects and converts one channel.
Scan conversion mode: Converts several consecutive channels (up to 16 can be programmed).
One-shot mode: Converts the specified channel once and terminates.
Continuous conversion mode: Repeatedly converts the specified channel.
Stop conversion mode: Pauses after converting one channel and waits until the next startup (permits
synchronization of start of conversion).
• When A/D conversion is completed, an “A/D conversion complete” interrupt request can be issued to the CPU.
Because the generation of this in terrupt can be used to star t up the EI
results to memory, this function is suitable for continuous processing.
• Startup triggers c an be selec ted from among so ftware, an ex ternal tri gger (fall ing edge), and a time r (rising
edge).
2
OS and transfer the A/D conversion
(1) Register Configuration
• A/D Channel Setting Register (ADCH)
This register specfies the A/D converter conversion channel.
Register name Address
ADCH
000032
bit7bit6bit5bit4bit3bit2bit1
H
ANS3ANS2ANS1ANS0ANE3ANE2ANE1ANE0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• A/D Mode Register (ADMD)
This register specfies the A/D converter operation mode and the startup source.
Register name Address
ADMD
Note: Program “0” to bit 12 when write. Read value is indeterminated.
000033H
bit15bit14bit13bit12bit11bit10bit9
———MOD1 MOD0STS1STS0
• A/D Control Status Register (ADCS)
This register is the A/D converter control and status register.
Register name Address
ADCS
000034H
bit7bit6bit5bit4bit3bit2bit1bit0
BUSYINTINTEPAUS——STRT
• A/D Data Register (ADCD)
Reserved
bit0
bit8
(R/W)(—)(R/W)(—)(—)(W)(R/W)(R/W)
Reserved
(—)(R/W)(W)(R/W)(R/W)(R/W)(—)(R/W)
Initial value
00000000
Initial value
- - - X0000 B
Initial value
0000 - - 00 B
B
This register stores the A/D converter conversion data.
The PWC (pulse width count) timer is a 16-bit multifunction up-count timer with an input-signal pulse-width count
function and a reload timer function. The hardware co nfiguration of this module is a 16-bi t up-count timer, an
input pulse divi der with divide ratio control regist er, four count input pins, and a 16-bit contro l register. Using
these components, the PWC timer provides the following features:
• Timer functions: An interrupt request can be generated at set time intervals.
Pulse signals synchronized with the timer cycle can be output.
The reference internal clock can be selected from among three internal clocks.
• Pulse-width count functions:The time between arbitrary pulse input events can be counted.
The reference internal clock can be selected from among three internal clocks.
Various count modes:
“H” pulse width (↑ to ↓)/“L” pulse width (↓ to ↑)
Rising-edge cycle (↑ to ↑/Falling-edge cycle (↓ to ↓)
Count between edges (↑ or ↓ to ↓ or ↑)
2n
Cycle count can be performed by 2
pulse, with an 8 bit input divider.
An interrupt request can be generated once counting has been performed.
The number of times counting is to be performed (once or subsequently) can
be selected.
division (n = 1, 2, 3, 4) of the input
The MB90220 series has four channels for this module.
(1) Register Configuration
• PWC Control Status Register 0 to 3 (PWCSR0 to PWCSR3)
Register name Address
PWCSR0
PWCSR1
PWCSR2
PWCSR3
Register name Address
PWCSR0
PWCSR1
PWCSR2
PWCSR3
000051
000053 H
000055 H
000057 H
000050
000052 H
000054 H
000056 H
H
H
bit15bit14bit13bit12bit11bit10bit9
STRTSTOPEDIREDIEOVIROVIEERRPOUT
(R/W)(R/W)(R)(R/W)(R/W)(R/W)(R)(R/W)
bit7bit6bit5bit4bit3bit2bit1
CKS1CKS0PIS1PIS0S/CMOD1MOD1 MOD0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• PWC Data Buffer Register 0 to 3 (PWCR0 to PWCR3)
Register name Address
PWCR0
PWCR1
PWCR2
PWCR3
Register name Address
PWCR0
PWCR1
PWCR2
PWCR3
001F01 H
001F03 H
001F05 H
001F07 H
001F00 H
001F02 H
001F04 H
001F06 H
bit15bit14bit13bit12bit11bit10bit9bit8
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
bit7bit6bit5bit4bit3bit2bit1bit0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
bit8
bit0
Initial value
00000000B
Initial value
00000000
Initial value
00000000
Initial value
00000000
B
B
B
45
MB90220 Series
• PWC Division Ratio Control Register 0 to 3 (DIVR0 to DIVR3)
Register name Address
DIVR0
DIVR1
DIVR2
DIVR3
00007A H
00007C H
00007E H
000080 H
(2) Block Diagram
PWCR read
Write enable
Overflow
16
16
bit7bit6bit5bit4bit3bit2bit1bit0
——————MOD1 MOD0
(—)(—)(—)(—)(—)(—)
Error detector
Reload
Data transfer
16-bit up-count timer
Controller
ERR
PWCR
16
16
Timer clear
Clock
Count enable
(R/W)(R/W)
Internal clock
(machine clock/4)
CKS 1
CKS 0
Divider clear
2
2
3
2
Initial value
- - - - - - 00
Clock divider
B
Start edge
Internal data bus
Flag set, etc.
15
*: In the MB90220 series, only the module input PWC 0 of each channel is connected to the respective external pins.
Count end edge
Count end interrupt request
Control bit output
Overflow interrupt
request
Count
start edge
PWCSR
select
Edge
detector
ERR
End edge
select
Channel
PWC ch. 0
PWC ch. 1
PWC ch. 2
PWC ch. 3
Division on/off
CKS 1
PIS 1
CKS 0
PIS 0
Divider
selection
2
DIVR
POT pin
PA 1/PWC 0/POT 0
PA 2/PWC 1/POT 1/ASR 1
PA 3/PWC 2/POT 2/ASR 2
PA 4/PWC 3POT 3/ASR 3
8-bit
divider
Overflow
PIS 1
PIS 0
F.F.
POT
PWC 0
PWC 1
PWC 2
PWC 3
*
46
MB90220 Series
7. DTP/External Interrupts
DTP (Data Transfer Peripheral) is located between external per ipherals and the F2MC-16F CPU. It receives a
2
DMA request or an interrupt request generated by the external peripherals and reports it to the F
to activate the extended intelligent I/O service or interrupt handler. The user can select two request levels of “H”
and “L” for extended intelligent I/O service or, and four request lev els of “H,” “L,” rising edge and falling edge for
external interrupt requests. In MB90220, only par ts corresponding to INT2 to INT0 are usable as external
interrupt/DTP request.
Parts corresponding to INT7 to INT3 cannot be used as external interrupt/DTP request, but only for edge
detection at external terminals.
Note: INT7 to INT3 are not usable as DTP/external interrupts.
(1) Register Configuration
• DTP/Interrupt Enable Register (ENIR)
MC-16F CPU
Register name Address
ENIR
00003A
H
bit7bit6bit5bit4bit3bit2bit1
EN7EN6EN5EN4EN3EN2EN1EN0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• DTP/Interrupt Source Register (EIRR)
Register name Address
EIRR
00003B
bit15bit14bit13bit12bit11bit10bit9
H
ER7ER6ER5ER4ER3ER2ER1ER0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• Request Level Setting Register (ELVR)
Register name Address
ELVR
Register name Address
ELVR
00003D
00003C H
bit15bit14bit13bit12bit11bit10bit9bit8
H
LB7LA7LB6LA6LB5LA5LB4LA4
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
bit7bit6bit5bit4bit3bit2bit1bit0
LB3LA3LB2LA2LB1LA1LB0LA0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
(2) Block Diagram
bit0
bit8
Initial value
00000000
Initial value
00000000B
Initial value
00000000
Initial value
00000000
B
B
B
4
4
4
Internal data bus
8
Interrupt/DTP enable register
Gate
Interrupt/DTP source register
Request level setting register
Source F/F
Edge detector
8
INT
47
MB90220 Series
8. 24-bit Timer Counter
The 24-bit time r counte r c onsists of a 24-b it up-c ounter , an 8-bit o utput b uffer registe r, an d a c ontro l regis ter.
The count value output by this timer counter is used to generate the base time used for input capture and output
compare.
The interrupt functions provided are timer overflow interrupts and timer intermediate bit interrupts. The
intermediate bit interrupt permits four time settings.
The 24-bit timer counter value is cleared to all zeroes by a reset.
The OCU (Output Compa re Unit) consists of a 24-bit o utput compare register, a com parator, and a control
register.
The match detection sign al is output when the conten ts of the output compare regi ster match the contents of
the 24-bit timer counter. This match detection signal can be used to change the output value of the corresponding
pin, or can be used to gener ate an interrupt. One block c onsists of four output comp are units, and the four
output compare registers use one comparator to perform time division comparisons.
(1) Register Configuration
• OCUO Control Register 00, 01 (CCR00, CCR01)
Register name Address
CCR00
CCR02
Register name Address
CCR00
CCR02
000061 H
000063 H
000060
000062 H
H
bit15bit14bit13bit12bit11bit10bit9bit8
————MD3MD2MD1MD0
(—)(—)(—)(—)(R/W)(R/W)(R/W)(R/W)
bit7bit6bit5bit4bit3bit2bit1bit0
SEL3SEL2SEL1SEL0CPE3CPE2CPE1CPE0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
• OCUO Control Register 10, 11 (CCR10, CCR11)
Register name Address
CCR10
CCR11
Register name Address
CCR10
CCR11
000069
00006B H
000068
00006A H
H
H
bit15bit14bit13bit12bit11bit10bit9bit8
ICE3ICE2ICE1ICE0IC3IC2IC1IC0
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
bit7bit6bit5bit4bit3bit2bit1bit0
————DOT3DOT2DOT1DOT0
(—)(—)(—)(—)(R/W)(R/W)(R/W)(R/W)
• OCU Compare Low-order Data Register 00 to 07 (CPR00L to CPR07L)
001F11
001F15 H
001F19 H
001F1D H
001F21 H
001F25 H
001F29 H
001F2D H
001F10 H
001F14 H
001F18 H
001F1C H
001F20 H
001F24 H
001F28 H
001F2C H
H
bit15bit14bit13bit12bit11bit10bit9bit8
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
bit7bit6bit5bit4bit3bit2bit1bit0
——
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
Initial value
- - - - 0000
Initial value
11110000
Initial value
00000000
Initial value
- - - - 0000
Initial value
00000000
Initial value
00000000
50
MB90220 Series
• Output Compare High-order Data Register 00 to 07 (CPR00H to CPR07H)
Register name Address
CPR00
CPR01
CPR02
CPR03
CPR04
CPR05
CPR06
CPR07
Register name Address
CPR00
CPR01
CPR02
CPR03
CPR04
CPR05
CPR06
CPR07
001F13 H
001F17 H
001F1B H
001F1F H
001F23 H
001F27 H
001F2B H
001F2F H
001F12 H
001F16 H
001F1A H
001F1E H
001F22 H
001F26 H
001F2A H
001F2E H
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
(R)(R)(R)(R)(R)(R)(R)(R)
bit7bit6bit5bit4bit3bit2bit1bit0
——
(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W) (R/W)
Initial value
00000000
Initial value
00000000
51
MB90220 Series
(2) Block Diagram
24-bit timer counter
22
Comparator controller
814
Output latchOutput latch
8
24
24
24
24
Match source signals
EXT0 to 3
Match detection signal selection
8
CPR03
CPR02
CPR01
CPR00
Output
compare register
higher-order 8 bits
8
4
SEL3SEL2SEL1SEL0CPE3CPE2CPE1 CPE0
T2 to T23
compare register
lower-order 16 bits
14
CPR03L
CPR02L
CPR01L
CPR00L
Output
Compare unit*
Match signal
ICE3
ICE2
ICE1
ICE0
IC3
IC2
IC1
IC0
4
4
Source
selector
Match operation enable
Interrupt enable ICE0 to 3
Interrupt flags IC0 to 3
4
4
MATCH0 to 3
Interrupt
request signals
4
ICMP0 to 3
24-bit timer counter
Internal data bus
data T0
4
4
4
4
Data register read
Direction register write
4
Direction register read
Port 7
Port general purpose/compare dedicated switching
MD3MD2MD1MD0
DOT pin data output
(also serves as general-purpose port data register)
DOT3DOT2DOT1DOT0
Direction register
Clock
selector
Pin
44
Output latch
DOT0 to 3
52
(Continued)
(Continued)
Internal data bus
timer count data
*: There are two compare units drawn as below.
OPEN
Compare unit
MATCH 0 to 3
T1 to T23
RB15 to 0
EXT 0 to 3
MATCH 0 to 3
T1 to T23
RB15 to 0
EXT 0 to 3
Compare 00 to 03
Compare 10 to 13
23
4
16
16
ICOMP 0 to 3
DOT 0 to 3
ICOMP 0 to 3
DOT 0 to 3
MB90220 Series
Interrupt request ICOMP 0 to 3
4
Pin output
DOT 0 to 3
ICOMP 0, 2
4
4
Pin output
DOT 4 to 7
2
2
ICOMP 1, 3
OR
OR
Interrupt request
ICOMP 4/6
ICOMP 5/7
53
MB90220 Series
10. ICU (Input Capture Unit)
This module detects either the rising edge, falling edge, or both edges of an externally input waveform and holds
the value of the 24-bit timer counter at that time, while at the s ame time the module g enerates an interrupt
request for the CPU. The module consists of a 24-bit input capture data register and a control register. There
are four external input pins (ASR0 to ASR3); the operation of each input is described below.
ASR0 to ASR3: Each of these input pins has a corresponding input capture register. When the specified
valid edge (↑ or ↓ or ↑ ↓) is detected, the register can be used to store the 24-bit timer
counter value.
This module can output a pulse synchronized with an external trigger or a software trigger. In addition, the cycle
and duty ratio of the output pulse can be changed as desired by overwriting the two 16-bit register values.
PWM function: Synchronizes pulse with trigger, and permits programming of the pulse output by
overwriting the register values mentioned above.
This function permits use as a D/A converter with the addition of external circuits.
One-shot function: Detects the edge of trigger input, and permits single-pulse output. There is no
trigger input for PPG1.
This module consi sts of a 16-bit down- counter, a presca ler, a 16-bit s ynchronizat ion setting re gister, a 16-bit
duty register, a 16-bit control register, one external trigger input pin, and one PPG output pin.
The watchdog timer consists of a 2-bit watchdog counter using carry from an 18-bit timebase timer as the clock
source, a control register, and a watchdog reset control section. The timebase timer consists of an 18-bit timer
and an interval interrupt control circuit.
(1) Register Configuration
• Watchdog Timer Control Register (WDTC)
Register name Address
WDTC
0000A8 H
bit7bit6bit5bit4bit3bit2bit1bit0
PONR STBRWRST ERSTSRSTWTEWT1WT0
(R)(R)(R)(R)(R)(W)(W)(W)
• Timebase Timer Control Register (TBTC)
Register name Address
TBTC
0000A9
bit15bit14bit13bit12bit11bit10bit9bit8
H
———
(2) Block Diagram
TBTC
TBC1
TBC0
TBR
TBIE
AND
TBOF
Selector
S
QR
12
2
14
2
16
2
18
2
TBTRES
TBIETBOFTBRTBC1TBC0
R/W
R/W
Clock input
Timebase timer
2142162172
R/W
18
R/W
Oscillation clock
Initial value
XXXXXXXX
Initial value
- - - XXXXX
58
Timebase
interrupt
WDTC
WT1
Internal data bus
WT0
WTE
PONR
STBR
WRST
ERST
SRST
Selector
2-bit counter
OF
CLR
Watchdog reset
signal generator
CLR
WDGRST
To internal reset signal generator
From power-on signal generator
From hardware standby controller
RST pin
From RST bit of STBYC register
MB90220 Series
(—)(—)(—)(—)(—)(—)(—)(
)
13. Delay Interruupt Generation Module
The delayed i nterrupt generation module is use d to generate an interrupt task switching. U sing this module
allows an interrupt request to the F
The write-inhibit RAM is write-prote ctable with the WI pin input . Maintaining the “L” level in put to the WI pin
prevents a certain area of RAM from being written. The WI
H to 000EFFH (MB90223)
H to 0014FFH (MB90224/P224A/P224B/W224A/W224B)
H to 0018FFH (MB90V220)
Q
Write-inhibit
circuit
Select
RAM
decoder
WR
Other area access
L
H
Q
Priority
S
R
Internal data bus
Initial value
- - - X - - - -
Write-inhibit
RAM
60
MB90220 Series
15. Low-power Consumption Modes, Osci llation Stabil ization Delay Time, and Gear Function
The MB90220 series has three low-power consumption modes: the sleep mode, the stop mode, the hardware
standby mode, and gear function.
Sleep mode is used to suspend only the CPU operation clock; the other components remain in operation. Stop
mode and hardware standby mode stop oscillation, minimizing the power consumption while holding data.
The gear function divides the external clock frequency, which is used usually as it is, to provide a lower machine
clock frequency. This function can th er efore lower the overall operation spee d wi tho ut c ha ngi ng the os ci llati on
frequency. The function can select the machine clo ck as a division of the freque ncy of crystal oscillation or
external clock input by 1, 2, 4, or 16.
The OSC1 and OSC0 bits can be used to set the oscillation stabilization delay time for wake-up from stop mode
or hardware standby mode.
(1) Register Configuration
• Standby Control Register (STBYC)
Register name Address
STBYC
0000A0 H
bit7bit6bit5bit4bit3bit2bit1bit0
STPSLPSPLRSTOSC1OSC0CLK1CLK0
(W)(W)(R/W)(R/W)(R/W)(R/W)(R/W)(R/W)
Note: The initial value (*) of bit0 to bit3 is changed by reset source.
Initial value
0001* * * *
61
MB90220 Series
(2) Block Diagram
STBYC
CLK1
CLK0
SLP
STP
Internal data bus
OSC1
OSC0
Gear divider
1/1 1/2 1/4 1/16
Selector
Standby controller
Release HST start
RST
Selector
Oscillation clock
CPU clock
CPU clock
generator
Peripheral clock
Peripheral clock
generator
HST pin
Interrupt request or RST
0
2
16
2
17
2
18
2
Timebase timer
Clock input
14
16217218
2
2
SPL
RST
Pin high impedance controller
Internal reset
signal generator
Pin Hi-Z
RST pin
Internal RST
To watchdog timer
WDGRST
62
■ ELECTRICAL CHARACTERISTICS
1. Absolute Maximum Ratings
Parameter
SymbolPin name
MB90220 Series
(VSS = AVSS = 0.0 V)
Value
UnitRemarks
Min.Max.
Power supply voltageV
Program voltageV
Analog power su pply
voltage
Input voltage
Output voltageV
“L” level output currentI
“L” level total output
current
“H” level output currentI
“H” level total output
current
Power consumptionP
Operating temperatureT
CCVCCVSS – 0.3VSS + 7.0V
PPVPPVSS – 0.313.0V
CCAVCCVSS – 0.3VCC + 0.3V
AV
MB90P224A/P224B
MB90W224A/W224B
Power supply voltage
for A/D converter
Reference voltage for
AVRH
AVRL
1
V
I*
O
OL
ΣI
OL
OH
ΣI
OH
D——650mW
A—
AVRH
AVRL
V
SS – 0.3AVCCV
—VSS – 0.3VCC + 0.3V
2
*
3
*
3
*
2
*
2
*
VSS – 0.3VCC + 0.3V
—20mARush current
—50mATotal output current
—–10mARush current
—–48mATotal output current
–40+105°C
A/D converter
MB90223/224/P224B
/W224B
–40+85°CMB90P224A/W224A
Storage temperatureTstg—–55+150°C
*1: V
1 must not exceed VCC + 0.3 V.
*2: Output pins: P00 to P07, P10 to P17, P20 to P27, P30 to P37, P40 to P47, P50 to P57, P70 to P77, P80 to
P87, PA0 to PA7, PB0 to PB7, PC0 to PC5
*3: Output pins: 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
WARNING:Semiconductor devices can be permanently damaged by application of stress (voltage, current,
temperature, etc.) in excess of absolute maximum ratings. Do not exceed these ratings.
63
MB90220 Series
2. Recommended Operating Condition
Parameter
Power supply voltage V
Analog power supply
voltage
Symbol
CCVCC
AV
CCAVCC4.5VCC + 0.3V
AVRHAVRHAVRLAV
AVRLAVRLAV
Pin
name
(VSS = AVSS = 0.0 V)
Value
UnitRemarks
Min.Max.
4.55.5VWhen operating
3.05.5V
Retains the RAM state in
stop mode
Power supply voltage for
A/D converter
CCV
SSAVRHV
Reference voltage for A/D
converter
MB90224/P224A/W224A
MB90P224B/W224B
Clock frequencyF
C—
1016MHz
1012MHzMB90223
Single-chip mode
–40+105°C
MB90223/224/P224B/
W224B
Operating temperatureT
A*—
–40+85°C
Single-chip mode
MB90P224A/W224A
–40+70°CExternal bus mode
* :Excluding the temperature rise due to the heat produced.
WARNING:Recommended operating conditions are normal operating ranges for the semiconductor device. All the
device’s electrical characteristics are warranted when operated within these ranges.
Always use semico nductor devic es within the reco mmended opera ting conditio ns. Operation ou tside
these ranges may adversely affect reliability and could result in device failure.
No warranty is made with resp ect to uses, o perating cond itions, or comb inations no t represented on
the data sheet. Users considering application outside the listed conditions are advised to contact their
FUJITSU representative beforehand.
64
MB90220 Series
3. DC Characteristics
Single-chip modeMB90223/224/ P22 4B /W2 24B : (VCC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –4 0°C to +105°C)
MB90P224A/W224A: (V
External bus mode: (V
ParameterSymbolPin nameCondition
V
IHX0—0.7 VCC—VCC + 0.3VCMOS level input
“H” level input
voltage
“L” level input
voltage
“H” level
output voltage
“L” level
output voltage
Input leackage
V
IHS
IHMMD0 to MD2—VCC – 0.3—VCC + 0.3V
V
V
ILX0—VSS – 0.3—0.3 VCCVCMOS lev el input
ILS
V
V
ILM
V
OH
V
OH1X1
V
OL
V
OL1X1
I
I
1
*
1
*
MD0 to MD2
2
*
3
*
1
*
—0.8 VCC—VCC + 0. 3VHysteresis input
—VSS – 0.3—0.2 VCCVHysteresis input
—V
VCC = 4.5 V
I
OH = –4.0 mA
CC = 4.5 V
V
I
OH = –2.0 mA
VCC = 4.5 V
I
OL = 4.0 mA
CC = 4.5 V
V
I
OL = 2.0 mA
VCC = 5.5 V
0.2 V
CC < VI < 0.8 VCC
current
CC = 5.5 V
I
I2X0
V
0.2 V
CC < VI2 < 0.8 VCC
RST—2250110kΩ
Pull-up resistorR
pulU
MD1—2250150kΩ
Pull-down
resistor
R
pulD
MD0
MD2
—2250150kΩ
FC = 12 MHz—
F
C = 16 MHz—
ICCVCC
F
C = 16 MHz—
Power supply
voltage*
8
I
CCSVCC
I
CCHVCC——510µA
fC = 16 MHz*
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +85°C)
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
Value
UnitRemarks
Min.Typ.Max.
SS – 0.3—VSS + 0.3V
CC – 0.5—VCCV
V
CC – 2.5—VCCV
V
0—0.4V
0—V
CC – 2.5V
Hysteresis input
Except pins with
——±10µA
pull-up/pulldown resistor
and RST
——±20µA
4
*
MB90223/224
MB90P224A/
W224A
4
*
MB90223/224
4
*
MB90223/224
5
70*
70*
100mA MB90223
5
100mA MB90224
MB90P224A/
90*
5
125mA
P224B
MB90W224A/
W224B
9
——60mA At sleep mode
In stop mode
A = +25°C
T
At hardware
standby
(Continued)
pin
65
MB90220 Series
(Continued)
ParameterSymbolPin nameCondition
UnitRemarks
Min.Typ.Max.
Value
Analog power
supply voltage
Input
capacitance
I
A
fC = 16 MHz*
AVCC
AH———
I
C
IN
7
*
9
—3 7mA
6
5*
µAAt stop mode
——10—pF
*1: Hysteresis input pins
RST
, HST, P00 to P07, P10 to P17, P20 to P27, P30 to P37, P40 to P47, P50 to P57, P60 to P67, P80 to P87,
P90 to P97, PA0 to PA7, PB0 to PB7, PC0 to PC5
*2: Ouput pins
P00 to P07, P10 to P17, P20 to P27, P30 to P37, P40 to P47, P50 to P57, P70 to P77, P80 to P87, PA0 to
PA7, PB0 to PB7, PC0 to PC5
*3: Output pins
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
*4: A list of availabilities of pull-up/pull-down resistors
Pin nameMB90223/224MB90P224A/W224AMB90P224B/W224B
RST
Availability of pull-up resistors is optionally
defined.
Pull-up resist or s
available
Unavailable
MD1Pull-up resistors availableUnavailableUnavai la ble
MD0, MD2Pull-up resistors availableUnavailableUnavailable
*5: V
CC = +5.0 V, VSS = 0.0 V, TA = +25°C, FC = 16 MHz
*6: The current value applies to the CPU stop mode with A/D converter inactive (V
*7: Other than V
CC, VSS, AVCC and AVSS
CC = AVCC = AVRH = +5.5 V).
*8: Measurement condition of power supply current; external clock pin and output pin are open.
CC = +4.5 to +5.5 V, VSS = 0.0 V, TA = –40°C to +105°C)
CC = +4.5 to +5.5 V, VSS = 0.0 V, TA = –40°C to +85°C)
CC = +4.5 to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
Value
UnitRemarks
Min.Typ.Max.
MB90224/
10—16MHz
P224A/P224B
MB90W224A/
W224B
10—12MHzMB90223
MB90224/
62.5—100ns
P224A/P224B
MB90W224A/
W224B
83.4—100nsMB90223
Equivalent to
60% duty ratio
• Clock Input Timings
• Clock Conditions
ceramic resonator is used
tc
0.7 VCC0.7 VCC
0.3 VCC
PWHPWL
tcf
When a crystal
or
C1
C1 = C2 = 10 pF
Select the optimum capacity value for the resonator
2
C
When an external clock is used
0.7 VCC
0.3 VCC
tcr
X0X1X0X1
Open
67
MB90220 Series
• Relationship between Clock Frequency and Supply Voltage
Single-chip mode
VCC
[V]
5.5
4.5
016
(MB90224/P224B/W224B)
(MB90223)
(MB90P224A/W224A)
External bus mode
Operation assurance range
1012
: TA = –40°C to +105°C, Fc = 10 to 16 MHz
: TA = –40°C to +105°C, Fc = 10 to 12 MHz
: T
A = –40°C to +85°C, Fc = 10 to 16 MHz
: TA = –40°C to +70°C, Fc = 10 to 16 MHz
(Fc = 10 to 12 MHz, only for MB90223)
Fc
[MHz]
68
(2) Clock Output Timing
(External bus mode: V
Parameter
Symbol
Machine cycle timet
CYCCLK
Pin
name
Condition
Load
condition:
80 pF
MB90220 Series
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
Value
Min.Typ.Max.
62.5—1600ns
83.4—1600nsMB90223
UnitRemarks
MB90224/
P224A/P224B
MB90W224A/
224B
CLK ↑ → CLK↓t
t
CYC = n/FC, n gear ratio (1, 2, 4, 16)
CHCLCLKtCYC/2 – 20—tCYC/2ns
tCYC
tCHCL
CLK
(3) Reset and Hardware Standby Input Standards
Single-chip modeMB90223/224/P224B/W224B: (V
MB90P224A/W224A: (V
External bus mode: (V
Parameter
Symbol
Reset input time t
RSTLRST
Pin
name
Condition
—
Hardware standby input timet
HSTLHST5 tCYC——ns*
1/2 VCC
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +105°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +85°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +70°C)
Value
UnitRemarks
Min.Typ.Max.
5 t
CYC——ns
*: The machine cycle time (t
RST
HST
CYC) at hardware standby is set to 1/16 divided oscillation.
tRSTL, tHSTL
0.2 VCC
0.2 VCC
69
MB90220 Series
(4) Power on Supply Specifications (Power-on Reset)
Single-chip modeMB90223/224/P224B/W224B: (V
MB90P224A/W224A: (V
External bus mode: (V
Parameter
Power supply rising timet
Power supply cut-off timet
* :Before power supply rising, it is required to be V
SymbolPin nameCondition
RVCC———30ms*
OFFVCC—1——ms
CC < 0.2 V.
Notes: • Power-on reset assumes the above values.
• Whether the power-on reset is requi red o r not, turn the power on according to these character i stics and
trigger the power-on reset.
• There are internal registers (STBYC, etc.) which is initialized only by the power-on reset in the device.
• Power-on Reset
tR
VCC
4.5 V
0.2 V
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +105°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +85°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +70°C)
Value
UnitRemarks
Min.Typ.Max.
0.2 VCC
0.2 VCC
tOFF
Note: Note on changing power supply
Even if above characteristics are not insufficient, abrupt changes in power supply voltage may cause a poweron reset. Therefore, at the time of a momentar y chang es such as when power is tur ned on , ris e the power
smoothly as shown below.
• Changing Power Supply
Main power supply voltage
Subpower supply voltage
Vss
This rising edge should be
50 mV/ms or less
70
MB90220 Series
(5) Bus Read Timing
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
(V
Parameter
Valid address → RD
RD
pulse widthtRLRHRDtCYC – 25—ns
↓ timetAVRLA23 to A00
Symbol Pin nameCondition
t
CYC/2 – 20—ns
Value
Min.Max.
UnitRemarks
RD
↓→ Valid data inputtRLDV↑ → Data hold timetRHDX0—ns
RD
Valid address → Valid data input t
AVDV—
D15 to D00
Load
condition:
—t
CYC – 30ns
3 tCYC/2 – 40
ns
80 pF
RD
↑ → Address valid timetRHAXA23 to A00tCYC/2 – 20—ns
Valid address → CLK ↑ time t
↓→ CLK ↓ timetRLCLRD, CLKtCYC/2 – 25—ns
RD
CLK
RD
A23 to A00
AVCH
A23 to A00
CLK
tAVCHtRLCL
0.7 VCC
tAVRLtRLRH
0.3 VCC
0.7 VCC
0.3 VCC
0.3 VCC
t
CYC/2 – 25—ns
0.7 VCC
tRHAX
0.7 VCC
0.3 VCC
D15 to D00
tAVDV
tRLDV
0.8 VCC
0.2 VCC
Read data
tRHDX
0.8 VCC
0.2 VCC
71
MB90220 Series
(6) Bus Write Timing
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
(V
Parameter
Valid address → WR
WR
pulse width tWLWHWRL, WRHtCYC – 25—ns
↓ timetAVWLA23 to A00
SymbolPin nameCondition
tCYC/2 – 20—ns
Value
Min.Max.
UnitRemarks
Valid data output → WR
↑ → Data hold time tWHDXD15 to D00tCYC/2 – 20—ns
WR
↑ time tDVWHD15 to D00tCYC – 40—ns
Load
condition:
80 pF
WR
↑ → Address valid time tWHAXA23 to A00tCYC/2 – 20—ns
↓→ CLK ↓ timetWLCL
WR
CLK
WR
(WRL, WRH)
A23 to A00
WRL,
WRH
tAVWL
0.7 VCC
0.3 VCC
, CLK
tWLCL
tWLWH
0.3 VCC
t
CYC/2 – 25—ns
0.3 VCC
0.7 VCC
tWHAX
tWHDXtDVWH
0.7 VCC
0.3 VCC
72
D15 to D00
Indeter-
minate
0.7 VCC
0.3 VCC
Read data
0.7 VCC
0.3 VCC
(7) Ready Input Timing
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
(V
Parameter
Symbol
RDY setup timet
RDY hold timet
RYHSRDY
RYHHRDY0—ns
Pin
name
Condition
Load condition:
80 pF
Note: Use the auto-ready function if the RDY setup time is insufficient.
MB90220 Series
Value
UnitRemarks
Min.Max.
40—ns
CLK
A23 to A00
RD/WR
(WRL, WRH)
RDY
No wait
One wait
tRYHStRYHS
0.8 VCC
0.2 VCC
0.7 VCC0.7 VCC
tRYHHtRYHH
0.8 VCC
0.8 VCC
(8) Hold Timing
CC = +4.5 V to +5.5 V, VSS = 0.0 V, TA = –40°C to +70°C)
(V
Parameter
Pin floating → HAK
HAK
↑ time → pin valid timetHAHVHAKtCYC2 tCYCns
↓ timetXHALHAK
Symbol
Pin
name
Condition
Load condition:
80 pF
Value
Min.Max.
30t
0.8 VCC
UnitRemarks
CYCns
Note: It takes at least one machine cycle for HAK
HRQ
HAK
Each pin
0.8 VCC
tXHAL
to vary after HRQ is fetched.
0.2 VCC
0.7 VCC
0.3 VCC
tHAHV
High impedance
73
MB90220 Series
(9) UART Timing
Single-chip modeMB90223/224/P224B/W224B: (V
MB90P224A/W224A: (V
External bus mode: (V
Parameter
Serial clock cycle timet
SCLK ↓ → SOUT delay timet
Valid SIN → SCLK ↑t
SCLK ↑ → Valid SIN hold time t
Serial clock “H” pulse widtht
Serial clock “L” pulse wid tht
SCLK ↓ → SOUT delay timet
Valid SIN → SCLK ↑t
SCLK ↑ → valid SIN hold time t
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +105°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +85°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +70°C)
Condition
Notes: •These AC characteristics assume in CLK synchronization mode.
•“t
CYC” is the machine cycle (unit: ns).
Value
UnitRemarks
Min.Max.
8 t
CYC—ns
Internal
clock
operation
output pin
4 tCYC—ns
External
clock
operation
output pin
74
• Internal Shift Clock Mode
SCK
0.3 VCC0.3 VCC
tSLOV
SOD
MB90220 Series
tSCYC
0.7 VCC
0.7 VCC
0.3 VCC
SID
• External Shift Clock Input Mode
tSLSH
SCK
0.2 VCC0.2 VCC
tSLOV
SOD
SID
0.8 VCC
0.2 VCC
0.7 VCC
0.3 VCC
0.8 VCC
0.2 VCC
tIVSH
tIVSH
tSHIX
0.8 VCC
0.2 VCC
tSHSL
0.8 VCC0.8 VCC
tSHIX
0.8 VCC
0.2 VCC
75
MB90220 Series
(10) Resourse Input Timing
Single-chip modeMB90223/224/P224B/W224B: (V
MB90P224A/W224A: (V
External bus mode: (V
ParameterSymbolPin nameCondition
TIN1 to TIN5
TIWH
Input pulse width
t
tTIWL
PWC0 to PWC32 t
ASR0 to ASR32 t
INT0 to INT73 t
Load
condition:
80 pF
TRG02 t
ATG
t
WIWLWI4 tCYC——ns
TIN1 to TIN5
PWC0 to PWC3
ASR0 to ASR3
INT0 to INT7
WI
TRG0
ATG
tTIWH
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +105°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +85°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +70°C)
Value
Min.Typ.Max.
4 t
CYC——ns
CYC——ns
2 t
CYC——ns
CYC——ns
CYC——ns
CYC——ns
UnitRemarks
External event
count input mode
T rigger input/gate
input mode
2 tCYC——ns
0.8 VCC0.8 VCC
0.2 VCC0.2 VCC
tTIWL, tWIWL
(11) Resourse Output Timing
Single-chip modeMB90223/224/P224B/W224B: (V
MB90P224A/W224A: (V
External bus mode: (V
ParameterSymbolPin nameCondition
CLK ↑ → T
OUT
transition time
TOT0 to TOT5
TO
t
PPG0 to PPG1
POT0 to POT3
DOT0 to DOT7
CLK
T
OUT
Load
condition:
80 pF
0.7 VCC
0.7 VCC
0.3 VCC
tTO
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +105°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +85°C)
CC = +4.5 V to +5.5 V , VSS = 0.0 V, T A = –40°C to +70°C)
Value
Min.Typ.Max.
UnitRemarks
——30ns
76
5. A/D Converter Electrical Characteristics
MB90220 Series
Single-chip modeMB90223/224/P224B/W224B
MB90P224A/W224A
External bus mode: (AV
ParameterSymbol
CC = VCC = +4.5 V to + 5.5 V, A VSS =V SS = 0.0 V, T A = –40°C to +1 05°C, +4.5 V ≤ AVRH – AVRL)
: (A V
CC = VCC = +4.5 V to +5.5 V, AVSS = VSS =0.0 V , T A = –40 °C to +85°C, +4.5 V ≤ AVRH – A VRL)
: (A V
CC = VCC = +4.5 V to +5.5 V, AVSS = VSS =0.0 V , T A = –40 °C to +70°C, +4.5 V ≤ AVRH – A VRL)
Pin
name
Condition
Min.Typ.Max.
Value
UnitRemarks
Resolution n————10bit
Total erro r —————±3.0LSB
Linearity error —————±2.0LSB
Differential linearity error—————±1.5LSB
Zero transition voltageV
0T
—
AVRL – 1.5 AVRL + 0.5 AVRL + 2.5
LSB
AN00 to
Full-scale transition
voltage
Conversion time*
1
V
FST—
TCONV—
AN15
t
CYC
AVRH – 3.5 AVRH – 1.5 AVRH + 0.5
6.125——µs
LSB
= 62.5 ns
Sampling periodT
Analog port input currentI
Analog input voltageV
SAMP—3.75——µs
AIN
AIN—AVRL—AVRHV
AN00 to
AN15
———±0.1µA
98 machine
cycles
60 machine
cycles
Analog reference voltage—
AVRH—AVRL—AV
SS—AVRHV
Reference voltage supply
current
Variation between
channels
AVRL—AV
I
R
——200500µA
AVRH
I
RH———
AN00 to
—
AN15
———4LSB
*1: These standards in this table are for MB90224/P224A/P224B/W224A/W224B.
MB90223: Minimum conversion time is 8.17 µs and minimum sampling time is 5 µs at t
*2: The current value applies to the CPU stop mode with the A/D converter inactive (V
Notes: (1) The error becomes larger as | AVRH – AVRL | becomes smaller.
(2) Use the output impedance of the external circuit for analog input under the following conditions:
External circuit output impedance < approx. 10 kΩ (Sampling time approx. 3.75 µs, t
(3) Precision values are standard values applicable to sleep mode.
(4) If V
CC/AVCC or VSS/AVSS is caused by a noise to drop to below the analog input vol gtage, the analog
input current is l ikely to incr ease. In su ch cases , a bypas s capacitor or the like should be p rovided in
the external circuit to suppress the noise.
CCV
2
5*
CC = A VCC = A VR H = +5.5 V).
µA
CYC = 83.4 ns.
CYC = 62.5 ns)
77
MB90220 Series
• Analog Input Circuit Mode
Analog input
C0
Comparator
RON1
RON1: Approx. 1.5 k
RON2: Approx. 1.5 k
C
0: Approx. 60 pF
Ω
Ω
RON2
1
C
C1: Approx. 4 pF
Note: The values shown here are reference values.
6. A/D Converter Glossary
Resolution:Analog changes that are identifiable with the A/D converter
When the number of bits is 10, analog voltage can be divided into 2
T otal error:Difference between actual and logical values. This error is caused by a zero transition
error, full-scale transition error, linearity error, differential linearity error, or by noise.
Linearity error:The deviation of the straight line connecting the zero transition point (“00 0000 0000”
↔ “00 0000 0001”) with the full-scale transition point (“11 1111 1111” ↔
1110”) from actual conversion characteristics
Differential linearity error: The deviation of input voltage needed to change the output code by 1 LSB from the
theoretical value
Digital output
11 1111 1111
11 1111 1110
11 1111 1101
•
•
•
•
N + 1
N
N – 1
•
•
•
•
•
00 0000 0010
00 0000 0001
00 0000 0000
AVRLAVRH (V)
Theoretical value
Actual conversion value
V
0T
V
1T
V
2T
V
FST
– V
1 LSB
=
0T
, 1 LSB theoretical value
1022
Linearity error
Differential linearity error
Total error
V
(N – 1)T
V
NT
– (N × 1 LSB + V0T)
=
=
=
1 LSB
NT
– V
(N–1)T
V
1 LSB
V
NT
– {(N + 0.5) × 1 LSB theoretical value}
– 1
1 LSB theoretical value
Theoretical value (VNT)
Total error
Linearity error
N × 1LSB + V
V
NT
V
(N + 1)T
AVRH
– AVRL
=
1022
0T
V
N = 0 to 1022
NT (N = 0)
= V
V
V
NT (N = 1022)
0T
= V
N = 1 to 1022
N = 0 to 1022
FST
FST
10
= 1024.
“11 1111
78
■ EXAMPLE CHARACTERISTICS
(1) Power Supply Current
CC vs. TA example characteristics
I
CC(mA)ICCH (µA)
I
120
110
100
Fc = 16 MHz
External clock input
V
CC = 5.0 V
MB90220 Series
CCH vs.TA example characteristics
I
40
30
VCC = 5 V
90
80
70
60
50
40
–50050100150
T
MB90P224A
MB90223
A (°C)
20
10
0
–10
–50050100150
T
A (°C)
Note: These are not assured value of characteristics but example characteristics.
(2) Output Voltage
V
OH (V)
5.5
5.0
4.5
OH vs.IOH example characteristics
V
TA = +25°C
VCC =5.0 V
OL (V)
V
2.0
1.5
1.0
OL vs.IOL example characteristics
V
TA = +25°C
VCC =5.0 V
4.0
3.5
3.0
–15–10–505
I
OH (mA)
0.5
0.0
–0.5
–50510152025
Note: These are not assured value of characteristics but example characteristics.
I
OL (mA)
79
MB90220 Series
(V)
(3) Pull-up/Pull-down Resistor
Pull-down resistor example characteristicsPull-up resistor example characteristics
pulD (kΩ)RpulU (kΩ)
R
100
90
80
70
60
50
VCC = 4.5 V
V
CC = 5.0 V
V
CC = 5.5 V
100
90
80
70
60
50
VCC = 4.5 V
V
CC = 5.0 V
V
CC = 5.5 V
40
30
20
–50050100150
T
A (°C)
40
30
20
–50050100150
T
Note: These are not assured value of characteristics but example characteristics.
(4) Analog Filter
Analog filter example characteristics
Input pulse width (ns)
80
70
60
50
40
30
Filtering enable
20
TA = +25°C
A (°C)
10
4.04.55.05.56.0
V
CC
Note: These are not assured value of characteristics but example characteristics.
80
MB90220 Series
■ INSTRUCTION SET (412 INSTRUCTIONS)
Table 1 Explanation of Items in Table of Instructions
ItemExplanation
MnemonicUpper-case letters and symbols: Represented as they appear in assembler
Lower-case letters: Replaced when described in assembler.
Numbers after lower-case letters: Indicate the bit width within the instruction.
#Indicates the number of bytes.
~Indicates the number of cycles.
See Table 4 for details about meanings of letters in items.
BIndicates the correction value for calculating the number of actual cycles during
execution of instruction.
The number of actual cycles during execution of instruction is summed with the value in
the “cycles” column.
OperationIndicates operation of instruction.
LHIndicates special operations involving the bits 15 through 08 of the accumulator.
Z: Transfers “0”.
X: Extends before transferring.
—: Transfers nothing.
AHIndicates special operations involving the high-order 16 bits in the accumulator.
*: Transfers from AL to AH.
—: No transfer.
Z: Transfers 00
X: Transfers 00
IIndicates the status of each of the following flags: I (interrupt enable), S (stack), T (sticky
S
T
N
Z
V
C
RMWIndicates whether the instruction is a read-modify-write instruction (a single instruction
bit), N (negative), Z (zero), V (overflow), and C (carry).
*: Changes due to execution of instruction.
—: No change.
S: Set by execution of instruction.
R: Reset by execution of instruction.
that reads data from memory, etc., processes the data, and then writes the result to
memory.).
*: Instruction is a read-modify-write instruction
—: Instruction is not a read-modify-write instruction
Note: Cannot be used for addresses that have different meanings depending on
whether they are read or written.
H
to AH.
H
or FFH to AH by extending AL.
81
MB90220 Series
Table 2 Explanation of Symbols in Table of Instructions
SymbolExplanation
A32-bit accumulator
The number of bits used varies according to the instruction.
Byte: Low order 8 bits of AL
Word: 16 bits of AL
Long: 32 bits of AL, AH
AHHigh-order 16 bits of A
ALLow-order 16 bits of A
SPStack pointer (USP or SSP)
PCProgram counter
Number of execution cycles for each from of addressing
Listed in Table of Instructions
(b)*(c)*(d)*
bytewordlong
(a)*
2
2
2
1
Even address not in internal RAM+1+1+2
Odd address not in inter na l RAM+1+3+6
External data bus (8 bits)+1+3+6
* :“(b)”, “( c)”, an d “(d)” ar e used i n the “cyc les” (n umber of cycles ) column and col umn B (c orrec tion va lue) i n the
Table of Instructions.
85
MB90220 Series
Table 6 Transfer Instructions (Byte) [50 Instructions]
Mnemonic#
MOVA, dir
MOVA, addr16
MOVA, Ri
MOVA, ear
MOVA, eam
MOVA, io
MOVA, #imm8
MOVA, @A
MOVA, @RLi+disp8
MOVA, @SP+disp8
MOVP A, addr24
MOVP A, @A
MOVN A, #im m4
MOVX A, dir
MOVX A, addr16
MOVX A, Ri
MOVX A, ear
MOVX A, eam
MOVX A, io
MOVX A, #imm8
MOVX A, @A
MOVX A,@RWi+disp8
MOVX A, @RLi+disp8
MOVX A, @SP+disp8
MOVPX A, addr24
MOVPX A, @A
2
3
1
2
2+
2
2
2
3
3
5
2
1
2
3
2
2
2+
2
2
2
2
3
3
5
2
cycles
2
2
1
1
2+ (a)
2
2
2
6
3
3
2
1
2
2
1
1
2+ (a)
2
2
2
3
6
3
3
2
BOperation
byte (A) ← (dir)
(b)
byte (A) ← (addr16)
(b)
byte (A) ← (Ri)
0
byte (A) ← (ear)
0
byte (A) ← (eam)
(b)
byte (A) ← (io)
(b)
byte (A) ← imm8
0
byte (A) ← ((A))
(b)
byte (A) ← ((RLi))+disp8)
(b)
byte (A) ← ((SP)+disp8)
(b)
byte (A) ←(addr24)
(b)
byte (A) ← ((A))
(b)
byte (A) ← imm4
0
byte (A) ← (dir)
(b)
byte (A) ← (addr16)
(b)
byte (A) ← (Ri)
0
byte (A) ← (ear)
0
byte (A) ← (eam)
(b)
byte (A) ← (io)
(b)
byte (A) ← imm8
0
byte (A) ← ((A))
(b)
byte (A) ← ((RWi))+disp8)
(b)
byte (A) ← ((RLi))+disp8)
(b)
byte (A) ← ((SP)+disp8)
(b)
byte (A) ←(addr24)
(b)
byte (A) ← ((A))
(b)
LH AH
Z
Z
Z
Z
Z
Z
Z
–
Z
Z
Z
Z
–
Z
Z
X
X
X
X
X
X
X
–
X
X
X
X
X
–
X
ISTNZVC
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
R
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
RMW
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
MOVdir, A
MOVaddr16, A
MOVRi, A
MOVear, A
MOVeam, A
MOVio, A
MOV@RLi+disp8, A
MOV@SP+disp8, A
MOVP addr24, A
MOVRi, ear
MOVRi, eam
MOVP @A, Ri
MOVear, Ri
MOVeam, Ri
MOVRi, #imm8
MOVio, #imm8
MOVdir, #imm8
MOVear, #imm8
MOVeam, #imm8
MOV@AL, AH
2
3
1
2
2+
2
3
3
5
2
2+
2
2
2+
2
3
3
3
3+
2
2
2
1
2
2+ (a)
2
6
3
3
2
3+ (a)
3
3
3+ (a)
2
3
3
2
2+ (a)
2
byte (dir) ← (A)
(b)
byte (addr16) ← (A)
(b)
byte (Ri) ← (A)
0
byte (ear) ← (A)
0
byte (eam) ← (A)
(b)
byte (io) ← (A)
(b)
byte ((RLi)) +disp8) ← (A)
(b)
byte ((SP)+disp8) ← (A)
(b)
byte (addr24) ← (A)
(b)
byte (Ri) ← (ear)
0
byte (Ri) ← (eam)
(b)
byte ((A)) ← (Ri)
(b)
byte (ear) ← (Ri)
0
byte (eam) ← (Ri)
(b)
byte (Ri) ← imm8
0
byte (io) ← imm8
(b)
byte (dir) ← imm8
(b)
byte (ear) ← imm8
0
byte (eam) ← imm8
(b)
byte ((A)) ← (AH)
(b)
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
*
–
–
–
–
–
*
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
–
–
–
–
(Continued)
86
(Continued)
MB90220 Series
2
2+
2
2+
cycles
3
3+ (a)
4
5+ (a)
Mnemonic#
XCHA, ear
XCHA, eam
XCHRi, ear
XCHRi, eam
For an explanation of “(a)” and “(b)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressi ng, ”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
BOperation
byte (A) ↔ (ear)
0
2× (b)
2× (b)
byte (A) ↔ (eam)
byte (Ri) ↔ (ear)
0
byte (Ri) ↔ (eam)
LH AH
–
Z
–
Z
–
–
–
–
ISTNZVC
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
RMW
–
–
–
–
87
MB90220 Series
Table 7 Transfer Instructions (Word) [40 Instructions]
Mnemonic#
MOVW A, dir
MOVW A, addr16
MOVW A, SP
MOVW A, RWi
MOVW A, ear
MOVW A, eam
MOVW A, io
MOVW A, @A
MOVW A, #imm16
MOVW A, @RWi+disp8
MOVW A, @RLi+disp8
MOVW A, @SP+disp8
MOVPW A, addr24
MOVPW A, @A
MOVW dir, A
MOVW addr16, A
MOVW SP, # imm16
MOVW SP, A
MOVW RWi, A
MOVW ear, A
MOVW eam, A
MOVW io, A
MOVW @RWi+disp8, A
MOVW @RLi+disp8, A
MOVW @SP+disp8, A
MOVPW addr24, A
MOVPW @ A, RWi
MOVW RWi, ear
MOVW RWi, eam
MOVW ear, RWi
MOVW eam, RWi
MOVW RWi, #imm16
MOVW io, #imm16
MOVW ear, #imm16
MOVW eam, #imm16
2
3
1
1
2
2+
2
2
3
2
3
3
5
2
2
3
4
1
1
2
2+
2
2
3
3
5
2
2
2+
2
2+
3
4
4
4+
cycles
2
2
2
1
1
2+ (a)
2
2
2
3
6
3
3
2
2
2
2
2
1
2
2+ (a)
2
3
6
3
3
3
2
3+ (a)
3
3+ (a)
2
3
2
2+ (a)
BOperation
word (A) ← (dir)
(c)
word (A) ← (addr16)
(c)
word (A) ← (SP)
0
word (A) ← (RWi)
0
word (A) ← (ear)
0
word (A) ← (eam)
(c)
word (A) ← (io)
(c)
word (A) ← ((A))
(c)
word (A) ← imm16
0
word (A) ← ((RWi) +disp8)
(c)
word (A) ← ((RLi) +disp8)
(c)
word (A) ← ((SP) +disp8
(c)
word (A) ← (addr24)
(c)
word (A) ← ((A))
(c)
word (dir) ← (A)
(c)
word (addr16) ← (A)
(c)
word (SP) ← imm16
0
word (SP) ← (A)
0
word (RWi) ← (A)
0
word (ear) ← (A)
0
word (eam) ← (A)
(c)
word (io) ← (A)
(c)
word ((R Wi ) +di sp8) ← (A)
(c)
word ((RLi) +disp8) ← (A)
(c)
word ((SP) +disp8) ← (A)
(c)
word (addr24) ← (A)
(c)
word ((A)) ← (RWi)
(c)
word (RWi) ← (ear)
0
word (RWi) ← (eam)
(c)
word (ear) ← (RWi)
0
word (eam) ← (RWi)
(c)
word (RWi) ← imm16
0
word (io) ← imm16
(c)
word (ear) ← imm16
0
word (eam) ← imm16
(c)
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
RMW
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
MOVW @AL, AH
XCHW A, ear
XCHW A, eam
XCHW RWi, ear
XCHW RWi, eam
Note: For an explanation of “(a)” and “(c)”, refer to Table 4, “Number of Execution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actu al
Cycles.”
88
2
2
2+
2
2+
3
3+ (a)
4
5+ (a)
0
2× (c)
0
2× (c)
word (A) ↔ (ear)
word (A) ↔ (eam)
word (RWi) ↔ (ear)
word (RWi) ↔ (eam)
word ((A)) ← (AH)
(c)
2
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
MB90220 Series
Table 8 Transfer Instructions (Long Word) [11 Instructions]
2
2+
5
3
5
2
2
3
5
2
2+
cycles
1
3+ (a)
3
4
4
3
5
4
4
2
3+ (a)
BOperation
long (A) ← (ear)
0
long (A) ← (eam)
(d)
long (A) ← imm32
0
long (A) ← ((SP) +disp8)
(d)
long (A) ← (addr24)
(d)
long (A) ← ((A))
(d)
long ((A)) ← (RLi)
(d)
long ((SP) + disp8) ← (A)
(d)
long (addr24) ← (A)
(d)
long (ear) ← (A)
0
long (eam) ← (A)
(d)
Mnemonic#
MOVL A, ear
MOVL A, eam
MOVL A, # imm32
MOVL A, @SP + disp8
MOVPL A, addr24
MOVPL A, @A
MOVPL @A, RLi
MOVL @SP + disp8, A
MOVPL addr24, A
MOVL ear, A
MOVL eam, A
For an explanation of “(a)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressi ng, ”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
RMW
–
–
–
–
–
–
–
–
–
–
–
89
MB90220 Series
Table 9 Addition and Subtraction Instructions (Byte/Word/Long Word) [42 Instructions]
Mnemonic#
ADDA, #imm8
ADDA, dir
ADDA, ear
ADDA, eam
ADDear, A
ADDeam, A
ADDCA
ADDCA, ear
ADDCA, eam
ADDDC A
SUBA, #imm8
SUBA, dir
SUBA, ear
SUBA, eam
SUBear, A
SUBeam, A
SUBCA
SUBCA, ear
SUBCA, eam
SUBDC A
ADDW A
ADDW A, ear
ADDW A, eam
ADDW A, #imm16
ADDW ear, A
ADDW eam, A
ADDCW A, ear
ADDCW A, eam
word (eam) ← (eam) + (A)
word (A) ← (A) + (ear) + (C)
0
word (A) ← (A) + (eam) + (C)
(c)
LH AH
–
Z
–
Z
–
Z
–
Z
–
–
–
Z
–
Z
–
Z
–
Z
–
Z
–
Z
–
Z
–
Z
–
Z
–
–
–
–
–
Z
–
Z
–
Z
–
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
*
*
*
*
–
–
–
RMW
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
word (A) ← (AH) – (AL)
2
SUBW A
SUBW A, ear
SUBW A, eam
SUBW A, #imm16
SUBW ear, A
SUBW eam, A
SUBCW A, ear
SUBCW A, eam
ADDLA, ear
ADDLA, eam
ADDLA, #imm32
SUBLA, ear
SUBLA, eam
SUBLA, #imm32
For an explanation of “(a)”, “(b) ”, “(c)” and “(d)”, refer to Tabl e 4, “Number of Executio n Cycles for Each For m of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
90
1
2
2+
3
2
2+
2
2+
2
2+
5
2
2+
5
2
3+ (a)
2
2
3+ (a)
2
3+ (a)
5
6+ (a)
4
5
6+ (a)
4
0
0
(c)
0
0
2× (c)
0
(c)
0
(d)
0
0
(d)
0
word (A) ← (A) – (ear)
word (A) ← (A) – (eam)
word (A) ← (A) –imm16
word (ear) ← (ear) – (A)
word (eam) ← (eam) – (A)
word (A) ← (A) – (ear) – (C)
word (A) ← (A) – (eam) – (C)
long (A) ← (A) + (ear)
long (A) ← (A) + (eam)
long (A) ← (A) +imm32
long (A) ← (A) – (ear)
long (A) ← (A) – (eam)
long (A) ← (A) –imm32
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
*
*
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
MB90220 Series
Table 10 Increment and Decrement Instructions (Byte/Word/Long Word) [12 Instructions]
Mnemonic#
INCear
INCeam
DECear
DECeam
INCWear
INCWeam
DECW ear
DECW eam
INCLear
INCLeam
DECLear
DECLeam
2
2+
2
2+
2
2+
2
2+
2
2+
2
2+
cycles
2
3+ (a)
2
3+ (a)
2
3+ (a)
2
3+ (a)
4
5+ (a)
4
5+ (a)
BOperation
byte (ear) ← (ear) +1
0
2× (b)
2× (b)
2× (c)
2× (c)
2× (d)
2× (d)
byte (eam) ← (eam) +1
byte (ear) ← (ear) –1
0
byte (eam) ← (eam) –1
word (ear) ← (ear) +1
0
word (eam) ← (eam) +1
word (ear) ← (ear) –1
0
word (eam) ← (eam) –1
long (ear) ← (ear) +1
0
long (eam) ← (eam) +1
long (ear) ← (ear) –1
0
long (eam) ← (eam) –1
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
–
*
*
*
–
–
–
RMW
*
*
*
*
*
*
*
*
*
*
*
*
For an explanation of “(a)”, “(b)”, “(c)” and “(d) ”, refer to Table 4, “Number of E xecution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
For an explanation of “(a)”, “(b)”, “(c)” and “(d) ”, refer to Table 4, “Number of E xecution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
MULU A
MULU A, ear
MULU A, eam
MULUWA
MULUWA, ear
MULUW A, eam
2+
2+
8
1
*
9
2
*
10
*
11
1
*
12
2
*
13
*
byte (AH) × byte (AL) → word (A)
0
0
byte (A) × byte (ear) → word (A)
(b)
byte (A) × byte (eam) → w ord (A)
0
word (AH) × word (AL) → long (A)
0
word (A) × word (ear) → long (A)
(c)
word (A) × word (eam) → long (A)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)” and “ (c), refer to Table 5, “C orrection Values for Number of Cycle Used to Ca lculate
Number of Actual Cycles.”
*1: 3 when dividing into zero, 6 when an overflow occurs, and 14 normally.
*2: 3 when dividing into zero, 5 when an overflow occurs, and 13 normally.
*3: 5 + (a) when dividing into zero, 7 + (a) when an overflow occurs, and 17 + (a) normally.
*4: 3 when dividing into zero, 5 when an overflow occurs, and 21 normally.
*5: 4 + (a) when dividing into zero, 7 + (a) when an overflow occurs, and 25 + (a) normally.
*6: (b) when dividing into zero or when an overflow occurs, and 2 × (b) normally.
*7: (c) when dividing into zero or when an overflow occurs, and 2 × (c) normally.
*8: 3 when byte (AH) is zero, and 7 when byte (AH) is not 0.
*9: 3 when byte (ear) is zero, and 7 when byte (ear) is not 0.
*10: 4 + (a) when byte (eam) is zero, and 8 + (a) when byte (eam) is not 0.
*11: 3 when word (AH) is zero, and 11 when word (AH) is not 0.
*12: 3 when word (ear) is zero, and 11 when word (ear) is not 0.
*13: 4 + (a) when word (eam) is zero, and 12 + (a) when word (eam) is not 0.
92
MB90220 Series
Table 13 Signed Multiplication and Division Instructions (Word/Long Word) [11 Insturctions]
Mnemonic#
DIV A
2
cycles
1
*
BOperation
0
word (AH) /byte (AL)
LH AH
Z
–
ISTNZVC
–
–
–
–
–
*
*
RMW
–
Quotient → byte (AL) Remainder → byte (AH)
DIV A, ear
2
2
*
word (A)/byte (ear)
0
Z
–
–
–
–
–
–
*
*
–
Quotient → byte (A) Remainder → byte (ear)
DIV A, eam
2+
6
*
word (A)/byte (eam)
*
Z
–
–
–
–
–
–
*
*
–
3
Quotient → byte (A) Remainder → byte (eam)
DIVWA, ear
DIVWA, eam
2+
4
2
*
5
*
long (A)/word (ear)
0
Quotient → word (A) Remainder → word (ear)
7
*
long (A)/word (eam)
–
–
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
Quotient → w ord (A) Remainder → word (eam)
MUL A
MUL A, ear
MUL A, eam
MUL W A
MUL W A, ear
MUL W A, eam
2+
2+
8
2
*
9
2
*
10
*
11
2
*
12
2
*
13
*
byte (AH) × byte (AL) → word (A)
0
byte (A) × byte (ear) → word (A)
0
byte (A) × byte (eam) → word (A)
(b)
word (AH) × word (AL) → long (A)
0
word (A) × word (ear) → long (A)
0
word (A) × word (eam) → long (A)
(b)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)” and “(c)”, refer to Table 5, “Cor rection Values for Number of Cycles Used to Calcul ate
Number of Actual Cycles.”
*1: 3 when dividing into zero, 8 or 18 when an overflow occurs, and 18 normally.
*2: 3 when dividing into zero, 10 or 21 when an overflow occurs, and 22 normally.
*3: 4 + (a) when dividing into zero, 11 + (a) or 22 + (a) when an overflow occurs, and 23 + (a) normally.
*4: When the dividend is positive: 4 when dividing into zero, 10 or 29 when an overflow occurs, and 30 normally.
When the dividend is negative: 4 when dividing into zero, 11 or 30 when an overflow occurs, and 31 normally .
*5: When the dividend is po sitive: 4 + (a ) when di vidi ng int o zero, 11 + (a) or 30 + (a) when a n overflow occurs,
and 31 + (a) normally.
When the dividend is negati ve: 4 + (a) when d ividi ng into zero, 12 + (a) or 31 + (a) when an overflow occurs,
and 32 + (a) normally.
*6: (b) when dividing into zero or when an overflow occurs, and 2 × (b) normally.
*7: (c) when dividing into zero or when an overflow occurs, and 2 × (c) normally.
*8: 3 when byte (AH) is zero, 12 when the result is positive, and 13 when the result is negative.
*9: 3 when byte (ear) is zero, 12 when the result is positive, and 13 when the result is negative.
*10: 4 + (a) when byte (eam) is zero, 13 + (a) when the result is positive, and 14 + (a) when the result is negative.
*11: 3 when word (AH) is zero, 12 when the result is positive, and 13 when the result is negative.
*12: 3 when word (ear) is zero, 16 when the result is positive, and 19 when the result is negative.
*13: 4 + (a) when word (eam) is zero, 17 + (a) when the result is positive, and 20 + (a) when the result is negative.
Note: W hi ch of the two va lu es giv en fo r the nu mbe r of exe cut io n cyc les ap plies when an ov er flow er ror occur s in
a DIV or DIVW instruction depends on whether the overflow was detected before or after the operation.
ANDA, #imm8
ANDA, ear
ANDA, eam
ANDear, A
ANDeam, A
ORA, #imm8
ORA, ear
ORA, eam
ORear, A
OReam, A
XORA, #imm8
XORA, ear
XORA, eam
XORear, A
XOReam, A
NOTA
NOTear
NOTeam
ANDW A
ANDW A, #imm16
ANDW A, ear
ANDW A, eam
ANDW ear, A
ANDW eam, A
2
2
2+
2
2+
2
2
2+
2
2+
2
2
2+
2
2+
1
2
2+
1
3
2
2+
2
2+
cycles
2
2
3+ (a)
3
3+ (a)
2
2
3+ (a)
3
3+ (a)
2
2
3+ (a)
3
3+ (a)
2
2
3+ (a)
2
2
2
3+ (a)
3
3+ (a)
BOperation
byte (A) ← (A) and imm8
0
byte (A) ← (A) and (ear)
0
byte (A) ← (A) and (eam)
(b)
byte (ear) ← (ear) and (A)
0
2× (b)
2× (b)
2× (b)
2× (b)
2× (c)
byte (eam) ← (eam) and (A)
byte (A) ← (A) or imm8
0
byte (A) ← (A) or (ear)
0
byte (A) ← (A) or (eam)
(b)
byte (ear) ← (ear) or (A)
0
byte (eam) ← (eam) or (A)
byte (A) ← (A) xor imm8
0
byte (A) ← (A) xor (ear)
0
byte (A) ← (A) xor (eam)
(b)
byte (ear) ← (ear) xor (A)
0
byte (eam) ← (eam) xor (A)
byte (A) ← not (A)
0
byte (ear) ← not (ear)
0
byte (eam) ← not (eam)
word (A) ← (AH) and (A)
0
word (A) ← (A) and imm16
0
word (A) ← (A) and (ear)
0
word (A) ← (A) and (eam)
(c)
word (ear) ← (ear) and (A)
0
word (eam) ← (eam) and (A)
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
–
R
*
*
–
–
–
RMW
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
*
*
–
–
–
–
*
*
word (A) ← (AH) or (A)
2
ORWA
ORWA, #imm16
ORWA, ear
ORWA, eam
ORWear, A
ORWeam, A
XORW A
XORW A, #imm16
XORW A, ear
XORW A, eam
XORW ear, A
XORW eam, A
NOTW A
NOTW ear
NOTW eam
For an explanation of “(a)”, “(b)”, “(c)” and “(d) ”, refer to Table 4, “Number of E xecution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
1
3
2
2+
2
2+
1
3
2
2+
2
2+
1
2
2+
2
2
3+ (a)
3
3+ (a)
2
2
2
3+ (a)
3
3+ (a)
2
2
3+ (a)
0
0
0
(c)
0
2× (c)
0
0
0
(c)
0
2× (c)
0
0
2× (c)
word (A) ← (A) or imm16
word (A) ← (A) or (ear)
word (A) ← (A) or (eam)
word (ear) ← (ear) or (A)
word (eam) ← (eam) or (A)
word (A) ← (AH) xor (A)
word (A) ← (A) xor imm16
word (A) ← (A) xor (ear)
word (A) ← (A) xor (eam)
word (ear) ← (ear) xor (A)
word (eam) ← (eam) xor (A)
word (A) ← not (A)
word (ear) ← not (ear)
word (eam) ← not (eam)
For an explanation of “(a)” and “(d)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressi ng, ”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
For an explanation of “(a)”, “(b)” and “(c )” and refer to Table 4, “Number of E xecution Cycles for Each Form of
Addressing,” and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
Table 17 Absolute Value Instructions (Byte/Word/Long Word) [3 Insturctions]
byte (A) ← Arithmetic right barrel shift (A, imm8)
0
byte (A) ← Logical right barrel shift (A, imm8)
0
byte (A) ← Logical left barrel shift (A, imm8)
0
word (A) ← Arithmetic right shift (A, 1 bit )
0
word (A) ← Logical right shift (A, 1 bit)
0
word (A) ← Logical left shift (A, 1 bit)
0
word (A) ← Arithmetic right barrel shift (A, R0)
0
word (A) ← Logical right barrel shift (A, R0)
0
word (A) ← Logical left barrel shift (A, R0)
0
word (A) ← Arithmetic right barrel shift (A, imm8)
0
word (A) ← Logical right barrel shift (A, imm8)
0
word (A) ← Logical left barrel shift (A, imm8)
0
long (A) ← Arithmetic right shift (A, R0)
0
long (A) ← Logical right barrel shift (A, R0)
0
long (A) ← Logical left barrel shift (A, R0)
0
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
*
–
*
*
–
–
–
*
–
*
*
–
–
–
*
–
*
*
–
–
–
*
–
*
*
–
–
–
*
–
*
*
–
–
–
*
–
*
*
–
–
–
*
–
*
*
*
–
–
*
–
*
*
*
–
–
*
–
*
*
–
–
–
*
–
*
*
*
–
–
*
–
*
*
*
–
–
*
–
*
*
–
–
–
*
–
*
*
*
–
–
*
–
*
R
*
–
–
*
–
*
*
–
–
–
*
–
*
*
*
–
–
*
–
*
*
*
–
–
*
–
*
*
–
–
–
*
–
*
*
*
–
–
*
–
*
*
*
–
–
*
–
*
*
–
–
–
*
–
*
*
*
–
–
*
–
*
*
*
–
–
*
–
*
*
–
–
–
RMW
–
–
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ASRL A, #imm8
LSRL A, #imm 8
LSLL A, #imm8
4
3
*
4
3
*
4
3
*
long (A) ← Arithmetic right shift (A, imm8)
0
long (A) ← Logical right barrel shift (A, imm8)
0
long (A) ← Logical left barrel shift (A, imm8)
0
–
–
–
–
–
–
–
–
–
*
–
*
–
–
–
*
*
*
*
*
*
*
–
*
–
*
–
For an explanation of “(a)” and “(b)”, refer to Table 4, “Number of Execution Cycles for Each Form of Addressi ng, ”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
*1: 3 when R0 is 0, 3 + (R0) in all other cases.
*2: 3 when R0 is 0, 4 + (R0) in all other cases.
*3: 3 when imm8 is 0, 3 + (imm8) in all other cases.
*4: 3 when imm8 is 0, 4 + (imm8) in all other cases.
Branch when (Z) = 1
Branch when (Z) = 0
Branch when (C) = 1
Branch when (C) = 0
Branch when (N) = 1
Branch when (N) = 0
Branch when (V) = 1
Branch when (V) = 0
Branch when (T) = 1
Branch when (T) = 0
Branch when (V) xor (N) = 1
Branch when (V) xor (N) = 0
( (V) xor (N) ) or (Z) = 1
( (V) xor (N) ) or (Z) = 0
Branch when (C) or (Z) = 1
Branch when (C) or (Z) = 0
Branch unconditionally
word (PC) ← (A)
word (PC) ← addr16
word (PC) ← (ear)
word (PC) ← (eam)
word (PC) ← (ear), (PCB) ← (ear +2)
word (PC) ← (eam), (PCB) ← (eam +2)
word (PC) ← ad24 0 to 15
(PCB) ← ad24 16 to 23
word (PC) ← (ear)
word (PC) ← (eam)
word (PC) ← addr16
Vector call linstruction
word (PC) ← (ear) 0 to 15,
(PCB) ← (ear) 16 to 23
word (PC) ← (eam) 0 to 15,
(PCB) ← (eam) 16 to 23
word (PC) ← addr 0 to 15,
(PCB) ← addr 16 to 23
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
RMW
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(a)”, “(c)” and “(d)”, refer to T able 4, “Number of Execution Cycles for Each Form of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
*1: 3 when branching, 2 when not branching.
*2: 3 × (c) + (b)
*3: Read (word) branch address.
*4: W: Save (word) to stack; R: Read (word) branch address.
*5: Save (word) to stack.
*6: W: Save (long word) to W stack; R: Read (long word) branch address.
*7: Save (long word) to stack.
Branch when byte (ear ) =
(ear) – 1, and (ear) ≠ 0
2× (b)
Branch when byte (ear ) =
(eam) – 1, and (eam) ≠ 0
Branch when word (ear) =
0
(ear) – 1, and (ear) ≠ 0
Branch when word (eam) =
2× (c)
(eam) – 1, and (eam) ≠ 0
Software interrupt
8× (c)
Software interrupt
6× (c)
Software interrupt
6× (c)
Software interrupt
8× (c)
Return from interrupt
6× (c)
5
Return from interrupt
*
(c)
At constant entry, save old
frame pointer to stac k, se t ne w
frame pointer, and allocate
local pointer area
(c)
At constant entry, retrieve old
frame pointer from stack.
(c)
Return from subroutine
(d)
Return from subroutine
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
–
–
–
S
R
–
–
–
–
S
R
–
–
–
–
S
R
–
–
–
–
S
R
–
*
*
*
*
*
–
*
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
RMW
–
*
*
–
*
*
–
*
*
–
*
*
–
*
*
–
*
*
–
–
*
*
–
*
–
–
*
*
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)”, “(c)” and “(d)”, refer to T able 5, “Correction V alues for Number of Cycles Used to Calculate
Number of Actual Cycles.”
*1: 4 when branching, 3 when not branching
*2: 5 when branching, 4 when not branching
*3: 5 + (a) when branching, 4 + (a) when not branching
*4: 6 + (a) when branching, 5 + (a) when not branching
*5: 3 × (b) + 2 × (c) when an interrupt request is generated, 6 × (c) when returning from the interrupt.
*6: High-speed interrupt return instruction. When an interrupt request is detected during this instruction, the
instruction branches to the interrupt vector without performing stack operations when the interrupt is generated.
*7: Return from stack (word)
*8: Return from stack (long word)
98
MB90220 Series
Table 22 Other Control Instructions (Byte/Word/Long Word) [36 Instructions]
For an explanation of “(a)” and “(c)”, refer to Tables 4 and 5.
*1: PCB, ADB, SSB, USB, and SPB: 1 cycle*4: Pop count × (c), or push count × (c)
DTB: 2 cycles*5: 3 when AL is 0, 5 when AL is not 0.
DPR: 3 cycles*6: 4 when AL is 0, 6 when AL is not 0.
*2: 3 + 4 × (pop count)*7: 5 when AL is 0, 7 when AL is not 0.
*3: 3 + 4 × (push count)
–
–
–
*
–
–
–
*
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
*
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
99
MB90220 Series
Table 23 Bit Manipulation Instructions [21 Instructions]
Mnemonic#
MOVB A, dir:bp
MOVB A, addr16:bp
MOVB A, io:bp
MOVB dir:bp, A
MOVBaddr16:bp , A
MOVB io:bp, A
SETBdir:bp
SETBaddr16:b p
SETBio:bp
CLRBdir:bp
CLRBaddr16:bp
CLRBio:bp
BBCdir:bp, rel
BBCaddr16:bp, rel
BBCio:bp, rel
BBSdir:bp, rel
BBSaddr16:bp, rel
BBSio:bp, rel
SBBSaddr16:bp, rel
cycles
3
3
3
4
3
3
4
3
4
4
4
3
4
3
4
4
4
3
4
3
4
4
4
3
4
*
5
*
4
*
4
*
5
*
4
*
5
*
BOperation
(b)
byte (A) ← (dir:bp) b
(b)
byte (A) ← (addr16:bp) b
(b)
byte (A) ← (io:bp) b
2× (b)
2× (b)
2× (b)
2× (b)
2× (b)
2× (b)
2× (b)
2× (b)
2× (b)
1
1
1
1
1
1
2
2× (b)
bit (dir:bp) b ← (A)
bit (addr16:bp) b ← (A)
bit (io:bp) b ← (A)
bit (dir:bp) b ← 1
bit (addr16:bp) b ← 1
bit (io:bp) b ← 1
bit (dir:bp) b ← 0
bit (addr16:bp) b ← 0
bit (io:bp) b ← 0
(b)
Branch when (dir:bp) b = 0
(b)
Branch when (addr16:bp) b = 0
(b)
Branch when (io:bp) b = 0
(b)
Branch when (dir:bp) b = 1
(b)
Branch when (addr16:bp) b = 1
(b)
Branch when (io:bp) b = 1
Branch when (add r16:bp) b = 1, bit = 1
LH AH
Z
Z
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
*
–
–
–
–
*
–
–
–
–
*
–
–
–
–
*
–
–
–
–
*
–
–
–
–
*
–
–
–
–
RMW
–
–
–
–
–
–
–
–
–
*
–
–
*
–
–
*
–
–
*
–
–
*
–
–
*
–
–
*
–
–
*
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
WBTS io:bp
WBTC io:bp
3
3
3
*
3
*
4
Wait until (io:bp) b = 1
*
4
Wait until (io:bp) b = 0
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
For an explanation of “(b)”, refer to Table 5, “Correction V alues for Number of Cycles Used to Calculate Number of
Actual Cycles.”
*1: 5 when branching, 4 when not branching
*2: 7 when condition is satisfied, 6 when not satisfied
*3: Undefined count
*4: Until condition is satisfied
100
Loading...
+ 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.