Be sure to refer to the “Check Sheet” for the latest cautions on development.
“Check Sheet” is seen at the following support page
URL:http://www.fujitsu.com/global/services/microelectronics/product/micom/support/index.html
“Check Sheet” lists the minimal requirement items to be checked to prevent problems beforehand in system development.
FUJITSU LIMITED
PREFACE
■ Purpose of This Manual and Intended Reader
The MB89202/F202RA series was developed as one of the general-purpose products of the
2
F
MC-8L family, which contains original 8-bit one-chip microcontrollers for use with ASICs
(application specific ICs). The MB89202/F202RA series can be used in a wide range of
products from consumer products to industrial products .
This manual explains the functions and operations of the MB89202/F202RA series for product
development.
2
The F
Note: F
■ Trademark
The company names and brand names herein are the trademarks or registered trademarks of
their respective owners.
■ Structure of This Manual
MC-8L Programming Manual contains details of the programming instructions.
2
MC, an abbreviation for FUJITSU Flexible Microcontroller, is a registered trademark of
FUJITSU LIMITED.
This manual consists of the following 17 chapters and appendix.
CHAPTER 1 OVERVIEW
This chapter describes the features and basic specification of the MB89202/F202RA series.
CHAPTER 2 HANDLING DEVICES
This chapter describes the precautions to be taken when handling the MB89202/F202RA
series.
CHAPTER 3 CPU
This chapter describes the functions and operation of the CPU.
CHAPTER 4 I/O PORTS
This chapter describes the functions and operation of the I/O ports.
CHAPTER 5 TIME-BASE TIMER
This chapter describes the functions an d operation of the time-base timer.
CHAPTER 6 WATCHDOG TIMER
This chapter describes the functions an d operation of the watchdog timer.
CHAPTER 7 8-BIT PWM TIMER
This chapter describes the functions an d operation of the 8-bit PWM timer.
CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER
This chapter describes the functions and operation of the 8/16-bit capture timer/coun ter.
CHAPTER 9 12-BIT PPG TIMER
This chapter describes the functions and operation of the 12-bit PPG timer.
i
CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 (EDGE)
This chapter describes the functions and operation of external interrupt circuit 1 (edge).
CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 (LEVEL)
This chapter describes the functions and operation of external interrupt circuit 2 (level).
CHAPTER 12 A/D CONVERTER
This chapter describes the functions and operation of the A/D converter.
CHAPTER 13 UART
This chapter describes the functions and operation of UART.
CHAPTER 14 8-BIT SERIAL I/O
This chapter describes the functions and operation of the 8-bit serial I/O.
CHAPTER 15 BUZZER OUTPUT
This chapter describes the functions and ope ration of the buzzer output.
CHAPTER 16 WILD REGISTER FUNCTIONS
This chapter describes the functions and operation of the wild registers.
CHAPTER 17 FLASH MEMORY
This chapter describes the functions and operation of the flash memory.
APPENDIX
This appendix shows the I/O map and instructions list.
ii
• The contents of this document are subject to change without notice.
Customers are advised to consult with sales representatives before ordering.
• The information, such as descriptions of function and application circuit examples, in this document are presented
solely for the purpose of reference to show examples of operations and uses of FUJITSU semiconductor device;
FUJITSU does not warrant proper operation of the device with respect to use based on such information. When you
develop equipment incorporating the device based on such information, you must assume any responsibility arising out
of such use of the information. FUJITSU assumes no liability for any damages whatsoever arising out of the use of the
information.
• Any information in this document, including descriptions of function and schematic diagrams, shall not be construed
as license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right
of FUJITSU or any third party or does FUJITSU warrant non-infringement of any third-party's intellectual property
right or other right by using such information. FUJITSU assumes no liability for any infringement of the intellectual
property rights or other rights of third parties which would result from the use of information contained herein.
• The products described in this document are designed, developed and manufactured as contemplated for general use,
including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not
designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless
extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal
injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air
traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for
use requiring extremely high reliability (i.e., submersible repeater and artificial satellite).
Please note that FUJITSU will not be liable against you and/or any third party for any claims or damages arising in
connection with above-mentioned uses of the products.
• 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.
• Exportation/release of any products described in this document may require necessary procedures in accordance with
the regulations of the Foreign Exchange and Foreign Trade Control Law of Japan and/or US export control laws.
• The company names and brand names herein are the trademarks or registered trademarks of their respective owners.
■ Example Notation of Register Names and Pin Names
❍ Example notation of register names and bit names
By writing 1 into the sleep bit of the standby control register (STBC : SLP), ...
Bit name
Prohibit the output of interrupt request of the time-base timer (TBTC : TBIE = 0).
If interrupt enabled (CCR : I = 1) is specified, the interrupt is accepted.
Current state
Bit abbreviation
Register abbreviation
❍ Example notation of multi-use pins
P33/EC pin
Some pins can switch functions according to a setting made by a program or other method.
These pins are called multi-use pins. For multi-use pins, the names corresponding to
functions are listed and divided by /.
13.1Overview of UART .......................................................................................................................... 280
13.2Configuration of UART .................................................................................................................... 284
13.3Pins of UART .................................................................................................................................. 287
The followings product name is changed.
(MB89202 → MB89202/F202RA)
The followings term is changed.
(source oscillation → oscillation frequency)
"Notes:" is changed.
(The followings sentence is deleted.
•At turning on the power, when the device is used without inputting the external
"
reset, select "reset output supported" and "power-on reset supported" by mask
option.")
The followings package is changed in Table 1.3-1.
(FPT-34P-M03 → FPT-32P-M03)
"● External pull-up for the External Reset Pin (RST
changed.
The summary is changed.
"■ General-purpose Register Area (address: 0100
"■ Vector Table Area (Address: FFC0
pin in Table 1.7-1 is changed.
) of MB89F202/F202RA" is
to 01FFH)" is changed.
H
to FFFFH)" is changed.
H
443.5 Reset"● Power-on reset" is changed.
"Note:" is deleted.
563.6.3 System Clock
57Table 3.6-1 is changed.
1306.3 Watchdog Control
1868.6 Explanation of
26412.3 Pins of A/D
30813.6.2 Reception
Control Register (SYCC)
Register (WDTC)
Operations of Interval
Timer Functions
Converter
Operations (Operating
Mode 0, 1, or 3)
Figure 3.6-5 is changed.
Figure 6.3-1 is changed.
"● 8-bit mode"is changed.
(The followings sentence is deleted.
"The initial value of the square wave output is "L" level. The square wa ve output is
initialized by writing "0" to the TSTR bit of the timer control register (TCR).")
"■ Block Diagram of the Pins Related to the A/D Converter" is changed.
("Note:" is deleted.)
"■ Reception Operations (Operating Mode 0, 1, or 3)" is changed.
("Note:" is changed.)
xi
PageChanges (For details, refer to main body.)
31013.6.3 Reception
Operations (Operating
"■ Reception Operations (Operating Mode 2 Only)" is changed.
("Note:" is changed.)
Mode 2 Only)
35817.1 Overview of Flash
"■ High voltage supply on RST
Memory
37017.5.2 Writing DataFigure 17.5-1 is changed.
(F555 → F554)
394
2
MC-8L
B.4 F
Instructions List
Table B.4-2 is changed.
("No.22 DECW A" is changed.)
The vertical lines marked in the left side of the page show the changes.
pin (applicable to MB89F202RA only)" is added.
xii
CHAPTER 1
OVERVIEW
This chapter describes the features and basic
specification of the MB89202/F202RA series.
1.1 Features of MB89202/F202RA Series
1.2 MB89202/F202RA Series Product Lineup
1.3 Differences between Models
1.4 Block Diagram of MB89202/F202RA Series
1.5 Pin Assignment
1.6 Package Dimensions
1.7 Pin Functions Description
1.8 I/O Circuit Types
1
CHAPTER 1 OVERVIEW
1.1Features of MB89202/F202RA Series
The MB89202/F202RA series contains general-purpose single-chip microcontroller s that
incorporate a full range of peripheral functions such as A/D converter, UART, PWM
timer, PPG, capture timer/counter and external interrupts as well as a compact
instruction set.
•8-bit PWM timer (also available as an interval timer)
•21-bit time-base timer
•Watchdog timer
● 10-bit A/D converter
•10-bit A/D × 8 channels
•Activation by 8/16-bit capture timer/counter output is possible.
● Programmable pulse generator (PPG)
•Pulse width and cycle are software selectable (12-bit PPG).
● UART
•6, 7, or 8 transfer data length
● 8-bit serial I/O
•Available when switched from UART
•LSB first/MSB first selectability
● External interrupts
•External interrupt 1 (edge detection × 3 pins) has three independent inputs and can be used for wake-up
from low-power consumption mode. (The edge detection can be sel ected from rising -edge, falli ng-edge,
and both-edge modes.)
2
•External interrupt 2 (level d etection × 8 pins, 1 channel) has eight independent inputs and can be used
for wake-up from low-power consumption mode. (L level detection function is supported.)
● Low-power consumption modes (standby modes)
•Stop mode (The oscillation is stopped so that current cons umption is minimal.)
•Sleep mode (The CPU is stopped so that the current consumption is reduced by one-third of normal
consumption.)
● Up to 26 pins of I/O ports
•General-purpose I/O ports (CMOS): 26 pins (4 of which can be used as N-ch open-drain I/O ports.)
● Wild registers
•2-byte data at two addresses are available.
•When a specific address or data is used on a wild register, the data in the ROM area is changed.
● 16 KB Flash with read protection
•Once the protection code is written in the specified address, the FLASH content cannot be read by
parallel/serial programmer.
CHAPTER 1 OVERVIEW
3
CHAPTER 1 OVERVIEW
1.2MB89202/F202RA Series Product Lineup
Four MB89202 series models are available. Table 1.2-1 shows the models and Table 1.22 shows the CPU and peripheral functions.
■ MB89202/F202RA Series Models
Table 1.2-1 MB89202/F202RA Series Models
MB89201MB89F202/F202RAMB89V201
Classification
ROM size
RAM size512 × 8 bits
Low-power consumption
(standby mode)
ProcessCMOS
Operating voltage
*1: The minimum operating voltage varies with conditions such as operating frequency, functions, and connecting
ICE.
*2: MBM27C256A is used as the external ROM.
*1
Evaluation product
(for development)
32K × 8 bits
(External EPROM
2.7V to 5.5V3.5V to 5.5V2.2V to 5.5V
*2
)
Flash memory product
(read protection)
16K × 8 bits
(Internal Flash)
Sleep mode and stop mode
Mask ROM product
16K × 8 bits
(Internal mask ROM)
4
Table 1.2-2 CPU and Peripheral Functions of MB89202/F202RA Series
ItemSpecification
Number of basic instructions:136 instructions
Instruction bit length:8 bits
CPU function
Instruction length:1 to 3 bytes
Data bit length:1, 8, or 16 bits
Minimum instruction execution time:0.32 to 5.1 µs (at 12.5 MHz)
Interrupt processing time:2.88 to 46.1 µs (at 12.5 MHz)
CHAPTER 1 OVERVIEW
Periphera
l function
Port
21-bit
time-base
General-purpose I/O port:26 pins (Also serve as peripherals. 4 of which can be used as N-ch
open-drain I/O ports.)
21 bits
Interrupt cycle: 0.66 ms, 2.64 ms, 21 ms, or 335.5 ms with 12.5MHz main clock
timer
Watchdog
Reset occurrence cycle: When the main clock is at 12.5 MHz (minimum 335.5 ms)
8-bit capture timer/counter × 1 channel + 8-bit timer or 16-bit capture timer/counter × 1 channel
When timer 0 or a 16-bit counter is operating, event-counting operation by external clock input
and square wave output are supported.
counter
UARTTransfer data length: 6, 7, or 8 bits
8-bit serial
I/O
12-bit
8 bits length, LSB first/MSB first selectability
One clock selectable from four operation clocks
(one external shift clock, three internal shift clocks: 2 t
Output frequency: Pulse width and cycle are selectable.
PPG timer
and 256 times 8/16-bit capture timer/counter output)
INST
INST
, 8 t
INST
, 32 t
INST
)
External
interrupt 1
(wake-up)
External
interrupt 2
3 channels (interrupt vector, request flag, and request output enable)
Edge selectability (selectable from rising edge, falling edge, and both-edge modes)
Also available for wake-up from stop or sleep (Edge detection is also available in stop mode.)
8 inputs 1 channel (L level interrupt and input enable are independent.)
Also available for wake-up from stop or sleep (Level detection is also available in stop mode.)
(wake-up)
10-bit A/D
converter
Wild
10-bit resolution × 8 channels
A/D conversion function (Conversion time: 38 t
INST
)
Continuous activation by 8/16-bit capture timer/counter output or time-base timer output.
8-bit × 2
register
Note:
The oscillation is 12.5 MHz unless another condition such as the main clock maximum speed, the clock
cycle value, or conversion time is stated.
5
CHAPTER 1 OVERVIEW
1.3Differences between Models
This section describes the precautions to be taken when selecting a MB89202/F202RA
series model.
■ Precautions when Selecting a Model
Table 1.3-1 Differences between Mod els
PackageMB89201MB89F202/F202RAMB89V202
DIP-32P-M06
FPT-32P-M03
FPT-64P-M03
● Current consumption
•When operated at a low speed, the current consumption of a model with a flash is greater than that of a
model with a mask ROM, though the current consumption in sleep or stop mode is the same.
Notes:
•For details on each package, see Section "1.6 Package Dimensions ".
•For details on current consumption and electrical characteristics of A/D converter, see the electrical
characteristics in the Data Sheet.
6
1.4Block Diagram of MB89202/F202RA Series
Figure 1.4-1 shows the block diagram of the MB89202/F202RA series.
■ Block Diagram of MB89202/F202RA Series
Figure 1.4-1 Block Diagram of MB89202/F202RA Series
CHAPTER 1 OVERVIEW
RST
P60, P61
1
*
P70
to
1
*
P04 / INT24
to
P07 / INT27
P02 / INT22 / AN6,
P03 / INT23 / AN7
P00 / INT20 / AN4,
P01 / INT21 / AN5
*1P40 / AN0
to
1
P43 / AN3
*
P72
X0
X1
Main clock
oscillator
Clock controller
Reset circuit
Port 6
2
CMOS I/O port
3
4
2
2
4
CMOS I/O port
Port 7
CMOS I/O port
8
4
4
External
interrupt2
(wake-up)
10-bit A/D
converter
Port 4Port 0
CMOS I/O port
(N-ch OD)
Time-base timer
UART prescaler
Internal bus
serial I/O
capture timer/
External interrupt1
CMOS I/O port
8-bit PWM
UART
8-bit
8/16-bit
counter
Serial function switching
3
Port 5Port 3
P50 / PWM
P30 / UCK / SCK
P31 / UO / SO
P32 / UI / SI
P33 / EC
P34 / TO / INT10
P35 / INT11
P36 / INT12
512 or 256 bytes RAM
Other pins
VCC, VSS, C
1
: Large-current drive type
*
2
*
: Check section "3.1 Memory Space"
F2MC - 8 L CPU
16K or 8K bytes ROM
Wild register
2
*
12-bit PPG
P37 / BZ / PPG
2
*
Buzzer output
CMOS I/O port
7
CHAPTER 1 OVERVIEW
1.5Pin Assignment
Figure 1.5-1 and Figure 1.5-2 show the pin assignment of the MB89202/F202RA series.
Note: N.C.: Do not use because it is connected internally.
9
CHAPTER 1 OVERVIEW
1.6Package Dimensions
Two different packages are available for MB89202/F202RA series.
Figure 1.6-1 and Figure 1.6-2 show package dimensions.
■ Package Dimension of DIP-32P-M06
Figure 1.6-1 Package Dimension of DIP-32P-M06
32-pin plastic SH-DIPLead pitch1.778 mm
Low space10.16 mm
(DIP-32P-M06)
32-pin plastic SH-DIP
(DIP-32P-M06)
INDEX
+0.70
4.70
–0.20
+.028
.185
–.008
+0.20
3.30
–0.30
+.008
.130
–.012
1.27(.050)
MAX.
C
2003 FUJITSU LIMITED D32018S-c-1-1
*28.00
1.102
1.778(.070)
Sealing method
Note 1)* : These dimensions do not include resin protrusion.
+0.20
–0.30
+.008
–.012
0.48
.019
Note 2) Pins width and pins thickness include plating thickness.
±0.25
*8.89
(.350±.010)
+0.30
1.02
–0.20
+.012
–.008
.040
0.51(.020)
MIN.
+0.03
0.27
–0.07
+.001
.011
+0.08
–0.12
+.003
–.005
0.25(.010)
M
–.003
Dimensions in mm (inches).
Note: The values in parenthesesare reference values
Plastic mold
10.16(.400)
0~15˚
10
Please confirm the latest Package dimension by following URL.
http://edevice.fujitsu.com/fj/DATASHEET/ef-ovpklv.html
■
Package Dimension of FPT-34P-M03
Figure 1.6-2 Package Dimension of FPT-34P-M03
34-pin plastic SSOPLead pitch0.65 mm
CHAPTER 1 OVERVIEW
(FPT-34P-M03)
34-pin plastic SSOP
(FPT-34P-M03)
1
*
11.00±0.10(.433±.004)
3418
INDEX
Note 1)*1 : Resin protrusion. (Each side : +0.15 (.006) Max).
Note 2)*2 : These dimensions do not include resin protrusion.
Note 3)Pins width and pins thickness include plating thickness.
Note 4) Pins width do not include tie bar cutting remainder.
2
*
6.10±0.108.10±0.20
(.240±.004) (.319±.008)
Package width
package length
Lead shape
Sealing method
×
6.10 × 11.00 mm
Gullwing
Plastic mold
Mounting height1.45 mm MAX
Code
(Reference)
P-SSOP34-6.1×11-0.65
0.17±0.03
(.007±.001)
Details of "A" part
+0.20
–0.10
1.25
+.008
–.004
.049
0.25(.010)
(Mounting height)
117
0.65(.0265)
0.10(.004)0.10(.004)
C
2003 FUJITSU LIMITED F34003S-c-2-3
0.24
.009
+0.08
–0.07
0.10(.004)
+.003
–.003
"A"
M
Please confirm the latest Package dimension by following URL.
http://edevice.fujitsu.com/fj/DATASHEET/ef-ovpklv.html
0~8
˚
0.50±0.20
(.020±.008)
0.60±0.15
(.024±.006)
Dimensions in mm (inches).
Note: The values in parenthesesare reference values
0.10±0.10
(.004±.004)
(Stand off)
11
CHAPTER 1 OVERVIEW
1.7Pin Functions Description
Table 1.7-1 describes the I/O pins and functions.
The letters in the circuit type column shown in Table 1.7-1 correspond to the letters in
the Circuit Type column shown in Table 1.8-1 .
■ Pin Functions Description
Table 1.7-1 Pin Functions Description (1/2)
SHDIP32
Pin No.
*1
SSOP34
Pin
name
*2
Circuit
type
Function
88X0APins for connecting the crystal for the main clock. To use an
99X1
5, 65, 6P60,
H / EGeneral-purpose CMOS input port.
external clock, input the signal to X0 and leave X1 open.
P61
77RST
CReset I/O pin.
This pin serves as an N-ch open-drain reset output and a reset input
as well. The reset is a hysteresis input.
It outputs the "L" signal in response to an internal reset request.
Also, it initializes the internal circuit upon input of the "L" signal.
28, 2930, 31P00/
INT20
AN4,
P01/
INT21
GGeneral-purpose CMOS I/O ports.
/
These pins also serve as an input (wake-up input) of external
interrupt 2 or as an 10-bit A/D converter analog input. The input of
external interrupt 2 is a hysteresis input.
/
AN5
30, 3132, 33P02/
INT22
AN6,
P03/
INT23
GGeneral-purpose CMOS I/O ports.
/
These pins also serve as an input (wake-up input) of external
interrupt 2 or as an 10-bit A/D converter analog input. The input of
external interrupt 2 is a hysteresis input.
/
AN7
1 to 41 to 4P04/
1920P30/
1819P31/
12
INT24
to
P07/
INT27
UCK/
SCK
UO/SO
DGeneral-purpose CMOS I/O ports.
These pins also serve as an input (wake-up input) of external
interrupt 2. The input of external interrupt 2 is a hysteresis input.
BGeneral-purpose CMOS I/O ports.
This pin also serves as the clock I/O pin for the UART or 8-bit
serial I/O. The resource is a hysteresis input.
EGeneral-purpose CMOS I/O ports.
This pin also serves as the data output pin for the UART or 8-bit
serial I/O.
Table 1.7-1 Pin Functions Description (2/2)
CHAPTER 1 OVERVIEW
SHDIP32
Pin No.
*1
SSOP34
Pin
name
*2
Circuit
type
Function
1718P32/UI/SIBGeneral-purpose CMOS I/O ports.
This pin also serves as the data input pin for the UART or 8-b it
serial I/O. The resource is a hysteresis input.
1515P33/ECBGeneral-purpose CMOS I/O ports.
This pin also serves as the external clock input pin for the 8/16-bit
capture timer/counter. The resource is a hysteresis input.
1414P34/
TO/
INT10
BGeneral-purpose CMOS I/O ports.
This pin also serves as the output pin for the 8/16-bit capture timer/
counter or as the input pin for external interrupt 1. The resource is a
hysteresis input.
1313P35/
INT11
BGeneral-purpose CMOS I/O ports.
These pins also serve as the input pin for external interrupt 1. The
resource is a hysteresis input.
1212P36/
INT12
BGeneral-purpose CMOS I/O ports.
These pins also serve as the input pin for external interrupt 1. The
resource is a hysteresis input.
1111P37/
BZ/
PPG
EGeneral-purpose CMOS I/O ports.
This pin also serves as the buzzer output pin or the 12-bit PPG
output pin.
2021P50/
PWM
24 to 2726 to 29P40/
AN0 to
P43/
EGeneral-purpose CMOS I/O ports.
This pin also serves as the 8-bit PWM timer output pin.
FGeneral-purpose CMOS I/O ports.
These pins can also be used as N-ch open-drain ports.
These pins also serve as 10-bit A/D converter analog input pins.
AN3
21 to 2323 to 25P70 to
EGeneral-purpose CMOS I/O ports.
P72
3234V
1010V
CC
SS
--Power supply pin
--Power (GND) pin
1617C--MB89F202/F202RA:
Capacitance pin for regulating the power supply.
Connect an external ceramic capacitor of about 0.1µF.
MB89202:
This pin is not internally connected. It is unnecessary to connect
a capacitor.
--16, 22N.C.--Internally connected pins
Be sure to leave it open.
*1 : DIP-32P-M06
*2 : FPT-34P-M03
13
CHAPTER 1 OVERVIEW
1.8I/O Circuit Types
Table 1.8-1 describes the I/O circuit types.
The letters in the circuit column shown in Table 1.8-1 correspond to the letters in the
circuit type column shown in Table 1.7-1 .
■ I/O Circuit Types
Table 1.8-1 I/O Circuit Types (1/2)
TypesCircuitRemarks
AAt an oscillation feedback resistance of
approximately 500 kΩ
X1
X0
Standby control signal
BCMOS output
Hysteresis input
Pull-up resistor optional
Input enable
P-ch
P-ch
N-ch
Port / Resource
CAt an output pull-up resistor (P-ch) of
P-ch with pull-up, not
available for MB89F202/F202RA
approximately 50 kΩ/5.0 V
(not available for MB89F202/F202RA)
N-ch open-drain reset output
Hysteresis input
High voltage input tolerable in MB90F202RA
N-ch
Reset
14
Loading...
+ 406 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.