MB91F376GS
MB91F376GS
FR50
32-BIT MICROCONTROLLER
MB91F376GS
Datasheet
On MB91F376GS the RTC module is connected to the 4 MHz oscillator instead of the 32 KHz oscillator
as on MB91F376G.
User RAM
16 KB 32
Bit Search 32
Module Instruction
RAM 4KB
Boot ROM
2KB
32
Bus DMA
F-bus RAM Converter Controller
16 KB
Flash Memory
768 KB 32
16
SIO Prescaler/ External
ADC (8 ch)
SIO (2ch) Interrupt (8 ch)
U-Timer/
UART (2ch)
Voltage
regulator Sound Stepper Motor Prog. Pulse
Generator Control (4ch) Generator (8ch)
I-RAM 4 kB I-RAM
see remark below table
D-Bus RAM
RAM for user data see remark below table
16 kB
F-Bus RAM
RAM for data and code see remark below table
16 kB
sector architecture:
Remark:
Set bit 9 (SYNCR) of TBCR to 1 to enable the synchronisation of the reset signal; a reset will be generated only
after all bus accesses have been done. This avoids that erroneous data are written into the RAMs during reset.
Clock disable
Clock disable
16-bit reload timer,
Basic Interval Timer
includes clock prescaler (fRES/21, fRES/23,
(6 channels)
fRES/25)
conforms to CAN specification version
2.0 A and B
automatic re-transmission in case of
error
automatic transmission responding to
remote frame
CAN prioritized 16 message buffers for data
CAN allows TSEG2 = RSJW setting
(2 channels) and IDs
supports multiple messages
flexible configuration of acceptance filter-
ing: full bit compare / full bit mask / two
partial bit masks
supports up to 1 Mb/s
Clock Disable
Clock disable
I2C-2 master or slave transmission Only I2C-1 or I2C-2 can be used, not
for standard and fast arbitration function both in parallel. Bit 0 of F362MD will
mode clock synchronization function be used to decide which module is
slave address and general call address connected to the SCL and SDA
detect function pads. By default it is I2C-1.
transfer direction detect function
start condition repeat generation and SCL and SDA lines include optional
detection function noise filter. The noise filter allows
bus error detect function the suppression of spikes in the
range of 1 to 1.5 cycles of CLKP.
compatible to I2C standard and fast mode
specification (operation up to 400 kHz, Communication on the I2C bus
10 bit addressing) between other connected devices is
not possible if MB91F36xGB/366GA
includes clock divider functionality is not connected to the supply volt-
age.
Clock disable
MB91F376GS
NC
General Circuit
Pin No.
Pin Name I/O Purpose Type Function
QFP120
I/O Port
1 VDD
2 VSS
3 PJ4 I/O PJ4 A Digital IO-Port
4 PJ5 I/O PJ5 A Digital IO-Port
5 PJ6 I/O PJ6 A Digital IO-Port
6 PJ7 I/O PJ7 A Digital IO-Port
7 PI3 I/O PI3 A Digital IO-Port
8 VDD
9 VSS
10 SGO I/O PM0 A Sound Gen. SGO
11 SGA I/O PM1 A Sound Gen. SGA
12 SDA I/O PM2 Y I2C SDA
13 SCL I/O PM3 Y I2C SCL
14 VDD
15 VSS
16 AVRH R Analog Voltage Ref. high
17 AVCC Analog VCC
18 AVSS/AVRL Ana.Volt.Ref.low/An.VSS
19 AN0 I/O PH0 B ADC input
20 AN1 I/O PH1 B ADC input
21 AN2 I/O PH2 B ADC input
22 AN3 I/O PH3 B ADC input
23 AN4 I/O PH4 B ADC input
24 AN5 I/O PH5 B ADC input
25 AN6 I/O PH6 B ADC input
26 AN7 I/O PH7 B ADC input
27 N.C. not connected pin
28 N.C. not connected pin
29 ALARM I D Alarm Comparator Input
30 VSS
31 BOOT I/O P93 A BOOT pin
32 TESTX I E Test mode pin
33 CPUTESTX I E Test mode pin
34 VDD
35 X0 I H 4 MHz Oscillator Pin
36 X1 O H 4 MHz Oscillator Pin
37 VSS
38 MONCLK O G Clock output
39 INT0 I/O PK0 A Ext. Interrupt
40 INT1 I/O PK1 A Ext. Interrupt
41 INT2 I/O PK2 A Ext. Interrupt
42 INT3 I/O PK3 A Ext. Interrupt
43 INT4 I/O PK4 A Ext. Interrupt
44 INT5 I/O PK5 A Ext. Interrupt
General Circuit
Pin No.
Pin Name I/O Purpose Type Function
QFP120
I/O Port
45 INT6 I/O PK6 A Ext. Interrupt
46 INT7 I/O PK7 A Ext. Interrupt
47 VDD supply pin for internal voltage regulator
48 VCC3/C Capacitor pin for internal voltage reg.
49 VSS
50 IN0 I/O PL0 A ICU input
51 IN1 I/O PL1 A ICU input
52 IN2 I/O PL2 A ICU input
53 IN3 I/O PL3 A ICU input
54 OUT0 I/O PL4 A OCU Output
55 OUT1 I/O PL5 A OCU Output
56 VDD supply pin for internal voltage regulator
57 MD0 I T Mode Pin
58 MD1 I T Mode Pin
59 MD2 I T Mode Pin
60 INITX I U Initial
61 VDD supply pin for internal voltage regulator
62 VSS
63 SOT4 I/O PN0 A SIO output
64 SIN4 I/O PN1 A SIO input
65 SCK4 I/O PN2 A SIO clock
66 SIN3 I/O PN3 A SIO input
67 SOT3 I/O PN4 A SIO output
68 SCK3 I/O PN5 A SIO clock
69 VSS
70 OCPA0 I/O PO0 A PPG output
71 OCPA1 I/O PO1 A PPG output
72 OCPA2 I/O PO2 A PPG output
73 OCPA3 I/O PO3 A PPG output
74 OCPA4 I/O PO4 A PPG output
75 OCPA5 I/O PO5 A PPG output
76 OCPA6 I/O PO6 A PPG output
77 OCPA7 I/O PO7 A PPG output
78 TX0 I/O PP0 Q CAN TX output
79 RX0 I/O PP1 Q CAN RX output
80 TX1 I/O PP2 Q CAN TX output
81 RX1 I/O PP3 Q CAN RX output
82 VDD
83 VSS
84 SIN0 I/O PQ0 A UART input
85 SOT0 I/O PQ1 A UART output
86 SIN1 I/O PQ2 A UART input
87 SOT1 I/O PQ3 A UART output
88 PG0 I/O PG0 A Digital IO-Port
89 PG1 I/O PG1 A Digital IO-Port
90 PG2 I/O PG2 A Digital IO-Port
91 PG3 I/O PG3 A Digital IO-Port
FME / EMDC / Br + ALan - mb91f376s.fm 14 23-Mar-05
Table 1.5a Pinning
General Circuit
Pin No.
Pin Name I/O Purpose Type Function
QFP120
I/O Port
92 PG4 I/O PG4 A Digital IO-Port
93 PG5 I/O PG5 A Digital IO-Port
94 VDD
95 HVSS SMC VSS
96 PWM1P0 I/O PR0 K SMC 0
97 PWM1M0 I/O PR1 K SMC 0
98 PWM2P0 I/O PR2 K SMC 0
99 PWM2M0 I/O PR3 M SMC 0
100 HVDD SMC VDD
101 PWM1P1 I/O PR4 K SMC 1
102 PWM1M1 I/O PR5 K SMC 1
103 PWM2P1 I/O PR6 K SMC 1
104 PWM2M1 I/O PR7 M SMC 1
105 HVSS SMC VSS
106 PWM1P2 I/O PS0 K SMC 2
107 PWM1M2 I/O PS1 K SMC 2
108 PWM2P2 I/O PS2 K SMC 2
109 PWM2M2 I/O PS3 M SMC 2
110 HVDD SMC VDD
111 PWM1P3 I/O PS4 K SMC 3
112 PWM1M3 I/O PS5 K SMC 3
113 PWM2P3 I/O PS6 K SMC 3
114 PWM2M3 I/O PS7 M SMC 3
115 HVSS
116 VDD
117 PJ0 I/O PJ0 A Digital IO-Port
118 PJ1 I/O PJ1 A Digital IO-Port
119 PJ2 I/O PJ2 A Digital IO-Port
120 PJ3 I/O PJ3 A Digital IO-Port
To enter the flash memory mode set mode pins MD0 to MD2 to “111”. Assert INITX for at least
500 ns to enter this mode.
The following tables show the pins which are required for the programming procedure and also
describe the states for the pins not used in flash memory mode. Most of the not used pins are
in their reset state (high-Z outputs, enabled inputs). To prevent misbehavior or damage these
pins must be tied to VDD or VSS through resistors - see following tables for details.
Aside from the functional pins described below all power pins should be connected to a power
supply in the specified range, capacitances should be connected to the VCC3C pin as recom-
mended.
MB91F376GS
MBM29LV800C Notes
Pin number Normal function Flash Memory mode
31 BOOT WE WE
50 IN0 CE CE
51 IN1 OE OE
96 PWM1P0 A0 A-1
MB91F376GS
MBM29LV800C Notes
Pin number Normal function Flash Memory mode
97 PWM1M0 A1 A0
98 PWM2P0 A2 A1
99 PWM2M0 A3 A2
101 PWM1P1 A4 A3
102 PWM1M1 A5 A4
103 PWM2P1 A6 A5
104 PWM2M1 A7 A6
106 PWM1P2 A8 A7
107 PWM1M2 A9 A8
108 PWM2P2 A10 A9
MB91F376GS
CHAPTER 4 Power-on-sequence
All VDD pins should be connected to the same potential. The analogue supply voltage (AVCC) must not be turned
on before the digital supply voltage.
Immediately after power on always execute INIT at the INITX pin (input a low level to the INITX pin). Hold this low
level at the INITX pin long enough so that after release of the low level at INITX and the passing of the built in
waiting time stable oscillation of the oscillation circuit is achieved. INITX must be pulled low for at least 8 cycles of
the 4 MHz oscillation clock.
The complete size of the flash memory of 768K can only be emulated by using external emulation RAM.
The modified watchdog behaviour - no more clearing of the watchdog reset generation flag in case of DMA to D-
bus and I-Bus, instruction fetch from D-bus RAM and data operations on I-bus RAM - cannot be emulated on
MB91FV360GA.
theta-jc (junction to
theta-ja (junction to ambient)
case)
30 27 25 5
The maximum allowed ambient temperature is 85 degr. C, the maximum allowed junction temperature is 125
degr.C. Under these conditions a maximum power consumption of (125 degr. C - 85 degr. C) / 30 C/W = 1.33 W is
allowed. The user must make sure that the maximum ambient temperature is not exceeded.
For other details about the package see Fujitsu Semiconductor Package Data Book.
Table A lists the addresses for the registers used by the internal peripheral functions of
MB91F376GS.
Read/write attribute
Register initial value after a reset (bit initial values)
“1”: initial value “1”, “0”: initial value “0”,
“x”: initial value “X” (indeterminate),
“—” indicates non-existent bits
Register name (The register in column 1 is at location 4n, the register in
column 2 at 4n+1, and so on.)
Location of far left of register (+0). +1, +2, and +3 each increment the
location by one. When performing word access, the register in column 1 is
placed at the MSB end of the data.
Precautions:
• The data in reserved areas and areas marked “” is indeterminate. Do not use those areas !
Register
Address Block
+0 +1 +2 +3
00000CH Reserved
000010H PDRG [R/W] PDRH [R/W] PDRI [R/W] PDRJ [R/W] R-bus
XXXXXXXX XXXXXXXX X---X--- XXXXXXXX Port Data
Register
000014H PDRK [R/W] PDRL [R/W] PDRM [R/W] PDRN [R/W]
XXXXXXXX XXXXXXXX - - - - XXXX - - XXXXXX
000020H Reserved
|
00003CH
000060H SSR0 [R/W] SIDR0 [R/W] SCR0 [R/W] SMR0 [R/W] UART0
00001 - 00 XXXXXXXX 00000100 00 - - 0 - 0 -
00006CH SSR1 [R/W] SIDR1 [R/W] SCR1 [R/W] SMR1 [R/W] UART1
00001 - 00 XXXXXXXX 00000100 00 - - 0 - 0 -
00007CH
000090H Reserved
000094H IBCR [R/W] IBSR [R] IADR [R/W] ICCR [R/W] I2C (old)
00000000 00000000 -XXXXXXX - - 0XXXXX
-> new I2C
000098H IDAR [R/W] IDBL [R/W] from address
XXXXXXXX -------0 0x184
0000A4H reserved
0000A8H
0000ACH IOTDBL0 [R/W] ICS01 [R/W] IOTDBL1 [R/W] ICS23 [R/W] Input Capture
- - - - - 000 00000000 - - - - - 000 00000000 0,1,2,3
0000C0H Reserved
0000C4H Reserved
0000D0H ZPD0 [R/W,R] PWC0 [R/W] ZPD1 [R/W,R] PWC1 [R/W] SMC 0,1
00000010 - - 000 - - 0 00000010 00000 - - 0
FME / EMDC / Br+ALan - mb91f376g.fm 25 23-Mar-05
Register
Address Block
+0 +1 +2 +3
0000D4H ZPD2 [R/W,R] PWC2 [R/W] ZPD3 [R/W,R] PWC3 [R/W] SMC 2,3
00000010 - - 000 - - 0 00000010 00000 - - 0
0000D8H PWC20 [R/W] PWC10 [R/W] PWS20 [R/W] PWS10 [R/W] SMC 0
XXXXXXXX XXXXXXXX - 0000000 - - 000000
0000DCH PWC21 [R/W] PWC11 [R/W] PWS21 [R/W] PWS11 [R/W] SMC 1
XXXXXXXX XXXXXXXX - 0000000 - - 000000
0000E0H PWC22 [R/W] PWC12 [R/W] PWS22 [R/W] PWS12 [R/W] SMC 2
XXXXXXXX XXXXXXXX - 0000000 - - 000000
0000E4H PWC23 [R/W] PWC13 [R/W] PWS23 [R/W] PWS13 [R/W] SMC 3
XXXXXXXX XXXXXXXX - 0000000 - - 000000
0000E8H SMDBL0 [R/W] SMDBL1 [R/W] SMDBL2 [R/W] SMDBL3 [R/W] SMC 0,1,2,3
-------0 ------0 -------0 -------0
000160H Reserved
000184H IBCR2 [R/W] IBSR2 [R] ITBAH [R/W] ITBAL [R/W] I2C (new)
00000000 00000000 - - - - - - 00 00000000
000198H ----------------
| Reserved
0001F8H
000228H ________
|
00023CH
000400H DDRG [R/W] DDRH [R/W] DDRI [R/W] DDRJ [R/W] R-bus
00000000 00000000 ----0--- 00000000 Port Direction
Register
000404H DDRK [R/W] DDRL [R/W] DDRM [R/W] DDRN [R/W]
00000000 00000000 ----0000 --000000
000410H PFRG [R/W] PFRH [R/W] PFRI [R/W] PFRJ [R/W] R-bus
00000000 00000000 ----0--- 00000000 Port Function
Register
000414H PFRK [R/W] PFRL [R/W] PFRM [R/W] PFRN [R/W]
00000000 00000000 ----0000 --000000
000440H ICR00 [R/W] ICR01 [R/W] ICR02 [R/W] ICR03 [R/W] Interrupt Con-
---11111 ---11111 ---11111 ---11111 trol
unit
000444H ICR04 [R/W] ICR05 [R/W] ICR06 [R/W] ICR07 [R/W]
---11111 ---11111 ---11111 ---11111
000470H ________
|
00047CH
000480H RSRR [R/W] STCR [R/W] TBCR [R/W] CTBR [W] Clock Control
10000-00 00110011 X0000X00 XXXXXXXX unit
200254H IDR21[R/W]
XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX
The interrupt vector table lists the interrupt vectors and interrupt control registers
assigned to each MB91360 interrupt.
Co-processor
7 07 - - 0x3E0 0x000FFFE0
fault trap *4
Co-processor
8 08 - - 0x3DC 0x000FFFDC
error trap *4
Instruction break
10 0A - - 0x3D4 0x000FFFD4
exception *4
Undefined instruction
14 0E - - 0x3C4 0x000FFFC4
exception
Free Running
48 30 ICR32 0x460 0x33C 0x000FFF3C
Counter 0
Free Running
49 31 ICR33 0x461 0x338 0x000FFF38
Counter 1
RTC / Calibration
61 3D ICR45 0x46D 0x308 0x000FFF08
(Watch timer)
Delayed interrupt
63 3F ICR47 0x46F 0x300 0x000FFF00
activation bit
80 50 0x2BC 0x000FFEBC
Used by the INT
to to - - to to
instruction.
255 FF 0x000 0x000FFC00
*1 The ICRs are located in the interrupt controller and set the interrupt level for each interrupt request. An ICR is
provided for each interrupt request.
*2 The vector address for each EIT (exception, interrupt or trap) is calculated by adding the listed offset to the table
base register value (TBR). The TBR specifies the top of the EIT vector table. The addresses listed in the table are
for the default TBR value (0x000FFC00). The TBR is initialized to this value by a reset.After execution of the inter-
nal boot ROM TBR is set to 0x00FFC00.
*3 Used by REALOS
*4 System reserved
*6 Mode and reset vector cannot be changed, for their contents see IO map