The MB91150 Series, hereafter referred to as MB91150, is a member of the "32-bit single-chip
microcontroller FR30 Series" family and has a CPU based on a new RISC architecture at its
core. This single-chip microcontroller contains peripheral I/O resources suited for audio
equipment and MD drives that require low power consumption.
This manual is for engineers who develop products incorporating the MB91150. It also
describes the functions and operation of the MB91150. Read this manual thoroughly. For details
on each instruction, see the Instructions Manual.
■ Trademarks
FR is an abbreviation of FUJITSU RISC controller and a product of FUJITSU LIMITED.
Embedded Algorithm
■ License
Purchase of FUJITSU I
use these components in the I
Standard Specification as defined by Philips.
TM
is a trademark of Advanced Micro Device Corporation.
2
C components conveys a license under the Philips I2C Patent Right to
2
C system, provided that the system conforms to the I2C
i
■ Structure of This Manual
This manual contains 21 chapters and one appendix.
CHAPTER 1 "OVERVIEW OF THE MB91150"
This chapter provides basic items that are required to fully understand the MB91150, such
as a description of MB91150 features, block diagrams, and an outline of functions.
CHAPTER 2 "HANDLING THE DEVICE"
This chapter provides details on handling the MB91150.
CHAPTER 3 "MEMORY SPACE, CPU AND CONTROL UNIT"
This chapter describes basic items that are required to understand the FR Series CPU core
functions, its architecture, specifications, and instructions.
CHAPTER 4 "BUS INTERFACE"
This chapter describes the bus interface and bus operation.
CHAPTER 5 "I/O PORTS"
This chapter describes the I/O ports and provides the block diagrams of individual ports. It
also describes the structure and functions of registers.
CHAPTER 6 "8/16-BIT UP/DOWN COUNTER/TIMER"
This chapter describes the 8-bit and 16-bit up/down counter/timer and provides their block
diagrams. It also describes the structures and functions of registers and the operations of the
8-bit and 16-bit up/down counter/timer.
CHAPTER 7 "16-BIT RELOAD TIMER"
This chapter describes the 16-bit reload timer. It also describes the operations of the 16-bit
reload timer, block diagram, and the structures and functions of the timer registers.
CHAPTER 8 "PPG TIMER"
This chapter describes the PPG timer. It also describes the operations of the PPG timer,
block diagram, and the structures and functions of the timer registers.
CHAPTER 9 "MULTIFUNCTIONAL TIMER"
This chapter describes the multifunctional timer. It also describes the operations of the
multifunctional timer, block diagram, and the structures and functions of the timer registers.
CHAPTER 10 "EXTERNAL INTERRUPT CONTROL BLOCK"
This chapter describes the external interrupt control block. It also describes the operation of
the external interrupt control block, and the structures and functions of the related registers.
CHAPTER 11 "DELAYED INTERRUPT MODULE"
This chapter describes the delayed interrupt module. It also describes the operation of the
delayed interrupt module, and the structures and functions of related registers.
CHAPTER 12 "INTERRUPT CONTROLLER"
This chapter describes the interrupt controller and provides its block diagram. It also
describes the structures and functions of registers and the operation of the interrupt
controller.
CHAPTER 13 "8/10-BIT A/D CONVERTER"
This chapter describes the 8-bit D/A converter and provides its block diagram. It also
describes pins, structures and functions of registers, interrupts, device operation, and the A/
D conversion data protection function. The chapter also provides notes on using the 8/10-bit
A/D converter.
ii
CHAPTER 14 "8-BIT D/A CONVERTER"
This chapter describes the 8-bit D/A converter. It also describes the operation of the
converter, block diagram, and the structures and functions of the converter registers.
CHAPTER 15 "UART"
This chapter describes the UART and provides its block diagram. It also describes pins,
structures and functions of registers, interrupts, timing, baud rates, and device operation.
The chapter also provides notes on using the UART.
CHAPTER 16 "I
This chapter describes the I
register structures and functions and I
2
C INTERFACE"
2
C interface and provides its block diagram. It also describes
2
C interface operation.
CHAPTER 17 "DMAC"
This chapter describes the DMAC and provides its block diagram. It also describes registers,
operation, DMA transfer sources, and DMAC timing. The chapter also provides notes on
using the DMAC.
CHAPTER 18 "BIT SEARCH MODULE"
This chapter describes the bit search module. It also describes the structures and functions
of bit search module registers, and the processing for saving and restoring.
CHAPTER 19 "PERIPHERAL STOP CONTROL"
This chapter describes peripheral stop control and structures and functions of the registers.
CHAPTER 20 "CALENDAR MACROS"
This chapter describes the calendar macros, structures and functions of registers, and the
operation of the calendar macro.
CHAPTER 21 "FLASH MEMORY"
This chapter describes the flash memory, structures and functions of the registers, device
operation, and the automation algorithm. It also provides detailed information on flash
memory writing and erasing.
APPENDIX
The appendix contains I/O maps and information on the interrupt vectors, pin status for
various CPU states, details regarding the little-endian area, and references for programming.
iii
•The contents of this document are subject to change without notice.
Customers are advised to consult with FUJITSU 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.
•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.
An explanation of the most important terms in this manual is given in the table below.
TermMeaning
I-BUS16-bit bus for internal instructions. The FR Series employs internal Harvard
architecture; there are independent buses for instructions and data. A bus
converter is connected to the I-BUS.
D-BUSInternal 32-bit data bus. An internal resource is connected to the D-BUS.
C-BUSInternal multiplex bus. The C-BUS is connected to both the I-BUS and D-Bus
through a switch. An external interface module is connected to the C-BUS. On
external data buses, data and instructions are multiplexed.
R-BUSInternal 16-bit data bus. The R-Bus is connected to the D-BUS via an adapter.
Various I/O devices, a clock generator, and an interrupt controller are connected
to the R-BUS. The R-BUS has a bandwidth of 16 bits over which addresses and
data are multiplexed; CPU access time of these resources is several cycles.
E-unit Arithmetic execution unit
φSystem clock. It provides the clock signals output to each of the built-in
resources connected to the R-BUS from the clock generator. The maximum
clock speed (cycle) is identical to the original clock oscillation. The clock cycle
can be divided by 1, 1/2, 1/4, and 1/8 (or 1/2, 1/4, 1/8, and 1/16) depending on
the setting of the PCK1 and PCK0 bits of the GCR register in the clock
generator.
θSystem clock. Clock used by the CPU and resources connected to a bus other
than the R-BUS. The maximum clock speed (cycle) is identical to the original
clock oscillation. The clock cycle can be divided by 1, 1/2, 1/4, and 1/8 (or 1/2, 1/
4, 1/8, and 1/16) depending on the setting of the CCK1 and CCK0 bits of the
GCR register in the clock generator.
v
vi
CONTENTS
CHAPTER 1OVERVIEW OF THE MB91150 ..................................................................... 1
1.1MB91150 Features ................................................................................................................................ 2
CHAPTER 3MEMORY SPACE, CPU AND CONTROL UNIT ......................................... 29
3.1Memory Space ..................................................................................................................................... 30
3.11.7 PLL Control Register (PCTR) ......................................................................................................... 77
3.11.8 Watchdog Function ......................................................................................................................... 78
3.11.9 Gear Function ................................................................................................................................. 80
3.11.10 Retaining a Reset Source ............................................................................................................... 82
3.11.11 Example of Setting the PLL Clock .................................................................................................. 84
3.12.1 Stop Status .................................................................................................................................... 89
3.12.2 Sleep Status .................................................................................................................................. 92
3.12.3 Status Transition of the Low-power Consumption Mode .............................................................. 95
17.3.2 MAC control status register (DACSR) .......................................................................................... 366
17.3.3 DMAC pin control register (DATCR) ............................................................................................. 368
17.3.4 Register of the descriptor in RAM ................................................................................................. 370
17.4 Transfer Modes Supported by the DMA Controller ............................................................................ 373
17.4.1 Step Transfer (Single/Block Transfer) .......................................................................................... 376
17.4.2 Continuos Transfer ....................................................................................................................... 377
17.4.3 Burst Transfer ............................................................................................................................... 378
17.4.4 Differences Because of DREQ Sense Mode ................................................................................ 379
17.5 Transfer-Acceptance Signal Output and Transfer-End Signal Output ............................................... 381
17.6 Notes on the DMA Controller ............................................................................................................. 382
17.7 Timing Charts for the DMA Controller ................................................................................................ 384
xi
17.7.1 Timing charts for the descriptor access section ........................................................................... 385
17.7.2 Timing charts for the data transfer section ................................................................................... 387
17.7.3 Timing charts for transfer termination in continuous transfer mode ............................................. 389
17.7.4 Timing charts for the transfer termination operation .................................................................... 391
21.4 Automatic Algorithm of Flash Memory .............................................................................................. 423
21.5 Checking the Automatic Algorithm Execution Status ........................................................................ 427
21.6 Writing and Erasing Flash Memory ................................................................................................... 432
21.6.1 Putting flash memory into read/reset status ................................................................................. 433
21.6.2 Writing data to flash memory ....................................................................................................... 434
21.6.3 Erasing data ................................................................................................................................. 436
21.6.4 Temporarily Stopping and Restarting Sector Erase ..................................................................... 438
D.4Debuggers (sim911, eml911, and mon911) ................................................................................... 465
APPENDIX E Instruction Lists .................................................................................................................... 466
INDEX ...................................................................................................................................487
xii
CHAPTER 1OVERVIEW OF THE MB91150
This chapter provides basic information required to fully understand the MB91150,
such as a description of MB91150 features, block diagrams, and an outline of
functions.
1.1 "MB91150 Features"
1.2 "Comprehensive Block Diagram of MB91150"
1.3 "Exterior Dimensions"
1.4 "Pin Assignment Drawing"
1.5 "Pin Functions"
1.6 "I/O Circuit Types"
1
CHAPTER 1 OVERVIEW OF THE MB91150
1.1MB91150 Features
The MB91150 is a single-chip microcontroller with peripheral I/O resources suited for
controlling devices such as audio equipment and MD drives that require operation
with low-power consumption. The core of the MB91150 is a 32-bit RISC CPU (FR30
Series).
•DMAC of the descriptor type according to which transfer parameters are allocated in main
storage
•Capable of transferring up to eight internal and external sources
•External source: 3 channels
❍ Bit search module
The bit search module makes a one-cycle search for the location of the first I/O bit change
starting with the MSB of a word.
❍ Timer
•16-bit OCU x 8 channels, ICU x 4 channels, free-run timer x 1 channel
•8-bit or 16-bit up/down timer/counter (8-bit x 2 channels or 16-bit x 1 channel)
•The AIN and BIN pins are shared with internal interrupts.
•16-bit PPG timer x 6 channels. The cycle and duty of an output pulse can be changed to an
arbitrary value.
•16-bit reload timer x 4 channels
❍ D/A converter
8 bits x 3 channels
❍ A/D converter (successive approximation type)
•10 bits x 8 channels
•Successive approximation type (conversion time: 5.0 µs@33 MHz)
•Singe and scan conversions can be selected, and single, continuous, and stop conversion
modes can be set.
•Hardware-driven or software-driven conversion function
3
CHAPTER 1 OVERVIEW OF THE MB91150
❍ Serial I/O
•UART x 4 channels. Each UART can perform clock-synchronized serial transfer with the
LSB/MSB switching function.
•Serial data output and serial clock output can be selected by open-drain or push-pull
software.
•Built-in 16-bit timer (U-Timer) as a dedicated baud rate generator, which can generate any
baud rate
2
❍ I
C bus interface
•1-channel master/slave transmission/reception
•Arbitration function and clock synchronization function
•(As long as the customer uses this product in an I
Standard Specifications prepared by Philips, the customer is granted a license of the I
patent of Philips.)
❍ Clock switching function
The ratio of the operating clock to the base clock can independently be set with the gear
function to 1:1. 1:2, 1:4, or 1:8 for the CPU and for each peripheral device.
2
C system conforming to the I2C
2
C
❍ Clock function (calendar macro)
•Built-in 32 kHz clock function
•The 32 kHz oscillation clock function can operate in stop mode as well.
•(32-kHz oscillation does not stop in stop mode.)
❍ Interrupt controller
•External interrupt input (up to 16 channels)
•The leading edge, trailing edge, H level, or L level can be set.
•Internal interrupt source
•Resource interrupt, delayed interrupt
❍ Other features
•Reset sources
•Power-on reset, watchdog timer, software reset, and external reset
•Low-power consumption mode
•Sleep mode and stop mode
•Packages
•PGA-299 (MB91FV150)
•LQFP-144 [MB91F155A, MB91155, MB91154]
•CMOS technology (0.35 µm)
•Power supply
•3.15 V to 3.6 V
4
CHAPTER 1 OVERVIEW OF THE MB91150
1ch
1.2Block Diagrams
This section provides MB91150 block diagrams separately for individual packages.
■ Block diagram for MB91FV150, MB91F155A and MB91155
Figure 1.2-1 "Block diagram (MB91FV150, MB91F155A and MB91155)" is a block diagram for
the MB91FV150, MB91F155A and MB91155.
Figure 1.2-1 Block diagram (MB91FV150, MB91F155A and MB91155)
■ Package dimensions of PGA-299C-A01 (MB91FV150 Only)
Figure 1.3-1 Package dimensions of PGA-299C-A01
299-pin ceramic PGALead pitch2.54mm(100mil)
Sealing methodMetal seal
CHAPTER 1 OVERVIEW OF THE MB91150
Pin matrix20
(PGA-299C-A01)
299-pin ceramic PGA
(PGA-299C-A01)
INDEX AREA
2.41 ± 0.10
(.095 ± .004)
1.65 ± 0.10
(.065 ± .004)
30.48 ± 0.31
(1.200 ± .012)
52.32 ± 0.56
(2.060 ± .022)
SQ
35.56 ± 0.41
(1.400 ± .016)
3.94 ± 0.10
(.155 ± .004)
5.59 (.220) MAX
+ 0.13
0.46
+ .005
(.018 )
2.54 (.100) MAX
48.26 (19.00)
REF
2.54 ± 0.25
(.100 ± .010)
1.27 ± 0.25
(.050 ± .010)
+ 0.41
3.40
+ .016
(.134 )
1.27 (.050) DIA TYP
(4 PLCS)
INDEX AREA
C
1994 FUJITSU LIMITED R299001SC-2-2
Dimensions in mm (inches).
7
CHAPTER 1 OVERVIEW OF THE MB91150
■ Package dimensions of FPT-144P-M08 (MB91F155A, MB91155 and MB91154)
Figure 1.3-2 Package dimensions of FPT-144P-M08
144-pin plastic LQFPLead pitch0.50 mm
(FPT-144P-M08)
144-pin plastic LQFP
(FPT-144P-M08)
22.00±0.20(.866±.008)SQ
*
20.00±0.10(.787±.004)SQ
109
Package width ×
package length
20.0 × 20.0 mm
Lead shapeGullwing
Sealing methodPlastic mold
Mounting height
1.70 mm MAX
Weight1.20g
Code
(Reference)
Note 1)*:Values do not include resin protrusion.
Resin protrusion is +0.25(.010)Max(each side).
Note 2) Pins width and pins thickness include plating thickness.
Note 3) Pins width do not include tie bar cutting remainder.
0.145±0.055
73108
72
(.006±.002)
P-LFQFP144-20×20-0.50
INDEX
144
136
LEAD No.
C
2003 FUJITSU LIMITED F144019S-c-4-6
0.50(.020)
0.22±0.05
(.009±.002)
0.08(.003)
0.08(.003)
Details of "A" part
+0.20
1.50
–0.10
(Mounting height)
+.008
.059
–.004
0.10±0.10
0˚~8˚
37
M
"A"
0.50±0.20
(.020±.008)
0.60±0.15
(.024±.006)
Dimensions in mm (inches).
Note: The values in parentheses are reference values.
(.004±.004)
(Stand off)
0.25(.010)
8
CHAPTER 1 OVERVIEW OF THE MB91150
1.4Pin Assignment
This section shows the MB91150 pin assignment for each type of package.
■ Pin assignment of MB91FV150 (PGA-299C-A01)
Figure 1.4-1 "MB91FV150 (PGA-299C-A01) pin assignment" shows the MB91FV150 (PGA299C-A01) pin assignment. Table 1.4-1 "Correspondence between pin numbers and pin names
(MB91FV150 (PGA-299C-A01)) (Device: MB91FV150, Package: PGA-299C-A01)" lists the
correspondences between pin numbers and pin names.
Can be used as a port when the address bus is not
used.
45P80/RDYCExternal RDY input
Effective when external RDYU input is enabled.
"0" is input if the bus cycle in progress fails to be
complete.
Can be used as a port when external RDY input is not
used.
46P81/BGRNT
FExternal bus open acceptance output
Effective when external bus open acceptance output is
enabled.
Outputs L when the external bus is opened.
Can be used as a port when external bus open
acceptance output is disabled.
47P82/BRQCExternal bus open request input
Effective when external bus open request input is
enabled.
Input "1" to open the external bus.
Can be used as a port when external bus open
request input is disabled.
48P83/RD
FExternal bus read strobe output
Effective when external bus read strobe output is
enabled.
Can be used as a port when external bus read strobe
output is disabled.
49P84/WR0
FExternal bus write strobe output
Effective in external bus mode.
Can be used as a port in single chip mode.
50P85/WR1
FExternal bus write strobe output
Effective when MB91150 is in external bus mode and
bus width is 16 bits.
Can be used as a port when MB91150 is in single chip
mode or 8-bit external bus mode.
51P86/CLKFSystem clock output
Outputs a clock signal that is equal to the operating
frequency of the external bus. Can be used as a port
when the system clock is not used.
52
53
54
55RST
MD2
MD1
MD0
GConnect these pins directly to V
These pins set the basic MCU operation mode.
Mode pins
BExternal reset input
or VSS.
CC
13
CHAPTER 1 OVERVIEW OF THE MB91150
Table 1.5-1 Functions of the MB91150 pins (Continued)
These inputs are always in use while the
corresponding external interrupts are enabled. Stop
port output in advance unless the resulting processing
is intentional.
This port can be used to release the standby status
because its input is enabled even during standby.
Can be used as a port when the pin is not used for
external interrupt request input.
HUsed for both chip select outputs and external interrupt
request inputs 4 to 7
Can be used for external interrupt request input or as a
port when chip select output is disabled.
These inputs are always in use while the
corresponding external interrupts are enabled. Stop
port output in advance unless the resulting processing
is intentional.
This port can be used to release the standby status
because its input is enabled even during standby.
Can be used as a port when the pin is not used for
external interrupt request input and chip select output.
These inputs are always in use while the
corresponding external interrupts are enabled. Stop
port output in advance unless the resulting processing
is intentional.
[AIN, BIN] Up/down timer input
[TRG] PPG external trigger input
These inputs are always in use while they are enabled.
Stop port output in advance unless the resulting
processing is intentional.
Can be used as a timer when the pin is not used for
external interrupt request input, up/down timer input,
and PPG external trigger input.
This input is always in use while the corresponding
external interrupt is enabled. Stop port output in
advance unless the resulting processing is intentional.
[DEOP2] DMA external transfer end output
Effective when DMAC external transfer end output
specification is enabled.
Can be used as a port when the pin is not used for
external interrupt request input or DMA external
transfer end output.
14
Loading...
+ 482 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.