The MB89990 series of microcontrollers are mid-range of microcontroller. They are generalpurpose and high-speed products in the F
microcontrollers operating at low voltages. It has Timer, Remote-control transmission frequency
generator.
This manual covers the functions and operations of the MB89990 series of microcontrollers.
Refer to the
F2MC-8L Family Software Manual
2
MC-8L Family series of 8-bit single-chip
for instructions.
i
1. The contents of this document are subject to change without notice. Customers are advised to consult
with FUJITSU sales representatives before ordering.
2. 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.
3. The contents of this document may not be reproduced or copied without the permission of FUJITSU
LIMITED.
4. FUJITSU semiconductor devices are intended for use in standard applications (computers, office
automation and other office equipments, industrial, communications, and measurement equipments,
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 witho ut prior approval.
5. Any sem iconductor device s have inherentl y a certain rate of failure. Y ou 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.
6. If any products described in this document represent goods or technologies subject to certain
restrictions on export under the Foreign Exchange and Foreign Trade Control Law of Japan, the prior
authorization by Japanese government should be required for export of those products from Japan.
1.2Product Series ....................................................................................................................................... 3
2.2Lock Control Block ............................................................................................................................... 19
The MB89990 series contains microcontrollers with a full range of resources such as
timers, external interrupts, and remote-control function, as well as the F2MC-8L CPU
core for low-voltage and high-speed operation. This single-chip microcontroller is
suitable for small devices such as remote controllers incorporating compact packages.
1.1 Features
1.2 Product Series
1.3 Block Diagram
1.4 Pin Assignment
1.5 Pin Function Description
1.6 Handling Devices
1
CHAPTER 1 GENARAL
1.1Features
This section describes the features .
■
Features
•Minimum instruction execution time: 0.95 µs at 4.2 MHz (V
2
•CPU core common to F
• Instruction set su itable for controlle r: - M ult ipl y /su btr ac tio n i ns truction, - 16-bit oper ati on,
- Instruction test and branch instruction, - Bit operation instruction
•Two timers
•8/16-bit timer/counter
• 20-bit time-base counter
•External interrupts
• Edge detection: 3 pins (edge direction enabled)
• Low-level interrupt: 8 pins (wake-up)
•Built-in remote-control carrier frequency generator
•Low-power consumption modes
•Stop mode: Almost no power consumption because oscillation stopped
•Sleep mode: 33% of normal power consumption because CPU stopped
•Package: SOP-28, SH-DIP-28 (mask ROM only)
MC-8L CPU
CC
= 3 V)
2
1.2 Product Series
1.2Product Series
This section describes the product series.
■
Product Series
Table 1.2-1 "Types and Functions of MB89990 Series of Microcontrollers"lists the types and
functions of the MB89990 series of microcontrollers.
Table 1.2-1 Types and Functions of MB89990 Series of Microcontr ollers
Model NameMB89997MB89P195*MB89PV190*
ClassificationMass-produced product (mask ROM
product)
ROM capacity32 K × 8 bits
(internal ROM)
RAM capacity128 × 8 bits256 × 8 bits
CPU functionsNumber of basic instructions
Instruction bit length
Instruction length
Data bit length
Minimum instruction execution time
Interrupt processing time
Table 1.5-1 "Pin Function Description" and Table 1.5-2 "Pins for External ROM" list the pin
function and Table 1.5-3 "Input/Output Circuit Configurations" shows the input/output circuit
configurations.
Table 1.5-1 Pin Function Description
Pin No.Pin NameCircuit typeFunction
7X0
8X1
5TEST B
RST
6
P00/INT20
24 to 27
1 to 4
17P30E
16P31E
15P32E
14P33/ECD
to
P03/INT23
P04/INT24
to
P07/INT27
A
C
D
D
Clock oscillator pins
Test input pin
These pins are connected directly to V
Reset I/O pin
This pin consists of an N-ch open-drain output with a pull-up
resistor and hysteresis input. A Low level is output from this
pin by internal source. The internal circuit is initialized at
input of a Low level.
General-purpose I/O port
These ports also serve as external interrupt input pin.
The external interrupt input is hysteresis type.
General-purpose I/O port
These ports also serve as external interrupt input pin.
The external interrupt input is hysteresis type.
General-purpose I/O port
General-purpose I/O port
General-purpose I/O port
General-purpose I/O port
This port also serves as an external clock input pin for the 8bit timer/counter. The external clock input is hysteresis type
with a built-in noise filter.
SS
.
13P34/T0/INT10D
12P35/INT11
11P36/INT12
8
General-purpose I/O port
This port also serves as an overflow output pin and an
external interrupt input pin for the 8-bit timer/counter. The
external interrupt input is hysteresis type with a built-in noise
filter.
General-purpose I/O port
D
This port also serves as an external interrupt input pin. The
external interrupt input is hysteresis type with a built-in noise
filter.
Table 1.5-1 Pin Function Description (Continued)
Pin No.Pin NameCircuit typeFunction
1.5 Pin Function Description
10P37/RCOE
18 to 23P40 to P45F
28V
9V
CC
SS
—
—
General-purpose I/O port
This port also serves as remote-control output pin.
N-ch open-drain type I/O port
Power pin
Power (GND) pin
•The pull-up resistor is available.
(MB89990 series only)
Nch
Analog input
11
CHAPTER 1 GENARAL
1.6Handling Devices
This section describes handling devices.
■
Handling Devices
(1) Preventing latch-up
Latch-up may occur if a voltage high er than V
or lower than VSS is applied to the input or
CC
output pins other than middle- and high-level-resistant pins, or if voltage exceeding the rated
value is applied between V
and VSS. When latch-up occurs, the supply current increases
CC
rapidly, sometimes r esulting in overheating and destruc tion. Therefore, no voltage exceeding
the maximum ratings should be used.
(2) Handling unused input pins
Leaving unused inp ut pin s open may cause a malfu nction. Therefore, t hese pin s shoul d be set
to pull-up or pull-down.
(3) Variations in supply voltage
Although the specif ied V
supply voltage op erating range is assured, a sud den change in the
CC
supply voltage within the specified range may cause a malfunction. Therefore, the voltage
supply to the IC should be kept as cons tant as possible. The V
supply frequency (50 to 60 Hz) should be less than 10% of the typical V
ripple (P-P value) at the
CC
value, or the
CC
coefficient of exces sive variati on should be less tha n 0.1 V/ms instantaneous change whe n the
power supply is switched.
(4) Precautions for external clocks
It takes some time for oscillation to stabilize after changing the mode from power-on reset
(option selection) and stop mode. Consequently, an external clock must be input.
(5) Recommended screening conditions
The OPTROM product should be screened by high-temperature aging before mounting.
12
Verify program
High-temperature aging (150°C, 48 H)
Read
Mount
The programming test can not be perform ed for all bi ts of the prep rogr ammed OPTROM product
due to its characteristics. Consequently, 100% programming yielding cannot be ensured.
CHAPTER 2HARDWARE CONFIGRATION
This chapter describes each block of the CPU hardware.
2.1 CPU
2.2 Clock Control Block
2.3 Interrupt Controller
2.4 I/O Ports
2.5 8/16-bit Timer (Timer 1 and Timer 2)
2.6 External Interrupt 1
2.7 External Interrupt 2 (Wake up)
2.8 Remote-control Carrier Frequency Generator
2.9 Time-base Timer
2.10 Watchdog Timer Reset
13
CHAPTER 2 HARDWARE CONFIGRATION
2.1CPU
• This section describes the memory space and register composing CPU hardware.
■
Memory Space
The MB89990 series of microc ontroller s have a memo ry area of 64K bytes . All I/O, data area s,
and program areas are located in this space. The I/O area is at the lowest address and the data
area is immediately above it. The data area may be divided into register, stack, and directaddress areas according to the applications. The program area is located near the highest
address and the tables of interrupt and reset vectors and vector-call instructions are at the
highest address. Figure 2.1-1 "Memory Space of MB89990 Series of Microc ontrollers" shows
the structure of the memory space for the MB89990 series of microcontrollers.
Figure 2.1-1 Memory Space of MB89990 Series of Microcontrollers
0000H
0080H
00C0H
0100H
0140H
8000H
FFFFH
MB89997
I/O
Vacant area
Register
Vacant area
Mask ROM
RAM
0000H
0080H
0100H
0180H
C000H
FFFFH
MB89P195
I/O
RAM
Register
Vacant area
Program PROM
(Mask ROM)
0000
0080H
0100H
0180H
8000H
FFFFH
MB89PV190
H
I/O
RAM
Register
Vacant area
External ROM
14
•I/O area
•This area is where various reso urce s such as contr ol and d ata reg ister s are loc ated. T he
memory map for the I/O area is given in APPENDIX A .
• RAM area
•This area is where the stati c RAM is lo cat ed. Ad dr es se s from
013F
for the MB89997) are also used as the general-purpose register area.
H
0100
H
to
017F
H
0100
(
•ROM area
•This area is whe re the in ter nal RO M is lo ca ted. Addresses fro m
FFC0
FFFF
to
H
H
to
H
are also
used for the table o f reset and vector-c all instructions. T able 2.1-1 "Table of Reset and
Interrupt Vectors " shows the correspondence between each interrupt number or reset
and the table addresses to be referenced for the MB89990 series of microcontrollers.
When the MB89990 ser ies of microcontroller s handle 16-bit data, the data written at the lowe r
address is treated as the upper data and tha t written at th e next address is treated as the lower
data as shown in Figure 2.1-2 "Arrangement of 16 bit Data in Memory".
Figure 2.1-2 Arrangement of 16 bit Data in Memory
Before execution
1234H
A
Memory
ABCFH
ABCEH
ABCDH
ABCCH
MOVW ABCDH , A
After execution
1234H
A
Memory
34H
12H
ABCFH
ABCEH
ABCDH
ABCCH
This is the same as when 16 bits are specified by the operand during execution of an
instruction. Bits closer to the OP code are treated as the upper byte and those next to it are
treated as the lowe r byte. This is als o the same when the me mory a ddress or 1 6-bit i mmediate
data is specified by the operand.
Figure 2.1-3 Arrangement of 16-bit Data during Execution of Instruction
[Example]
MOV A, 5678
H; Extended address
Assemble
XXXXH XX XX
Data saved in the stack by an interrupt is also treated in the same manner.
■
Internal Registers in CPU
The MB89990 serie s of microcontrollers have dedicated registers specifi ed applications in the
CPU and general-purpose registers in memory.
•Program counter (PC) 16-bit long register indicating location where instructions
•Accumulator (A)16-bit long register where results of operations stored
•Temporary accumulator (T)16-bit long register where the operations are performed
•Stack pointer (SP)16-bit long register indicating stack area
XXXX
H 60 56 78 ; Extended address
H E4 12 34 ; 16-bit immediate data
XXXX
H XX
XXXX
stored
temporarily. The lower byte is used to execute 8-bit data
processing instructions.
between this register and the accumulator. The lower byte
is used to execute 8-bit data processing instructions.
16
2.1 CPU
•Processor status (PS)16-bit long register where register pointers and condition
codes stored
• Index register (IX)16-bit long register for index modification
•Extra pointer (EP)16-bit long register for memory addressing
16 bits
P C
A
T
IX
EP
SP
PS
Program counter
Accumulator
Temporary accumulator
Index register
Extra pointer
Stack pointer
Processor status
The 16 bits of the processor statu s (PS) can be divided into 8 upper bits for a register bank
pointer (RP) and 8 lower bits for a con dition code register (CCR ). (See Fig ure 2.1-4 "S tructure
of Processor Status".)
Figure 2.1-4 Structure of Processor Status
1514131211109876543210
PS
RPHINZVC
Vacant Vacant Vacant
IL1, 0
RP
CCR
The RP indicates the add ress of the cu rrent regi ster bank. T he contents of the RP and the re al
addresses are translated as shown in Figure 2.1-5 "Rule for Translating Real Addresses at
General-purpose Register Area" .
Figure 2.1-5 Rule for Translating Real Addresses at General-purpose Register Area
The CCR has bits indicating the results of operations and transfer data contents, and bits
controlling the CPU operation when an interr upt oc curs .
- H-flagH-flag is set when a carry or a borrow out of bit 3 into bit 4 is generated
as a result of operations. It is cleared in other cases. This flag is used
for decimal-correction instructions.
17
CHAPTER 2 HARDWARE CONFIGRATION
- I-flagAn interrupt is enabled when this flag is 1 and is disabled when it is 0.
The I-flag is 0 at reset.
- IL1 and IL0These bits indicate the level of the currently-enabled interrupt. The
Interrupt Processing executes interrupt processing only when an
interrupt with a value smaller than the value indicated by this bit is
requested.
IL1IL0Interrupt levelHigh and low
0
0
1
1
- N-flagThe N-flag is set when the most significant bit is 1 as a result of
operations. It is cleared when the MSB is 0.
- Z-flagZ-flag is set when the bit is 0 as a result of operations. It is cleared in
other cases.
0
1
0
1
1
2
3
High
Low = No interrupt
- V-flagV-flag is set when a twoís complement overflow occurs as a result of
operations. It is reset when an overflow does not occur.
- C-flagC-flag is set when a carry or a borrow out of bit 7 is generated as a
result of operations. It is cleared in other cases. When the shift
instruction is executed, the value of the C-flag is shifted out.
•General-purpose registers
General-purpose registers are 8-bit long registers for storing data.
The 8-bit long general- purpose registers are in the register ba nks in memory. One bank has
eight registers and up to 16 b anks are available for the MB89193 (8 banks for the MB89191).
The register bank pointer (RP) indicates the currently-used bank.
Figure 2.1-6 Register Bank Configuration
Address = 0100H + 8 (RP)
+
R0
R1
R2
R3
R4
R5
R6
R7
16 banks
18
Memory area
Loading...
+ 64 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.