The MB91301 series are a line of microcontrollers based on a 32-bit RISC CPU core (FR family) , incorporating
a variety of I/O resources and a bus control mechanism for embedded control that requires the processing of a
high-performance, fast CPU as well as an SDRAM interface that can connect SDRAM directly to the chip.
The large address space supported by the 32-bit CPU addressing means that operation is primarily based on
external bus access although instruction cache memory of 4 Kbytes and RAM of 4 Kbytes( for data) are included
for high-speed execution of CPU instructions.
The MB91302A and MB91V301A are FR60 products based on the FR30/40 CPU with enhanced bus access for
higher speed operation. The device specifications include a D/A con verter to facilitate motor control and are ideal
for use in DVD players that support fly-by transfer.
DS07-16502-3E
FEATURES
■
The MB91301 series is a line of ICs with various programs embedded in internal ROM.
• Clock control
Gear function : Allows arbitrary different operating clock frequencies to be set for the CPU and peripherals.
You can select one of the 16 gear clock factors of 1/1 to 1/16. PLL multiplication can also be selected. Note,
however, that peripherals operate at a maximum of 34 MHz.
• CMOS technology : 0.25 µm
• Power supply (analog power supply): 3.3 V ± 0.3 V (internal regulator used)
* : Purchase of Fujitsu I
components in an I
by Philips.
2
C components conveys a license under the Philips I2C Patent Rights to use, these
2
C system provided that the system conforms to the I2C Standard Specification as defined
PRODUCT LINEUP
■
MB91302AMB91V301A
Type
RAM
ROM has non-ROM model, the optimal real time
ROM
DSU⎯DSU4
Package
*1 : The Fujitsu product of real time OS REALOS/FR by conforming to the µITRON 3.0 is stored and optimized
with the MB91302A.
*2 : The ROM stores the IPL (Internal Program Loader) . Loading various programs can be executed from the
external system by the internal UART/SIO. Using this function, for example, writing on board to the Flash
memory connected to the external can be executed.
P20 to P27Can be used as ports in 8-bit external bus mode.
D24 to D31C
RDY
J
P80
BGRNT
J
P81
External data bus bits 0 to 7. It is available in the
external bus mode.
Can be used as ports in 8-bit or 16-bit external bus
mode.
External data bus bits 8 to 15.
It is available in the external bus mode.
Can be used as ports in 8-bit or 16-bit external bus
mode.
External data bus bits 16 to 23.
It is available in the external bus mode.
External data bus bits 24 to 31.
It is available in the external bus mode.
External ready input. The pin has this function when
external ready input is enabled.
General purpose input/output port. The pin has this
function when external ready input is disabled.
Acknowledge output for external bus release.
Outputs "L" when the external bus is released. The
pin has this function when output is enabled.
General purpose input/output port. The pin has this
function when output is disabled for external bus
release acknowledge.
BRQ
3035
P82
3136RD
WR0
3237
/ (UUB) /
DQMUU
External bus release request input. Input "1" to
request release of the external bus. The pin has this
J
CExternal bus read strobe output.
C
function when input is enabled.
General purpose input/output port. The pin has this
function when the external bus release request
input is disabled.
External bus write strobe output. When WR
as the write strobe, this becomes the byte-enable
pin (UUB
Select signal (DQMUU) of D31 to D24 at using of
SDRAM.
).
is used
(Continued)
9
MB91301 Series
Pin no.
MB91302AMB91V301A
3338
3439
3540
3643
3740
3845
3946P93CGeneral purpose input/output port.
Pin name
/ (ULB) /
WR1
DQMUL
P85
/ (LUB) /
WR2
DQMLU
P86
/ (LLB) /
WR3
DQMLL
P87
SYSCLK
P90
MCLKE
P91
MCLK
P92
I/O circuit
type
J
J
J
C
J
C
Function
External bus write strobe output. The pin has this
function when WR1 output is enabled. When WR is
used as the write strobe, this becomes the byteenable pin (ULB
D16 at using of SDRAM.
General purpose input/output port. The pin has this
function when the external bus write-enable output
is disabled.
External bus write strobe output. The pin has this
function when WR2 output is enabled. When WR is
used as the write strobe, this becomes the byteenable pin (LUB
D05 at using of SDRAM.
General purpose input/output port. The pin has this
function when the external bus write-enable output
is disabled.
External bus write strobe output. The pin has this
function when WR3 output is enabled. When WR is
used as the write strobe, this becomes the byteenable pin (LLB
D00 at using of SDRAM.
General purpose input/output port. The pin has this
functions when the external bus write-enable output
is disabled.
System clock output. The pin has this function when
system clock output is enabled. This outputs the
same clock as the external bus operating frequency.
(Output halts in stop mode.)
General purpose input/output port. The pin has this
function when system clock output is disabled.
Clock enable signal for memory.
General purpose input/output port. The pin has this
function when clock enable output is disabled.
Memory clock output. The pin has this function
when memory clock output is enabled. This outputs
the same clock as the external bus operating
frequency. (Output halts in sleep mode.)
General purpose input/output port. The pin has this
function when memory clock output is disabled.
). Select signal (DQMUL) of D23 to
). Select signal (DQMLU) of D08 to
). Select signal (DQMLL) of D07 to
(Continued)
10
MB91301 Series
Pin no.
MB91302AMB91V301A
4049
4150
4251
45 to 5254 to 61A00 to A07CExternal address bits 0 to 7.
55 to 6264 to 71A08 to A15CExternal address bits 8 to 15.
64 to 6774 to 77
Pin name
AS
LBA
SRAS
P94
BAA
SCAS
P95
WR
SWE
P96
A16 to A19
P60 to P63
I/O circuit
type
J
J
J
J
Function
Address strobe output. The pin has this function
when ASE
“1”.
Address strobe output for burst flash ROM. The pin
has this function when ASE
register 9 is enabled “1”.
RAS single for SDRAM. This pin has this function
when ASE
“1”.
General purpose input/output port. The pin has this
function when ASE
"0" general purpose port.
Address advance output for burst Flash ROM. The
pin has this function when BAAE bit of port function
register (PFR9) is enabled.
CAS signal for SDRAM. This pin has this function
when BAAE bit of port function register (PFR9) is
enabled.
General purpose input/output port. The pin has this
function when BAAE bit of port function register is
general purpose port.
Memory write strobe output. This pin has this
function when WRXE bit of port function register is
enabled.
Write output for SDRAM. This pin has this function
when WRXE bit of port function register is enabled.
General purpose input/output port. This pin has this
function when WRXE bit of port function register is
general purpose port.
External address bits 16 to 19. It is available in
external bus mode.
Can be used as ports when external address bus is
not used.
bit of port function register 9 is enabled
bit of port function register 9 is enabled
bit of port function register 9 is
bit of port function
(Continued)
11
MB91301 Series
Pin no.
MB91302AMB91V301A
6878
6979
7080
Pin name
SDA0
A20
P64
SCL0
A21
P65
SDA1
A22
P66
I/O circuit
type
T
T
T
Function
2
Data input pin for I
enable when typical operation of I
C bus function. This function is
2
C is enable. The
port output must remains off unless intentionally
turned on. (Open drain output) (This function is only
for MB91302A, MB91V301A.)
External address bus bit 20.
2
This function is enable during prohibited I
C
operation and using external bus.
General-purpose I/O port.
2
This function is enable during prohibited I
C and
nonused external address bus.
CLK input pin for I
enable when typical operation of I
2
C bus function. This function is
2
C is enable. The
port output must remains off unless intentionally
turned on. (open drain output) (This function is only
for MB91302A, MB91V301A.)
External address bus bit 21.
2
This function is enable during prohibited I
C
operation and using external bus.
General-purpose I/O port.
2
This function is enable during prohibited I
C and
nonused external address bus.
DATA input pin for I
enable when typical operation of I
2
C bus function. This function is
2
C is enable. The
output must remains off unless intentionally turned
on. (open drain output) (This function is only for
MB91302A, MB91V301A.)
External address bus bit 20.
2
This function is enable during prohibited I
C
operation and using external bus.
General-purpose I/O port.
2
This function is enable during prohibited I
C and
nonused external address bus.
(Continued)
12
MB91301 Series
Pin no.
MB91302AMB91V301A
Pin name
I/O circuit
type
CLK input pin for I
enable when typical operation of I
SCL1
port output must remains off unless intentionally
turned on. (open drain output) (This function is only
for MB91302A, MB91V301A.)
7181
A23
T
External address bus bit 21.
This function is enable during prohibited I
operation and using external bus.
General-purpose I/O port.
P67
This function is enable during prohibited I
operation and nonused external address bus.
76 to 79106 to 109AN3 to AN0DAnalog input pin.
External interrupt inputs. These inputs are used con-
INT0 to INT3
tinuously when the corresponding external
interrupt is enabled. In this case, do not output to
these ports unless doing so intentionally.
81 to 84111 to 114
PG0 to PG3General purpose input/output ports.
V
Input capture input pins. These inputs are used con-
ICU0 to ICU3
tinuously when selected as input capture inputs. In
this case, do not output to these ports unless
doing so intentionally.
External interrupt input. These inputs are used
INT4
continuously when the corresponding external
interrupt is enabled. In this case, do not output to
these ports unless doing so intentionally.
External trigger input for A/D converter. This input is
used continuously when selected as the A/D
converter start trigger. In this case, do not output to
85115
ATG
V
this port unless doing so intentionally.
PG4General purpose input/output ports.
External clock input pin for free-run timer. This input
FRCK
is used continuously when selected as the external
clock input pin for the free-run timer. In this case, do
not output to this port unless doing so intentionally.
External interrupt input. These inputs are used
INT5
continuously when the corresponding external
interrupt is enabled. In this case, do not output to
these ports unless doing so intentionally.
86116
SIN2
V
UART2 data input pin. This input is used continuously when UART2 is performing input. In this case, do
not output to this port unless doing so intentionally.
PG5General purpose input/output port.
Function
2
C bus function. This function is
2
C is enable. The
2
C
2
C
(Continued)
13
MB91301 Series
Pin no.
MB91302AMB91V301A
87117
88118
90120
91121
92122
93123
94124
95125
96126
Pin name
INT6
SOT2
PG6General purpose input/output port.
INT7
SCK2
PG7General purpose input/output port.
SIN0
PJ0General purpose input/output port.
SOT0
PJ1General purpose input/output port.
SCK0
PJ2General purpose input/output port.
SIN1
PJ3General purpose input/output port.
SOT1
PJ4General purpose input/output port.
SCK1
PJ5General purpose input/output port.
PPG0
PJ6General purpose input/output port.
I/O circuit
type
V
V
U
U
U
U
U
U
U
Function
External interrupt input. This input is used
continuously when the corresponding external
interrupt is enabled. In this case, do not output to
these ports unless doing so intentionally.
UART2 data output pin. The pin has this function
when UART2 data output is enabled.
External interrupt input. This input is used
continuously when the corresponding external
interrupt is enabled. In this case, do not output to
these ports unless doing so intentionally.
UART2 clock input/output pin. The pin has this
function when UART2 clock output is enabled.
UART0 data input pin. This input is used continuously
when UART0 is performing input. In this case, do not
output to this port unless doing so intentionally.
UART0 data output pin. The pin has this function
when UART0 data output is enabled.
UART0 clock input/output pin. The pin has this
function when UART0 clock output is enabled.
UART1 data input pin. This input is used continuously
when UART1 is performing input. In this case, do not
output to this port unless doing so intentionally.
UART1 data output pin. The pin has this function
when UART1 data output is enabled.
UART1 clock input/output pin. The pin has this
function when UART1 clock output is enabled.
PPG timer output. This pin has this function when
PPG0 output is enabled.
(Continued)
14
MB91301 Series
Pin no.
MB91302AMB91V301A
97127
98128
99129
100130
103133
104134
105135
Pin name
TRG0
PJ7General purpose input/output port.
TIN0
PH0General purpose input/output port.
TIN1
PPG3
PH1General purpose input/output port.
TIN2
TRG3
PH2General purpose input/output port.
DREQ0
PB0General purpose input/output port.
DACK0
PB1General purpose input/output port.
DEOP0
PB2General purpose input/output port.
I/O circuit
type
U
J
J
J
J
J
J
Function
External trigger input for PPG timer.
This input is used continuously when the
corresponding timer input is enabled. In this case, do
not output to this port unless doing so intentionally.
Reload timer input. This input is used continuously
when the corresponding timer input is enabled. In
this case, do not output to this port unless doing so
intentionally.
Reload timer input. This input is used continuously
when the corresponding timer input is enabled. In
this case, do not output to this port unless doing so
intentionally.
PPG timer output. The pin has this function when
PPG3 output is enabled.
Reload timer input. This input is used continuously
when the corresponding timer input is enabled. In
this case, do not output to this port unless doing so
intentionally.
External trigger input for PPG timer. This input is
used continuously when the corresponding timer
input is enabled. In this case, do not output to this
port unless doing so intentionally.
External input for DMA transfer requests. This input
is used continuously when selected as a DMA
activation trigger. In this case, do not output to this
port unless doing so intentionally.
External acknowledge output for DMA transfer
requests. The pin has this function when outputting
DMA transfer request acknowledgement is enabled.
Completion output for DMA external transfer. The
pin has this function when outputting DMA transfer
completion is enabled.
DMA External input for DMA transfer requests. This
input is used continuously when selected as a DMA
activation trigger. In this case, do not output to this
J
J
J
J
J
B
MNMI (Non Maskable Interrupt) input (“L” active)
port unless doing so intentionally.
General purpose input/output port. The pin has this
function when completion output and stop input are
disabled for DMA transfer.
External acknowledge output for DMA transfer
requests. The pin has this function when outputting
DMA transfer request acknowledgement is enabled.
External trigger input for PPG timer. This input is
used continuously when the corresponding timer
input is enabled. In this case, do not output to this
port unless doing so intentionally.
Completion output for DMA external transfer. The
pin has this function when outputting DMA transfer
completion is enabled.
PPG timer output. The pin has this function when
PPG1 bit is enabled.
Write strobe output for DMA fly-by transfer. The pin
has this function when outputting a write strobe for
DMA fly-by transfer is enabled.
General purpose input/output port. The pin has this
function when outputting a write strobe for DMA
fly-by transfer is disabled.
Read strobe output for DMA fly-by transfer. The pin
has this function when outputting a read strobe for
DMA fly-by transfer is disabled.
General purpose input/output port. The pin has this
function when outputting a write strobe for DMA
fly-by transfer is disabled.
Mode pins 0 to 2. The levels applied to these pins
set the basic operating mode. Connect V
External reset input (Reset to initialize settings)
(“L” active)
Function
or VSS.
CC
(Continued)
16
(Continued)
Pin no.
MB91302A MB91V301A
122156
123157
124158
125159
126160
127161
128162
129163
Pin name
CS0
PA0
CS1
PA1
CS2
PA2
CS3
PA3
CS4
TRG2
PA4
CS5
PPG2
PA5
CS6
PA6
CS7
PA7
I/O circuit
type
J
J
J
J
J
J
J
J
MB91301 Series
Function
Chip select 0 output. The pin has this function when
chip select 0 output is enabled.
General purpose input/output port. The pin has this
function when chip select 0 output is disabled.
Chip select 1 output. The pin has this function when
chip select 1 output is enabled.
General purpose input/output port. The pin has this
function when chip select 1 output is disabled.
Chip select 2 output. The pin has this function when
chip select 2 output are enabled.
General purpose input/output port. The pin has this
function when chip select 2 output is disabled.
Chip select 3 output. The pin has this function when
chip select 3 output are enabled.
General purpose input/output port. The pin has this
function when chip select 3 output is disabled.
Chip select 4 output. The pin has this function when
chip select 4 output is enabled.
External trigger input for PPG timer. This input is
used continuously when the corresponding timer
input is enabled. In this case, do not output to this
port unless doing so intentionally.
General purpose input/output port. The pin has this
function when chip select 4 output is disabled.
Chip select 5 output. The pin has this function when
chip select 5 output are enabled.
PPG timer output. The pin has this function when
PPG2 bit is enabled.
General purpose input/output port. The pin has this
function when chip select 5 output and PPG timer
output are disabled.
Chip select 6 output. The pin has this function when
chip select 6 output is enabled.
General purpose input/output port. The pin has this
function when chip select 6 output are disabled.
Chip select 7 output. The pin has this function when
chip select 7 output are enabled.
General purpose input/output port. The pin has this
function when chip select 7 output is disabled.
17
MB91301 Series
I/O CIRCUIT TYPE
■
TypeCircuitRemarks
X1
Clock input
•Oscillation feedback resistance
approx. 1 MΩ
A
X0
Standby control
•CMOS hysteresis input with pull-up
resistor
P-ch
P-ch
B
N-ch
Digital input
P-ch
•CMOS level I/O with standby control
= 4 mA
•I
OL
Digital output
N-ch
Digital output
C
18
Digital input
Standby control
•Analog input
With switch
P-ch
N-ch
D
Analog input
Control
(Continued)
MB91301 Series
TypeCircuitRemarks
P-ch
•CMOS level output
No standby control
G
N-ch
Digital input
Pull-up control
P-chP-ch
Digital output
N-ch
J
Digital output
•With Pull-up control
•CMOS level I/O
with standby control
•With Pull-up control
= 4 mA
•I
OL
Digital input
Standby control
Pull-up control
P-chP-ch
Digital output
N-ch
K
Digital output
•With Pull-up control
•CMOS level output
CMOS level hysteresis input
with standby control
= 4 mA
•I
OL
M
Digital input
Standby control
Pull-up control
P-ch
P-ch
Digital output
L
N-ch
Digital output
•With Pull-up control
•CMOS level output
CMOS level hysteresis input
no standby control
•I
= 4 mA
OL
Digital input
P-ch
N-ch
•CMOS level hysteresis input
no standby control
Digital input
(Continued)
19
MB91301 Series
TypeCircuitRemarks
P-ch
Digital output
•Output buffer
•CMOS level output
= 4 mA
•I
OL
N
O
N-ch
Digital output
Digital input
•Input buffer
•CMOS level input
•Input buffer with pull-down
•Pull-down resistor value = 25 kΩ
P
N-ch
Digital input
approx. (Typ)
•Input buffer with Pull-up
P-ch
Q
P-ch
Digital input
Digital output
•I/O buffer with pull-down
•CMOS level output
= 4 mA
•I
OL
20
R
N-ch
N-ch
Digital output
Digital input
P-ch
S
N-ch
Digital output
Digital output
•I/O buffer
•CMOS level output
= 4 mA
•I
OL
Digital input
(Continued)
MB91301 Series
(Continued)
TypeCircuitRemarks
•N-ch open-drain output
P-ch
P-ch
Pull-up control
Digital output with
T
N-ch
open-drain control
Digital output
Digital input
P-ch
Digital output
N-ch
U
Digital output
•CMOS level I/O with standby control
•Without pull-up control
= 4 mA
OL
•I
•CMOS level output
•CMOS level hysteresis input
with standby control
•5 V tolerant
•I
= 4 mA
OL
Digital input
•CMOS level output
•CMOS level hysteresis input
P-ch
Digital output
V
N-ch
with standby control
•5 V tolerant
= 4 mA
•I
OL
Digital output
Digital input
21
MB91301 Series
HANDLING DEVICES
■
❍MB91301 series
•
Operation at start-up
Always apply a settings initialization (INIT) to the INIT
pin immediately after turning on the power.
Also, in order to provide a delay while the oscillator circuits stabilize immediately after start-up, maintain the “L”
level input to the INIT
by the INIT
•
External clock input at start-up
pin initializes the oscillation stabilization delay time to the minimum setting.)
pin for the required stabilization delay time. (The initialization processing (INIT) triggered
At power-on start-up, always input a clock signal until the oscillation stabilization delay time is ended.
•
Output indeterminate at power-on time
When the power is turned on, the output pin may remain indeterminate until the internal power supply becomes
stable.
•
Built-in DC/DC regulator
This device has a built-in regulator, requiring 3.3 V input to the Vcc pin and a bypass capacitor of approximately
4.7 µF connected to the C pin for the regulator.
3.3 VVCC
AVCC
AVRH
0.05 µF
AVR
AV
SS/AVRL
C
4.7 µF
V
SS
MB91301 series
GND
SS
V
Note of built-in DC/DC regulator
•
Note on use of the A/D converter
As the MB91301 series contains an A/D converter, be sure to supply po wer to A Vcc at 3.3 V and insert a capacitor
of at least 0.05 µF between the AVR pin and the AVss/AVRL pin.
3.3 VAVCC
AVRH
0.05 µF
AVR
SS/AVRL
AV
MB91301 series
Note on Use of A/D Converter
22
MB91301 Series
•
Preventing Latchup
at input and output
When CMOS integrated circuit devices are subjected to applied voltages higher than V
pins, or to voltages lower than V
, as well as when voltages in excess of rated levels are applied between V
SS
and VSS, a phenomenon known as latchup can occur. When a latchup condition occurs, the supply current can
increase dramatically and may destroy semiconductor elements. In using semiconductor devices, always take
sufficient care to avoid exceeding maximum ratings.
•
Power supply pins
Devices with multiple V
and VSS supply pins are designed to prevent problems such as latchup occurring by
CC
providing internal connections between pins at the same potential. However, in order to reduce unwanted
radiation, prevent abnor mal operation of strobe signals due to a rise in ground level, and to maintain the total
output current ratings, all such pins should always be connected externally to power supply or ground. Also,
ensure that the impedance of the V
and VSS connections to the power supply are as low as possible.
CC
In addition, it is recommended that a bypass capacitor of approximately 0.1µF be connected between V
V
. Connect the capacitor close to the VCC and VSS pins.
SS
•
Crystal oscillators
Noise in proximity to the X0 and X1 pins can cause abnormal operation in this device. Pr inted circuit boards
should be designed so that the X0 and X1 pins, crystal (or ceramic) oscillator, and b ypass capacitor connected
to ground are placed as close together as possible.
Also, to ensure stab le operation, it is strongly recommended that the printed circuit board art work be designed
such that the X0 and X1 pins are surrounded by ground.
Please ask the crystal maker to evaluate the oscillational characteristics of the crystal and this device.
CC
CC
CC
and
•
Treatment of NC and OPEN pins
Pins marked as "NC" or "OPEN" must be left open-circuit.
•
Treatment of unused input pins
If unused input pins are left open, abnormal operation may result. Any unused input pins should be connected
to pull-up or pull-down resistors.
•
Mode pins (MD0 to MD2)
These pins should be connected directly to V
due to noise, design the printed circuit board such that the distance between the mode pins and V
or VSS. To prev ent the device erroneously s witching to test mode
CC
or VSS is
CC
as short as possible and the connection impedance is low.
•
Remarks for External Clock Operation
When external clock is selected, supply it to X0 pin generally, and simultaneously the opposite phase clock to
X0 must be supplied to X1 pin. Howe v er, in this case the stop mode must not be used (because X1 pin stops at
“H” output in stop mode) .
When operating at 12.5 MHz or less, the microcontroller can be used with the clock signal supplied only to pin X0.
“Using an external clock (normal) and (12.5 MHz) ” shows examples of how the MB91301 uses the e xternal clock.
23
MB91301 Series
X0
X1
MB91301 series
Note: Stop mode (oscillation stop mode) can not be used.
Using an external clock (normal)
X0
OPEN
X1
MB91301 series
Using an external clock (12.5 MHz Max)
•
Notes on during operation of PLL clock mode
If the PLL clock mode is selected, the microcontroller attempt to be working with the self-oscillating circuit even
when there is no external oscillator or external clock input is stopped. Performance of this operation, however,
cannot be guaranteed.
•
Clock control block
For L-level input to the INIT
•
Bit search module
pin, allow for the regulator settling time or oscillation settling time.
The 0-detection, 1-detection, and transition-detection data registers (BSD0, BSD1, and BSDC) are only wordaccessible.
•
I/O port access
Byte access only for access to port
•
Shared port function switching
To switch a pin that also serves as a port, use the port function register (PFR). Note, however, that bus pins are
switched depending on external bus settings.
•
D-bus memory
Do not set a code area in D-bus memory.
No instruction fetch is performed to the D-bus.
Instruction fetches to the D-bus area result in incorrect data interpreted as code, which can cause the microcontroller to lose control.
Do not set a data area in I-bus memory.
24
MB91301 Series
•
I-bus memory
Do not set a stack area or vector table in I-bus memory.
It may cause a hang during EIT processing (including RETI).
Recovery from the hang requires a reset.
Do not perform DMA transfer to I-bus memory.
•
Low-power consumption modes
• To enter the standby mode, use the synchronous standby mode (set with the SYNCS bit as bit 8 in the
TBCR, or time-base counter control register) and be sure to use the following sequence:
(LDI#value_of_standby, R0)
(LDI#_STCR, R12)
STBR0, @R12; Write to standby control register (STCR)
LDUB@R12, R0; Read STCR for synchronous standby
LDUB@R12, R0; Read STCR again for dummy read
NOP; NOP x 5 for timing adjustment
NOP
NOP
NOP
NOP
• If you use the monitor debugger, follow the precautions below:
Do not set a breakpoint within the above array of instructions.
Do not single-step the above array of instructions.
•
Prefetch
When accessing a prefetch-enabled little endian area, use word access only (access in 32 bits).
Byte or halfword access results in wrong data read.
•
MCLK and SYSCLK
MCLK causes a stop in SLEEP/STOP mode while SYSCLK causes a stop only in STOP mode. Use either
depending on each application.
•
Pull-up control
When function pins listed in the AC specifications (such as exter nal bus control pins) have pull-up control,
enabling the pull-up resistor for a pin causes the actual pin load conditions to change. As all AC specifications
for this device were measured under the condition of pull-up resistors disabled, the values are not guaranteed
of AC specifications when pull-up resistors are enabled.
Even if the pull-up resistor is set to enabled f or a pin, if the HIZ bit in the standby control register (STCR) specifies
setting output pins to high impedance during stop mode (HIZ = 1) , changing to stop mode (STOP = 1) causes
the pull-up resistor to be disabled.
25
MB91301 Series
•
R15 (General purpose register)
When any of the following instructions is executed, the SSP* or USP* value is not used as R15, resulting in an
incorrect value written to memory.
* : R15 is a virtual register. When a program attempts to access R15, the SSP or USP is accessed depending
on the status of the “S” flag as an SP flag. When coding the above ten instructions using an assembler,
specify a general-purpose register other than R15.
•
RETI instruction
Please do not neither control register of the instruction cache nor the data access to RAM of the instruction
cache immediately before the instruction of RETI.
•
Notes on the PS register
Since some instructions manipulate the PS register earlier, the following exceptions may cause the interrupt
handler to break or the PS flag to update its display setting when the debugger is being used. As the microcontroller is designed to carry out reprocessing correctly upon returning from such an EIT event, it performs operations before and after the EIT as specified in either case.
• The following operations may be performed when the instruction immediately followed by a DIVOU/DIVOS
instruction is (a) halted by a user interrupt or NMI, (b) single-stepped, or (c) breaks in response to a data
event or emulator menu:
(1) D0 and D1 flags are updated earlier.
(2) The EIT handler (user interrupt/NMI or emulator) is executed.
(3) Upon returning from the EIT, the DIVOU/DIVOS instruction is executed and the D0 and D1 flags are
updated to the same values as those in (1) above.
• The following operations are performed when the ORCCR/STILM/MOV Ri and PS instructions are executed
to enable interruptions when a user interrupt or NMI trigger event has occurred.
(1) The PS register is updated earlier.
(2) The EIT handler (user interrupt/NMI or emulator) is executed.
(3) Upon returning from the EIT, the above instructions are executed and the PS register is updated to the
same value as that in (1) above.
•
A/D converter
When the device is turned on or returns from a reset or stop, it takes time f or the external capacitor to be charged,
requiring the A/D converter to wait for at least 10 ms.
•
Watchdog timer
The watchdog timer function of this model monitors that a program dela ys a reset within a certain period of time
and resets the CPU if the program fails to delay it, for example, because the progr am runs out of control. Once
the watchdog timer function is enabled, therefore, the watchdog timer continues to operate until a reset takes
place.
An exception, f or example during stop, sleep and DMA tr ansfer modes, is the automatic dela ying of a reset under
a condition in which the CPU stops program execution.
Note, however, that a watchdog reset may not occur in the above state caused when the system runs out of
control. If this is the case, use the external INIT
pin to cause a reset (INIT) .
26
❍Unique to the evaluation chip MB91V301A
•
Tool reset
MB91301 Series
On an evaluation board, use the chip with INIT
•
Simultaneous occurrences of a software break and a user interrupt/NMI
When a software break and a user interrupt /NMI take place at the same time, the emulator deb ugger can cause
the following phenomena:
• The debugger stops pointing to a location other than the programmed breakpoints.
• The halted program is not re-executed correctly.
If these phenomena occur, use a hardware break instead of the software break. If the monitor debugger has
been used, avoid setting any break at the relevant location.
•
Single-stepping the RETI instruction
If an interrupt occurs frequently during single stepping, execute only the rele v ant processing routine repeatedly
after single-stepping RETI. This will prevent the main routine and low-interrupt-level programs from being
ex ecuted. Do not single-step the RETI instruction for a voidance purposes. When the debugging of the rele v ant
interrupt routine becomes unnecessary, perform debugging with that interrupt disabled.
•
Operand break
A stack pointer placed in an area set for a DSU operand break can cause a malfunction. Do not apply a data
event break to access to the area containing the address of a system stack pointer.
and TRST connected together.
•
ICE startup sequence
When using the ICE, when you start debugging, ensure that the bus configuration is set correctly for the area
being used before downloading. After turning on the power to the target, the states of the RD
pins are undefined until you perform the abov e setting. Accordingly , include enabling pull-up as part of the startup
sequence. If using these pins as general-purpose ports, set as output por ts to prevent conflict with the output
signals during the time the pin states are undefined.
External bus width
Pin name
RD
WR0
(P85) Pull-upPull-up*
WR1
(P86) Pull-up**
WR2
(P87) Pull-up**
WR3
* : Use as output ports.
32 bit16 bit8 bit
Pull-upPull-upPull-up
Pull-upPull-upPull-up
and WR0 to WR3
27
MB91301 Series
•
Configuration batch file
The example batch file below sets the mode v ector and sets up the CS0 configur ation register f or the download
area. Use values appropriate to the hardware in the wait, timing, and other settings.
#--------------------------------------------------------# Set MODR (0x7fd) =Enable In memory+16 bit External Bus
set mem/byte 0x7fd=0x5
#--------------------------------------------------------# Set ASR0 (0x640); 0x0010_0000 - 0x002f_ffff
set mem/halfword 0x640=0x0010
#--------------------------------------------------------# Set ACR0 (0x642)
#; ASZ [3:0]=0101:2 Mbytes
#; DBW [1:0]=01:16 bit width, automatically set from
MODR
#; BST [1:0]=00:1 burst (16 bit x 2)
#; SREN=0:Disable BRQ
#; PFEN=1:Enable Pre fetch buffer
#; WREN=1:Enable Write operation
#; LEND=0: Big endian
#; TYPE [3:0]=0010:WEX: Disable RDY
set mem/harfword 0x642=0x5462
#--------------------------------------------------------# Set AWR0 (0x660)
#; W15-12=0010:auto wait=2
#; WR07, 06=01:RD, WR delay=1cycle
#; W05, 04=01:WR->WR delay=1cycle (for WEX)
#; W03 =1:MCLK->RD/WR delay=0.5cycle
#; :for async Memory
#; W02 =0:ADR->CS delay=0
#; W01 =0:ADR->RD/WR setup 0cycle
#; W00 =RD/WR->ADR hold 0cycle
set mem/halfword 0x660=0x2058
#---------------------------------------------------------
•
Emulation memory
If SRAM as the emulation memory is built on target board, SRAM for be accessed by RD, WR signal, and +BYTE
control signal can not be used. (The external bus is initialized to the b us mode for accessing RD
28
, WRn after reset.)
BLOCK DIAGRAM
M
S
S
1
1
1
■
• MB91302A, MB91V301A
MB91301 Series
FR CPU
Core
3232
Bit search module
MB91302A : RAM 4 KB
Instruction Cache
4 KB
DMAC
5 channels
DREQ0, DREQ
DACK0, DACK
DEOP0, DEOP
IOWR
IORD
MB91V301A : RAM 8 KB (stack)
A23 to A00
D31 to D16
D15 to D00
RD, WR
WR0 to WR3
CS0 to CS7
RDY
BRQ
BGRNT
SYSCLK
MCLK
AS
MCLKE
X0, X1
D0 to MD2
INIT
MB91302A : ROM 4 KB*
MB91V301A : RAM 8 KB
Clock
control
32
Adapter
16
32
16
Bus
Converter
32
External memory
I/F
Interrupt
controller
SDRAM I/F
INT0 to INT7
NMI
SIN0 to SIN2
OT0 to SOT2
CK0 to SCK2
8 channels
External interrupts
3 channels
UART
4 channels
PPG timer
SRAS
SCAS
SWE
DQMUU, L
DQMLU,L
LBA
BAA
PPG0 to PPG3
TRG0 to TRG3
3 channels
U-TIMER
AN0 to AN3
ATG
AVRH, AV
AVSS/AVRL
TIN0 to TIN2
CC
4 channels
A/D converter
3 channels
PORT I/F
2 channels
2
I
C I/F
PORT
SDA0, SDA1
SCL0, SCL1
Reload timer
Free Run Timer
FRCK
4 channels
Input Capture
ICU0 to ICU3
* : ROM has non-ROM model, the optimal real time OS internal model, and the IPL (Internal Program
Loader) internal model by adding the user ROM model.
29
MB91301 Series
CPU
■
1.Memory Space
The FR family has 4 Gbytes (232 addresses) of logical address space with linear access from the CPU.
• Direct Addressing Areas
The following areas of address space are used for I/O operations.
These areas are called direct addressing areas, in which the address of an operand can be specified directly
during an instruction.
The direct areas differ according to the size of the data accessed, as follows.
→ byte data access : 000
→ half word data access : 000
→ word data access : 000
to 0FF
H
to 1FF
H
to 3FF
H
H
H
H
30
Loading...
+ 105 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.