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