The MB90246A series is a 16-bit microcontroller optimum to control mechatronics such as a hard disk drive unit.
2
The instruction set of F
instruction sets for high-level languages, extended addressing mode, enhanced multiplication/division
instructions, and enhanced bit manipulation instructions. The microcontroller has a 32-bit accumulator for
processing long word data (32-bit).
MC-16F CPU core inherits AT architecture of F2MC*-16/16H family with additional
DS07-13505-5E
The MB90246A series contains a production addition unit as peripheral resources for enabling easy
implementation of functions supported by IIR and FIR digital filters. It also supports a wealth of peripheral functions
including:
- an 8/10-bit A/D converter having eight channels;
- an 8-bit D/A converter having three channels;
- UART;
- an 8-bit PWM timer having four channels;
- a timer having three plus one channels;
- an input capture (ICU) having two channels; and
- a DTP/external interrupt circuit having four channels.
2
MC stands for FUJITSU Flexible Microcontroller.
* :F
PACKAGE
■
100-pin Plastic LQFP
(FPT-100P-M05)
MB90246A Series
FEATURES
■
•Clock
Operating clock can be selected from divided-by-2, 4, 8 or 32 of oscillation (at oscillation of 32 MHz, 1 MHz
to 16 MHz).
Minimum instruction execution time of 62.5 ns (at machine clock of 16 MHz)
• CPU addressing space of 16 Mbytes
Internal addressing of 24-bit
External accessing can be performed by selecting 8/16-bit bus width (external bus mode)
• Instruction set optimized for controller applications
Rich data types (bit, byte, word, long word)
Rich addressing mode (23 types)
High code efficiency
Enhanced precision calculation realized by the 32-bit accumulator
Signed multiplication/division instruction
• Instruction set designed for high level language (C) and multi-task operations
Adoption of system stack pointer
• Automatic data transmission function independent of CPU operation
Extended intelligent I/O service function (EI
• Low-power consumption (stand-by) mode
Sleep mode (mode in which CPU operating clock is stopped)
Stop mode (mode in which oscillation is stopped)
Hardware stand-by mode
Gear function
• DSP interface for the IIR filter
Function dedicated to IIR calculation
Up to eight items of results of signed multiplication of 16 × 16 bits are added.
Execution time of: 0.625 µs (When oscillation is 32 MHz and when N = M =3)
Up to three N and M values can be set at your disposal.
NM
Yk = Σ bn Yk – n + Σ am Xk – m
n = 0m = 0
3
MB90246A Series
PRODUCT LINEUP
■
Part number
Item
ClassificationMass-produced productEvaluation product
ROM sizeNone
RAM size4 k × 8 bits6 k × 8 bits
CPU functions
Ports
Timebase timer
Watchdog timer
MB90246A
The number of instructions: 412
Instruction bit length: 8 bits, 16 bits
Instruction length: 1 byte to 7 bytes
Data bit length: 1 bit, 4 bits, 8 bits, 16 bits, 32 bits
Minimum execution time: 62.5 ns (at machine clock of 16 MHz)
Interrupt processing time: 1.0 µs (at machine clock of 16 MHz, minimum
Pulse interval: 0.25 µs to 32.77 ms (at oscillation of 32 MHz)
Number of channels: 3
16-bit re-load timer operation
Interval: 125 ns to 131 ms (at machine clock of 16 MHz)
External event count can be performed.
Number of channel: 1
Overflow interrupts or intermediate bit interrupts may be generated.
Number of channel: 2
Rewriting a register value upon a pin input (rising, falling, or both edges)
Number of channels: 2
Clock synchronized transmission (62.5 kbps to 8 Mbps)
Clock asynchronized transmission (2404 bps to 500 kbps)
Clock synchronized transmission (250 kbps to 2 Mbps)
Transmission can be performed by bi-directional serial transmission or by
master/slave connection.
Number of inputs: 4
Started by a rising edge, a falling edge, an “H” level input, or an “L” level input.
External interrupt circuit or extended intelligent I/O service (EI
An interrupt generation module for switching tasks
Stop conversion mode (converts selected channel and stop operation repeatedly)
8-bit D/A converter
DSP interface for the IIR
filter
Low-power consumption
(stand-by) mode
ProcessCMOS
Power supply voltage for
operation*
MB90246A
Conversion precision: 10-bit or 8-bit can be selectively used.
Number of inputs: 8
One-shot conversion mode (converts selected channel only once)
Number of channels: 3
Resolution: 8 bits
Based on the R-2R system
Function dedicated to IIR calculation
Up to 8 items of results of signed
multiplication of 16 × 16 bits are added.
Execution time of: 0.625 µs
(When oscillation is 32 MHz and when N = M = 3)
Up to three N and M values can be set at your disposal.
Sleep/stop/hardware stand-by/gear function
NM
Yk = Σ bn Yk – n + Σ am Xk – m
n = 0m = 0
4.5 V to 5.5 V
MB90V246
* : Varies with conditions such as the operating frequency. (See section “■ Electrical Characteristics.”) Assurance
for the MB90V246 is given only for operation with a tool at a power voltage of 4.5 V to 5.5 V, an operating
temperature of 0 to 70 degrees centigrade, and an clock frequency of 1.6 MHz to 32 MHz.
Note: A 64-word RAM for product addition is supported in addition to the above RAMs.
PACKAGE AND CORRESPONDING PRODUCTS
■
PackageMB90246AMB90V246
FPT-100P-M05×
PGA-256C-A02×
: Available × : Not available
Note: For more information about each package, see section “■ Package Dimensions.”
DIFFERENCES AMONG PRODUCTS
■
Memory Size
In evaluation with an evaluation chips, note the difference between the evaluation chip and the chip actually used.
The RAM size is 4 Kbytes for the MB90246A, and 6 Kbytes for the MB90V246.
47 to 49MD0 to MD2CThis is an input pin for selecting operation modes.
75RSTBThis is external reset request signal.
50HSTCThis is a hardware stand-by input pin.
91 to 98P10 to P17DThis is a general-purpose I/O port.
16 to 20,
22 to 24
70P50EThis is a general-purpose I/O port.
71P51DThis is a general-purpose I/O port.
72P52DThis is a general-purpose I/O port.
73P53DThis is a general-purpose I/O port.
74P54EThis is a general-purpose I/O port.
Pin name
D08 to D15This is an I/O pin for the upper 8-bit of the external address data
P40 to P44,
P45 to P47
A16 to A20,
A21 to A23
CLKThis is a CLK output pin.
RDYThis is a ready input pin.
HAK
HRQThis is a hold request input pin.
WRH
Circuit
type
Connect directly to V
This function is valid in the 8-bit mode where the external bus is
valid.
bus.
This function is valid in the 16-bit mode where the external bus is
valid.
EThis is a general-purpose I/O port.
This function becomes valid in the bit where the upper address
control register is set to select a port.
This is an output pin for the upper 8-bit of the external address bus.
This function is valid in the mode where the external bus is valid
and the upper address control register is set to select an address.
This function becomes valid when the CLK output is disabled.
This function becomes valid when CLK output is enabled.
This function becomes valid when the external ready function are
disabled.
This function becomes valid when the external ready function is
enabled.
This function becomes valid when the hold function are disabled.
This is a hold acknowledge output pin.
This function becomes valid when the hold function is enabled.
This function becomes valid when the hold function are disabled.
This function becomes valid when the hold function is enabled.
This function becomes valid, in the external bus 8-bit mode, or
WRH
pin output is disabled.
This is a write strobe output pin for the upper 8-bit of the data bus.
This function becomes valid when the external bus 16-bit mode is
selected, and WRH
CC or VSS.
output pin is enabled.
Function
* :FPT-100P-M05
(Continued)
7
MB90246A Series
Pin no.
LQFP*
76P55EThis is a general-purpose I/O port.
77P56EThis pin cannot be used as a general-purpose port.
78,28,27P57,P73,P72EThis is a general-purpose I/O port.
36 to 39,
41 to 44
25P70EThis is a general-purpose I/O port.
26P71EThis is a general-purpose I/O port.
29 to 31P74 to P76EThis is a general-purpose I/O port.
51 to 53P82 to P84HThis is a general-purpose I/O port.
Pin name
WRThis is a write strobe output pin for the lower 8-bit of data bus.
WRL
RD
P60 to P63,
P64 to P67
AN0 to AN3,
AN4 to AN7
ASR0This is a data input pin for input capture 0.
ASR1This is a data input pin of input capture 1.
TIN0 to TIN 2This is an input pin of 16-bit timer.
TOT0 to TOT2These are output pins for 16-bit re-load timer 0 and 1.
DAO0 to DAO2This is an output pin of 8-bit D/A converter.
Circuit
type
This function becomes valid when WRL
This function becomes valid when WRL
WRL
is used for holding the lower 8-bit for write strobe in 16-bit
access operations, while WR is used for holding 8-bit data for write
strobe in 8-bit access operations.
This is a read strobe output pin for the data bus.
This function is valid in the mode where the external bus is valid.
GThis is an I/O port of an N-ch open-drain type.
When the data register is read by a read instruction other than the
modify write instruction with the corresponding bit in ADER set at
“0”, the pin level is acquired. The value set in the data register is
output to the pin as is.
This is an analog input pin of the 8/10-bit A/D converter.
When using this input pin, set the corresponding bit in ADER at “1”.
Also, set the corresponding bit in the data register at “1”.
Because this input is used as required when the input capture 0 is
performing input operations, and it is necessary to stop outputs
from other functions unless such outputs are made intentionally.
Because this input is used as required when input capture 1 is
performing input operations, and it is necessary to stop outputs by
other functions unless such outputs are made intentionally.
This function becomes valid when outputs from 16-bit re-load timer
0 – 2 are disabled.
Because this input is used as required whin 16-bit timer 0 - 2 is
performing input operations,and it is necessary to stop outputs by
other functions unless such outputs are made intentionally.
This function becomes valid when output from 16-bit re-load timer
0 – 2 are enabled.
This function becomes valid when data output from 8-bit D/A
converter 0 – 2 are disabled.
This function becomes valid when data output from 8-bit D/A
converter 0 – 2 are enabled.
Function
/WR pin output is disabled.
/WR pin output is enabled.
* :FPT-100P-M05
8
(Continued)
MB90246A Series
Pin no.
LQFP*
54 to 56P85 to P87EThis is a general-purpose I/O port.
57,
58
59P92EThis is a general-purpose I/O port.
60P93EThis is a general-purpose I/O port.
61P94EThis is a general-purpose I/O port.
Pin name
PWM0 to PWM2This is an output pin of 8-bit PWM timer.
P90,
P91
INT0,
INT1
INT2This is an input pin of the DTP/external interrupt circuit ch.2.
ATG
INT3This is a request input of the DTP/external interrupt circuit
PWM3This is an output pin of 8-bit PWM timer.
SID0This is a serial data I/O pin of UART.
Circuit
type
This function becomes valid when output from PWM0 – PWM2 are
disabled.
This function becomes valid when output from PWM0 – PWM2 are
enabled.
FThis is a general-purpose I/O port.
This is a request input pin of the DTP/external interrupt circuit ch.0
and 1.
Because this input is used as required when the DTP/external
interrupt circuit is performing input operations, and it is necessary
to stop outputs from other functions unless such outputs are made
intentionally.
Because this input is used as required when the DTP/external
interrupt circuit is performing input operations, and it is necessary
to stop outputs from other functions unless such outputs are made
intentionally.
This is a trigger input pin of the 8/10-bit A/D converter.
Because this input is used as requited when the 8/10-bit A/D
converter is performing input operations, and it is necessary to
stop outputs by other functions unless such outputs are made
intentionally.
This function is always valid.
This function becomes valid when output from PWM3 is disabled.
ch. 3.
Because this input is used as required when the DTP/external
interrupt circuit is performing input operations, and it is necessary
to stop outputs from other functions unless such output are made
intentionally.
This function becomes valid when output from PWM3 is enabled.
This function becomes valid when serial data output from UART is
disabled.
This function becomes valid when serial data output from UART is
enabled.
Because this input is used as required when UART is performing
input operations, and it is necessary to stop outputs by other
functions unless such outputs are made intentionally.
Function
* :FPT-100P-M05
(Continued)
9
MB90246A Series
Pin no.
LQFP*
62P95EThis is a general-purpose I/O port.
63P96EThis is a general-purpose I/O port.
1 to 6,
100,
99
7,
8,
10 to 15
64PA0EThis is a general-purpose I/O port.
65PA1EThis is a general-purpose I/O port.
66PA2EThis is a general-purpose I/O port.
Pin name
SOD0This is a data output pin of UART.
SCK0This is a clock I/O pin of UART.
A02 to A07,
A01,
A00
A08,
A09,
A10 to A15
SID1This is a data input pin of I/O simple serial interface 1.
SOD1This is a data output pin of I/O simple serial interface 1.
SCK1This is a clock output pin of I/O simple serial interface 1.
Circuit
type
This function becomes valid when data output from UART is
disabled.
This function becomes valid when data output from UART is
enabled.
This function becomes valid when clock output from UART is
disabled.
This function becomes valid when clock output from UART is
enabled.
Because this input is used as required when UART is performing
input operations, and it is necessary to stop outputs by other
functions unless such outputs are made intentionally.
EThis is an output pin for the lower 8-bit of the external address bus.
EThis is an output pin for the middle 8-bit of the external address
bus.
This function is valid in the mode where the external bus is valid
and the middle address control refister is set to select an address.
Because this input is used as required when I/O simple serial
interface 1 is performing input operations, and it is necessarey to
stop outputs by other functions unless such outputs are made
intentionally.
This function becomes valid when data output from I/O simple
serial interface 1 is disabled.
This function becomes valid when data output from I/O simple
serial interface 1 is enabled.
This function becomes valid when clock output from I/O simple
serial interface 1 is disabled.
This function becomes valid when clock output from I/O simple
serial interface 1 is enabled.
Function
* :FPT-100P-M05
10
(Continued)
MB90246A Series
(Continued)
Pin no.
LQFP*
Pin name
67PA3EThis is a general-purpose I/O port.
SID2This is a data input pin of I/O simple serial interface 2.
68PA4EThis is a general-purpose I/O port.
SOD2This is a data output pin of I/O simple serial interface 2.
69PA5EThis is a general-purpose I/O port.
SCK2This is clock output pin of I/O simple serial interface 2.
83 to 90D00 to D07DThis is an I/O pin for the lower 8-bit of the external data bus.
21,
V
CCPower
82
9,
V
SSPower
40,
79
32AV
CCPower
33AVRHPower
34AVRLPower
35AV
SSPower
45DVRHPower
46DVRLPower
Circuit
type
supply
supply
supply
supply
supply
supply
supply
supply
Function
Because this input is used as required when is performing input
operations, and it is I/O simple serial interface 2 necessarey to stop
outputs by other functions unless such outputs are made
intentionally.
This function becomes valid when data output from I/O simple
serial interface 2 is disabled.
This function becomes valid when data output from I/O simple
serial interface 2 is enabled.
This function becomes valid when clock output from I/O simple
serial interface 2 is disabled.
This function becomes valid when clock output from I/O simple
serial interface 2 is enabled.
This is power supply to the digital circuit.
This is a ground level of the digital circuit.
This is power supply to the analog circuit.
Make sure to turn on/turn off this power supply with a voltage
exceeding AV
CC applied to VCC.
This is a reference voltage input to the A/D converter.
Make sure to turn on/turn off this power supply with a voltage
exceeding AVRH applied to AV
CC.
This is a reference voltage input to the A/D converter.
This is a ground level of the analog circuit.
This is an external reference power supply pin for the D/A
converter.
This is an external reference power supply pin for the D/A
converter.
1. Make Sure that the Voltage not Exceed the Maximum Rating (to Avoid a Latch-up)
In CMOS ICs, a latch-up phenomenon is caused when an voltage exceeding VCC or an voltage below VSS is
applied to input or output pins or a voltage exceeding the rating is applied across VCC and VSS.
When a latch-up is caused, the power supply current may be dramatically increased causing resultant thermal
break-down of devices. To avoid the latch-up, make sure that the voltage not exceed the maximum rating.
In turning on/turning off the analog power supply, make sure the analog power voltage (AV
input voltages not exceed the digital voltage (V
CC).
CC, AVRH) and analog
2. Connection of Unused Pins
Leaving unused pins open may result in abnormal operations. Clamp the pin level by connecting it to a pull-up
or a pull-down resistor.
3. Notes on Using External Clock
In using the external clock, drive X0 pin only and leave X1 pin unconnected.
Using external clock
•
X0
Open
X1
MB90246A series
4. Power Supply Pins
In products with multiple VCC or VSS pins, the pins of a same potential are internally connected in the device to
avoid abnormal operations including latch-up. However, connect the pins external power and ground lines to
lower the electro-magnetic emission level and abnormal operation of strobe signals caused by the rise in the
ground level, and to conform to the total current rating.
Make sure to connect V
It is recommended to provide a bypass capacitor of around 0.1 µF between V
CC and VSS pins via lowest impedance to power lines.
CC and VSS pin near the device.
5. Crystal Oscillator Circuit
Noises around X0 or X1 pins may be possible causes of abnormal operations. Make sure to provide bypass
capacitors via shortest distance from X0, X1 pins, crystal oscillator (or ceramic resonator) and ground lines, and
make sure, to the utmost effort, that lines of oscillation circuit not cross the lines of other circuits.
It is highly recommended to provide a printed circuit board art work surrounding X0 and X1 pins with an grand
area for stabilizing the operation.
14
MB90246A Series
6. Turning-on Sequence of Power Supply to A/D Converter, D/A Converter and Analog Inputs
Make sure to turn on the A/D converter power supply (AVCC, AVRH, AVRL), D/A converter power supply and
analog inputs (AN0 to AN7) after turning-on the digital power supply (V
Turn-off the digital power after turning off the A/D converter supply and analog inputs. In this case, make sure
that the voltage not exceed AVRH or AV
CC (turning on/off the analog and digital supplies simultaneously is
acceptable).
7. Connection of Unused Pins of A/D Converter
Connect unused pins of A/D converter to AVCC = VCC, AVSS = AVRH = AVRL = VSS.
8. “MOV @AL, AH”, “MOVW @AL, AH” Instructions
When the above instruction is performed to I/O space, an unnecessary writing operation may be performed
(#FF, #FFFF) in the internal bus.
Use the compiler function for inserting an NOP instruction before the above instructions to avoid the writing
operation.
Accessing RAM space with the above instruction does not cause any problem.
CC).
9. Initialization
In the device, there are internal registers which is initialized only by a power-on reset. To initialize these registers
turning on the power again.
10.External Reset Input
To reset the internal securely, “L” level input to the RST pin must be at least 5 machine cycle.
11.HST Pin
Make sure HST pin is set to “H” level when turn on the power supply. Also make sure HST pin is never set to
“L” level, when RST
pin is set to “L” level.
12.CLK Pin
a case 32 MHz
P50/CLK*
X1
X0
2 deviding circuit
STOP
P50 output
P50 input
To the inside
CLK output
*: At P50/CLK pin in the external bus mode, CLK output is selected as an initial value.
The ROM data of bank FF is reflected in the upper address of bank 00, realizing effective use of the C compiler
small model. The lower 16-bit of bank FF and the lower 16-bit of bank 00 is assigned to the same address,
enabling reference of the table on the ROM without stating “far”.
17
MB90246A Series
2
F
MC-16F CPU PROGRAMMING MODEL
■
(1) Dedicated Registers
AHAL
USP
SSP
PS
PC
USPCU
SSCPU
USPCL
SSPCL
: Accumlator (A)
Dual 16-bit register used for storing results of calculation etc. The two 16-bit
registers can be combined to be used as a 32-bit register.
: User stack pointer (USP)
The 16-bit pointer for containing a user stack address.
: System stack pointer (SSP)
The 16-bit pointer for displaying the status of the system stack address.
: Processor status (PS)
The 16-bit register for displaying the system status.
: Program counter (PC)
The 16-bit register for displaying storing location of the current instruction code.
: User stack upper limit register (USPCU)
The 16-bit register for specifying the upper limit of the user stack.
: System stack upper limit register (SSPCU)
The 16-bit register for specifying the upper limit of the system stack.
: User stack lower limit register (USPCL)
The 16-bit register for specifying the lower limit of the user stack.
: System stack lower limit register (SSPCL)
The 16-bit register for specifying the lower limit of the system stack.
32-bit
16-bit
DPR
PCB
DTB
USB
SSB
ADB
8-bit
: Direct page register (DPR)
The 8-bit register for specifying bit 8 through 15 of the operand address in the
short direct addressing mode.
: Program bank register (PCB)
The 8-bit register for displaying the program space.
: Data bank register (DTB)
The 8-bit register for displaying the data space.
: User stack bank register (USB)
The 8-bit register for displaying the user stack space.
: System stack bank register (SSB)
The 8-bit register for displaying the system stack space.
: Additional data bank register (ADB)
The 8-bit register for displaying the additional data.
18
(2) General-purpose Registers
MB90246A Series
Maximum of 32 banks
H
000180
+ (RP × 10 H )
(3) Processor Status (PS)
ILMRPCCR
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
PS
ILM2B4ILM1 ILM0B3B2B1B0
R7
R5
R3
R1
RW3
RW2
RW1
RW0
16-bit
R6
R4
R2
R0
—
RW7
RL3
RW6
RW5
RL2
RW4
RL1
RL0
ISTNZVC
Initial value
— : Unused
X : Indeterminate
00 00000010XXXXX
—
19
MB90246A Series
I/O MAP
■
Address
000000
Abbreviated
register name
H
Register name
(System reservation area)*
Read/
write
Resource
name
1
Initial value
000001HPDR1Port 1 data register R/W!Port 1XXXXXXXXB
000002H
(System reservation area)*
1
000003H
000004HPDR4Port 4 data register R/W!Port 4XXXXXXXXB
000005HPDR5Port 5 data register R/W!Port 5XXXXXXXXB
000006HPDR6Port 6 data register R/W!Port 61 1 1 1 1 1 1 1 B
000007HPDR7Port 7 data register R/W!Port 7– XXXXXXX B
000008HPDR8Port 8 data register R/W!Port 8XXXXXX – – B
000009HPDR9Port 9 data register R/W!Port 9– XXXXXXX B
00000AHPDRAPort A data register R/W!Port A– – XXXXXXB
00000BH
to
00000F
000010
H
H
(System reservation area)*
(Vacancy)
1
000011HDDR1Port 1 direction register R/WPort 10 0 0 0 0 0 0 0 B
000012H
(System reservation area)*
1
000013H
000014HDDR4Port 4 direction register R/WPort 40 0 0 0 0 0 0 0 B
000015HDDR5Port 5 direction register R/WPort 50 0 0 0 0 0 0 0 B
Port 6,
000016HADERAnalog input enable registerR/W
8/10-bit A/D
11111111B
converter
000017HDDR7Port 7 direction register R/WPort 7– 0 0 0 0 0 0 0 B
000018HDDR8Port 8 direction register R/WPort 80 0 0 0 0 0 – – B
000019HDDR9Port 9 direction registerR/WPort 9– X X X X X X X B
00001AHDDRAPort A direction register R/WPort A– – 0 0 0 0 0 0 B
00001BH
to
00001F
000020
H
HSCR1Serial control status register 1R/W
000021HSSR1Serial status register 1R– – – – – – – 1 B
000022HSDR1LSerial data register 1 (L)R/WXXXXXXXXB
(Vacancy)
10000000B
I/O simple serial
interface 1
000023HSDR1HSerial data register 1 (H)R/WXXXXXXXXB
(Continued)
20
MB90246A Series
Address
000024
Abbreviated
register name
HSCR2Serial control status register 2R/W
Register name
000025HSSR2Serial status register 2R– – – – – – – 1 B
000026HSDR2LSerial data register 2 (L)R/WXXXXXXXXB
Read/
write
Resource
name
I/O simple serial
interface 2
Initial value
10000000B
000027HSDR2HSerial data register 2 (H)R/WXXXXXXXXB
000028HUMCMode control registerR/W
00000100B
000029HUSRStatus registerR/W00010000B
00002AH
UIDR/
UODR
Input data register/
output data register
R/WXXXXXXXX
UART
00002BHURDRate and data registerR/W0 0 0 0 0 0 0 0 B
00002CHPWMC3
PWM3 operating mode control
register
R/W
8-bit PWM
timer 3
00000XX1
00002DH(Vacancy)
00002E
00002FHPRLH3PWM3 re-road register (H)R/WXXXXXXXX B
0000A3H
0000A4HHACRUpper address control registerW
*2
External bus pin
0000A5
HEPCRExternal pin control registerW*2
0000A8HWDTCWatchdog timer control registerR/WWatchdog timerXXXXXXXXB
0000A9HTBTCTimebase timer control registerR/WTimebase timer– X X 0 0 1 0 0 B
0000B0HICR00Interrupt control register 00R/W
00000111B
0000B1HICR01Interrupt control register 01R/W0 0 0 0 0 1 1 1 B
0000B2HICR02Interrupt control register 02R/W0 0 0 0 0 1 1 1 B
0000B3HICR03Interrupt control register 03R/W0 0 0 0 0 1 1 1 B
0000B4HICR04Interrupt control register 04R/W0 0 0 0 0 1 1 1 B
0000B5HICR05Interrupt control register 05R/W0 0 0 0 0 1 1 1 B
0000B6HICR06Interrupt control register 06R/W0 0 0 0 0 1 1 1 B
0000B7HICR07Interrupt control register 07R/W0 0 0 0 0 1 1 1 B
0000B8HICR08Interrupt control register 08R/W0 0 0 0 0 1 1 1 B
Interrupt
controller
0000B9HICR09Interrupt control register 09R/W0 0 0 0 0 1 1 1 B
0000BAHICR10Interrupt control register 10R/W0 0 0 0 0 1 1 1 B
0000BBHICR11Interrupt control register 11R/W0 0 0 0 0 1 1 1 B
0000BCHICR12Interrupt control register 12R/W0 0 0 0 0 1 1 1 B
0000BDHICR13Interrupt control register 13R/W0 0 0 0 0 1 1 1 B
0000BEHICR14Interrupt control register 14R/W0 0 0 0 0 1 1 1 B
0000BFHICR15Interrupt control register 15R/W0 0 0 0 0 1 1 1 B
0000C0H
to
0000FF
(External area)*
H
3
24
MB90246A Series
Descriptions for read/write
R/W: Readable and writable
R: Read only
W: Write only
R/W!: Bits for reading operation only or writing operation only are included. Refer to the register lists for specific
resource for detailed information.
Descriptions for 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 indeterminate.
– : This bit is not used. The initial value is indeterminate.
* : The storage type varies with the value of the ADCSH CREG bit.
*1: Access prohibited.
*2: The initial value varies with bus mode.
*3: This area is the only external access area having an address of 0000FF
specified as reserved areas in the table is handled as if an internal area were accessed. A signal for accessing
an external bus is not generated.
*4: When a register described as R/W! or W in the read/write column is accessed by a bit setting instruction or
other read modify write instructions, the bit pointed to by the instruction becomes a set value. If a bit is writable
by other bits, however, malfunction occurs. You must not, therefore, access that register using these instructions.
H or lower. Access to any of the addresses
Note: For bits that is initialized by an reset operation, the initial value set by the reset operation is listed as an initial
value. Note that the values are different from reading results.
25
MB90246A Series
INTERRUPT FACTORS, INTERRUPT VECTORS, INTERRUPT CONTROL REGISTER
: Can not be used
: Can be used. With Extended intelligent I/O service (EI
2
OS) stop function at abnormal operation.
: Can be used if interrupt request using ICR are not commonly used.
26
MB90246A Series
*1: • Interrupt levels for peripherals that commonly use the ICR register are in the same level.
• When the extended intelligent I/O service (EI
register, only one of the functions can be used.
• When the extended intelligent I/O service (EI
can not be used on the other function.
*2: The level shows priority of same level of interrupt invoked simultaneously.
2
OS) is specified in a peripheral device commonly using the ICR
2
OS) is specified for one of the peripheral functions, interrupts
27
MB90246A Series
PERIPHERALS
■
1. I/O Port
(1) Input/output Port
Ports 1, 4, 5, 7 to 9, A are general-purpose I/O ports having a combined function as an external bus pin and a
resource input. The input output ports function as general-purpose I/O port only in the single-chip mode. In the
external bus mode, the ports are configured as external bus pins, and part of pins for port 4 can be configured
as general-purpose I/O port by setting the bus control signal select register (ECSR).
• Operation as output port
The pin is configured as an output port by setting the corresponding bit of the DDR register to “1”.
Writing data to PDR register when the port is configured as output, the data is retained in the output latch in
the PDR and directly output to the pin.
The value of the pin (the same value retained in the output latch of PDR) can be read out by reading the PDR
register.
Note: When a read-modify-write type instruction (e.g. bit set instruction) is performed to the port data register,
the destination bit of the operation is set to the specified value, not affecting the bits configured by the
DDR register for output, however, values of bits configured by the DDR register as inputs are changed
because input values to the pins are written into the output latch. To avoid this situation, configure the
pins by the DDR register as output after writing output data to the PDR register when configuring the bit
used as input as outputs.
• Operation as input port
The pin is configured as an input by setting the corresponding bit of the DDR register to “0”.
When the pin is configured as an input, the output buffer is turned-off and the pin is put into a high-impedance
status.
When a data is written into the PDR register, the data is retained in the output latch of the PDR, but pin outputs
are unaffected.
Reading the PDR register reads out the pin level (“0” or “1”).
• Block diagram
Standby control: Stop, timebase timer mode and SPL=1, or hardware standby mode
PDR (port data register)
PDR read
PDR write
DDR (port direction register)
Internal data bus
Direction latch
DDR write
DDR read
Output latch
P-ch
Pin
N-ch
Standby control (SPL=1)
28
MB90246A Series
(2) N-ch Open-drain Port
Port 6 is general-purpose I/O port having a combined function as resource input/output. Each pin can be switched
between resource and port bitwise.
• Operation as output port
When a data is written into the PDR register, the data is latched to the output latch of PDR. When the output
latch value is set to “0”, the output transistor is turned on and the pin status is put into an “L” level output, while
writing “1” turns off the transistor and put the pin in a high-impedance status.
If the output pin is pulled-up, setting output latch value to “1” puts the pin in the pull-up status.
Reading the PDR register returns the pin value (same as the output latch value in the PDR).
Note: Execution of a read-modify-write instruction (e.g. bit set instruction) reads out the output latch value rather
than the pin value, leaving output latch that is not manipulated unchanged.
• Operation as input port
Setting corresponding bit of the PDR register to “1” turns off the output transistor and the pin is put into a high-
impedance status.
Reading the PDR register returns the pin value (“0” or “1”).
• Block diagram
ADER (analog input enable register)
ADER read
ADER latch
ADER write
PDR (port data register)
RMW
(read-modify-write
Internal data bus
Standby control: Stop, timebase timer mode and SPL=1, or hardware standby mode
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
P67P66P65P64P63P62P61P60
R/WR/WR/WR/WR/WR/WR/WR/W
.............
bit 7 bit 0
(System reservation area)
.............
bit 7 bit 0
(PDR4)
.............
bit 7 bit 0
(PDR6)
.............
bit 7 bit 0
(PDR8)
.............
bit 7 bit 0
(System reservation area)
.............
bit 7 bit 0
(DDR4)
Port 1 data register
(PDR1)
Port 4 data register
(PDR4)
Port 5 data register
(PDR5)
Port 6 data register
(PDR6)
Port 7 data register
(PDR7)
Port 8 data register
(PDR8)
Port 9 data register
(PDR9)
Port A data register
(PDRA)
Port 1 direction register
(DDR1)
Port 4 direction register
Port 5 direction register
Analog input enable register
(DDR4)
(DDR5)
(ADER)
30
(Continued)
(Continued)
MB90246A Series
Address
000017
Address
000018
Address
000019
Address
00001A
R/W—: Readble and writable
bit 15 bit 14 bit 13bit 12bit 11 bit 10bit 9bit 8
H
—P76P75P74P73P72P71P70
—R/WR/WR/WR/WR/WR/WR/W
............
bit 15 bit 8
H
H
H
: Unused
(DDR9)
bit 15 bit 14 bit 13bit 12bit 11 bit 10bit 9bit 8
—P96P95P94P93P92P91P90
R/WR/WR/WR/WR/WR/WR/WR/W
............
bit 15 bit 8
(Vacancy)
bit 7 bit 0
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
P87P86P85P84P83P82——
R/WR/WR/WR/WR/WR/W——
bit 7 bit 0
............
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
——PA5PA4PA3PA2PA1PA0
——R/WR/WR/WR/WR/WR/W
.............
(ADER)
.............
(DDR8)
Port 7 direction register
(DDR7)
Port 8 direction register
(DDR8)
Port 9 direction register
(DDR9)
Port A direction register
(DDRA)
31
MB90246A Series
2. Timebase Timer
The timebase timer is a 18-bit free-run counter (timebase counter) for counting up in synchronization to the
internal count clock (divided-by-2 of oscillation) with an interval timer function for selecting an interval time from
four types of 2
The timebase timer also has a function for supplying operating clocks for the timer output for the oscillation
stabilization time or the watchdog timer etc.
(1) Register Configuration
• Timebase timer control register (TBTC)
Address
0000A9
R/W
W
—
X
RESV
13
/HCLK, 215/HCLK, 217/HCLK, and 219/HCLK.
bit 15 bit 14 bit 13bit 12bit 11 bit 10bit 9bit 8
H
RESV
R/W——R/WR/WWR/WR/W
: Readable and writable
: Read onlyR
: Write only
: Unused
: Indeterminate
: Reserved bit
To oscillation stabilization
time selector of clock control block
Set TBOF
RESV
timer selector
Clear TBOF
——
OFOF
Interval
TBIETBRTBOFTBC1 TBC0
18
OF
32
OF
: Overflow
HCLK
: Oscillation clock
*1
: Switch machine clock from oscillation clock to PLL clock
*2
: Interrupt signal
MB90246A Series
3. Watchdog Timer
The watchdog timer is a 2-bit counter operating with an output of the timebase timer and resets the CPU when
the counter is not cleared for a preset period of time.
(1) Register Configuration
• Watchdog timer control register (WDTC)
Address
0000A8
bit 15 bit 8
H
R: Read only
W: Write only
X : Indeterminate
(2) Block Diagram
Watchdog timer
Start sleep mode
Start hold status
Start stop mode
............
Watchdog timer control register (WDTC)
PONR STBR WRST ERST SRST WTE WT1 WT0
Counter clear
control circuit
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
PONR STBR WRST ERST SRST WTEWT1WT0(TBTC)
RRRRRWWW
2
CLR and start
Count clock
selector
CLR
counter
2-bit
Overflow
CLR
Watchdog reset
generation circuit
Initial value
XXXXXXXX
To internal reset
generation circuit
B
Clear
(Timebase timer counter)
Divided-by-2
of HCLK
HCLK: Oscillation clock
× 2
4
1
× 2
2
...
8
× 29× 210× 211× 212× 213× 214× 215× 216× 217× 2
× 2
18
33
MB90246A Series
4. 8-bit PWM Timer
The 8-bit PWM timer is a re-load timer module that can generate a pulse wave with any period/duty ratio. It uses
pulse output control according to timer operation for PWM (Pulse Width Modulation) output.
An appropriate external circuit allows the 8-bit PWM timer to operate as a D/A converter.
The 8-bit PWM timer module consists of two 8-bit re-load registers used to specify “H” width and “L” width and
of a down counter that is loaded alternately with those values and counts down.
• A pulse waveform with any period and duty ratio is generated.
• An output pulse’s duty ratio of 0.4 to 99.6 percent can be set.
• An appropriate external circuit allows this PWM timer to operate as a D/A converter.
• An interrupt request can be generated by counter underflow.
• The count clock can be selected from two types of timebase timer output.
The 16-bit re-load timer has an internal clock mode for counting down in synchronization to three types of internal
clocks and an event count mode for counting down detecting a given edge of the pulse input to the external bus
pin, and either of the two functions can be selectively used.
For this timer, an “underflow” is defined as the timing of transition from the counter value of “0000
H” to “FFFFH”.
According to this definition, an underflow occurs after [re-load register setting value + 1] counts.
In operating the counter, the re-load mode for repeating counting operation after re-loading a counter value after
an underflow or the one-shot mode for stopping the counting operation after an underflow can be selectively used.
Because the timer can generate an interrupt upon an underflow, the timer conforms to the extended intelligent
2
I/O service (EI
OS).
The MB90246A series has 3 channels of 16-bit re-load timers.
(1) Register Configuration
• Timer control status register 0, 1, 2 upper digits (TMCSR0, TMCSR1, TMCSR2: H)
Address
TMCSR0 : 000041
TMCSR1 : 000049
TMCSR2 : 000051
bit 15bit 14bit 13 bit 12 bit 11 bit 10bit 9bit 8
H
H
H
————CSL1 CSL0 MOD2 MOD1
————R/WR/WR/WR/W
.............
bit 7 bit 0
(TMCSR : L)
Initial value
----0000
B
• Timer control status register 0, 1, 2 lower digits (TMCSR0, TMCSR1, TMCSR2: L)
Address
TMCSR0 : 000040
TMCSR1 : 000048
TMCSR2 : 000050
.............
bit 15 bit 8
H
H
H
(TMCSR : H)
bit 7bit 6bit 5bit 4Initial value
OUTEMOD0
RELDOUTLUFINTETRGCNTE
bit 3bit 2bit 1bit 0
00000000
R/WR/WR/WR/WR/WR/WR/WR/W
B
• 16-bit timer register 0, 1 (TMR0, TMR1, TMR2)
bit 15Initial value
Address
TMR0 : 000042
TMR1 : 00004A
TMR2 : 000052
H
H
H
bit 14bit 13bit 12bit 11bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
*1: The timer has ch.0, ch.1 and ch.2, and listed in the parenthesis <> are for ch.1 and << >> for ch.2.
*2: Interrupt number
φ: Machine clock frequency
To UART (ch.1)*
To 8/10-bit A/D converter
(ch. 2)
1
Pin
P74/TIN0/TOT0
<P75/TIN1/TOT1>
<<P76/TIN2/TOT2>>
TRG
Interrupt request signal
H
#27 (1B
<#29 (1D
)
2
H
)>*
<<#31 (1FH)>>
37
MB90246A Series
6. 16-bit I/O Timer
The 16-bit I/O timer module consists of one 16-bit free-run timer, two input capture (ICU) circuits, and four output
comparators.
This complex module allows two independent waveforms to be output on the basis of the 16-bit free-run timer.
Input pulse width and external clock periods can, therfore, be measured.
The 16-bit I/O timer consists of:
• a 16-bit free-run timer; and
• two input captures (ICU).
• Block diagram
Internal data bus
16-bit
free-run timer
Dedicated bus
Input capture
(ICU)
38
MB90246A Series
(1) 16-bit Free-run Timer
The 16-bit free-run timer consists of a 16-bit up counter, a prescaler, and a control register. The value output
from the timer counter is used as basic timer (base timer) for input capture (ICU).
• A counter operation clock can be selected from four internal clocks.
• An interrupt request can be issued to the CPU by counter overflow.
• The extended intelligent I/O service (EI
• The 16-bit free-run timer counter is cleared to “0000
• Register configuration
• Timer control status register (TCCS)
Address
00006E
H
.............
bit 15 bit 8
(Vacancy)
• Timer data register (TCDT)
Address
00006D
00006C
bit 15
bit 14bit 13bit 12bit 11bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
H” by a reset or by clearing the timer (TCCS: CLK = 0).
bit 7bit 6bit 5bit 4
IVFRESV
R/WR/WR/WR/WR/WR/WR/WR/W
STOPIVFECLRRESVCLK0CLK1
bit 3bit 2bit 1bit 0
Initial value
00000000
Initial value
00000000
00000000
B
B
B
: Readable and writableR/W
: Reserved bitRESV
• Block diagram
φ
Timer control
status register
Timer data register (TCDT)
OF
CLKCLR
Prescaler
2
(TCCS)
RESV IVFIVFE STOP RESV CLR CLK1 CLK0
16-bit free-run timer
STOP
Count value output
to input capture
(ICU)
Free-run timer
interrupt request
H
#23 (17
)*
Internal data bus
: Machine clock frequency
φ
: Overflow
OF
*
: Interrupt number
39
MB90246A Series
(2) Input Capture (ICU)
The input capture (ICU) consists of a capture register corresponding to two 16-bit external input pins, a control
register, and an edge detector. Upon input of a trigger edge through an external input pin, the counter value of
the 16-bit free-run timer is stored into the input capture register, and an interrupt request can be generated
concurrently.
• A capture interrupt can be generated independently for each capture unit.
• The extended intelligent I/O service (EI
• A trigger edge direction can be selected from rising/falling/both edges.
• Since two input capture units can be operated independent of each other, up to two events can be measured
independently.
• The input capture function is suited for measurements of intervals (frequencies) and pulse-widths.
• Register configuration
• Input capture control status register (ICS)
Address
ICS0 : 000064
H
.............
bit 15 bit 8
(Vacancy)
2
OS) can be activated.
bit 7bit 6bit 5bit 4
ICP0ICP1
R/WR/WR/WR/WR/WR/WR/WR/W
ICE0ICE1EG10EG11EG00EG01
bit 3bit 2bit 1bit 0
Initial value
00000000
B
• Input capture register (IPCP0, IPCP1)
bit 15
bit 14bit 13bit 12bit 11bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
UART0 is a general-purpose serial data communication interface for performing synchronous or asynchronous
communication (start-stop synchronization system). In addition to the normal duplex communication function
(normal mode), UART0 has a master-slave type communication function (multi-processor mode).
• Data buffer: Full-duplex double buffer
• Transfer mode:Clock synchronized (with start and stop bit)
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit 15 bit 9
D7D6D5D4D3D1D0(URD)D8D2
WWWWWWWWW
D2
.............
.............
(UIDR/UODR)
Initial value
00010000
Initial value
00000100
Initial value
00000000
Initial value
XXXXXXXX
Initial value
XXXXXXXX
B
B
B
B
B
43
MB90246A Series
(2) Block Diagram
Dedicated baud
rate generator
16-bit re-load
timer 2
Pin
P96/SCK0
Clock
selector
Receive
clock
Start bit
detection circuit
Control bus
Receive
control circuit
Transmit
clock
Transmit
control circuit
Transmit start
circuit
Receive
interrupt signal
H
#39 (27
Transmit
interrupt signal
#37 (25
)*
H
)*
Pin
P94/SID0
Receive condition
decision circuit
UMC
register
Receive bit
Receive parity
Shift register for
reception
PEN
SBL
MC1
MC0
SMDE
RFC
SCKE
SOE
counter
counter
Reception
UIDRUODR
Internal data bus
register
complete
USR
Transmit bit
counter
Transmit parity
counter
Shift register for
transmission
RDRF
ORFE
PE
TDRE
RIE
TIE
RBF
TBF
URD
register
Pin
P95/SOD0
Start transmission
2
OS reception
To EI
error generation
signal (to CPU)
BCH
RC3
RC2
RC1
RC0
BCH0
P
D8
44
* : Interrupt number
MB90246A Series
9. DTP/External Interrupt Circuit
The DTP (Data Transfer Peripheral)/external interrupt circuit is located between peripheral equipment connected
externally and the F
peripheral equipment to the CPU, generates external interrupt request and starts the extended intelligent I/O
service (EI
2
OS).
(1) Register Configuration
• DTP/interrupt factor register (EIRR)
Address
000031
• DTP/interrupt enable register (ENIR)
Address
000030
2
MC-16F CPU and transmit interrupt requests or data transfer requests generated by
............
bit 15 bit 14bit 13 bit 12bit 11 bit 10bit 9bit 8
H
RESV RESV RESV RESVER3ER2ER1ER0
————R/WR/WR/WR/W
............
bit 15 bit 8
H
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
RESV RESV RESV RESVEN3EN2EN1EN0(EIRR)
————R/WR/WR/WR/W
bit 7 bit 0
(ENIR)
Initial value
- -- - 0000
Initial value
- -- - 0000
B
B
• Request level setting register (ELVR)
Address
H
000032
R/W: Readable and writable
— : Unused
RESV : Reserved bit
............
bit 15 bit 8
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
LB3LA3LB2LA2LB1LA1LB0LA0(Vacancy)
R/WR/WR/WR/WR/WR/WR/WR/W
Initial value
00000000
B
45
MB90246A Series
(2) Block Diagram
Request level setting register (ELVR)
LB3LA3LB2LA2LB1LA1LB0LA0
Pin
P93/INT3/
PWM3
Pin
P92/INT2/ATG
s
u
b
a
t
a
d
l
Pin
a
n
r
e
P91/INT1
t
n
I
Pin
P90/INT0
22
Level edge
selector 3
Level edge
selector 2
DTP/external interrupt input
detection circuit
DTP/interrupt factor register
(EIRR)
RESV RESV RESV RESV ER3ER2 ER1 ER0
2
2
Level edge
selector 1
Level edge
selector 0
Interrupt request signal
#21 (15H)*
46
*: Interrupt signal
DTP/interrupt enable register
(ENIR)
RESV RESV RESV RESV EN3EN2 EN1 EN0
#19 (13
#13 (0D
#11 (0B
H
)*
H
)*
H
)*
MB90246A Series
10. Delayed Interrupt Generation Module
The delayed interrupt generation module generates interrupts for switching tasks for development on a realtime operating system (REALOS series). The module can be used to generate softwarewise generates hardware
interrupt requests to the CPU and cancel the interrupts.
2
This module does not conform to the extended intelligent I/O service (EI
The 8/10-bit A/D converter has a function of converting analog voltage input to the analog input pins (input
voltage) to digital values (A/D conversion) and has the following features.
• Minimum conversion time: 6.13 µs (at machine clock of 16 MHz, including sampling time)
— ACS2 ACS1 ACS0 —— CREG SCAN BUSY INT INTE— STS1 STS0 STAR RESV
A/D control status register (ADCS)
φ : Machine clock frequency
TO : 16-bit re-load timer channel 1 output
Control circuit
2
Interrupt request #33 (21H)
50
MB90246A Series
12. 8-bit D/A Converter
The 8-bit D/A converter, which is based on the R-2R system, supports 8-bit resolution mode. It contains two
channels each of which can be controlled in terms of output by the D/A control register.
(1) Register Configuration
• D/A control register 0 (DACR0)
.............
bit 15 bit 14 bit 13
H
00005B
———
———
• D/A control register 1 (DACR1)
bit 15 bit 14 bit 13
H
00005D
———
———
• D/A control register 2 (DACR2)
bit 12
—
—
bit 12
—
—
bit 11 bit 10bit 9bit 8Address
———DAE0
———R/W
bit 11 bit 10bit 9bit 8Address
———DAE1
———R/W
bit 7 bit 0
(DADR0)
.............
bit 7 bit 0
(DADR1)
Initial value
-------0
Initial value
-------0
B
B
Address
00005F
bit 15 bit 14 bit 13
H
———
———
• D/A data register 0 (DADR0)
............
Address
00005A
bit 15 bit 8
H
(DACR0)DA07 DA06 DA05
• D/A data register 1 (DADR1)
............
Address
00005C
bit 15 bit 8
H
(DACR1)DA17 DA16 DA15
• D/A data register 2 (DADR2)
............
Address
00005E
R/W:Readable and writable
—:Unused
X : Indeterminate
bit 15 bit 8
H
(DACR2)DA27 DA26 DA25
bit 11 bit 10bit 9bit 8
bit 12
———DAE2
—
———R/W
—
bit 7bit 6bit 5
R/WR/WR/W
bit 7bit 6bit 5
R/WR/WR/W
bit 7bit 6bit 5
R/WR/WR/W
bit 7 bit 0
bit 3bit 2bit 1bit 0
bit 4
DA03 DA02 DA01 DA00
DA04
R/WR/WR/WR/W
R/W
bit 3bit 2bit 1bit 0
bit 4
DA13 DA12 DA11 DA10
DA14
R/WR/WR/WR/W
R/W
bit 3bit 2bit 1bit 0
bit 4
DA23 DA22 DA21 DA20
DA24
R/WR/WR/WR/W
R/W
.............
(DADR2)
Initial value
-------0
Initial value
XXXXXXXX
Initial value
XXXXXXXX
Initial value
XXXXXXXX
B
B
B
B
51
MB90246A Series
(2) Block Diagram
D/A data register (DADR0)
<DADR1> <DADR2>
DA×7
Internal data bus
DA×6DA×5DA×4DA×3DA×2DA×1DA×0
D/A converter
DVRH
DA×7
2R
2R
2R
R
R
R
DA×6
DA×5
DA×4
Pin
P82/DAO0
<P83/DAO1>
<P84/DAO2>
2R
2R
2R
2R
2R
DVRL
R
R
R
R
R
DAE———————
DA×3
DA×2
DA×1
DA×0
Standby control
D/A control register (DACR0)
<DACR1> <DACR2>
Internal data bus
Note: The 8-bit D/A converter supports channels 0 to 2. A value enclosed by < and >
is for channels 1 and 2.
52
MB90246A Series
13. DSP Interface for the IIR Filter
The DSP interface for the IIR filter is a unit which covers product addition (ΣBi × Yj + ΣAm × Xn) by hardware.
This interface allows IIR filter calculation to be performed readily and in a high speed.
The DSP interface for the IIR filter has the following features.
• Coefficients A and B, and variables X and Y have 16-bit length, and four banks are supported.
• (1 to 4) + (1 to 4) product terms can be selected.
• Data can be rounded and clipped in units of 10 or 12 bits.
• With two or more concatenated banks used, the results of an operation can be transferred to the subsequent
bank register.
• Operation time: ((M + N + 1) × B + 1)/φ µs(M, N = number of product terms, B = number of banks, φ: machine
clock)
(1) Register Configuration
• Product addition control status register upper digits (MCSR:H)
.............
bit 7 bit 0
(MCSR:L)
Initial value
-XXXXXXX
B
000081
bit 15 bit 14 bit 13
H
—WEYWENY
—R/WR/W
bit 12
WENX
R/W
bit 11 bit 10bit 9bit 8Address
N1N0M1M0
R/WR/WR/WR/W
• Product addition control status register lower digits (MCSR:L)
Address
000080
bit 15 bit 8
H
(MCSR:H)RNDCLPDIV
bit 7bit 6bit 5
R/WR/WR/W
bit 4
BF
R
............
• Product addition control register upper digits (MCCR:H)
000083
bit 15 bit 14 bit 13
H
———
———
bit 12
—
—
bit 11 bit 10bit 9bit 8Address
——RESV RESV
——R/WR/W
• Product addition control register lower digits (MCCR:L)
Address
000082
bit 15 bit 8
H
(MCCR:H)OVFCNTD CNTC
bit 7bit 6bit 5
R/WR/WR/W
bit 4
CNTB
R/W
............
• Product addition output register (MDORL, M, H)
Address
MDORH : 000088
MDORM : 000086
MDORL : 000084
H
H
H
bit 10bit 11bit 12bit 13bit 14bit 15
bit 7 bit 6 bit 5
SSSSSD34D33D32
RRRRRRRR
D23 D22 D21
RRRRRRRRRRRRRRRR
D7 D6 D5
RRRRRRRRRRRRRRRR
bit 3bit 2bit 1bit 0
BNK1 BNK0 TRGMAE
R/WR/WWR/W
.............
bit 7 bit 0
(MCCR:L)
bit 3bit 2bit 1bit 0
CDRD CDRC CDRB CDRA
R/WR/WR/WR/W
bit 3bit 2bit 1bit 0bit 8bit 9
bit 4
D19 D18 D17 D16D24D25D26D27D28D29D30D31
D20
D3 D2 D1 D0D8D9D10D11D12D13D14D15
D4
Initial value
XXX0XXX0
Initial value
------00
Initial value
00000000
Initial value
XXXXXXXX
XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX
B
B
B
B
B
B
R/W: Readable and writable
R : Read only
W : Write only
— : Unused
X : Indeterminate
RESV : Reserved bit
53
MB90246A Series
(2) Block Diagram
Internal data bus
Transfer data
Transfer data
selector
Coefficient registerCoefficient register
A0 to A3B0 to B3X0 to X3Y0 to Y3
Coefficient register
selector
Input data selector
Product addition unit
Input data registerInput data register
Register selection
Register
selection
Bank/register
Product adder
4
Right shift and clip
OVF CNTD CNTC
CDRD CDRC CDRB CDRA
CNTB
Product addition control register (MCCR)
Product addition output register L
(MDORL)
Product addition output register M
(MDORM)
Product addition
output register H
(MDORH)
selector
selector
3
Bank
selection
Register
selection
54
4
3
—WEY WENY
N1N0M1M0 RND CLP DIVBF BNK1 BNK0 TRG MAE
WENX
Product addition control status register (MCSR)
2
MB90246A Series
14. Low-power Consumption (Stand-by) Mode
The F2MC-16F has the following CPU operating mode configured by selection of an clock operation control.
• Stand-by mode
The hardware stand-by mode is a mode for reducing power consumption by stopping clock supply to the CPU
by the low-power consumption control circuit, and stopping oscillation clock (stop mode, hardware standby
mode).
Gear function contributes to the low-power dissipation by providing options of divide-by-2, 4, or 16 external
clock frequencies, whichiare usually derived from non-divided frequencies.
Low-power consumption mode control register (STBYC)
STP SLPSPL RST OSC1 OSC0 CLK1 CLK0
Pin
high-impedance
control circuit
Pin Hi-z control
RST
Pin
Cancellation of reset
Cancellation of interrupt
HST
Pin
Clock
generation
block
X0Pin
X0Pin
Clock selector
Divided
-by-2
System clock
generation
circuit
Oscillation
clock
2
2
Divided
-by-2
DDC
Standby control
circuit
Machine clock
Cancellation of
oscillation
stabilization time
Divided
-by-4
Main clock
Divided
-by-2
Internal reset
generation
circuit
CPU clock
control circuit
RST
Peripheral clock
control circuit
2
14
Divided
-by-2
Divided
-by-2
Internal reset
CPU clock
Stop and sleep signal
Stop signal
Peripheral clock
Oscillation
stabilization
time selector
Divided
-by-2
Timebase timer
56
DDC: Direct duty control
ELECTRICAL CHARACTERISTICS
■
1. Absolute Maximum Ratings
Parameter
MB90246A Series
Symbol
Min.Max.
V
CCVSS – 0.3VSS + 7.0V
AV
CCVSS – 0.3VSS + 7.0V*1
Value
UnitRemarks
(AVSS = VSS = 0.0 V)
Power supply voltage
Input voltage V
Output voltageV
“L” level maximum output current I
AVRH,
AVRL
DVRH,
DVRL
IVSS – 0.3VCC + 0.3V*2
OVSS – 0.3V CC + 0.3V*2
OL10mA*3
SS – 0.3VSS + 7.0V*1
V
V
SS – 0.3VSS + 7.0V*1
“L” level average output current IOLAV4mA*4
“L” level total average output currentΣI
“H” level maximum output currentI
OLAV50mA*5
OH–10mA*3
“H” level average output currentIOHAV–4mA*4
“H” level total average output currentΣI
Power consumptionP
Operating temperatureT
OHAV–48mA*5
D600mW
A–30+70°C
Storage temperatureTstg–55+150°C
*1: AV
CC, AVRH, AVRL, DVRH and DVRL shall never exceed VCC.
DVRL shall never exceed DVRH. AVRL shall never exceed AVRH.
*2: V
I and VO shall never exceed VCC + 0.3 V.
*3: The maximum output current is a peak value for a corresponding pin.
*4: Average output current is an average current value observed for a 100 ms period for a corresponding pin.
*5: Total average current is an average current value observed for a 100 ms period for all corresponding pins.
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.
57
MB90246A Series
2. Recommended Operating Conditions
Parameter
Power supply voltage
Symbol
V
CC4.55.5VNormal operation
CC2.05.5V
V
Min.Max.
(AVSS = VSS = 0.0 V)
Value
UnitRemarks
Retains RAM data at the time of
operation stop
Operating temperatureT
WARNING: The recommended operating conditions are required in order to ensure the normal operation of the
semiconductor device. All of the device's electrical characteristics are warranted when the device is
operated within these ranges.
Always use semiconductor devices within their recommended operating condition ranges. Operation
outside these ranges may adversely affect reliability and could result in device failure.
No warranty is made with respect to uses, operating conditions, or combinations not represented on
the data sheet. Users considering application outside the listed conditions are advised to contact their
FUJITSU representatives beforehand.
A–30+70°CExternal bus mode
58
3. DC Characteristics
(AVCC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
(AVCC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter SymbolPin nameCondition
Internal operation
at 16 MHz
V
CC = 5.0 V ±10%
Normal operation
Internal operation
at 16 MHz
V
CC = 5.0 V ±10%
In sleep mode
A = +25°C
T
V
CC = 4.5 V to 5.5 V
In stop mode and
hardware standby
mode
——10—pF
Power
supply
current
Input
capacitance
I
CCVCC
CCS—
I
I
CCH—
C
IN
Other than AVCC,
AV
SS, VCC, VSS
Value
UnitRemarks
Min.Typ.Max.
—80100mA
—3050mA
—0.110µA
60
4. AC Characteristics
(1) Reset, Hardware Standby Input Timing
Parameter
Reset input timet
Hardware standby input time t
Symbol Pin name Condition
RSTLRST
HSTLHST5 tCYC*— ns
MB90246A Series
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
—
Value
Min.Max.
5 t
CYC*— ns
UnitRemarks
* :For t
CYC (cycle time (machine cycle)), see paragraph (4), "Clock output timing."
Note: Upon hardware standby input, divide-by-32 is selected as the machine cycle.
tRSTL, tHSTL
RST
HST
0.2 V
CC
0.2 V
• Measurement conditions for AC ratings
Pin
L
C
CL is a load capacitance connected to a pin under test.
L
Capacitors of C
to address bus (A23 to A00) and data bus (D15 to D00), RD
= 30 pF should be connected to CLK pin, while CL of 80 pF is connected
, WRH and WRL pins.
CC
61
MB90246A Series
(2) Specification for Power-on Reset
Parameter
Power supply rising timet
Power supply cut-off timet
* :V
CC must be kept lower than 0.2 V before power-on.
Notes: • The above ratings are values for causing a power-on reset.
• When HST
is set to “L”, apply power according to this table to cause a power-on reset irrespective of
whether or not a power-on reset is required.
• For built-in resources in the device, re-apply power to the resources to cause a power-on reset.
Symbol Pin name Condition
RVCC
OFFVCC1—ms
tR
—
(AV
SS = VSS = 0.0 V, TA = –30°C to +70°C)
Value
Min.Max.
UnitRemarks
—30ms*
Due to repeated
operations
0.2 V
4.5 V
0.2 V0.2 V
tOFF
It is recommended to keep the rising
speed of the supply voltage at 50 mV/ms.
RAM data retained
CC
V
Sudden changes in the power supply voltage may cause a power-on reset.
To change the power supply voltage while the device is in operation, it is recommended to raise the voltage
smoothly to suppress fluctuations as shown below.
Main power
supply voltage
CC
V
Sub power supply voltage
SS
V
62
(3) Clock Timings
• Operation at 5.0 V ±10%
Parameter
Clock frequencyF
Symbol Pin nameCondition
CX0, X1VCC = 5.0 V ±10%16—32MHz
Clock cycle timetCX0, X1
Input clock pulse
width
Input clock rising/
falling time
P
P
t
t
WH,
WL
CR,
CF
X010——ns
X0VCC = 5.0 V ±10%——11ns
•Clock timings
—
MB90246A Series
(AV
SS = VSS = 0.0 V, TA = –30°C to +70°C)
Value
Min.Typ.Max.
1/Fc——ns
tC
UnitRemarks
Recommended
duty ratio of
30% to 70%
Maximum value
CR + tCF
= t
0.7 V
CC
WH
P
0.7 V
0.3 V
CC
CC
PWL
CF
t
• Relationship between clock frequency and power supply voltage
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Value
Min.Max.
1
2 t
C*
32tC*1*
Unit Remarks
2
ns
*1: For t
C (clock cycle time), refer to “(3) Clock Timings.”
*2: This case is applied when the lowest speed (1/16) is selected by the clock gear function with the clock frequency
(F
C) set at 16 MHz.
CYC
t
CHCL
t
CLK
2.4 V
0.8 V
2.4 V
64
MB90246A Series
(3) Bus Read Timing
(AV
CC = VCC = 2.7 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –40°C to +85°C)
Parameter
Effective address →
RD
↓ time
Effective address →
effective data input
RD
pulse widthtRLRHRD—
RD
↓→ effective data
input
↑→ data hold time tRHDXD15 to D00
RD
↑→ address
RD
effective time
Effective address →
CLK ↑ time
RD
↓→ CLK ↑ timetRLCLRD, CLK1 tCYC*/2 – 25—ns
SymbolPin nameCondition
t
AVRLA00 to A23
V
CC = 5.0 V ±10%
AVDVD15 to D00—
t
CYC*/2 – 20—ns
1 t
(N + 1) ×
CYC* – 25
1 t
RLDVD15 to D00VCC = 5.0 V ±10%—
t
RHAXA00 to A231 tCYC*/2 – 20—ns
t
—
1 t
CYC*/2 – 25—ns
t
AVCH
CLK,
A00 to A23
Value
Min.Max.
(N + 1.5) ×
1 t
CYC* – 40
—ns
(N + 1) ×
1 t
CYC** – 30
0—ns
Unit
ns
ns
Remarks
N: Stands for the number of wait cycles. With no wait, N is set at “0”. (The number of wait cycles depends on an
automatic wait and external RDY.)
* :For t
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
CLK
RD
A00 to A23
D00 to D15
t
0.8 V
2.4 V
0.8 V
AVCH
AVRL
t
AVDV
t
2.4 V
0.8 V
RLCL
t
RLDV
t
RLRH
t
0.8 V
2.2 V
0.8 V
2.4 V
tRHAX
2.4 V
0.8 V
RHDX
t
2.2 V
0.8 V
65
MB90246A Series
(4) Bus Write Timing
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Effective address →
WRL
, WRH ↓ time
, WRH pulse width tWLWHWRL, WRH
WRL
Write data → WRL
WRH
↑ time
WRL
, WRH ↑ → data
,
hold time
, WRH ↑ →
WRL
address effective time
WRL
, WRH ↓ → CLK ↓
time
SymbolPin nameCondition
t
AVWLA00 to A23VCC = 5.0 V ±10%
t
DVWHD15 to D00
WHDXD15 to D00VCC = 5.0 V ±10%
t
t
WHAXA00 to A23
t
WLCLWRL, CLK
—
1 t
(N + 1) ×
1 t
CYC** – 25
(N + 1) ×
1 t
1 t
1 t
1 t
Value
Min.Max.
CYC*/
2 – 20
—ns
—ns
CYC* – 40
CYC*/
2 – 20
CYC*/
2 – 20
CYC*/
2 – 25
—ns
—ns
—ns
—ns
N: Stands for the number of wait cycles. With no wait, N is set at “0”. (The number of wait cycles depends on an
automatic wait and external RDY.)
Unit
Remarks
* :For t
CLK
WRL, WRH
A00 to A23
D00 to D15
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
WLCL
t
0.8 V
AVWL
t
2.4 V
0.8 V
0.8 V
WLWH
t
tDVWHtWHDX
2.4 V
0.2 V
Write data
2.4 V
t
WHAX
2.4 V
0.8 V
2.4 V
0.2 V
66
MB90246A Series
(5) Ready Input Timing
• CLK signal standards
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
RD
/WRH/WRL ↓ →
RDY ↓ time
RDY setup time
(in diallocating)
RDY hold timet
SymbolPin nameCondition
RD/WRH/
RYHS
t
WRL
,
RDY
RHDVRDYVCC = 5.0 V ±10%30—ns
t
RYHHRDY—0—ns
N: Stands for the number of wait cycles. With no wait, N is set at “0”. (The number of wait cycles depends on an
automatic wait and external RDY.)
Value
Min.Max.
0
N ×1 t
+ 15
Unit Remarks
CYC*
ns
* :For t
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
Note: Use the automatic ready function when the setup time for the rising edge of the RDY signal is not sufficient.
• Ready input timing (CLK signal standards)
CLK
A00 to A23
RD/WRH/WRL
RDY
(wait not inserted)
RDY
(wait inserted)
0.8 V
RYH
t
2.2 V2.2 V
0.8 V0.8 V
RYHH
t
2.2 V2.2 V
RHDV
t
RYHH
t
67
MB90246A Series
•RD/WRH/WRL signal standards
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
RD
/WRH/WRL ↓ →
RDY ↓ time
RDY pulse widtht
SymbolPin nameCondition
RD/WRH/
t
RYHS
WRL,
—0
RDY
RYPWRDYVCC = 5.0 V ±10%
1/2 t
RD/WRH/
RDY ↑ → RD
↑tRHDV
WRL
,
—
RDY
N: Stands for the number of wait cycles. With no wait, N is set at “0”. (The number of wait cycles depends on an
automatic wait and external RDY.)
m: Stands for the number of RDY wait cycles. With no wait, m is set at “0”.
*1: Use the automatic ready function when the setup time is not sufficient.
*2: If the pulse width has exceeded the maximum value, the wait period may be extended beyond the specified
number of cycles by one cycle.
*3: For t
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
Value
Min.Max.
N ×1 t
+ 15*
3
(m + 1) × 1
3
tCYC*2,*
2 t
– 25
+ 20
1 t
– 15
CYC*
CYC*
CYC*
CYC*
Unit Remarks
3
ns
1
ns
3
3
ns
• Ready input timing (RD/WRH/WRL signal standards)
A00 to A23
RD/WRH/WRL
RDY
(wait not inserted)
RDY
(wait inserted)
0.8 V
2.2 V
0.8 V
t
RYHS
RYPW
t
2.2 V
0.8 V
2.2 V
RHDV
t
2.4 V
68
MB90246A Series
(8) Hold Timing
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Pins in floating status →
↓ time
HAK
HAK
↑→ pin valid time tHAHVHAK—1 tCYC*2 tCYC*ns
SymbolPin nameCondition
t
XHALHAKVCC = 5.0 V ±10%301 tCYC*ns
Value
Min.Max.
Unit Remarks
* :For t
Note: More than 1 machine cycle is needed before HAK
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
changes after HRQ pin is fetched.
HRQ
HAK
Pins
t
0.8 V
XHAL
High impedance
2.4 V
HAHV
t
(9) UART Timing
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Serial clock cycle timet
SCK ↓ → SOD delay
time
Valid SID → SCK ↑ tIVSH
SCK ↑ → valid SID hold
time
Serial clock “H” pulse
width
Serial clock “L” pulse
width
SCK ↓ → SOD delay
time
Valid SID → SCK ↑ tIVSH—60—ns
SCK ↑ → valid SID hold
time
Symbol Pin nameCondition
SCYCSCK0—8 tCYC*—ns
t
SLOV
t
SHIX
t
SHSLSCK0
SCK0,
SOD0
SCK0,
SID0
SCK0,
SID0
V
CC = 5.0 V ±10%
—
t
SLSHSCK04 tCYC*—ns
t
SLOV
t
SHIX
SCK0,
SID0
SCK0,
SID0
V
CC = 5.0 V ±10%
Value
Min.Max.
–8080ns
UnitRemarks
Internal shift
clock mode
C
100—ns
L = 80 pF for
an output pin
60—ns
4 tCYC*—ns
External shift
clock mode
C
—150ns
L = 80 pF for
an output pin
60—ns
* :For t
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
Notes: • These are AC ratings in the CLK synchronous mode.
•C
L is the load capacitor value connected to pins while testing.
69
MB90246A Series
• Internal shift clock mode
SCK0
SOD0
SID0
• External shift clock mode
SCK0
SOD0
0.8 V
tSLOV
0.2 V
tSLOV
tSCYC
2.4 V
2.4 V
0.8 V
tIVSHtSHIX
CC
0.8 V
CC
0.2 V
tSLSHtSHSL
0.8 V
CC
0.2 V
CC
2.4 V
0.8 V
0.8 V
CC
0.8 V
CC
0.2 V
CC
0.8 V
CC
70
SID0
tIVSHtSHIX
CC
0.8 V
CC
0.2 V
0.8 V
0.2 V
CC
CC
(10) Timer Input Timing
Parameter
Input pulse width
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
SymbolPin nameCondition
TIWH,
t
tTIWL
ASR0, ASR1,
TIN0 to TIN2
—4 t
MB90246A Series
Value
Min.Max.
CYC*—ns
Unit Remarks
* :For t
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
ASR0, ASR1
TIN0 to TIN2
(11) Timer Output Timing
Parameter
CLK ↑ → TOT
transition time
0.8 V
CC
tTIWH
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
0.8 V
0.2 V
CC
SymbolPin nameCondition
TOT0 to TOT2,
t
TO
PWM0 to
V
CC = 5.0 V ±10%—40ns
PWM3
2.4 V
CLK
CC
tTIWL
Value
Min.Max.
CC
0.2 V
Unit Remarks
TOT
2.4 V
0.8 V
TO
t
71
MB90246A Series
(12) I/O Simple Serial Timing
Parameter
Serial clock cycle timet
SCK ↓ → SOD delay
time
Valid SID → SCK ↑ t
SCK ↑ → valid SID hold
time
SymbolPin nameCondition
SCYCSCK1, SCK2
SLOV
t
IVSH
SHIX
t
SCK1, SOD1,
SCK2, SOD2,
SCK1, SID1,
SCK2, SID2,
SCK1, SID1,
SCK2, SID2,
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Value
Min.Max.
UnitRemarks
2 tCYC*—ns
CYC*/2ns
Internal shift
clock mode
C
L = 80 pF for
—
—1 t
CYC*—ns
1 t
an output pin
CYC*—ns
1 t
* :For t
Note: C
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
L is the load capacitor value connected to pins while testing.
• Internal shift clock mode
SCK1, SCK2
SOD1, SOD2
SID1, SID2
0.8 V
tSLOV
tSCYC
2.4 V
2.4 V
0.8 V
tIVSHtSHIX
CC
0.8 V
CC
0.2 V
0.8 V
0.8 V
0.2 V
CC
CC
72
(13) Trigger input timing
Parameter
Input pulse width
(AV
CC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
SymbolPin nameCondition
TRGH,
t
t
TRGL
ATG,
INT0 to INT3
—5 t
MB90246A Series
Value
Min.Max.
CYC*—ns
UnitRemarks
* :For t
CYC (cycle time (machine cycle)), see paragraph (4), “Clock output timing.”
CC
0.8 V
0.2 V
CC
tTRGL
ATG
INT0 to INT3
0.8 V
CC
tTRGH
0.2 V
CC
73
MB90246A Series
5. A/D Converter Electrical Characteristics
(AVCC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
Parameter
Resolution——
SymbolPin nameCondition
Min.Typ.Max.
—8, 1010bit
Total error————±3.0LSB
Linearity error————±2.0LSB
Differential linearity error————±1.9LSB
Zero transition voltageV
Full-scale transition
voltage
Conversion time*
1
Sampling
period
Conversion
period a
Conversion
period b
Conversion
period c
Analog port input current I
Analog input voltageV
OTAN0 to AN7
FSTAN0 to AN7
V
——
——560——ns
——125——ns
Use the A/D data
register for setup.
V
CC = 5.0 V ±10%
——125——ns
——250——ns
AINAN0 to AN7
AINAN0 to AN7AVRL—AVRHV
—AVRH
Reference voltage
AVRH – AVRL 2.7
—
—
AVRL
– 1.0 LSB
AVRH
– 4.0 LSB
1.25——µs
—0.13µA
AVRL
≥
+ 2.7
—AVRL0—
AAVCC——1520mA
I
Power supply current
Reference voltage
supply current
2
I
AS*
RAVRH——0.72µA
I
2
I
RS*
AVCC
AVRH
Supply current when
the CPU stops
(AV
CC = 5.5 V)
Supply current when
the CPU stops
(AV
CC = 5.5 V)
—— 5µA
—— 5µA
Offset between channels—AN0 to AN7———4LSB
Value
AVRL
+ 1.0 LSB
AVRH
– 1.0 LSB
AVRL
+ 3.0 LSB
AVRH
+ 1.0 LSB
—AV
AVRH
– 2.7
Unit
CCV
mV
mV
V
*1: Glossary for conversion time
Conversion time
CYC
Sampling period
*
ADCS bit 1: Sets STAR
Conversion period a Conversion period b Conversion period c
End of conversionA/D activation
CYC
2 t
*1 t
ADCS bit 6: INT “H”
(Interrupt occurred to CPU)
* :For tCYC, see ■ Electrical Characteristics, 4, “AC Characteristics,” Cycle time (machine cycle) in
paragraph (4), “Clock output timing.”
*2: IAS and IRS signify currents when the A/D converter does not operate and when the CPU is out of service,
respectively.
74
MB90246A Series
6. A/D Converter Glossary
Resolution: Analog changes that are identifiable with the A/D converter
With 10 bits supported, an analog voltage can be divided into 2
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 1110” ↔
conversion characteristics
Differential linearity error: The deviation of input voltage needed to change the output code by 1 LSB from the
theoretical value
Total error: The total error is defined as a difference between the actual value and the theoretical value, which
includes zero-transition error/full-scale transition error, linearity error, differential linearity error and
error caused by noise.
Digital output
11 1111 1111
11 1111 1110
•
•
•
•
•
•
•
•
•
•
•
00 0000 0010
00 0000 0001
00 0000 0000
OT
V
(1 LSB × N + VOT)
(N + 1)T
VNTV
Linearity error
10
parts.
“11 1111 1111”) from actual
FST
V
FST
OT
– V
1 LSB =
Linearity error
V
1022
NT
– (1 LSB × N + VOT)
V
= [LSB]
Differential linearity error
1 LSB
( N+1 )T
V
= – 1 LSB [LSB]
– V
1 LSB
NT
75
MB90246A Series
7. Notes on Using A/D Converter
Select the output impedance value for the external circuit of analog input according to the following conditions.
Output impedance values of the external circuit of 300 Ω or lower are recommended.
When capacitors are connected to external pins, the capacitance of several thousand times the internal capacitor
value is recommended to minimized the effect of voltage distribution between the external capacitor and internal
capacitor.
When the output impedance of the external circuit is too high, the sampling time for analog voltages may not
be sufficient (sampling time = 0.56 µs @machine clock of 16 MHz).
• Block diagram of analog input circuit model
Analog input pin
ON1
: Approx. 300 Ω
R
ON2
R
: Approx. 150 Ω
0
C
: Approx. 60 pF
1
: Approx. 4 pF
C
ON1
R
ON2
R
1
C
0
C
Comparator
Comparator
Comparator
Note: Listed values must be considered as standards.
•Error
The smaller the | AVRH – AVRL |, the greater the error would become relatively.
8. 8-bit D/A Converter Electrical Characteristics
(AVCC = VCC = 4.5 V to 5.5 V, AVSS = VSS = 0.0 V, TA = –30°C to +70°C)
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, #imm4
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, @RW i + d i s p 8
MOVX A, @RLi + disp8
MOVX A, @SP + disp8
MOVPX A, addr24
MOVPX A, @A
2 +
2 +
2
3
1
2
2
2
2
3
3
5
2
1
2
3
2
2
2
2
2
2
3
3
5
2
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
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)
(b)
byte (A) ← (addr24)
(b)
byte (A) ← ((A))
0
byte (A) ← imm4
(b)
byte (A) ← (dir)
(b)
byte (A) ← (addr16)
0
byte (A) ← (Ri)
0
byte (A) ← (ear)
(b)
byte (A) ← (eam)
(b)
byte (A) ← (io)
0
byte (A) ← imm8
(b)
byte (A) ← ((A))
byte (A) ← ((RWi) + disp8)
(b)
(b)
byte (A) ← ((RLi) + disp8)
byte (A) ← ((SP) + disp8)
(b)
(b)
byte (A) ← (addr24)
(b)
byte (A) ← ((A))
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
ISTNZVCRMW
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
–
–
*
R
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
*
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
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
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
Note: For (a) and (c), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
3 + (a)
3 + (a)
(d)long (A) ← (eam)–––––* *–– –
long (A) ← ((SP) + disp8)
long ((SP) + disp8) ← (A)
(d)long (eam) ← (A)–––––**–– –
LH AH
–––––**–– –
–––––**–– –
ISTNZVCRMW
84
MB90246A Series
Table 9 Add/Subtract (Byte, Word, Long) [42 Instructions]
Mnemonic#~BOperation
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
ADDW ear, A
ADDW eam, A
ADDCW A, ear
ADDCW A, eam
SUBW A
SUBW A, ear
SUBW A, eam
SUBW
SUBW ear, A
SUBW eam, A
SUBCW A, ear
SUBCW A, eam
ADDLA, ear
ADDLA, eam
ADDL
SUBLA, ear
SUBLA, eam
SUBL
MULUA
MULUA, ear
MULUA, eam
MULUW A
MULUW A, ear
MULUW A, eam
Note: For (b) and (c), refer to “Table 5 Correction Values for Number of Cycles for Calculating Actual Number of
Cycles.”
1
2
2 +
2
2+
1
2
2 +
1
2
2 +
*1
*2
*3
*4
*5
*8
*9
*10
*11
*12
*13
0
word (AH) /byte (AL)
Quotient → byte (AL)
Remainder → byte (AH)
0
word (A)/byte (ear)
Quotient → byte (A)
Remainder → byte (ear)
*6
word (A)/byte (eam)
Quotient → byte (A)
Remainder → byte (eam)
0
long (A)/word (ear)
Quotient → word (A)
Remainder → word (ear)
*7
long (A)/word (eam)
Quotient → word (A)
Remainder → word (eam)
0
byte (AH) byte (AL) → word (A)
0
byte (A) byte (ear) → word (A)
(b)
byte (A) byte (eam) → word (A)
0
word (AH) word (AL) → long (A)
0
word (A) word (ear) → long (A)
(c)
word (A) word (eam) → long (A)
LH AH
–
–
–
–
–
–
–
–
–
–
–
ISTNZVCRMW
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*1: Set to 3 when the division-by-0, 6 for an overflow, and 14 for normal operation.
*2: Set to 3 when the division-by-0, 6 for an overflow, and 13 for normal operation.
*3: Set to 5 + (a) when the division-by-0, 7 + (a) for an overflow, and 17 + (a) for normal operation.
*4: Set to 3 when the division-by-0, 5 for an overflow, and 21 for normal operation.
*5: Set to 4 + (a) when the division-by-0, 7 + (a) for an overflow, and 25 + (a) for normal operation.
*6: When the division-by-0, (b) for an overflow, and 2 × (b) for normal operation.
*7: When the division-by-0, (c) for an overflow, and 2 × (c) for normal operation.
*8: Set to 3 when byte (AH) is zero, 7 when byte (AH) is not zero.
*9: Set to 3 when byte (ear) is zero, 7 when byte (ear) is not zero.
*10:Set to 4 + (a) when byte (eam) is zero, 8 + (a) when byte (eam) is not zero.
*11:Set to 3 when word (AH) is zero, 11 when word (AH) is not zero.
*12:Set to 4 when word (ear) is zero, 11 when word (ear) is not zero.
*13:Set to 4 + (a) when word (eam) is zero, 12 + (a) when word (eam) is not zero.
87
MB90246A Series
Table 0 Signed multiplication/division (Word, Long) [11 Instructions]
Mnemonic#~BOperation
LH AH
ISTNZVCRMW
DIVA2*10word (AH)/byte (AL)Z––––––** –
Quotient → byte (AL)
Remainder → byte (AH)
DIVA, ear2*20word (A)/byte (ear)Z––––––* * –
Quotient → byte (A)
Remainder → byte (ear)
DIVA, eam2 +*3*6word (A)/byte (eam)Z––––––** –
Quotient → byte (A)
Remainder → byte (eam)
DIVW A, ear2 *40long (A)/word (ear)–––––––* * –
Quotient → word (A)
Remainder → word (ear)
DIVW A, eam2 +*5*7long (A)/word (eam)–––––––** –
Quotient → word (A)
Remainder → word (eam)
MULA2*80 byte (AH) × byte (AL) → word (A)––––––––– –
MULA, ear2*90 byte (A) × byte (ear) → word (A)––––––––– –
MULA, eam2 + *10 (b)
MULW A2*110
MULW A, ear2*120
MULW A, eam2 + *13 (b) word
byte (A) × byte (eam) → word (A)
word (AH) × word (AL) → long (A)
word (A) × word (ear) → long (A)
(A) ×
word
(eam)
→
long
(A)
––––––––– –
––––––––– –
––––––––– –
––––––––– –
For (b) and (c), refer to “Table 5 Correction Values for Number of Cycles for Calculating Actual Number of Cycles.”
*1: Set to 3 for divide-by-0, 8 or 18 for an overflow, and 18 for normal operation.
*2: Set to 3 for divide-by-0, 10 or 21 for an overflow, and 22 for normal operation.
*3: Set to 4 + (a) for divide-by-0, 11 + (a) or 22 + (a) for an overflow, and 23 + (a) for normal operation.
*4: Positive divided: Set to 4 for divide-by-0, 10 or 29 for an overflow, and 30 for normal operation.
Negative divided: Set to 4 for divide-by-0, 11 or 30 for an overflow, and 31 for normal operation.
*5: Positive divided: Set to 4 + (a) for divide-by-0, 11 + (a) or 30 + (a) for an overflow, and 31 + (a) for normal operation.
Negative divided: Set to 4 + (a) for divide-by-0, 12 + (a) or 31 + (a) for an overflow, and 32 + (a) for normal
operation.
*6: Set to (b) when the division-by-0 or an overflow, and 2
*7: Set to (c) when the division-by-0 or an overflow, and 2
× (b) for normal operation.
× (c) for normal operation.
*8: Set to 3 when byte (AH) is zero, 12 when the result is positive, and 13 when the result is negative.
*9: Set to 3 when byte (ear) is zero, 12 when the result is positive, and 13 when the result is negative.
*10:Set to 4 + (a) when byte (eam) is zero, 13 + (a) when the result is positive, and 14 + (a) when the result is negative.
*11:Set to 3 when word (AH) is zero, 12 when the result is positive, and 13 when the result is negative.
*12:Set to 3 when word (ear) is zero, 16 when the result is positive, and 19 when the result is negative.
*13:Set to 4 + (a) when word (eam) is zero, 17 + (a) when the result is positive, and 20 + (a) when the result is negative.
Note: When overflow occurs during DIV or DIVW instruction execution, the number of execution cycles takes two
values because of detection before and after an operation.
When overflow occurs during DIV or DIVW instruction execution, the contents of AL are destroyed.
88
MB90246A Series
Table 14 Logic 1 (Byte, Word) [39 Instructions]
Mnemonic#~BOperation
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 +
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)
0
0
(b)
0
2 × (b)
0
0
(b)
0
2 × (b)
0
0
(b)
0
2 × (b)
0
0
2 × (b)
0
0
0
(c)
0
2 × (c)
byte (A) ← (A) and imm8
byte (A) ← (A) and (ear)
byte (A) ← (A) and (eam)
byte (ear) ← (ear) and (A)
byte (eam) ← (eam) and (A)
byte (A) ← (A) or imm8
byte (A) ← (A) or (ear)
byte (A) ← (A) or (eam)
byte (ear) ← (ear) or (A)
byte (eam) ← (eam) or (A)
word (A) ← (AH) and (A)
word (A) ← (A) and imm16
word (A) ← (A) and (ear)
word (A) ← (A) and (eam)
word (ear) ← (ear) and (A)
word (eam) ← (eam) and (A)
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVCRMW
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
*
–
–
–
*
*
R
–
*
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
Note: For (a) to (c), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
1
3
2
2 +
2
2 +
1
3
2
2 +
2
2 +
1
2
2 +
2
2
2
3 + (a)
3
3 + (a)
2
2
2
3 + (a)
3
3 + (a)
2
3
3 + (a)
0
0
0
(c)
0
2 × (c)
0
0
0
(c)
0
2 × (c)
0
0
2 × (c)
word (A) ← (AH) or (A)
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)
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
*
*
R
–
*
–
–
–
–
–
*
*
R
–
*
89
MB90246A Series
Table 15 Logic 2 (Long) [6 Instructions]
Mnemonic#~BOperation
ANDLA, ear
ANDLA, eam
ORLA, ear
ORLA, eam
XORLA, ear
XORLA, eam
2
2 +
2
2 +
2
2 +
5
6 + (a)
5
6 + (a)
5
6 + (a)
0
long (A) ← (A) and (ear)
(d)
long (A) ← (A) and (eam)
0
long (A) ← (A) or (ear)
(d)
long (A) ← (A) or (eam)
0
long (A) ← (A) xor (ear)
(d)
long (A) ← (A) xor (eam)
LH AH
–
–
–
–
–
–
ISTNZVCRMW
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
*
*
R
–
–
–
–
–
–
–
Note: For (a) and (d), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
is originally located
byte (R0) ← Number of shifts
in the operation
* :Set to 5 when the accumulator is all “0”, otherwise set to 5 + (R0).
90
MB90246A Series
Table 19 Shift Type Instruction (Byte, Word, Long) [27 Instructions]
Mnemonic#~BOperation
RORC A
ROLC A
RORC ear
RORC eam
ROLC ear
ROLC eam
ASRA, R0
LSRA, R0
LSLA, R0
ASR
LSR
LSL
A, #imm8
A, #imm8
A, #imm8
ASRW A
LSRW
A
A/SHRW
2
2
2
2 +
2
2 +
2
2
2
3
3
3
1
1
1
2
2
2
3 + (a)
2
3 + (a)
*1
*1
*1
*3
*3
*3
2
2
2
0
byte (A) ← With right-rotate carry
0
byte (A) ← With left-rotate carry
0
byte (ear) ← With right-rotate carry
2 × (b)
byte (eam) ← With right-rotate carry
0
byte (ear) ← With left-rotate carry
2 × (b)
byte (eam) ← With left-rotate carry
byte (A) ← Arithmetic right barrel shift (A, R0)
0
byte (A) ← Logical right barrel shift (A, R0)
0
byte (A) ← Logical left barrel shift (A, R0)
0
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
LSLW A/SHLW A
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
ASRW A, R0
LSRW A, R0
2
*1
2
*1
2
*1
LSLW A, R0
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 barrel shift (A, R0)
0
long (A) ← Logical right barrel shift (A, R0)
0
long (A) ← Logical left barrel shift (A, R0)
0
ASRW
LSRW
LSLW
A, #imm8
A, #imm8
A, #imm8
ASRL A, R0
LSRL A, R0
LSLLA, R0
3
*3
3
*3
3
*3
2
*2
2
*2
2
*2
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVC
–
–
–
*
*
–
*
–
–
–
*
*
–
*
–
–
–
*
*
–
*
–
–
–
*
*
–
*
–
–
–
*
*
–
*
–
–
–
*
*
–
*
–
–
*
*
*
–
*
–
–
*
*
*
–
*
–
–
–
*
*
–
*
–
–
*
*
*
–
*
–
–
*
*
*
–
*
–
–
–
*
*
–
*
–
–
*
*
*
–
*
–
–
*
R
*
–
*
–
–
–
*
*
–
*
–
–
*
*
*
–
*
–
–
*
*
*
–
*
–
–
–
*
*
–
*
–
–
*
*
*
–
*
–
–
*
*
*
–
*
–
–
–
*
*
–
*
–
–
*
*
*
–
*
–
–
*
*
*
–
*
–
–
–
*
*
–
*
RMW
–
–
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ASRL
LSRL
LSLL
A, #imm8
A, #imm8
A, #imm8
3
*4
3
*4
3
*4
long (A) ← Arithmetic right barrel shift (A, imm8)
0
long (A) ← Logical right barrel shift (A, imm8)
0
long (A) ← Logical left barrel shift (A, imm8)
0
–
–
–
–
*
*
*
–
*
–
–
–
–
–
*
*
*
–
*
–
–
–
–
–
–
*
*
–
*
–
Note: For (a) and (b), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
*1: Set to 3 when R0 is 0, otherwise 3 + (R0).
*2: Set to 3 when R0 is 0, otherwise 4 + (R0).
*3: Set to 3 when imm8 is 0, otherwise 3 + imm8.
*4: Set to 3 when imm8 is 0, otherwise 4 + imm8.
word (PC) ← (ear)
word (PC) ← (eam)
word (PC) ← addr16
Vector call instruction
word (PC) ← (ear) 0 – 15
(PCB) ← (ear) 16 – 23
CALLP @eam *
CALLP addr24 *
8 + (a)
7
4
7
*2
2 × (c)
word (PC) ← (eam) 0 – 15
(PCB) ← (eam) 16 – 23
word (PC) ← addr0 – 15,
6
2 +
(PCB) ← addr16 – 23
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVCRMW
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Note: For (a), (c) and (d), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5
Correction Values for Number of Cycles for Calculating Actual Number of Cycles.”
*1: Set to 3 when branch is executed, and 2 when branch is not executed.
*2: 3 × (c) + (b)
*3: Reads (word) of the branch destination address.
*4: W pushes to stack (word), and R reads (word) of the branch destination address.
*5: Pushes to stack (word).
*6: W pushes to stack (long), and R reads (long) of the branch destination address.
*7: Pushes to stack (long).
the beginning of the
function, set new frame
pointer, and reserves local
pointer area
UNLINK
Restore old frame pointer
–
–
–
–
–
–
–
–
–
–
1
5
(c)
from stack in the end of
the function
RET *
RETP *
7
8
1
4
(c)
Return from subroutine
1
5
(d)
Return from subroutine
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Note: For (a) to (d), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
*1: Set to 4 when branch is executed, and 3 when branch is not executed.
*2: Set to 5 when branch is executed, and 4 when branch is not executed.
*3: Set to 5 + (a) when branch is executed, and 4 + (a) when branch is not executed.
*4: Set to 6 + (a) when branch is executed, and 5 + (a) when branch is not executed.
*5: Set to 3 × (b) + 2 × (c) when an interrupt request is issued, and 6 × (c) for return.
*6: This is a high-speed interrupt return instruction. In the instruction, an interrupt request is detected. When an
interrupt occurs, stack operation is not performed, with this instruction branching to the interrupt vector.
*7: Return from stack (word).
*8: Return from stack (long).
93
MB90246A Series
Table 22 Miscellaneous Control Types (Byte, Word, Long) [36 Instructions]
Mnemonic#~BOperation
word (SP) ← (SP) – 2, ((SP)) ← (A)
(c)
PUSHW A
PUSHW AH
PUSHW PS
PUSHW rlst
POPWA
POPWAH
POPWPS
POPWrlst
JCTX@A
AND
CCR, #imm8
ORCCR, #imm8
MOVRP, #imm8
MOVILM, #imm8
MOVEA RWi, ear
MOVEA RWi , e a m
MOVEA A, ear
MOVEA A, eam
ADDSP #imm8
ADDSP #imm16
1
1
1
2
1
1
1
2
1
2
2
2
2
2
2 +
2
2 +
2
3
3
3
3
*3
3
3
3
*2
9
3
3
2
2
3
2 + (a)
2
1 + (a)
3
3
word (SP) ← (SP) – 2, ((SP)) ← (AH)
(c)
word (SP) ← (SP) – 2, ((SP)) ← (PS)
(c)
(PS) ← (PS) – 2n, ((SP)) ← (rlst)
*4
word (A) ← ((SP)), (SP) ← (SP) + 2
(c)
word (AH) ← ((SP)), (SP) ← (SP) + 2
(c)
word (PS) ← ((SP)), (SP) ← (SP) + 2
(c)
(rlst) ← ((SP)), (SP) ← (SP) + 2n
*4
6 × (c)
Context switch instruction
0
byte (CCR) ← (CCR) and imm8
0
byte (CCR) ← (CCR) or imm8
0
byte (RP) ← imm8
0
byte (ILM) ← imm8
0
word (RWi) ← ear
0
word (RWi) ← eam
0
word(A) ← ear
0
word (A) ← eam
0
word (SP) ← (SP) + ext (imm8)
0
word (SP) ← (SP) + imm16
LH AH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVCRMW
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
*
*
*
*
*
*
*
–
–
–
–
–
–
–
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
MOVA, brgl
MOVbrg2, A
MOVbrg2, #imm8
NOP
ADB
DTB
PCB
SPB
NCC
CMR
MOVW SPCU, #imm16
MOVW SPCL, #imm16
SETSPC
CLRSPC
BTSCN A
BTSCNS A
BTSCND A
*1
2
2
3
1
1
1
1
1
1
1
4
4
2
2
*5
2
*6
2
*7
2
0
byte (A) ← (brgl)
0
1
2
1
1
1
1
1
1
1
2
2
2
2
byte (brg2) ← (A)
0
byte (brg2) ← imm8
0
No operation
Prefix code for accessing AD space
0
Prefix code for accessing DT space
0
Prefix code for accessing PC space
0
Prefix code for accessing SP space
0
Prefix code for no change in flag
0
Prefix for common register bank
0
0
word (SPCU) ← (imm16)
0
word (SPCL) ← (imm16)
0
Enables stack check operation.
0
Disables stack check operation.
Bit position of 1 in byte (A) from word (A)
0
Bit position (× 2) of 1 in byte (A) from word
0
(A)
0
Bit position (× 4) of 1 in byte (A) from word
(A)
*
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Z
–
Z
–
Z
–
–
–
*
*
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Note: For (a) and (c), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
*1: PCB, ADB, SSB, USB, and SPB : 1 state
DTB: 2 states
DPR: 3 states
*2: 3 + 4 × (number of POPs)
94
*3: 3 + 4 × (number of PUSHes)
*4: (Number of POPs) × (c), or (number of PUSHes) × (c)
*5: Set to 3 when AL is 0, 5 when AL is not 0.
*6: Set to 4 when AL is 0, 6 when AL is not 0.
*7: Set to 5 when AL is 0, 7 when AL is not 0.
MB90246A Series
Table 23 Bit Manipulation Instruction [21 Instructions]
Mnemonic#~BOperation
MOVB A, dir:bp
MOVB A, addr16:bp
MOVB A, io:bp
MOVB dir:bp, A
MOVB addr16:bp, A
MOVB io:bp, A
SETB dir:bp
SETB addr16:bp
SETB io:bp
CLRB dir:bp
CLRB addr16:bp
CLRB io:bp
BBCdir:bp, rel
BBCaddr16:bp, rel
BBCio:bp, rel
BBSdir:bp, rel
BBSaddr16:bp, rel
BBSio:bp, rel
3
3
(b)
byte (A) ← (dir:bp) b
4
3
(b)
byte (A) ← (addr16:bp) b
3
3
(b)
byte (A) ← (io:bp) b
3
4
2 × (b)
4
4
2 × (b)
3
4
2 × (b)
3
4
2 × (b)
4
4
2 × (b)
3
4
2 × (b)
3
4
2 × (b)
4
4
2 × (b)
3
4
2 × (b)
4
*1
5
*1
4
*1
4
*1
5
*1
4
*1
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 if (dir:bp) b = 0
(b)
Branch if (addr16:bp) b = 0
(b)
Branch if (io:bp) b = 0
(b)
Branch if (dir:bp) b = 1
(b)
Branch if (addr16:bp) b = 1
(b)
Branch if (io:bp) b = 1
LH AH
Z
Z
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
ISTNZVCRMW
*
–
–
–
*
*
–
–
*
–
–
–
*
*
–
–
*
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
*
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
–
–
–
–
–
*
–
–
–
–
–
*
*
*
*
*
*
*
*
*
–
–
–
–
–
–
SBBSaddr16:bp, rel
WBTS io:bp
WBTC io:bp
Note: For (b), refer to “Table 5 Correction Values for Number of Cycles for Calculating Actual Number of Cycles.”
*1: Set to 5 when branch is executed, and 4 when branch is not executed.
*2: 7 if conditions are met, 6 when conditions are not met.
*3: Indeterminate times
*4: Until conditions are met
*1: 256 when 5 + imm8 × 5, imm8 is 0.
*2: 256 when 5 + imm8 × 5 + (a), imm8 is 0.
*3: (Number of transfer cycles) × (b) × 2
*4: (Number of transfer cycles) × (c) × 2
*5: The bank register specified by bnk is the same as that for the MOVS instruction.
97
MB90246A Series
ORDERING INFORMATION
■
Part numberPackageRemarks
MB90246APFV
100-pin
(FPT-100P-M05)
Plastic LQFP
98
PACKAGE DIMENSIONS
■
100-pin Plastic LQFP
(FPT-100P-M05)
MB90246A Series
16.00±0.20(.630±.008)SQ
75
14.00±0.10(.551±.004)SQ
INDEX
100
LEAD No.
1
0.50(.0197)TYP
"A"
.007
0.18
+0.08
−0.03
+.003
−.001
0.10(.004)
C
1995 FUJITSU LIMITED F100007S-2C-3
51
5076
26
25
0.08(.003)
+0.20
−0.10
1.50
(Mounting height)
+.008
.059
−.004
(.472)
REF
15.0012.00
(.591)
NOM
Details of "A" part
0.15(.006)
0.15(.006)
0.15(.006)MAX
"B"
+0.05
−0.02
M
0.127
.005
+.002
−.001
Details of "B" part
0~10˚
0.40(.016)MAX
0.10±0.10
(.004±.004)
(STAND OFF)
0.50±0.20(.020±.008)
Dimensions in mm (inches)
99
MB90246A Series
FUJITSU LIMITED
For further information please contact:
Japan
FUJITSU LIMITED
Corporate Global Business Support Division
Electronic Devices
KAWASAKI PLANT, 4-1-1, Kamikodanaka
Nakahara-ku, Kawasaki-shi
Kanagawa 211-8588, Japan
Tel: 81(44) 754-3763
Fax: 81(44) 754-3329
All Rights Reserved.
The contents of this document are subject to change without
notice. Customers are advised to consult with FUJITSU sales
representatives before ordering.
http://www.fujitsu.co.jp/
North and South America
FUJITSU MICROELECTRONICS, INC.
Semiconductor Division
3545 North First Street
San Jose, CA 95134-1804, USA
Tel: (408) 922-9000
Fax: (408) 922-9179
FUJITSU MICROELECTRONICS ASIA PTE LTD
#05-08, 151 Lorong Chuan
New Tech Park
Singapore 556741
Tel: (65) 281-0770
Fax: (65) 281-0220
http://www.fmap.com.sg/
The information and circuit diagrams in this document are
presented as examples of semiconductor device applications,
and are not intended to be incorporated in devices for actual use.
Also, FUJITSU is unable to assume responsibility for
infringement of any patent rights or other rights of third parties
arising from the use of this information or circuit diagrams.
FUJITSU semiconductor devices are intended for use in
standard applications (computers, office automation and other
office equipment, industrial, communications, and measurement
equipment, personal or household devices, etc.).
CAUTION:
Customers considering the use of our products in special
applications where failure or abnormal operation may directly
affect human lives or cause physical injury or property damage,
or where extremely high levels of reliability are demanded (such
as aerospace systems, atomic energy controls, sea floor
repeaters, vehicle operating controls, medical devices for life
support, etc.) are requested to consult with FUJITSU sales
representatives before such use. The company will not be
responsible for damages arising from such use without prior
approval.
Any semiconductor devices have an inherent chance of
failure. You must protect against injury, damage or loss from
such failures by incorporating safety design measures into your
facility and equipment such as redundancy, fire protection, and
prevention of over-current levels and other abnormal operating
conditions.
If any products described in this document represent goods or
technologies subject to certain restrictions on export under the
Foreign Exchange and Foreign Trade Law of Japan, the prior
authorization by Japanese government will be required for
export of those products from Japan.
F98010
FUJITSU LIMITED Printed in Japan
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.