The MB91319 is a standard single-chip microcontroller that has a 32-bit high-performance RISC
CPU as well as built-in I/O resources for embedded controller that requires high-performance
and high-speed CPU processing.
The MB91319 is most suitable for embedded applications, such as TV and PDP controllers, that
require a high level of CPU processing power.
The MB91319 is one of the FR60 series of microcontrollers, which are based on the FR30/40
family of CPUs. It has enhanced bus access and is optimized for high-speed use.
This manual is intended for engineers who will develop products using the MB91319 and
describes the functions and operations of the MB91319. Read this manual thoroughly.
For more information on instructions, see the "Instructions Manual".
■ Trademarks
FR, which is an abbreviation of FUJITSU RISC controller, is a product of Fujitsu Limited.
REALOS (Real-time Operating System) is a trademark of FUJITSU LIMITED.
■ License
The names of other systems and products appearing in this manual are the trademarks of their
respective companies or organizations.
Purchase of Fujitsu I
use, these components in an I
Specification as defined by Philips.
2
C components conveys a license under the Philips I2C Patent Rights to
2
C system provided that the system conforms to the I2C Standard
i
■ Organization of This Manual
This manual consists of the following 20 chapters and an appendix.
CHAPTER 1 "OVERVIEW"
This chapter provides basic information required to understand the MB91319 series, and
covers features, a block diagram, and functions.
CHAPTER 2 "HANDLING THE DEVICE"
This chapter provides precautions on handling the MB91319 series.
CHAPTER 3 "CPU AND CONTROL UNITS"
This chapter provides basic information required to understand the functions of the MB91319
series. It covers architecture, specifications, and instructions.
CHAPTER 4 "I/O PORT"
This chapter describes the I/O ports and the configuration and functions of registers.
CHAPTER 5 "16-BIT RELOAD TIMER"
This chapter describes the 16-bit reload timer, the configuration and functions of registers,
and 16-bit reload timer operation.
This chapter gives an outline of the PPG (Programmable Pulse Generator) timer and
explains the register configuration and functions and the timer operations.
CHAPTER 7 "MULTIFUNCTION TIMER"
This chapter gives an overview of the multifunction timer and explains the register
configuration and functions and the timer operat ion.
CHAPTER 8 "16-BIT PULSE WIDTH COUNTER"
This chapter gives an overview of the 16-bit pulse width counter and explains the register
configuration and functions and the counter operation.
CHAPTER 9 "INTERRUPT CONTROLLER"
This chapter describes the interrupt controller, the configuration and functions of registers,
and interrupt controller operation. It also presents an example of using the hold request
cancellation request function.
CHAPTER 10 "EXTERNAL INTERRUPT AND NMI CONTROLLER"
This chapter describes the external interrupt and NMI controller, the configuration and
functions of registers, and operation of the external interrupt and NMI controller.
CHAPTER 11 "REALOS-RELATED HARDWARE"
This chapter explains the delayed interrupt module and bit search module that are REALOSrelated hardware. REALOS-related hardware is used by the real-time OS. When REALOS is
used, the hardware cannot be used with the user program.
CHAPTER 12 "10-BIT A/D CONVERTER"
This chapter gives an overview of the 10-bit A/D converter, register configuration and
functions, and 10-bit A/D converter oper at ion .
CHAPTER 13 "U-TIMER"
This chapter describes the U-TIMER, the configuration and functions of registers, and UTIMER operation.
ii
CHAPTER 14 "UART"
This chapter describes the UART, the configuration and functions of registers, and UART
operation.
CHAPTER 15 "I
This chapter describes the I
2
C INTERFACE"
2
C interface, the configuration and functions of registers, and I2C
interface operation.
CHAPTER 16 "DMA CONTROLLER (DMAC)"
This chapter describes the DMA controller (DMAC), the configuration and functions of
registers, and DMAC operation.
CHAPTER 17 "USB FUNCTION"
This chapter gives an overview of the USB function, register configuration and functions,
operation of the USB function, and supplement ary notes on the USB function.
CHAPTER 18 "OSDC"
This chapter explains the features, block diagram, display function, control function, and
display control command of the on-screen display controller ( OSDC).
CHAPTER 19 "FLASH MEMORY"
This chapter provides an outline of flash memory and explains its register configuration,
register functions, and operations.
CHAPTER 20 "SERIAL PROGRAMMING CONNECTION"
The built-in FLASH product supports the serial onboard writing (Fujitsu standard) of the flash
ROM. The following explains its specification.
APPENDIX
This appendix consists of the following parts: the I/O map, interrupt vector, dot clock
generation PLL, USB clock, external bus interface setting, and instruction lists. The appendix
contains detailed information that could not be included in the main text and reference
material 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 a ssumes 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-in fringement 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 othe r rights of third parties which would result fro m
the use of information contained herein.
•The products described in this document are designed, developed and manufactured as contemplated fo r
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 d amages
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 o r
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 technolog ies subject to certain restrictions on
export under the Foreign Exchange and Foreign Trade Law of Japan, the prior authorization by Japa nese
government will be required for export of those products from Japan.
The following defines principal terms used in this manual.
TermMeaning
32-bit bus for internal instructions. In the FR family, which is based on an
I-bus
D-busInternal 32-bit data bus. An internal resource is conn ected to the D-bus.
F-bus
internal Harvard architecture, independent buses are used for instructions and
data. A bus converter is connected to the I-bus.
Princeton bus on which internal instructio ns and da ta are multiple xed. Th e F-bu s
is connected via a switch to the I-bus and D-bus. Built-in resources such as
ROM and RAM are connected to the F-bus.
X-bus
R-bus
E-unitExecution unit for operations.
CLKP
CLKB
CLKT
External interface bus. An external interface module is conn ected to the X-bus.
Data and instructions are multiplexed on the external data bus.
Internal 16-bit data bus. The R-bus is connected to the D-bus via an adapter. I/
O, a clock generator, and an interrupt controller are connected to the R-bus.
Since addresses and data are multiplexed on an R-bus that is only 16 bits wide,
more than one cycle is required for the CPU to access these resources.
System clock. Clock generated by the clock generator for each of the internal
resources connected to the R-bus. This clock has the same frequency as the
source oscillation at its maximum, but becomes a 1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7,...
or 1/16 (or 1/2, 1/4, 1/6, ... or 1/32) frequency clock as determined by the divideby rate specified by the B3 to B0 bits in the clock generator DIV0 register.
System clock. Operating clock for the CPU and each of the other resources
connected to a bus other than the R-bus and X-bus. This clock has the same
frequency as the source oscillation at its maximum, but becomes a 1, 1/2, 1/3, 1/
4, 1/5, 1/6, 1/7, ... or 1/16 (or 1/2, 1/4, 1/6, ... or 1/32) frequency clock as
determined by the divided-by rate specified by the P3 to P0 bits in the clock
generator DIV0 register.
System clock. Operating clock for the external bus interface connected to the Xbus. This clock has the same frequency as the source oscillation at its
maximum, but becomes a 1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, ... or 1/16 (or 1/2, 1/4, 1/
6, ... or 1/32) frequency clock as determined by the divide-by rate specified by
the T3 to T0 bits in the clock generator DIV1 register.
1.5List of Pin Fun ctio ns .................. ... .... ... ... ... ....................................... ... ... .... ...................................... 10
1.6Input-output Circuit Forms ................................................................................................................ 17
CHAPTER 2HANDLING THE DEVICE .......................................................................... 23
2.1Precautions on Handling the Device ................................................................................................. 24
CHAPTER 3CPU AND CONTROL UNITS ..................................................................... 29
3.1Memo ry Spa ce .............................. .... ... ....................................... ... ... ................................................ 30
3.2Intern al Arc hite ct ur e ................................ ....................................... ... ... ... .......................................... 31
3.3Programming Model ......................................................................................................................... 36
3.6Memo ry Ma p . ... ... .... ...................................... .... ...................................... .... ... ................................... 45
3.9Opera tin g Mo d es ................................................. ... ... .... ... ... ....................................... ... . .................. 64
5.1Overview of the 16-bit Reload Timer .............................................................................................. 138
5.216-bit Re loa d Timer Re gis ter s ...................... .... ... ... ... ....................................... ... .... ... .................... 139
5.2.1Control Status Register (TMCSR) ............................................................................................. 140
5.316-bit Re loa d Timer Op e ratio n ............... ... ... .... ... ... ....................................... ... ... .... ....................... 145
9.1Overview of the Interrupt Controller ................................................................................................ 204
9.2Interr up t Con tr oller Re gisters ..................... ... .... ... ....................................... ... ... ... ........................... 206
9.2.1Interrupt Control Register (ICR) ................................................................................................. 208
9.3Interr up t Con tr oller Op e ra tio n ....................... .... ... ... ....................................... ... ... .... ....................... 211
9.4Example of Using the Hold Request Cancellation Request Function (HRCR) ............................... 214
CHAPTER 10EXTERNAL INTERRUPT AND NMI CONTROLLER ............................... 217
10.1Overview of the External Interrupt and NMI Controller ................................................................... 218
10.2External Interrupt and NMI Controller Registers ............................................................................. 219
16.5Data Bus ......................................................................................................................................... 373
CHAPTER 17USB FUNCTION ....................................................................................... 377
17.1Overview of the USB Function ........................................................................................................ 378
APPENDIX A I/O Map ................................................................................................................................ 670
APPENDIX B Interrupt Vector .................................................................................................................... 685
APPENDIX C Dot Clock Generation PLL ................................................................................................... 688
APPENDIX D USB Clock ........................................................................... ................................................. 690
APPENDIX E Macro Reset ......................................................................................................................... 691
APPENDIX F USB Low-power Consumption Mode ................................................................................... 692
APPENDIX G External Bus Interface Setting ............................................................................................. 693
APPENDIX H Pin State List ...................................................................................................... .................. 695
APPENDIX I Instruction Lists .................................................................................................................... 699
I.1How to Read the Instruction Lists .................................................................................................. 700
I.2FR Family Instruction Lists ............................................................................................................. 704
Change ■ Built-in RAM (MASK: Add 32KB RAM)
Change ■ A/D Converter (conversion time: about 10 µs → conversion ti me: about 8.5 µs)
Change CMOS technology of ■ Other Features
Change Supply voltage of ■ Other Features
Change the Figure 1.2-1 Block Diagram
(Add DSU)
7
(Add MASK 512KB to Flash 1MB)
(Add MASK 32KB to RAM)
(PWC 1ch→PWC 4ch)
(Add Font ROM product)
Change Figure 1.4-1 Pin Layout of the MB91319
9
(MB91F318A→MB91F318A/S)
(MB91FV319A
(Change the Note)
→MB91FV319A/R)
Add a sentence to ■ Quartz Oscillation Circuit
Change Low Power Consumption Mode of ■ Lim itations
Change Note on using A/D
Add About Software Reset of Synchronous Mode
Change ❍ Unique characteristic of the evaluation chip MB91FV319A
(MB91FV319A → MB91FV319A/R)
30
70
70
74
81
83
85
87
90
Change Figure 3.1-1 Memory Map
(MB91F318→MB91F318A/S and MB91FV319R)
(MB91F318, MB91316
→MB91F318A/S, MB91316)
Add Reference: to ■ Software Reset (STCR: SRST Bit Writing)
Change ■ Watchdog Reset (watchdog reset postpone register (WPR) → time base counter clear
register (CTBR))
Add Reference: to ■ Synchronous Reset Operation
Add items to Notes: for ■ External Bus Clock (CLKT)
Change Figure 3.11-1 Block Diagram of Clock Generation Controller
(Delete WPR register)
Change [bit9, bit8] WT1, WT0 (Watchdog interval Time select) (WPR → CTBR)
Add Reference: to [bit4] SRST (Software ReSeT)
Add Note: to [bit9] SYNCR (SYNChronous Reset enable)
PageChanges (For details, refer to main body.)
90
91
94
100
106
111
130
131
137 to 150
180
182
240
240
241
Add Note: to [bit8] SYNCS (SYNChronous Standby enable)
Change ■ Time Base Counter Clear Register (CTBR)
Delete ■ Watchdog Reset Post pone Register (WPR)
Change [P ostponing a watchdog reset] (watchdog reset postpone register (WPR)
→ time base counter clear register (CTBR))
Change Figure 3.12-1 Transition of Device States
Delete [Normal and synchronous standby operations]
Change Figure 4.2-1 Configuration of the Port Data Registers (PDR) (P75 → − )
Change Figure 4.2-2 Configuration of the Data Direction Registers (DDR) (P75 → − )
Replace the entire chapter CHAPTER 5 16-BIT RELOAD TIMER
Change ■ Capture Data Register (TxCRR)
Add 7.2.8 Used Bit Description for Each Mode
Change ■ Features of the 10-Bit A/D Converter
Change Figure 12.1-2 Block Diagram of the 10-Bit A/D Converter
(Add AN9)
(Add AN8)
Change Figure 12.2-1 Register Configuration of the 10-Bit A/D Converter
244
244
247
254
254
256
258
269
276
293
353
362
365
Change the bit9 and bit8 of Figure 12.2-3 Bit Configuration of the Software Conversion Analog
Input Select Register
("0" → i9)
(
"0" → i8)
Change the [bit9 to bit0] i9 to i0 (i7 to i0 → i9 to i0)
Change ■ A/D Conversion Started by External Trigger
Change ❍ Asynchronous (start-stop synchronization) mode
Change ❍ CLK synchronous mode
Change the ■ Features (Delete "The DMAC interrupt source is cleared if the DRCL register is
written to.")
Change Figure 14.2-1 UART Registers (Delete DMA req uest clear register (DRCL))
Delete DRCL Register description
Change ■ Precautions on Usage (Delete "Write to the DRCL register befor e starting DMA transfer
due to an interrupt for the first time.")
Add a sentence to Note:
Change the second bullet under the ■ Address Register Specifications
Change ■ DMA Transfer during Sleep
Change ■ Timing to Stop a Demand Transfer Request and Timing to Inv alidate the DREQ Pin Inpu t
366
Change Figure 16.3-6 Example of the Timing for Negating the DREQ Pin Input for 2-Cycle Transfer
from an External Circuit to an Internal Circuit
xvi
PageChanges (For details, refer to main body.)
366
367
367
456
546
632
633
634
635
636
644
644
Change • For transfer from internal to external circuits:
Change ❍ For fly-by transfer
Change Figure 16.3-7 Example of the Timing for Negating the DREQ Pin Input for Fly-by (Timing to
IORD Pin) Transfer
Change ❍ Interrupt functions (MAIN is connected to the exter n al int er rupt ch5, cc is connected to
the external interrupt ch6) (Add "MAIN is connected to the external interrupt ch5, cc is connected to
the external interrupt ch6" )
Change Table 18.3-5 Oscillating VCO Selection Control
Change Figure 19.1-2 Memory Mapping for Access in Flash Memory Mode/CPU Mode
Change the title of Figure 19.1-3 Sect or Configuration in CPU Mode (MB91FV319A, MB91F318 A)
(add (MB91FV319A, MB91F318A))
Add Figure 19.1-4 Sector Configuration in CPU Mode (MB91F318S, MB91FV319R)
Change the title of Figure 19.1-5 Sector Configuration in FLASH Mode (MB91FV319A,
MB91F318A) (add (MB91FV319A, MB91F318A))
Add Figure 19.1-6 Sector Configuration in FLASH Mode (MB91F318S, MB91FV319R)
Change ■ Basic Configuration of Serial Programming Connection
Change the title of Table 19.4-1 Command Sequence (MB91FV319A, MB91F318A) (add
(MB91FV319A, MB91F318A))
644
665
666
671 to 679
688
689
Add Table 19.4-2 Command Sequence (MB91F318S, MB91FV319R)
Change Notes: (MB91FV319A Write control pin → MB91FV319A/R MB91F318A/S Write control
pin)
Change Figure 20.1-1 Example of Serial Programming Connection
(Add *3: Reserved register. Access is disabled.)
Change Figure C-1 CP0 Pin Connection
Change the table and add a table
(Table C-2 0.25 µm: EVA, FLASH)
(Table C-3 0.18 µm: EVA, FLASH, MASK)
xvii
xviii
CHAPTER 1
OVERVIEW
This chapter provides basic inf ormation required to
understand the MB91319 series, and covers features, a
block diagram, and functions.
1.1 Features
1.2 Block Diagram
1.3 External Dimensions
1.4 Pin Layout
1.5 List of Pin Functions
1.6 Input-output Circuit Forms
1
CHAPTER 1 OVERVIEW
1.1Features
The FR family is a single-chip microcontroller that has a 32-bit high-performance RISC
CPU as well as built-in I/O resources for embedded controllers requiring highperformance and high-speed CPU processing.
The FR family is the most suitable for embedded applications, for example, TV and PDP
control, that require a high level of CPU processing performance.
This model is an FR60 series model that is based on the FR30/40-family of CPUs. It has
enhanced bus access and is optimized for high-speed use.
■ FR CPU
•32-bit RISC, load/store architecture, five stages pipeline
•Operating frequency of 40 MHz [PLL used, original oscillation at 10 MHz]
•16-bit fixed-length instructions (basic instructions), one instruction per cycle
•Memory-to-memory transfer, bit processing, instructions including barrel shift, etc.:
instructions appropriate for embedded applications
•Function entry and exit instructions, multi load/store instructions:
instructions compatible with high-level languages
•Register interlock function to facilitate assembly-language coding
•Built-in multiplier/instruction-level support
•Signed 32-bit multiplication: 5 cycles
•Signed 16-bit multiplication: 3 cycles
•Interrupts (saving of PC and PS): 6 cycles, 16 priority levels
•Harvard architecture enabling simultaneous execution of both program access and data
access
•4-word queues in the CPU provided to add an instruction prefetch function
•Instructions compat ible with the FR family
■ Bus Interface
2
This bus interface is used for macro connections (USB and OSDC).
•Maximum operating fre quency of 20 MHz
•16-bit data inpu t-output (interface with USB and OSDC)
•Totally independent 8-area chip select outputs that can be defined in the minimum units of
64K bytes
The CS1
•CS1
•CS2
•CS3
•Basic bus cycle (2 cycles)
, CS2, and CS3 areas are reserved as shown below.
area: Reserved
area: USB function
area: OSDC
•Automatic wait cycle generator that can be programmed for each area and can insert waits
because CS1
■ Built-in RAM
•EVA: 64KB RAM, FLASH: 48KB RAM, MASK: 32KB RAM
•This RAM can be used as data RAM and instruction RAM if instruction codes are written to it.
■ DMAC (DMA Controller)
•5 channels (channels 0 and 1 are connected to the USB function.)
•3 transfer sources (internal peri pherals, software)
•Addressing mode with 32-b it full address specifications (increase, decrease, fixed)
•Transfer modes (deman d transfer, burst transfer, step transf er, block transfer)
•Transfer data size that can be selected from 8, 16, and 32 bits
■ Bit Search Module (Used by REALOS)
•Searches for the position of the first bit varying between 1 and 0 in the MSB of a word
, CS2, and CS3 are reserved, the setting is fixed.
CHAPTER 1 OVERVIEW
■ Reload Timer (Including One Channel for REALOS)
•16-bit timer; 3 channels
•Internal clock that can be selected from those resulting from frequency divided by 2, 8, and 32
■ UART
•Full-duplex double buffer
•5 channels
•Parity or no parity can be selected.
•Either asynchronous (start-stop synchronization) or CLK synchronous communication can be
selected.
•Built-in timer for dedicated baud rates
•An external clock can be used as the transfer clock.
•Supply voltage: two sources of 3.3 V (-0.3 V to +0.3 V) and 2.5 V (-0.2 V to +0.2 V)
(0.25 µm : EVA(MB91FV319A), FLASH (MB91F318A))
two sources of 3.3 V (-0.3 V to +0.3 V) and 1.8 V (-0.15 V to +0.15 V)
(0.18 µm : MASK(MB91316), EVA(MB91FV319R), FLASH (MB91F318S))
2
THE I
C LICENSE:
2
Purchase of Fujitsu I
C components conveys a license under the Philips I2C Patent Rights to
use, these components in an I
2
C system provided that the system conforms to the I2C
Standard Specification as defined by Philips.
6
1.2Block Diagram
Figure 1.2-1 is a block diagram of the MB91319.
■ Block Diagram
Figure 1.2-1 Block Diagram
CHAPTER 1 OVERVIEW
Bit search
RAM
EVA 64KB
FLASH 48KB
MASK 32KB
Clock
control
Interrupt
controller
External
interrupt
32
32 to 16
adapter
FR
CPU Core
Bus converter
Font ROM
FLASH 512 KB*
ROM 384 KB*
UART
5ch
32
External
memory
I/F
2
C
I
4ch
2
2
A/D
10ch
DSU*
Flash 1MB
MASK 512KB
DMAC5ch
USB
function
OSDC
CCD
2ch
1
Port
PWC
4ch
PPG
4ch
Reload
timer 3ch
Multifunction
timer 4ch
*1 : DSU is loaded only in MB91FV319A/R
*2 : Font ROM: MB91FV319A/R: FLASH 512 KB
: MB91F318A/S, MB91316 : MASK ROM 384 KB
7
CHAPTER 1 OVERVIEW
176-pin plastic LQFPLead pitch0.50 mm
Package width ×
package length
24.0 × 24.0 mm
Lead shapeGullwing
Sealing methodPlastic mold
Mounting height
1.70 mm MAX
Code
(Reference)
P-LQFP-0176-2424-0.50
176-pin plastic LQFP
(FPT-176P-M07)
(FPT-176P-M07)
C
2004 FUJITSU LIMITED F176013S-c-1-1
Details of "A" part
0˚~8˚
0.50±0.20
(.020±.008)
0.60±0.15
(.024±.006)
0.25(.010)
(Stand off)
(.004±.004)
0.10±0.10
1.50
+0.20
–0.10
+.008
–.004.059
(Mounting height)
0.08(.003)
(.006±.002)
0.145±0.055
"A"
INDEX
1
LEAD No.
44
45
88
89132
133
176
0.50(.020)
0.22±0.05
(.009±.002)
M
0.08(.003)
*24.00±0.10(.945±.004)SQ
26.00±0.20(1.024±.008)SQ
Dimensions in mm (inches).
Note: The values in parentheses are reference values.
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.
1.3External Dimensions
The MB91319 is available in one type of package.
Figure 1.3-1 shows the dimensions of the MB91319.
■ Dimensions of the MB91319
Figure 1.3-1 External Dimensions of MB91319
8
Loading...
+ 736 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.