0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MB91366GAPMT

MB91366GAPMT

  • 厂商:

    FUJITSU(富士通)

  • 封装:

  • 描述:

    MB91366GAPMT - 32-bit RISC Microcontroller - Fujitsu Component Limited.

  • 数据手册
  • 价格&库存
MB91366GAPMT 数据手册
FUJITSU SEMICONDUCTOR DATA SHEET DS07-16401-4E 32-bit RISC Microcontroller CMOS FR50 MB91360G Series MB91FV360GA/F362GB/F369GA/F364G/F365GB/ F367GB/F366GB/F368GB/366GA/F376G ■ DESCRIPTION The MB91360G series is a standard microcontroller containing a wide range of I/O peripherals and bus control functions. The MB91360G series features a 32-bit RISC CPU (FR50) core and is suitable for embedded control applications requiring high-performance and high-speed CPU processing. Also, Internal memories to improve the execution speed of the CPU. ■ FEATURES • Execution time : down to 15.6 ns (64 MHz) (Continued) ■ PACKAGES 401-pin Ceramics PGA 208-pin plastic QFP (PGA-401C-A02) 160-pin plastic QFP (FPT-208P-M04) 120-pin plastic LQFP (FPT-160P-M15) (FPT-120P-M21) MB91360G Series • FR50 CPU : RISC architecture The CPU has a general-purpose register architecture with improved numeric implementation whereby a wide range of delayed branch instructions reduces losses in execution time due to pipeline breaks. Bit manipulation instructions and memory access instructions have been enhanced resulting in improved code efficiency and execution speed for control implementation. • A five-stage pipeline structure provides high-speed processing (one instruction per cycle) • 32-bit linear address space : 4 Gbytes • Fixed 16-bit instruction size (basic instructions) • High-speed multiplication/step division • High-speed interrupt processing (6 cycles) • General-purpose registers : 16 × 32 bits • External bus interface unit with a wide range of functions Divides the external memory space into a maximum of eight areas. Chip select signal setting, data bus width selection (8, 16, 32-bit) , and area size can be specified for each area. • Address bus up to 32 bit wide • Programmable auto-wait function • DMAC Direct memory access (DMA) can be used to perform various types of data transfer without going via the CPU. This improves system performance. • Eight channels (including up to 3 external channels) • Four transfer modes supported : single/block, burst, continuous transfer, and fly-by • Power consumption control mechanisms The MB91360G series contains a number of functions for controlling the operating clock to reduce power consumption. • Software control : Sleep and stop/real time clock functions • Hardware control : Hardware standby function • Gear (divider) function : The CPU and peripheral clock frequencies can be set independently. • Contains a range of peripheral functions • UART, U-timer • Real Time Clock (with optional subclock operation and subclock calibration module) • Stepper Motor Control • Sound Generator • Serial I/O (SIO) , SIO-Prescaler • Power Down Reset • Alarm Comparator • I/O-Timer • I2C Interface • 10-bit D/A Converter • CAN Interface • 10-bit A/D converter • 16-bit reload timer • 16-bit PWM timer • Watchdog timer • Bit search module • Interrupt controller • External interrupt inputs • I/O port function • Interrupt levels “16 maskable interrupt levels” (Continued) 2 MB91360G Series (Continued) • Other • Power supply voltage • 5 V power supply used, the internal regulator creates internal supply of 3.3 V • Package : MB91FV360GA uses a PGA401 package, MB91F362GB is delivered in a QFP208 package, and MB91F369GA in QFP160 package. MB91F364G, MB91F365GB, MB91F366GB, MB91F367GB, MB91F368GB, MB91366GA and MB91F376G will be delivered in an LQFP120 package. (See also section ■ PACKAGE DIMENSIONS. ) 3 MB91360G Series ■ PRODUCT LINEUP MB91FV360GA, MB91F362GB, MB91F364G, MB91F369GA Resource Channels MB91FV360GA MB91F362GB Memory Size Cache/Instruction RAM D-bus RAM F-bus RAM Flash/ROM (F-bus) Boot ROM EDSU CAN Stepper Motor Control Sound Generator PPG Input Capture Output Compare Free Running Timer D/A Converter A/D Converter 400 kHz I2C interface Alarm Comparator SIO/SIO Prescaler UART/U-Timer USART with LIN Function 16-bit Reload Timer Ext. Interrupt Non Maskable Interrupt Real Time Clock 32 kHz Subclock Option for RTC Subclock Calibration LED Port Power Down Reset Bit Search Module Watchdog Timer Ext. Address Bus Ext. Data Bus Ext. DMA Max Operating Frequency 4 4 KB / 4 KB 16 KB 16 KB 512 KB Fast Flash 2 KB ⎯ 4 ch 4 ch 1 ch 8 ch 4 ch 4 ch 2 ch 2 ch 16 ch 1 ch 1 ch 2 ch 3 ch ⎯ 6 ch 8 ch 1 1 yes yes 8 bit 1 1 1 32 bit 32 bit 3 ch 64 MHz - / 4 KB 12 KB 4 KB 512 KB Normal Flash 2 KB ⎯ 3 ch 4 ch 1 ch 8 ch 4 ch 4 ch 2 ch 2 ch 16 ch 1 ch 1 ch 2 ch 3 ch ⎯ 6 ch 8 ch ⎯ 1 no no 8 bit 1 1 1 21 bit 32 bit 1 ch 64 MHz MB91F364G -/12 KB 4 KB 256 KB Fast Flash 2 KB 1 1 ch ⎯ ⎯ 4 ch 4 ch 4 ch 2 ch 2 ch 12 ch 1 ch ⎯ 1 ch 1 ch 2 ch 3 ch 8 ch 1 1 yes yes 8 bit ⎯ 1 1 ⎯ ⎯ ⎯ 64 MHz MB91F369GA - / 4 KB 16 KB 16 KB 512 KB Fast Flash 2 KB ⎯ 2 ch ⎯ 1 ch 4 ch ⎯ ⎯ ⎯ ⎯ 10 ch 1 ch 1 ch 2 ch 1 ch ⎯ 6 ch 8 ch ⎯ 1 no no ⎯ 1 1 1 up to 24 bit 32 bit 1 ch 64 MHz MB91360G Series MB91F365GB, MB91F366GB, MB91366GA, MB91F367GB, MB91F368GB Resource Channels MB91F366GB MB91F365GB MB91F367GB MB91F368GB Memory Size MB91366GA Cache/Instruction RAM D-bus RAM F-bus RAM Flash/ROM (F-bus) Boot ROM EDSU CAN Stepper Motor Control Sound Generator PPG Input Capture Output Compare Free Running Timer D/A Converter A/D Converter I2C 400kHz Alarm Comparator SIO/SIO Prescaler UART/U-Timer USART with LIN function 16-bit Reload Timer Ext. Interrupt Non Maskable Interrupt Real Time Clock 32 kHz Subclock Option for RTC Subclock Calibration LED Port Power Down Reset Bit Search Module Watchdog Timer Ext. Address Bus Ext. Data Bus Ext. DMA Max Operating Frequency - / 4 KB 16 KB 16 KB 512 KB Fast Flash 2 KB ⎯ 2 ch 4 ch 1 ch 8 ch 4 ch 2 ch 2 ch 2 ch 8 ch 1 ch 1 ch 2 ch 2 ch ⎯ 6 ch 8 ch ⎯ 1 no no ⎯ 1 1 1 ⎯ ⎯ ⎯ 64 MHz - / 4 KB 16 KB 16 KB 512 KB Normal Flash 2 KB ⎯ 2 ch 4 ch 1 ch 8 ch 4 ch 2 ch 2 ch ⎯ 8 ch 1 ch 1 ch 2 ch 2 ch ⎯ 6 ch 8 ch ⎯ 1 yes yes ⎯ 1 1 1 ⎯ ⎯ ⎯ 64 MHz - / 4 KB 16 KB 16 KB 512 KB Fast Flash 2 KB ⎯ 2 ch ⎯ ⎯ 4 ch 4 ch 2 ch 2 ch ⎯ 8 ch 1 ch 1 ch 2 ch 1 ch ⎯ 3 ch 8 ch ⎯ 1 no no ⎯ 1 1 1 ⎯ ⎯ ⎯ 64 MHz - / 4 KB 16 KB 16 KB 512 KB Fast Flash 2 KB ⎯ 2 ch ⎯ ⎯ 4 ch 4 ch 2 ch 2 ch ⎯ 8 ch 1 ch 1 ch 2 ch 1 ch ⎯ 3 ch 8 ch ⎯ 1 yes yes ⎯ 1 1 1 ⎯ ⎯ ⎯ 64 MHz MB91F376G - / 4 KB 16 KB 16 KB 768 KB Fast Flash 2 KB ⎯ 2 ch 4 ch 1 ch 8 ch 4 ch 2 ch 2 ch ⎯ 8 ch 1 ch 1 ch 2 ch 2 ch ⎯ 6 ch 8 ch ⎯ 1 yes yes ⎯ 1 1 1 ⎯ ⎯ ⎯ 64 MHz 5 MB91360G Series ■ PIN ASSIGNMENTS • MB91FV360GA (BOTTOM VIEW) 23 69 119 174 230 173 118 68 22 67 21 66 20 65 19 64 18 63 17 62 16 61 15 60 14 59 13 58 12 57 120 70 121 24 71 122 25 72 123 26 73 124 27 74 125 28 75 126 29 76 127 30 77 128 31 78 129 32 79 130 33 80 131 187 244 188 132 81 34 82 35 83 36 84 37 85 38 86 39 87 40 88 41 89 42 90 43 91 44 92 175 176 177 178 179 180 181 182 183 184 185 186 231 232 233 234 235 236 237 238 239 240 241 242 243 284 285 286 287 288 289 290 291 292 293 294 295 296 297 229 334 335 336 337 338 339 340 341 342 343 344 345 346 245 172 117 283 380 381 382 383 384 385 386 387 388 389 390 391 298 189 133 228 333 379 347 392 246 171 116 282 299 190 134 227 332 378 348 393 247 170 115 281 300 191 135 226 331 377 349 394 248 169 114 280 301 192 136 225 330 376 350 395 249 168 113 279 302 193 137 224 329 375 351 396 250 167 112 278 303 194 138 223 328 374 352 397 251 166 111 277 304 195 139 222 327 373 353 398 252 165 110 276 305 196 140 221 326 372 354 399 253 164 109 275 306 197 141 220 325 371 355 400 254 163 108 274 307 198 142 219 324 370 356 401 255 162 107 273 308 199 143 218 323 369 368 367 366 365 364 363 362 361 360 359 357 358 256 161 106 272 309 200 144 217 322 321 320 319 318 317 316 315 314 313 312 311 310 257 160 271 270 269 268 267 266 265 264 263 262 261 260 259 258 201 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 145 INDEX 159 158 157 156 155 154 153 99 51 7 6 152 98 50 5 151 97 49 4 150 96 48 3 149 95 47 2 148 94 46 1 147 93 45 146 105 56 104 55 11 103 54 10 102 53 9 101 52 8 100 (PGA-401C-A02) 6 MB91360G Series • MB91F362GB (TOP VIEW) UART CAN PPG SIO Sound I2C Gen. XTAL + PLL Mode OCU 156 157 SOT2 VSS VCC3C VDD HVSS PWM1P0 PWM1M0 PWM2P0 PWM2M0 HVDD PWM1P1 PWM1M1 PWM2P1 PWM2M1 HVSS PWM1P2 PWM1M2 PWM2P2 PWM2M2 HVDD PWM1P3 PWM1M3 PWM2P3 PWM2M3 HVSS VDD35 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 VDD35 VSS D15 D16 D17 D18 D19 D20 D21 D22 D23 SIN2 SOT1 SIN1 SOT0 SIN0 RX2 TX2 RX1 TX1 RX0 TX0 VSS VDD OCPA7 OCPA6 OCPA5 OCPA4 OCPA3 OCPA2 OCPA1 OCPA0 SCK3 SOT3 SIN3 SCK4 SIN4 SOT4 SCL SDA SGA SGO VCI CPO VSS X1A X0A X1 X0 VDD SELCLK MONCLK INITX HSTX MD2 MD1 MD0 VSS OUT3 OUT2 OUT1 OUT0 IN3 105 104 PQ [5:0] PP [5:0] PO [7:0] PN [5:0] PM [3:0] PL [7:0] INDEX P2 [7:0] P3 [7:0] P4 [7:0] P5 [7:0] P6 [4:0] P7 [4:6] P8 [7:0] P9 [7:0] IN2 IN1 IN0 INT7 INT6 INT5 INT4 INT3 INT2 INT1 INT0 VSS VDD LED7 LED6 LED5 LED4 LED3 LED2 LED1 LED0 LTESTX CPUTESTX TESTX ATGX VDD VSS ALARM DA1 DA0 AVSS AN7 AN6 AN5 AN4 AN3 AN2 AN1 AN0 AVRH AVCC DEOP0 DACK0 DREQ0 AN15 AN14 AN13 AN12 AN11 AN10 AN9 AN8 SMC PR [7:0] PJ [7:0] PS [7:0] P0 [7:0] PI [6:0] PH [7:0] Ext. Bus Data P1 [7:0] PB [2:0] PG [7:0] 1 D24 D25 D26 D27 D28 D29 D30 D31 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 VDD35 VSS A16 A17 A18 A19 A20 CS4X CS5X CS6X RDY BGRNTX BRQ RDX WR0X WR1X WR2X WR3X AS ALE CLK AH CS0X CS1X CS2X CS3X VDD35 VSS 208 53 52 Ext. Bus Address Chip Select Ext. Bus Control Chip Select (FPT-208P-M04) ADC DMA ADC DAC LED Ext. Interrupt PK [7:0] ICU 7 MB91360G Series • MB91F364G (TOP VIEW) SIO USART PPG CAN VDD BREAKX LTESTX OCPA3 OCPA2 OCPA1 OCPA0 VCC3C SOT3 SOT6 SOT5 SCK3 SCK6 SCK5 SIN3 VSS SIN6 SIN5 VSS TX0 RX0 VDDI VSS VCC3C VDDI VDDI VDD VSS VSS VDD X0 Port H AVSS, AVRL AVRH AVCC PG PM PQ X1 2 AN1 AN6 AN7 AN8 AN5 NMIX SELCLK HSTX SCL SOT0 AN9 AN10 AN11 SIN0 SDA AN0 AN2 AN3 AN4 MONCLK X1A VSS VDD VDD X0A 8 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 ADC I2C UART 32kHz (FPT-120P-M21) VDD VSS 4 MHz 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 VDD PR0 PR1 PR2 PR3 PR4 PR5 PR6 PR7 VSS VDD LED0 LED1 LED2 LED3 VSS LED4 LED5 LED6 LED7 VSS VDD PO4 PO5 PO6 PO7 DA0 DA1 Port N Port T Port O P.P VSS VDD 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 (#) 63 62 61 INITX MD2 MD1 MD0 ATGX CPUTESTX TESTX VSS VDD OUT3 OUT2 OUT1 Port J IN1 IN0 VSS VDD INT7 INT6 INT5 Port O INT4 INT3 INT2 INT1 INT0 VSS External interrupt Port K ICU OUT0 IN3 IN2 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 Port R Port L OCU MB91360G Series • MB91F369GA (TOP VIEW) Ext. Bus Control Osci. PPG UART CAN VSS VDD35 RDY WR0X WR1X WR2X WR3X VSS VDD35 VSS MONCLK VDD VSS X1 X0 VDD OCPA3 OCPA2 OCPA1 OCPA0 VSS VDD SOT0 SIN0 RX1 TX1 RX0 TX0 VSS VCC3C VDDI VDDI VDDI VDDI VSS SCK3 SOT3 SIN3 SCK4 SIN4 116 112 119 111 110 109 105 113 107 106 103 102 101 120 118 115 117 114 108 104 100 91 88 84 97 96 95 94 92 89 87 86 99 98 93 90 85 83 82 81 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 VDD35 VSS D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 VDD35 VSS A0 A1 A2 A3 121 80 PM [3:0] 122 123 124 125 126 127 79 78 77 76 75 74 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 Ext. Bus Data P13 143 144 145 146 58 57 56 55 PG [1:0] 147 148 149 150 151 54 53 52 51 50 PH [7:0] 152 153 154 155 156 157 158 159 160 21 31 7 33 35 36 38 32 13 14 15 16 19 20 22 24 25 28 30 34 11 12 23 26 27 10 18 29 37 17 49 48 47 46 45 44 P9 [0:1] P7 [6:4] P8 [3,1,2] P9 [3:7] 1 2 3 5 4 6 8 9 43 PB [2:0] 39 40 42 41 A4 A5 A6 A7 A8 A9 A10 A11 VDD35 CLK VSS A12 A13 A14 A15 A16 A17 A18 A19 A20 VDD35 VSS CS4X CS5X CS6X RDX BGRNTX BRQ AS ALE AH CS0X CS1X CS2X CS3X DREQ0 DACX0 DEOP0 VSS VDD35 Ext. Bus Address Chip Select Ext. Bus Chip DMA Control Select (FPT-160P-M15) ADC Mode Ext.Interrupt PK [7:0] I2C Sound Gen. P0 [3:0] PQ [1:0] PP [3:0] PN [5:0] SOT4 SCL SDA SGA SGO INT7 INT6 INT5 INT4 INT3 INT2 INT1 INT0 VSS VDD LTESTX CPUTESTX TESTX INITX HSTX MD2 MD1 MD0 ATGX VDD VSS ALARM AN9 AN8 AN7 AN6 AN5 AN4 AN3 AN2 AN1 AN0 AVSS AVCC AVRH SIO 9 MB91360G Series • MB91F365GB (TOP VIEW) Digital I/O-Ports UART CAN PWM SIO OCPA1 OCPA7 OCPA6 OCPA5 OCPA4 OCPA3 OCPA2 OCPA0 SCK3 SCK4 SOT1 SIN1 SOT0 SOT3 SIN0 SIN3 SIN4 PG0 PG1 TX0 SOT4 63 PG2 RX1 RX0 TX1 VDD VSS 83 90 82 88 85 81 79 69 68 67 89 87 86 78 77 70 66 65 84 74 80 73 76 75 72 71 64 62 61 VSS VDD VSS PG3 PG4 PG5 VDD HVSS PWM1P0 PWM1M0 PWM2P0 PWM2M0 HVDD PWM1P1 PWM1M1 PWM2P1 PWM2M1 SMC HVSS PWM1P2 PWM1M2 PWM2P2 PWM2M2 HVDD PWM1P3 PWM1M3 PWM2P3 PWM2M3 HVSS VDD PJ0 PJ1 PJ2 PJ3 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 10 11 20 INITX MD2 MD1 MD0 VDD OUT1 OUT0 IN3 IN2 IN1 IN0 VSS VCC3C VDD INT7 INT6 INT5 ICU OCU INT4 INT3 INT2 INT1 INT0 MONCLK VSS X1 X0 VDD CPUTESTX TESTX BOOT ext. Int. 4 MHz Osc. 12 15 18 21 16 13 14 17 19 22 26 23 24 27 29 ALARM 7 25 PI3 SDA SCL AN1 AN2 AN3 SGO AVRH AN4 SGA AN5 AN6 PJ5 PJ7 AVSS AN0 AN7 PJ6 DA0 DA1 PJ4 VDD VSS VDD 28 VDD VSS VSS AVCC Digital I/O-Ports SOUND I2C ADC DAC (FPT-120P-M21) 10 VSS 30 3 4 5 6 8 1 2 9 MB91360G Series • MB91F366GB/MB91F376G (TOP VIEW) Digital I/O-Ports UART CAN PWM SIO OCPA1 OCPA7 OCPA6 OCPA5 OCPA4 OCPA3 OCPA2 OCPA0 SCK3 SCK4 SOT1 SOT0 SOT3 SIN0 SIN3 SIN4 PG0 PG1 TX0 SOT4 63 SIN1 PG2 RX1 RX0 TX1 VDD VSS 83 90 82 88 85 81 79 69 68 67 89 87 86 78 77 70 66 65 84 74 80 73 76 75 72 71 64 62 61 VSS VDD VSS PG3 PG4 PG5 VDD HVSS PWM1P0 PWM1M0 PWM2P0 PWM2M0 HVDD PWM1P1 PWM1M1 PWM2P1 SMC 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 10 11 20 INITX MD2 MD1 MD0 VDD OUT1 OCU OUT0 IN3 IN2 IN1 IN0 VSS VCC3C VDD INT7 INT6 INT5 ICU PWM2M1 HVSS PWM1P2 PWM1M2 PWM2P2 PWM2M2 HVDD PWM1P3 PWM1M3 PWM2P3 PWM2M3 HVSS VDD PJ0 PJ1 PJ2 PJ3 INT4 INT3 INT2 INT1 INT0 MONCLK VSS X1 X0 VDD CPUTESTX TESTX BOOT ext. Int. 4 MHz Osc. 12 15 18 21 16 13 14 17 19 22 26 23 24 27 29 ALARM 7 25 SGA PI3 AN1 AVSS AN0 SDA SCL AN7 AN2 AN3 SGO AVRH AN4 VDD VSS VDD AVCC AN5 AN6 X0A X1A PJ4 PJ5 PJ6 PJ7 28 VDD VSS VSS Digital I/O-Ports Sound I2C ADC 32 kHz Osc. (FPT-120P-M21) VSS 30 3 4 5 6 8 1 2 9 11 MB91360G Series • MB91F367GB (TOP VIEW) Digital I/O-Ports UART CAN PWM SIO OCPA1 PO4 OCPA3 OCPA2 OCPA0 SCK3 SCK4 SOT0 SOT3 SIN0 SIN3 SIN4 PQ3 PQ2 PG0 PG1 PO6 PO5 TX0 SOT4 63 RX1 PG2 RX0 PO7 TX1 VDD VSS 83 90 82 88 85 81 79 69 68 67 89 87 86 78 77 70 66 65 84 74 80 73 76 75 72 71 64 62 61 VSS VDD VSS PG3 PG4 PG5 VDD VSS PR0 PR1 PR2 PR3 HVDD PR4 PR5 PR6 PR7 VSS PS0 PS1 PS2 PS3 HVDD PS4 PS5 PS6 PS7 VSS VDD PJ0 PJ1 PJ2 PJ3 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 INITX MD2 MD1 MD0 VDD OUT1 OUT0 IN3 IN2 IN1 IN0 VSS VCC3C VDD INT7 INT6 INT5 ICU OCU INT4 ext. Int. INT3 INT2 INT1 INT0 MONCLK VSS X1 X0 VDD CPUTESTX TESTX BOOT 4 MHz Osc. 18 21 11 16 19 20 22 15 12 17 13 14 10 23 24 26 29 ALARM 25 27 PM1 PI3 AVSS AN0 SDA SCL AN1 PJ4 PJ6 AN2 AN3 PM0 AVRH AN4 AN5 AN6 PJ5 PJ7 AVCC AN7 VDD VSS VDD VSS NC NC 28 Digital I/O-Ports VDD VSS I2 C ADC (FPT-120P-M21) 12 VSS 30 3 4 5 6 7 1 2 8 9 MB91360G Series • MB91F368GB (TOP VIEW) Digital I/O-Ports UART CAN PWM SIO OCPA1 PO4 OCPA3 OCPA2 OCPA0 SCK3 SCK4 SOT0 SOT3 SIN0 SIN3 SIN4 PQ3 PQ2 PG0 PG1 PO6 PO5 TX0 SOT4 63 RX1 PG2 RX0 PO7 TX1 VDD VSS 83 90 82 88 85 81 79 69 68 67 89 87 86 78 77 70 66 65 84 74 80 73 76 75 72 71 64 62 61 VSS VDD VSS PG3 PG4 PG5 VDD VSS PR0 PR1 PR2 PR3 HVDD PR4 PR5 PR6 PR7 VSS PS0 PS1 PS2 PS3 HVDD PS4 PS5 PS6 PS7 VSS VDD PJ0 PJ1 PJ2 PJ3 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 INITX MD2 MD1 MD0 VDD OUT1 OUT0 IN3 IN2 IN1 IN0 VSS VCC3C VDD INT7 INT6 INT5 ICU OCU INT4 INT3 INT2 INT1 INT0 MONCLK VSS X1 X0 VDD CPUTESTX TESTX BOOT ext. Int. 4 MHz Osc. 18 21 11 16 19 20 22 15 12 17 13 14 10 23 24 26 29 ALARM 25 27 PI3 SDA SCL AN1 AN2 AN3 AVRH AN4 AN5 AN6 AVSS AN0 PM0 PM1 AN7 PJ4 VDD VSS VDD X0A X1A PJ5 PJ6 PJ7 28 VDD VSS VSS Digital I/O-Ports I2C AVCC ADC 32 kHz Osc. (FPT-120P-M21) VSS 30 3 4 5 6 7 1 2 8 9 13 MB91360G Series • MB91366GA (TOP VIEW) Digital I/O-Ports UART CAN PWM SIO OCPA1 OCPA7 OCPA6 OCPA5 OCPA4 OCPA3 OCPA2 OCPA0 SCK3 SCK4 SOT1 SOT0 SOT3 SIN0 SIN3 SIN4 PG0 PG1 TX0 SOT4 63 SIN1 PG2 RX1 RX0 TX1 VDD VSS 83 90 82 88 85 81 79 69 68 67 89 87 86 78 77 70 66 65 84 74 80 73 76 75 72 71 64 62 61 VSS VDD VSS PG3 PG4 PG5 VDD HVSS PWM1P0 PWM1M0 PWM2P0 PWM2M0 HVDD PWM1P1 PWM1M1 PWM2P1 SMC 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 10 11 20 INITX MD2 MD1 MD0 VDD OUT1 OCU OUT0 IN3 IN2 IN1 IN0 VSS VCC3C VDD INT7 INT6 INT5 ICU PWM2M1 HVSS PWM1P2 PWM1M2 PWM2P2 PWM2M2 HVDD PWM1P3 PWM1M3 PWM2P3 PWM2M3 HVSS VDD PJ0 PJ1 PJ2 PJ3 INT4 INT3 INT2 INT1 INT0 MONCLK VSS X1 X0 VDD CPUTESTX TESTX BOOT ext. Int. 4 MHz Osc. 12 15 18 21 16 13 14 17 19 22 26 23 24 27 29 ALARM 7 25 SGA PI3 AN1 AVSS AN0 SDA SCL AN7 AN2 AN3 SGO AVRH AN4 VDD VSS VDD AVCC AN5 AN6 X0A X1A PJ4 PJ5 PJ6 PJ7 28 VDD VSS VSS Digital I/O-Ports Sound I2C ADC 32 kHz Osc. (FPT-120P-M21) 14 VSS 30 3 4 5 6 8 1 2 9 MB91360G Series ■ PIN DESCRIPTIONS •MB91FV360GA I/O Pins and Their Functions General Pin No. Pin Name I/O Circuit Type Purpose I/O Port 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 HVSS HVDD5B PWM2M1 PWM1M1 PWM1P0 VDD5R VDD5P SCK4 VDD5J EXRAM TWRX TAD9 TAD5 TAD3 TDT68 TDT63 TDT57 TDT49 TDT23 TDT16 TDT7 TDT2 ICD0 ICLK X0 INTX MD1 IN3 INT3 ⎯ ⎯ I/O I/O I/O ⎯ ⎯ I/O ⎯ I O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I I I/O I/O ⎯ ⎯ PR7 PR5 PR0 ⎯ ⎯ PN2 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PL3 PK3 D18 D11 D2 I/O I/O I/O ⎯ ⎯ ⎯ Q Q Q Not Connected ⎯ ⎯ M K K ⎯ ⎯ A ⎯ P X X X X W W W W W W W W N L H U T A A ⎯ ⎯ SMC 1 SMC 1 SMC 0 ⎯ ⎯ SIO Clock ⎯ Trace Control Trace Control Trace Address Trace Address Trace Address Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data ICE Data ICE Clock 4 MHz Oscillator Pin Initial Pin Mode Pin 1 ICU Input 3 Ext. Interrupt 3 (Continued) Function Ext. Bus Data Bit 18 Ext. Bus Data Bit 11 Ext. Bus Data Bit 2 15 MB91360G Series Pin No. 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 Pin Name AN3 DACK2 AN13 AN8 ALE WR1X RDX CS7X A26 A20 A12 D21 D16 D13 D7 D3 VSS PWM2P2 PWM2P1 PWM1P1 SIN1 TX3 SOT3 SOT4 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port PH3 PB6 PG5 PG0 P91 P85 P83 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PS2 PR6 PR4 PQ2 PP6 PN4 PN0 B A B B A S S A Q Q Q Q Q Q Q Q ⎯ K K K Not Connected A Q A A Not Connected Not Connected Function ADC Input 3 DMA Acknowledge 2 ADC Input 13 ADC Input 8 Ext. Bus Control Ext. Bus Control Ext. Bus Control Chip Select 7 (CAN) Ext. Bus Address Bit 26 Ext. Bus Address Bit 20 Ext. Bus Address Bit 12 Ext. Bus Data Bit 21 Ext. Bus Data Bit 16 Ext. Bus Data Bit 13 Ext. Bus Data Bit 7 Ext. Bus Data Bit 3 ⎯ SMC 2 SMC 1 SMC 1 UART 1 Input CAN 3 TX SIO Output SIO Output SGO TOEX TAD8 TAD2 TDT67 TDT60 I/O O O O I/O I/O PM0 ⎯ ⎯ ⎯ ⎯ ⎯ A X X X W W Sound Generator SGO Trace Control Trace Address Trace Address Trace Data Trace Data (Continued) 16 MB91360G Series Pin No. 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 Pin Name TDT54 TDT48 TDT26 TDT21 TDT18 TDT12 TDT8 TDT3 ICS2 VDD5F RSTX OUT2 IN0 INT2 AN6 AN1 AVCC DEOP0 AN14 AN9 AS BRQ CS6X A23 A17 A11 D27 D22 D17 D6 VDD5S PWM1M3 PWM2M3 HVDD5A I/O I/O I/O I/O I/O I/O I/O I/O I/O O ⎯ I I/O I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ I/O I/O General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PL6 PL0 PK2 PH6 PH1 ⎯ PB2 PG6 PG1 P90 P82 P76 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PS5 PS7 ⎯ W W W W W W W W G ⎯ E A A A B B ⎯ A B B A A A Q Q Q Q Q Q Q ⎯ K M ⎯ Function Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data ICE Status ⎯ Reset Pin OCU Output 2 ICU Input 0 Ext. Interrupt 2 ADC Input 6 ADC Input 1 Analog VCC DMA EOP 0 ADC Input 14 ADC Input 9 Ext. Bus Control Ext. Bus Control Chip Select 6 Ext. Bus Address Bit 23 Ext. Bus Address Bit 17 Ext. Bus Address Bit 11 Ext. Bus Data Bit 27 Ext. Bus Data Bit 22 Ext. Bus Data Bit 17 Ext. Bus Data Bit 16 ⎯ SMC 3 SMC 3 ⎯ (Continued) 17 MB91360G Series Pin No. 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 Pin Name PWM2P0 VCC3C SOT1 SIN0 TX1 OCPA2 SCK3 SIN4 SCL TCLK TAD12 TAD15 TAD1 TDT65 TDT59 TDT55 TDT51 TDT42 TDT32 TDT27 TDT22 TDT11 TDT4 ICD3 TDT1 SELCLK NMIX OUT1 IN1 INT5 LED4 ALARM AN7 AN2 I/O I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I I/O I/O I/O I/O I I/O I/O General Circuit Type Purpose I/O Port PR2 ⎯ PQ3 PQ0 PP2 PO2 PN5 PN1 PM3 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PL5 PL1 PK5 PJ4 ⎯ PH7 PH2 K C A A Q A A A Y W X X X W W W W W W W W W W N W F E A A A J D B B Function SMC0 Bypass Capacitor Pin UART 1 Output UART 0 Input CAN 1 TX PPG Output SIO Clock SIO Input I2C SCL Trace Control Trace Address Trace Address Trace Address Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data ICE Data Trace Data Clock Selection Non maskable Interrupt OCU Output 1 ICU Input 1 Ext. Interrupt 5 LED Port 4 Alarm Comparator Input ADC Input 7 ADC Input 2 (Continued) 18 MB91360G Series Pin No. 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 Pin Name DACK0 AN10 CS0X CS3X BGRNTX CS4X A22 A18 A14 A5 INDEX D30 D26 D19 D10 D9 D5 PWM2M2 PWM1P3 PWM2M0 VSS SOT2 SOT0 VDD5O OCPA7 OCPA5 OCPA1 VDD5K X1A X0A SDA TAD10 TAD11 TDT66 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ I/O I/O ⎯ I/O I/O I/O ⎯ O I I/O O O I/O General Circuit Type Purpose I/O Port PB1 PG2 P94 P97 P81 P74 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PS3 PS4 PR3 ⎯ PQ5 PQ1 ⎯ PO7 PO5 PO1 ⎯ ⎯ ⎯ PM2 ⎯ ⎯ ⎯ A B A A A A Q Q Q Q ⎯ Q Q Q Q Q Q M K M ⎯ A A ⎯ A A A ⎯ I I Y X X W Function DMA acknowledge 0 ADC Input 10 Chip select 0 Chip select 3 Ext. Bus Control Chip select 4 Ext. Bus Address Bit 22 Ext. Bus Address Bit 18 Ext. Bus Address Bit 14 Ext. Bus Address Bit 5 Index Pin Ext. Bus Data Bit 30 Ext. Bus Data Bit 26 Ext. Bus Data Bit 19 Ext. Bus Data Bit 10 Ext. Bus Data Bit 9 Ext. Bus Data Bit 5 SMC 2 SMC 3 SMC 0 ⎯ UART 2 Output UART 0 Output ⎯ PPG Output PPG Output PPG Output ⎯ 32 kHz Oscillator Pin 32 kHz Oscillator Pin I2C SDA Trace Address Trace Address Trace Data (Continued) 19 MB91360G Series Pin No. 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 Pin Name TDT61 TDT58 TDT52 TDT45 TDT39 TDT35 TDT31 TDT24 TDT15 TDT14 TDT10 ICD1 ICD2 HSTX OUT3 OUT0 INT6 LED7 LED1 CPUTESTX DA1 AN4 DEOP1 DACK1 DREQ0 CLK AH/BOOT CS5X A24 A21 A15 A8 A2 A0 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I/O I/O I/O I/O I/O I O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PL7 PL4 PK6 PJ7 PJ1 ⎯ ⎯ PH4 PB5 PB4 PB0 P92 P93 P75 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ W W W W W W W W W W W N N E A A A J J E C B A A A A A A Q Q Q Q Q Q Function Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data ICE Data ICE Data Hardware Standby OCU Output 3 OCU Output 0 Ext. Interrupt 6 LED Port 7 LED Port 1 Test Input DAC Output ADC Input 4 DMA EOP 1 DMA Acknowledge 1 DMA Request 0 Ext. Bus Clock Ext. Bus Control/Boot Signal Chip Select 5 Ext. Bus Address Bit 24 Ext. Bus Address Bit 21 Ext. Bus Address Bit 15 Ext. Bus Address Bit 8 Ext. Bus Address Bit 2 Ext. Bus Address Bit 0 (Continued) 20 MB91360G Series Pin No. 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 Pin Name D29 D25 D20 D15 D4 HVDD5C PWM1M2 PWM1P2 PWM1M0 SIN2 RX3 VSS RX0 VDD5N OCPA4 OCPA0 SIN3 VSS SGA TAD13 TAD7 TAD6 TDT64 TDT56 TDT50 TDT44 TDT41 TDT37 TDT34 TDT30 TDT25 TDT20 TDT9 BREAK I/O I/O I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O ⎯ I/O ⎯ I/O I/O I/O ⎯ I/O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PS1 PS0 PR1 PQ4 PP7 ⎯ PP1 ⎯ PO4 PO0 PN3 ⎯ PM1 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Q Q Q Q Q ⎯ K K K A Q ⎯ Q ⎯ A A A ⎯ A X X X W W W W W W W W W W W O Function Ext. Bus Address Bit 29 Ext. Bus Address Bit 25 Ext. Bus Address Bit 20 Ext. Bus Address Bit 15 Ext. Bus Address Bit 4 ⎯ SMC2 SMC2 SMC0 UART 2 Input CAN 3 RX ⎯ CAN 0 RX ⎯ PPG Output PPG Output SIO Input ⎯ Sound Generator SGA Trace Address Trace Address Trace Address Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data ICE Break (Continued) 21 MB91360G Series Pin No. 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Pin Name ICS1 ICS0 MD2 IN2 INT4 LED6 LED3 TESTX DA0 AN5 AN0 AN15 CS1X WR3X WR2X DREQ2 A19 A13 A7 A4 D31 D28 D23 D14 D8 D1 D0 HVSS VSS RX2 RX1 I/O O O I I/O I/O I/O I/O I O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ PL2 PK4 PJ6 PJ3 ⎯ ⎯ PH5 PH0 PG7 P95 P87 P86 P73 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PP5 PP3 G G T A A J J Not Connected E C B B B A S S A Q Q Q Q Q Q Q Q Q Q Q Not Connected ⎯ Not Connected ⎯ Q Q Function ICE Status ICE Status Mode Pin 2 ICU Input 2 Ext. Interrupt 4 LED Port 6 LED Port 3 Test Input DAC Output ADC Input 5 ADC Input 0 ADC Input 15 Chip select 1 Ext. Bus Control Ext. Bus Control DMA Request 2 Ext. Bus Address Bit 19 Ext. Bus Address Bit 13 Ext. Bus Address Bit 7 Ext. Bus Address Bit 4 Ext. Bus Data Bit 31 Ext. Bus Data Bit 28 Ext. Bus Data Bit 23 Ext. Bus Data Bit 14 Ext. Bus Data Bit 8 Ext. Bus Data Bit 1 Ext. Bus Data Bit 0 ⎯ ⎯ CAN 2 RX CAN 1 RX (Continued) 22 MB91360G Series Pin No. 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 Pin Name VSS OCPA3 VSS VDD5I TADSCX TCE1X TAD4 TAD0 TDT62 TDT53 TDT47 TDT43 TDT36 TDT33 TDT28 TDT19 TDT13 TDT6 TDT5 X1 MONCLK MD0 INT7 INT1 LED5 LTESTX ATGX AVRL AVRH DREQ1 AN12 AN11 WR0X I/O ⎯ I/O ⎯ ⎯ O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O O O I I/O I/O I/O I I/O ⎯ ⎯ I/O I/O I/O I/O General Purpose I/O Port ⎯ PO3 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PK7 PK1 PJ5 ⎯ PI3 ⎯ ⎯ PB3 PG4 PG3 P84 Circuit Type ⎯ A ⎯ Function ⎯ PPG Output ⎯ ⎯ Trace Control Trace Control Trace Address Trace Address Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data Trace Data 4 MHz Oscillator Pin Clock Output for test purposes Mode Pin 0 Ext. Interrupt 7 Ext. Interrupt 1 LED Port 5 Test Input Analog Reference Low Analog Reference High DMA Request 1 ADC Input 12 ADC Input 11 Ext. Bus Control Ext. Bus Control (Continued) 23 Not Connected ⎯ X X X X W W W W W W W W W W W H G T A A J E A R R A B B S MB91360G Series Pin No. 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 Pin Name RDY A25 A16 A10 A6 A1 D24 D12 PWM2P3 HVSS HVSS VDD5Q TX2 TX0 OCPA6 VDD5M VDD5L VDD5H TAD14 VSS3 VSS3 VDD3C TDT46 TDT40 TDT38 VDD3B TDT29 TDT17 VDD3A I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ I/O I/O I/O ⎯ ⎯ ⎯ O ⎯ ⎯ ⎯ I/O I/O I/O ⎯ I/O I/O ⎯ General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PS6 ⎯ ⎯ ⎯ PP4 PP0 PO6 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ S Q Q Q Q Q Not Connected Q Q Not Connected K ⎯ ⎯ Not Connected ⎯ Q Q A ⎯ ⎯ Not Connected ⎯ X ⎯ ⎯ Not Connected ⎯ W W W ⎯ W W ⎯ Function Ext. Bus Control Ext. Bus Address Bit 25 Ext. Bus Address Bit 16 Ext. Bus Address Bit 10 Ext. Bus Address Bit 6 Ext. Bus Address Bit 1 Ext. Bus Data Bit 24 Ext. Bus Data Bit 12 SMC 3 ⎯ ⎯ ⎯ CAN 2 TX CAN 0 TX PPG Output ⎯ ⎯ ⎯ Trace Address ⎯ ⎯ ⎯ Trace Data Trace Data Trace Data ⎯ Trace Data Trace Data ⎯ (Continued) 24 MB91360G Series Pin No. 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 Pin Name TDT0 VSS VSS VDD5E INT0 LED2 LED0 VDD5D AVSS DEOP2 VDD5C CS2X VSS VSS VDD5B A9 A3 VSS VSS VDD5T VSS VSS VSS HVSS VSS VSS VSS VSS VSS I/O I/O ⎯ ⎯ ⎯ I/O I/O I/O ⎯ ⎯ I/O ⎯ I/O ⎯ ⎯ ⎯ I/O I/O ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ PK0 PJ2 PJ0 ⎯ ⎯ PB7 ⎯ P96 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ W ⎯ ⎯ Not Connected ⎯ A J J ⎯ ⎯ A ⎯ A ⎯ ⎯ ⎯ Not Connected Q Q ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Not Connected ⎯ ⎯ ⎯ Not Connected ⎯ ⎯ Not Connected ⎯ Function Trace Data ⎯ ⎯ ⎯ Ext. Interrupt 0 LED Port 2 LED Port 0 ⎯ Analog VSS DMA EOP 2 ⎯ Chip Select 2 ⎯ ⎯ ⎯ Ext. Bus Address Bit 9 Ext. Bus Address Bit 3 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ (Continued) 25 MB91360G Series (Continued) Pin No. 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 VSS VSS VSS VDD5A ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ VSS VSS VSS ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ VSS VSS ⎯ ⎯ ⎯ ⎯ VSS3 VSS3 VSS3 VDD5G VSS VSS VSS ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ VSS3 VSS3 ⎯ ⎯ ⎯ ⎯ Pin Name VSS VSS VDD3D VSS3 VSS3 VSS3 I/O ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Not Connected ⎯ ⎯ Not Connected ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Not Connected ⎯ ⎯ Not Connected ⎯ ⎯ ⎯ Not Connected ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Function ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 26 MB91360G Series •MB91FV362GB I/O Pins and Their Functions General Pin No. Pin Name I/O Circuit Type Purpose I/O Port 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 D24 D25 D26 D27 D28 D29 D30 D31 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 VDD35 VSS A16 A17 A18 A19 A20 CS4X CS5X I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ P74 P75 Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q ⎯ ⎯ Q Q Q Q Q A A Function Ext. Bus Data Bit 24 Ext. Bus Data Bit 25 Ext. Bus Data Bit 26 Ext. Bus Data Bit 27 Ext. Bus Data Bit 28 Ext. Bus Data Bit 29 Ext. Bus Data Bit 30 Ext. Bus Data Bit 31 Ext. Bus Address Bit 0 Ext. Bus Address Bit 1 Ext. Bus Address Bit 2 Ext. Bus Address Bit 3 Ext. Bus Address Bit 4 Ext. Bus Address Bit 5 Ext. Bus Address Bit 6 Ext. Bus Address Bit 7 Ext. Bus Address Bit 8 Ext. Bus Address Bit 9 Ext. Bus Address Bit 10 Ext. Bus Address Bit 11 Ext. Bus Address Bit 12 Ext. Bus Address Bit 13 Ext. Bus Address Bit 14 Ext. Bus Address Bit 15 Separated Ext. Bus VDD, 3.3 V or 5.0 V ⎯ Ext. Bus Address Bit 16 Ext. Bus Address Bit 17 Ext. Bus Address Bit 18 Ext. Bus Address Bit 19 Ext. Bus Address Bit 20 Chip Select 4 Chip Select 5 (Continued) 27 MB91360G Series Pin No. 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 Pin Name CS6X RDY BGRNT BRQ RDX WR0X WR1X WR2X WR3X AS ALE CLK AH CS0X CS1X CS2X CS3X VDD35 VSS AN8 AN9 AN10 AN11 AN12 AN13 AN14 AN15 DREQ0 DACK0 DEOP0 A AVRH AN0 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O General Circuit Type Purpose I/O Port P76 ⎯ P81 P82 ⎯ ⎯ ⎯ ⎯ ⎯ P90 P91 ⎯ P93 P94 P95 P96 P97 ⎯ ⎯ PG0 PG1 PG2 PG3 PG4 PG5 PG6 PG7 PB0 PB1 PB2 ⎯ ⎯ PH0 A S A A S S S S S A A A A A A A A ⎯ ⎯ B B B B B B B B A A A ⎯ R B Function Chip Select 6 Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Clock Ext. Bus Control Signal Chip select 0 Chip select 1 Chip select 2 Chip select 3 Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ ADC Input 8 ADC Input 9 ADC Input 10 ADC Input 11 ADC Input 12 ADC Input 13 ADC Input 14 ADC Input 15 DMR Request 0 DMA Acknowledge 0 DMA EOP 0 Analog VCC Analog Reference High ADC Input 0 (Continued) 28 MB91360G Series Pin No. 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 Pin Name AN1 AN2 AN3 AN4 AN5 AN6 AN7 AVSS DA0 DA1 ALARM VSS VDD ATGX TESTX CPUTESTX LTESTX LED0 LED1 LED2 LED3 LED4 LED5 LED6 LED7 VDD VSS INT0 INT1 INT2 INT3 INT4 INT5 INT6 I/O I/O I/O I/O I/O I/O I/O I/O ⎯ O O I ⎯ ⎯ I/O I I I I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port PH1 PH2 PH3 PH4 PH5 PH6 PH7 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PI3 ⎯ ⎯ ⎯ PJ0 PJ1 PJ2 PJ3 PJ4 PJ5 PJ6 PJ7 ⎯ ⎯ PK0 PK1 PK2 PK3 PK4 PK5 PK6 B B B B B B B ⎯ C C D ⎯ ⎯ A E E E J J J J J J J J ⎯ ⎯ A A A A A A A Function ADC Input 1 ADC Input 2 ADC Input 3 ADC Input 4 ADC Input 5 ADC Input 6 ADC Input 7 Analog VSS, Analog Reference Low DAC Output DAC Output Alarm Comparator Input ⎯ ⎯ ADC Trigger Input Test Input (should be connected to VDD) Test Input (should be connected to VDD) Test Input (should be connected to VDD) LED Port 0 LED Port 1 LED Port 2 LED Port 3 LED Port 4 LED Port 5 LED Port 6 LED Port 7 ⎯ ⎯ Ext. Interrupt 0 Ext. Interrupt 1 Ext. Interrupt 2 Ext. Interrupt 3 Ext. Interrupt 4 Ext. Interrupt 5 Ext. Interrupt 6 (Continued) 29 MB91360G Series Pin No. 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 30 Pin Name INT7 IN0 IN1 IN2 IN3 OUT0 OUT1 OUT2 OUT3 VSS MD0 MD1 MD2 HSTX INITX MONCLK SELCLK VDD X0 X1 X0A X1A VSS CPO VCI SGO SGA SDA SCL SOT4 SIN4 SCK4 SIN3 SOT3 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ I I I I I O I ⎯ I O I O ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port PK7 PL0 PL1 PL2 PL3 PL4 PL5 PL6 PL7 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PM0 PM1 PM2 PM3 PN0 PN1 PN2 PN3 PN4 A A A A A A A A A ⎯ T T T E U G F ⎯ H H I I ⎯ C D A A Y Y A A A A A Function Ext. Interrupt 7 ICU Input 0 ICU Input 1 ICU Input 2 ICU Input 3 OCU Output 0 OCU Output 1 OCU Output 2 OCU Output 3 ⎯ Mode Pin 0 Mode Pin 1 Mode Pin 2 Hardware Standby Initial Pin System Clock Output for Evaluation Purposes Clock Selection, must be connected to VDD ⎯ 4 MHz Oscillator Pin 4 MHz Oscillator Pin Reserved-must be connected to VSS Reserved-should be left open ⎯ Reserved-should be left open Reserved-must be connected to VSS Sound Generator SGO Sound Generator SGA I2C SDA I2C SCL SIO Output SIO Input SIO Clock SIO Input SIO Output (Continued) MB91360G Series Pin No. 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 Pin Name SCK3 OCPA 0 OCPA 1 OCPA 2 OCPA 3 OCPA 4 OCPA 5 OCPA 6 OCPA 7 VDD VSS TX0 RX0 TX1 RX1 TX2 RX2 SIN0 SOT0 SIN1 SOT1 SIN2 SOT2 VSS VCC3C VDD HVSS PWM1P0 PWM1M0 PWM2P0 PWM2M0 HVDD PWM1P1 PWM1M1 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ ⎯ I/O I/O I/O I/O ⎯ I/O I/O General Circuit Type Purpose I/O Port PN5 PO0 PO1 PO2 PO3 PO4 PO5 PO6 PO7 ⎯ ⎯ PP0 PP1 PP2 PP3 PP4 PP5 PQ0 PQ1 PQ2 PQ3 PQ4 PQ5 ⎯ ⎯ ⎯ ⎯ PR0 PR1 PR2 PR3 ⎯ PR4 PR5 A A A A A A A A A ⎯ ⎯ Q Q Q Q Q Q A A A A A A ⎯ C ⎯ ⎯ K K K M ⎯ K K Function SIO Clock PPG Output PPG Output PPG Output PPG Output PPG Output PPG Output PPG Output PPG Output ⎯ ⎯ CAN 0 TX CAN 0 RX CAN 1 TX CAN 1 RX CAN 2 TX CAN 2 RX UART 0 Input UART 0 Output UART 1 Input UART 1 Output UART 2 Input UART 2 Output ⎯ Bypass Capacitor Pin ⎯ ⎯ SMC 0 SMC 0 SMC 0 SMC 0 ⎯ SMC 1 SMC 1 (Continued) 31 MB91360G Series Pin No. 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 Pin Name PWM2P1 PWM2M1 HVSS PWM1P2 PWM1M2 PWM2P2 PWM2M2 HVDD PWM1P3 PWM1M3 PWM2P3 PWM2M3 HVSS VDD35 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 VDD35 VSS D15 D16 D17 I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O General Circuit Type Purpose I/O Port PR6 PR7 ⎯ PS0 PS1 PS2 PS3 ⎯ PS4 PS5 PS6 PS7 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ K M ⎯ K K K M ⎯ K K K M ⎯ ⎯ Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q ⎯ ⎯ Q Q Q Function SMC 1 SMC 1 ⎯ SMC 2 SMC 2 SMC 2 SMC 2 ⎯ SMC 3 SMC 3 SMC 3 SMC 3 ⎯ Separated Ext. Bus VDD, 3.3 or 5.0 V Ext. Bus Data Bit 0 Ext. Bus Data Bit 1 Ext. Bus Data Bit 2 Ext. Bus Data Bit 3 Ext. Bus Data Bit 4 Ext. Bus Data Bit 5 Ext. Bus Data Bit 6 Ext. Bus Data Bit 7 Ext. Bus Data Bit 8 Ext. Bus Data Bit 9 Ext. Bus Data Bit 10 Ext. Bus Data Bit 11 Ext. Bus Data Bit 12 Ext. Bus Data Bit 13 Ext. Bus Data Bit 14 Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ Ext. Bus Data Bit 15 Ext. Bus Data Bit 16 Ext. Bus Data Bit 17 (Continued) 32 MB91360G Series (Continued) Pin No. 203 204 205 206 207 208 Pin Name D18 D19 D20 D21 D22 D23 I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Q Q Q Q Q Q Function Ext. Bus Data Bit 18 Ext. Bus Data Bit 19 Ext. Bus Data Bit 20 Ext. Bus Data Bit 21 Ext. Bus Data Bit 22 Ext. Bus Data Bit 23 Note : If pins VDD35 (25, 51, 182, 198) are connected to 3.3 V then the external bus interface (pins 1-52, 182-208) can be operated at 3.3 V levels. 33 MB91360G Series • MB91F364G I/O pins and functions Pin No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Pin Name AN0 AN1 AN2 AN3 AN4 AN5 AVSS, AVRL AVRH AVCC AN6 AN7 AN8 AN9 AN10 AN11 VSS VDD SDA SCL SOT0 SIN0 HSTX NMIX SELCLK VDD MONCLK VSS X1A X0A VDD X1 X0 VSS I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I I I ⎯ O ⎯ O I ⎯ O I ⎯ General Purpose I/O Port PH0 PH1 PH2 PH3 PH4 PH5 ⎯ ⎯ ⎯ PH6 PH7 PG0 PG1 PG2 PG3 ⎯ ⎯ PM2 PM3 PQ1 PQ0 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Circuit Type B B B B B B ⎯ R ⎯ B B B B B B ⎯ ⎯ YA YA A A F E F ⎯ Q1 ⎯ I I ⎯ H H ⎯ I2C SDA I2C SCL UART 0 SOT UART 0 SIN Hardware Standby Non Maskable Interrupt Select RTC Clock ⎯ Modulated Clock Output ⎯ 32 kHz Oscillator Pin 32 kHz Oscillator Pin ⎯ 4 MHz Oscillator Pin 4 MHz Oscillator Pin ⎯ (Continued) ADC Input 0 ADC Input 1 ADC Input 2 ADC Input 3 ADC Input 4 ADC Input 5 AVSS, Analog Reference Low Analog Reference High AVCC ADC Input 6 ADC Input 7 ADC Input 8 ADC Input 9 ADC Input 10 ADC Input 11 ⎯ ⎯ Function 34 MB91360G Series Pin No 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 Pin Name INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 VDD VSS IN0 IN1 IN2 IN3 OUT0 OUT1 OUT2 OUT3 VDD VSS TESTX CPUTESTX ATGX MD0 MD1 MD2 INITX VDD VCC3C VCC3C VSS (#) I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I I I/O I I I I ⎯ ⎯ ⎯ ⎯ General Purpose I/O Port PK0 PK1 PK2 PK3 PK4 PK5 PK6 PK7 ⎯ ⎯ PL0 PL1 PL2 PL3 PL4 PL5 PL6 PL7 ⎯ ⎯ ⎯ ⎯ PI3 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Circuit Type B B B B B B B B ⎯ ⎯ B B B B B B B B ⎯ ⎯ E E A T T T U ⎯ ⎯ ⎯ ⎯ Test Input Test Input ADC Trigger Mode Pin 0 Mode Pin 1 Mode Pin 2 Initial Pin ICU Input 0* 1 Function External Interrupt 0 External Interrupt 1 External Interrupt 2 External Interrupt 3 External Interrupt 4 External Interrupt 5 External Interrupt 6 External Interrupt 7 ⎯ ⎯ ICU Input 1*1 ICU Input 2*1 ICU Input 3*1 OCU Output 0 OCU Output 1 OCU Output 2 OCU Output 3 ⎯ ⎯ ⎯ Pins for power supply capacitor or for external power supply of core voltage Don't connect to VSS in first ES series. Leave open.*3 (Continued) 35 MB91360G Series Pin No 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 Pin Name VDDI VDDI VDDI BREAKX VDD VSS RX0 TX0 OCPA0 OCPA1 OCPA2 OCPA3 VSS SIN5 SCK5 SOT5 SOT6 SCK6 SIN6 VDD VSS SIN3 SOT3 SCK3 VSS LTESTX VDD PR0 PR1 PR2 PR3 PR4 PR5 PR6 I/O ⎯ ⎯ ⎯ I ⎯ ⎯ I/O I/O I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O ⎯ I ⎯ I/O I/O I/O I/O I/O I/O I/O General Purpose I/O Port ⎯ ⎯ ⎯ BREAKX ⎯ ⎯ PP1 PP0 PO0 PO1 PO2 PO3 ⎯ PT0 PT1 PT2 PT3 PT4 PT5 ⎯ ⎯ PN3 PN4 PN5 ⎯ LTESTX ⎯ PR0 PR1 PR2 PR3 PR4 PR5 PR6 Circuit Type ⎯ ⎯ ⎯ E ⎯ ⎯ Q Q A A A A ⎯ A A A A A A ⎯ ⎯ A A A ⎯ E ⎯ A A A A A A A Port R 0 Port R 1 Port R 2 Port R 3 Port R 4 Port R 5 Port R 6 Test Pin SIO SIN SIO SOT SIO SCK USART 5 SIN CAN RX CAN TX PPG Output 0 PPG Output 1 PPG Output 2 PPG Output 3 Function Separate Core Power Supply EDSU Break Pin ⎯ ⎯ ⎯ USART 5 SCK USART 5 SOT USART 6 SOT USART 6 SCK USART 6 SIN ⎯ ⎯ ⎯ ⎯ (Continued) 36 MB91360G Series (Continued) Pin No 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Pin Name PR7 VSS VDD LED0 LED1 LED2 LED3 VSS LED4 LED5 LED6 LED7 VSS VDD PO4 PO5 PO6 PO7 DA0 DA1 VSS VDD I/O I/O ⎯ ⎯ I/O I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O O O ⎯ ⎯ General Purpose I/O Port PR7 ⎯ ⎯ PJ0 PJ1 PJ2 PJ3 ⎯ PJ4 PJ5 PJ6 PJ7 ⎯ ⎯ PO4 PO5 PO6 PO7 ⎯ ⎯ ⎯ ⎯ Circuit Type A ⎯ ⎯ J J J J ⎯ J J J J ⎯ ⎯ A A A A C C ⎯ ⎯ Port O 4 Port O 5 Port O 6 Port O 7 *2 *2 ⎯ ⎯ LED Port 4 LED Port 5 LED Port 6 LED Port 7 ⎯ ⎯ LED Port 0 LED Port 1 LED Port 2 LED Port 3 ⎯ Port R 7 ⎯ ⎯ Function *1 : If the port L function register bits are cleared, the ICU input lines are connected with the LSYNC outputs of the LIN-USARTs. *2 : The pins DA1 and DA0 are also used for digital test functions. To ensure proper system function, always write “0” to port P R-bus port data direction register DDRP [3 : 2] and port P R-bus port function register PFRP [3 : 2]. *3 : Pin 064 (VSS) will be available after redesign. 37 MB91360G Series •MB91F369GA I/O Pins and Their Functions Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Pin Name A4 A5 A6 A7 A8 A9 A10 A11 VDD35 CLK VSS A12 A13 A14 A15 A16 A17 A18 A19 A20 VDD35 VSS CS4X CS5X CS6X RDX BGRNTX BRQ AS ALE AH CS0X CS1X I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ P74 P75 P76 ⎯ P81 P82 P90 P91 P93 P94 P95 Q Q Q Q Q Q Q Q ⎯ A ⎯ Q Q Q Q Q Q Q Q Q ⎯ ⎯ A A A S A A A A A A A Function Ext. Bus Address Bit 4 Ext. Bus Address Bit 5 Ext. Bus Address Bit 6 Ext. Bus Address Bit 7 Ext. Bus Address Bit 8 Ext. Bus Address Bit 9 Ext. Bus Address Bit 10 Ext. Bus Address Bit 11 Separated Ext. Bus VDD, 3.3 or 5.0 V Ext. Bus Clock ⎯ Ext. Bus Address Bit 12 Ext. Bus Address Bit 13 Ext. Bus Address Bit 14 Ext. Bus Address Bit 15 Ext. Bus Address Bit 16 Ext. Bus Address Bit 17 Ext. Bus Address Bit 18 Ext. Bus Address Bit 19 Ext. Bus Address Bit 20 Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ Chip Select 4 Chip Select 5 Chip Select 6 Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Signal Chip select 0 Chip select 1 (Continued) 38 MB91360G Series Pin No. 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 Pin Name CS2X CS3X DREQ0 DACK0 DEOP0 VSS VDD35 AVRH AVCC AVSS AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 AN8 AN9 ALARM VSS VDD ATGX MD0 MD1 MD2 HSTX INITX TESTX CPUTESTX LTESTX VDD I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I ⎯ ⎯ I/O I I I I I I I I ⎯ General Circuit Type Purpose I/O Port P96 P97 PB0 PB1 PB2 ⎯ ⎯ ⎯ ⎯ ⎯ PH0 PH1 PH2 PH3 PH4 PH5 PH6 PH7 PG0 PG1 ⎯ ⎯ ⎯ P13 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ A A A A A ⎯ ⎯ R ⎯ ⎯ B B B B B B B B B B D ⎯ ⎯ A T T T E U E E E ⎯ Function Chip select 2 Chip select 3 DMA Request 0 DMA Acknowledge 0 DMA EOP 0 ⎯ Separated Ext. Bus VDD, 3.3 or 5.0 V Analog Reference High Analog VCC Analog VSS, Analog Reference Low ADC Input 0 ADC Input 1 ADC Input 2 ADC Input 3 ADC Input 4 ADC Input 5 ADC Input 6 ADC Input 7 ADC Input 8 ADC Input 9 Alarm Comparator Input ⎯ ⎯ ADC Trigger Input Mode Pin 0 Mode Pin 1 Mode Pin 2 Hardware Standby Initual Pin Test Input (should be connected to VDD) Test Input (should be connected to VDD) Test Input (should be connected to VDD) ⎯ (Continued) 39 MB91360G Series Pin No. 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 Pin Name VSS INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 SGO SGA SDA SCL SOT4 SIN4 SCK4 SIN3 SOT3 SCK3 VSS VDDI VDDI VDDI VDDI VCC3C VSS TX0 RX0 TX1 RX1 SIN0 SOT0 VDD VSS I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O ⎯ ⎯ General Circuit Type Purpose I/O Port ⎯ PK0 PK1 PK2 PK3 PK4 PK5 PK6 PK7 PM0 PM1 PM2 PM3 PN0 PN1 PN2 PN3 PN4 PN5 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PP0 PP1 PP2 PP3 PQ0 PQ1 ⎯ ⎯ ⎯ A A A A A A A A A A Y Y A A A A A A ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Q Q Q Q A A ⎯ ⎯ Function ⎯ Ext. Interrupt 0 Ext. Interrupt 1 Ext. Interrupt 2 Ext. Interrupt 3 Ext. Interrupt 4 Ext. Interrupt 5 Ext. Interrupt 6 Ext. Interrupt 7 Sound Generator SGO Sound Generator SGA I2C SDA I2C SCL SIO Output SIO Input SIO Clock SIO Input SIO Output SIO Clock ⎯ Supply Voltage for Internal Regulator Supply Voltage for Internal Regulator Supply Voltage for Internal Regulator Supply Voltage for Internal Regulator Capacitor Pin for Internal Regulator ⎯ CAN 0 TX CAN 0 RX CAN 1 TX CAN 1 RX UART 0 Input UART 0 Output ⎯ ⎯ (Continued) 40 MB91360G Series Pin No. 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 Pin Name OCPA0 OCPA1 OCPA2 OCPA3 VDD X0 X1 VSS VDD MONCLK VSS VDD35 VSS WR3X WR2X WR1X WR0X RDY VDD35 VSS D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 I/O I/O I/O I/O I/O ⎯ I O ⎯ ⎯ O ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O General Circuit Type Purpose I/O Port PO0 PO1 PO2 PO3 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ A A A A ⎯ H H ⎯ ⎯ Q1 ⎯ ⎯ ⎯ S S S S S ⎯ ⎯ Q Q Q Q Q Q Q Q Q Q Q Q Q Q Function PPG Output PPG Output PPG Output PPG Output ⎯ 4 MHz Oscillator Pin 4 MHz Oscillator Pin ⎯ ⎯ System Clock Output ⎯ Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Ext. Bus Control Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ Ext. Bus Data Bit 0 Ext. Bus Data Bit 1 Ext. Bus Data Bit 2 Ext. Bus Data Bit 3 Ext. Bus Data Bit 4 Ext. Bus Data Bit 5 Ext. Bus Data Bit 6 Ext. Bus Data Bit 7 Ext. Bus Data Bit 8 Ext. Bus Data Bit 9 Ext. Bus Data Bit 10 Ext. Bus Data Bit 11 Ext. Bus Data Bit 12 Ext. Bus Data Bit 13 (Continued) 41 MB91360G Series (Continued) Pin No. 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 Pin Name D14 D15 VDD35 VSS D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 VDD35 VSS A0 A1 A2 A3 I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O General Circuit Type Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Q Q ⎯ ⎯ Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q Q ⎯ ⎯ Q Q Q Q Function Ext. Bus Data Bit 14 Ext. Bus Data Bit 15 Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ Ext. Bus Data Bit 16 Ext. Bus Data Bit 17 Ext. Bus Data Bit 18 Ext. Bus Data Bit 19 Ext. Bus Data Bit 20 Ext. Bus Data Bit 21 Ext. Bus Data Bit 22 Ext. Bus Data Bit 23 Ext. Bus Data Bit 24 Ext. Bus Data Bit 25 Ext. Bus Data Bit 26 Ext. Bus Data Bit 27 Ext. Bus Data Bit 28 Ext. Bus Data Bit 29 Ext. Bus Data Bit 30 Ext. Bus Data Bit 31 Separated Ext. Bus VDD, 3.3 or 5.0 V ⎯ Ext. Bus Address Bit 0 Ext. Bus Address Bit 1 Ext. Bus Address Bit 2 Ext. Bus Address Bit 3 Note : If pins VDD35 (9, 21, 40, 112, 119, 137, 155) are connected to a 3.3 V supply the external bus interface (pins 1-40, 112-160) can be operated at 3.3 V levels. 42 MB91360G Series • MB91F365GB/F366GB/F376G, MB91366GA I/O Pins and functions Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Pin Name VDD VSS PJ4 PJ5 PJ6 PJ7 PI3 VDD VSS SGO SGA SDA SCL VDD VSS AVRH AVCC AVSS AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 DA0 X0A DA1 28 29 X1A ALARM I/O ⎯ ⎯ I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O ⎯ ⎯ ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O O I O O I General Purpose I/O Port ⎯ ⎯ PJ4 PJ5 PJ6 PJ7 PI3 ⎯ ⎯ PM0 PM1 PM2 PM3 ⎯ ⎯ ⎯ ⎯ ⎯ PH0 PH1 PH2 PH3 PH4 PH5 PH6 PH7 ⎯ ⎯ ⎯ ⎯ ⎯ Circuit Type (Flash Device) ⎯ ⎯ A A A A A ⎯ ⎯ A A Y Y ⎯ ⎯ R ⎯ ⎯ B B B B B B B B C I C I D Circuit Type (ROM Device) ⎯ ⎯ A A A A A ⎯ ⎯ A A Y Y ⎯ ⎯ R ⎯ ⎯ B B B B B B B B C I C I D Analog Ref. High Analog VCC Analog Ref. Low/Analog VSS ADC Input ADC Input ADC Input ADC Input ADC Input ADC Input ADC Input ADC Input DAC Output (MB91F365GB) 32 kHz Osc. Pin (MB91F366GB/366GA/ MB91F376G) DAC Output (MB91F365GB) 32 kHz Osc. Pin (MB91F366GB/366GA/ MB91F376G) Alarm Comparator Input (Continued) Sound Gen. SGO Sound Gen. SGA I2C SDA (no internal pull-up) I2C SCL (no internal pull-up) ⎯ ⎯ Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port ⎯ ⎯ Function ⎯ ⎯ 43 MB91360G Series Pin No. 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 44 Pin Name VSS BOOT TESTX CPUTESTX VDD X0 X1 VSS MONCLK INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 VDD VCC3C VSS IN0 IN1 IN2 IN3 OUT0 OUT1 VDD MD0 MD1 MD2 INITX VDD VSS SOT4 I/O ⎯ I/O I I ⎯ I O ⎯ O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O ⎯ I I I I ⎯ ⎯ I/O General Purpose I/O Port ⎯ P93 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PK0 PK1 PK2 PK3 PK4 PK5 PK6 PK7 ⎯ ⎯ ⎯ PL0 PL1 PL2 PL3 PL4 PL5 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PN0 Circuit Type (Flash Device) ⎯ A E E ⎯ H H ⎯ G A A A A A A A A ⎯ ⎯ ⎯ A A A A A A ⎯ T T T U ⎯ ⎯ A Circuit Type (ROM Device) ⎯ A E E ⎯ H H ⎯ G A A A A A A A A ⎯ ⎯ ⎯ A A A A A A ⎯ F F F U ⎯ ⎯ A SIO Output ICU Input ICU Input ICU Input ICU Input OCU Output OCU Output Clock Output Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Test Mode Pin Test Mode Pin Function ⎯ BOOT Pin (see note) ⎯ 4 MHz Oscillator Pin 4 MHz Oscillator Pin ⎯ Internal Power Supply Voltage pin Capacitor Pin for Internal Power Supply. ⎯ Internal Power Supply Voltage pin Mode Pin Mode Pin Mode Pin Initial Pin Internal Power Supply Voltage pin ⎯ (Continued) MB91360G Series Pin No. 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 Pin Name SIN4 SCK4 SIN3 SOT3 SCK3 VSS OCPA0 OCPA1 OCPA2 OCPA3 OCPA4 OCPA5 OCPA6 OCPA7 TX0 RX0 TX1 RX1 VDD VSS SIN0 SOT0 SIN1 SOT1 PG0 PG1 PG2 PG3 PG4 PG5 VDD HVSS PWM1P0 PWM1M0 I/O I/O I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O General Purpose I/O Port PN1 PN2 PN3 PN4 PN5 ⎯ PO0 PO1 PO2 PO3 PO4 PO5 PO6 PO7 PP0 PP1 PP2 PP3 ⎯ ⎯ PQ0 PQ1 PQ2 PQ3 PG0 PG1 PG2 PG3 PG4 PG5 ⎯ ⎯ PR0 PR1 Circuit Type (Flash Device) A A A A A ⎯ A A A A A A A A Q Q Q Q ⎯ ⎯ A A A A A A A A A A ⎯ ⎯ K K Circuit Type (ROM Device) A A A A A ⎯ A A A A A A A A Q Q Q Q ⎯ ⎯ A A A A A A A A A A ⎯ ⎯ K K SMC VSS SMC 0 SMC 0 UART Input UART Output UART Input UART Output Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port PPG Output PPG Output PPG Output PPG Output PPG Output PPG Output PPG Output PPG Output CAN TX Output CAN RX Output CAN TX Output CAN RX Output SIO Input SIO Clock SIO Input SIO Output SIO Clock Function ⎯ ⎯ ⎯ ⎯ (Continued) 45 MB91360G Series (Continued) Pin No. 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Pin Name PWM2P0 PWM2M0 HVDD PWM1P1 PWM1M1 PWM2P1 PWM2M1 HVSS PWM1P2 PWM1M2 PWM2P2 PWM2M2 HVDD PWM1P3 PWM1M3 PWM2P3 PWM2M3 HVSS VDD PJ0 PJ1 PJ2 PJ3 I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O General Purpose I/O Port PR2 PR3 ⎯ PR4 PR5 PR6 PR7 ⎯ PS0 PS1 PS2 PS3 ⎯ PS4 PS5 PS6 PS7 ⎯ ⎯ PJ0 PJ1 PJ2 PJ3 Circuit Type (Flash Device) K M ⎯ K K K M ⎯ K K K M ⎯ K K K M ⎯ ⎯ A A A A Circuit Type (ROM Device) K M ⎯ K K K M ⎯ K K K M ⎯ K K K M ⎯ ⎯ A A A A Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port SMC 0 SMC 0 SMC VDD SMC 1 SMC 1 SMC 1 SMC 1 SMC VSS SMC 2 SMC 2 SMC 2 SMC 2 SMC VDD SMC 3 SMC 3 SMC 3 SMC 3 ⎯ ⎯ Function Note : Pin 31 (BOOT) should be low by default (pull down resistor) . To avoid disturbances in case of reset/boot, it should preferably only be used as output by any application. 46 MB91360G Series • MB91F367GB/F368GB I/O Pins and functions Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Pin Name VDD VSS PJ4 PJ5 PJ6 PJ7 PI3 VDD VSS PM0 PM1 SDA SCL VDD VSS AVRH AVCC AVSS AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 X0A N.C. X1A N.C. ALARM VSS BOOT I/O ⎯ ⎯ I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O ⎯ ⎯ ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I ⎯ O ⎯ I ⎯ I/O General Purpose I/O Port ⎯ ⎯ PJ4 PJ5 PJ6 PJ7 PI3 ⎯ ⎯ PM0 PM1 PM2 PM3 ⎯ ⎯ ⎯ ⎯ ⎯ PH0 PH1 PH2 PH3 PH4 PH5 PH6 PH7 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ P93 Circuit Type ⎯ ⎯ A A A A A ⎯ ⎯ A A Y Y ⎯ ⎯ R ⎯ ⎯ B B B B B B B B I ⎯ I ⎯ D ⎯ A BOOT Pin* (Continued) 47 Analog Ref. High Analog VCC Analog Ref. Low/Analog VSS ADC Input ADC Input ADC Input ADC Input ADC Input ADC Input ADC Input ADC Input 32 kHz Oscillator Pin (MB91F368GB) Not Connected (MB91F367GB) 32 kHz Oscillator Pin (MB91F368GB) Not Connected (MB91F367GB) Alarm Comparator Input ⎯ Digital I/O-Port Digital I/O-Port I2C SDA (no internal pull-up) I2C SCL (no internal pull-up) ⎯ ⎯ Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port ⎯ ⎯ Function ⎯ ⎯ MB91360G Series Pin No. 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 Pin Name TESTX CPUTESTX VDD X0 X1 VSS MONCLK INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 VDD VCC3C VSS IN0 IN1 IN2 IN3 OUT0 OUT1 VDD MD0 MD1 MD2 INITX VDD VSS SOT4 SIN4 SCK4 I/O I I ⎯ I O ⎯ O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ ⎯ I/O I/O I/O I/O I/O I/O ⎯ I I I I ⎯ ⎯ I/O I/O I/O General Purpose I/O Port ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PK0 PK1 PK2 PK3 PK4 PK5 PK6 PK7 ⎯ ⎯ ⎯ PL0 PL1 PL2 PL3 PL4 PL5 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ PN0 PN1 PN2 Circuit Type E E ⎯ H H ⎯ G A A A A A A A A ⎯ ⎯ ⎯ A A A A A A ⎯ T T T U ⎯ ⎯ A A A SIO Output SIO Input SIO Clock ICU Input ICU Input ICU Input ICU Input OCU Output OCU Output Clock output Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Ext. Interrupt Test mode pin Test mode pin Function ⎯ 4 MHz Oscillator Pin 4 MHz Oscillator Pin ⎯ Internal Power Supply Voltage pin Capacitor Pin for Internal Power Supply ⎯ Internal Power Supply Voltage pin Mode Pin Mode Pin Mode Pin Initial Pin Internal Power Supply Voltage pin ⎯ (Continued) 48 MB91360G Series Pin No. 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 Pin Name SIN3 SOT3 SCK3 VSS OCPA0 OCPA1 OCPA2 OCPA3 PO4 PO5 PO6 PO7 TX0 RX0 TX1 RX1 VDD VSS SIN0 SOT0 PQ2 PQ3 PG0 PG1 PG2 PG3 PG4 PG5 VDD VSS PR0 PR1 PR2 PR3 I/O I/O I/O I/O ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O General Purpose I/O Port PN3 PN4 PN5 ⎯ PO0 PO1 PO2 PO3 PO4 PO5 PO6 PO7 PP0 PP1 PP2 PP3 ⎯ ⎯ PQ0 PQ1 PQ2 PQ3 PG0 PG1 PG2 PG3 PG4 PG5 ⎯ ⎯ PR0 PR1 PR2 PR3 Circuit Type A A A ⎯ A A A A A A A A Q Q Q Q ⎯ ⎯ A A A A A A A A A A ⎯ ⎯ K K K M Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port UART Input UART Output Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port PPG Output PPG Output PPG Output PPG Output Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port CAN TX Output CAN RX Output CAN TX Output CAN RX Output SIO Input SIO Output SIO Clock Function ⎯ ⎯ ⎯ ⎯ ⎯ (Continued) 49 MB91360G Series (Continued) Pin No. 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Pin Name HVDD PR4 PR5 PR6 PR7 VSS PS0 PS1 PS2 PS3 HVDD PS4 PS5 PS6 PS7 VSS VDD PJ0 PJ1 PJ2 PJ3 I/O ⎯ I/O I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ I/O I/O I/O I/O ⎯ ⎯ I/O I/O I/O I/O General Purpose I/O Port ⎯ PR4 PR5 PR6 PR7 ⎯ PS0 PS1 PS2 PS3 ⎯ PS4 PS5 PS6 PS7 ⎯ ⎯ PJ0 PJ1 PJ2 PJ3 Circuit Type ⎯ K K K M ⎯ K K K M ⎯ K K K M ⎯ ⎯ A A A A Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port VDD for Ports R and S Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port ⎯ ⎯ Function VDD for Ports R and S Digital I/O-Port Digital I/O-Port Digital I/O-Port Digital I/O-Port ⎯ * : Pin 31 (BOOT) should be low by default (pull down resistor) . To avoid disturbances in case of reset/boot, it should preferably only be used as output by any application. 50 MB91360G Series ■ I/O CIRCUIT TYPE Type Circuit type Remarks • CMOS Automotive level Schmitt-Trigger Input • STOP control • IOH = 4 mA, IOL = 4 mA P Digital output A R N VSS Digital output Digital input Stop control Analog input R P Digital output • CMOS Automotive level Schmitt-Trigger Input • Analog Input • STOP control • IOH = 4 mA, IOL = 4 mA B R N VSS Digital output Digital input Stop control • Analog output VCC P C N VSS Analog output • Analog Input VCC P D R N VSS Analog input (Continued) 51 MB91360G Series Type VCC P Circuit type VCC P Remarks • CMOS Schmitt-Trigger Input • Pullup Resistor: 50 kΩ E R VSS N VSS Digital input • CMOS Schmitt-Trigger Input VCC P F R N VSS Digital input VCC P Digital output • Tristate Output • IOH = 4 mA, IOL = 4 mA G N VSS Digital output • 4 MHz Oscillator Pin X1 Clock input H X0 Stop control (Continued) 52 MB91360G Series Type Circuit type Remarks • 32 kHz Oscillator Pin X1A Clock input I X0A Stop control P Digital output • CMOS Automotive level Schmitt-Trigger Input • STOP control (LED) • IOH = 14 mA, IOL = 24 mA J R N VSS Digital output Digital input Stop control P Digital output • CMOS Automotive level Schmitt-Trigger Input • STOP control (SMC) • IOH = 30 mA, IOL = 30 mA • Typ slew rate of 40 ns K R N VSS Digital output Digital input Stop control VCC P Digital output • CMOS Input • 5 V or 3 V input • IOH = 4 mA, IOL = 4 mA L R N VSS Digital output Digital input (Continued) 53 MB91360G Series Type Circuit type Analog input Remarks • CMOS Automotive level Schmitt-Trigger Input • Analog Input • STOP control (SMC) • IOH = 30 mA, IOL = 30 mA • Typ slew rate of 40 ns R P Digital output M R N VSS Digital output Digital input Stop control Digital input VCC R • • • • CMOS Input Pulldown Resistor: 50 kΩ 5 V or 3 V input IOH = 4 mA, IOL = 4 mA N N VSS P Digital output N Digital output Digital input • CMOS Input • Pulldown Resistor: 50 kΩ • 5 V or 3 V input VCC R VCC P O N VSS N VSS VCC P • CMOS Input • 3 V input P R N VSS Digital input (Continued) 54 MB91360G Series Type Circuit type Remarks • Q : CMOS Input, STOP control, IOH = 4 mA, IOL = 4 mA • Q1 : CMOS Input, STOP control, IOH = 8 mA, IOL = 8 mA P Digital output Q/Q1 R N VSS Digital output Digital input Stop control VCC P P Digital output • • • • CMOS Schmitt-Trigger Input STOP control Pullup Resistor : 10 kΩ IOH = 4 mA, IOL = 4 mA S R VSS N Digital output Digital input Stop control • CMOS Input • Can withstand high VID for flash programming T Control signal MD Input R VCC P P VCC • CMOS Schmitt-Trigger Input • Pullup Resistor to the core : 50 kΩ • 3 V and 5 V input U R VSS N VSS Digital input (Continued) 55 MB91360G Series Type VCC P Circuit type • • • • Remarks CMOS Schmitt-Trigger Input STOP control Pullup Resistor: 50 kΩ IOH = 4 mA, IOL = 4 mA P Digital output V R VSS N Digital output Digital input Stop control 3V P Digital output • CMOS Input • 3 V input W R N VSS Digital output Digital input • Tristate Output, 3 V 3V P Digital output X N VSS Digital output P Digital output • CMOS Input in I2C mode operating as open drain outputs • STOP control • IOH = 3 mA, IOL = 3 mA Y R N VSS Digital output Digital input Stop control (Continued) 56 MB91360G Series (Continued) Type Circuit type 2 Remarks • I/O in I C mode operating as open drain outputs • CMOS Schmitt-Trigger Input • STOP control • IOH = 3 mA, IOL = 3 mA P Digital output YA R N VSS Digital output Digital input Stop control Note : Symbols used in circuit types (Common to all circuit diagrams) P : P channel transistor N : N channel transistor R : Diffusion resistor 57 MB91360G Series Circuit Type A B C D E F G H I J K L M N O P Q Q1 R S T U W X Y YA Description I/O, IOH = 4 mA / IOL = 4 mA, CMOS Automotive Schmitt-Trigger Input, STOP control I/O, IOH = 4 mA / IOL = 4 mA, CMOS Automotive Schmitt-Trigger Input, Analog Input, STOP control Analog Output Analog Input CMOS Schmitt-Trigger Input, Pull-up Resistor : 50 kΩ, CMOS Schmitt-Trigger Input Tristate Output, IOH = 4 mA / IOL = 4 mA 4 MHz Oscillator Pin 32 kHz Oscillator pin I/O, IOH = 14 mA / IOL = 24 mA, CMOS Automotive Schmitt-Trigger Input, STOP control (LED) I/O, IOH = 30 mA / IOL = 30 mA, CMOS Automotive Schmitt-Trigger Input, STOP control, slew rate improved for EMC (SMC) I/O, IOH = 4 mA / IOL = 4 mA, CMOS Input : 5 V or 3 V input I/O, IOH = 30 mA / IOL = 30 mA, CMOS Automotive Schmitt-Trigger Input, Analog Input, STOP control, slew rate improved for EMC (SMC) I/O, IOH = 4 mA / IOL = 4 mA, CMOS Input : 5 V or 3 V input, Pulldown Resistor: 50 kΩ CMOS Input : 5 V or 3 V input, Pulldown Resistor : 50 kΩ CMOS Input : 3 V input I/O, IOH = 4 mA / IOL = 4 mA, CMOS Input, STOP control I/O, IOH = 8 mA / IOL = 8 mA, CMOS Input, STOP control AVRL / AVRH Input I/O, IOH = 4 mA / IOL = 4 mA, CMOS Input, STOP control, Pull-up Resistor: 10 kΩ, CMOS Input, can withstand VID for flash programming CMOS Schmitt-Trigger Input, Pull-up Resistor : 50 kΩ, 3.3 V and 5 V inputs to core I/O, IOH = 4 mA / IOL = 4 mA, CMOS Input : 3 V input Tristate Output, IOH = 4 mA / IOL = 4 mA, 3 V I/O, IOH = 3 mA / IOL = 3 mA (I2C) , CMOS Input, STOP control I/O, IOH = 3 mA / IOL = 3 mA (I2C) , CMOS Schmitt-Trigger Input, STOP control 58 MB91360G Series ■ HANDLING DEVICES 1. Preventing Latch-up Latch-up may occur in a CMOS IC if a voltage greater than VDD or less than VSS is applied to an input or output pin or if the voltage applied between VDD and VSS exceeds the rating. If latch-up occurs, the power supply current increases rapidly resulting in thermal damage to circuit elements. Therefore, ensure that maximum ratings are not exceeded in circuit operation. 2. Connecting Unused Pins Leaving unused input pins open may result in misbehavior or latch up and possible permanent damage of the device. Therefore they must be tied to VDD or VSS through resistors. In this case those resistors should be more than 2 kΩ. Unused bidirectional pins should be set to the output state and can be left open, or the input state with the above described connection. The resistor of more than 2 kΩ is used to limit currents through the protection diodes. In case of voltages at the not used pin of 0.3 V or more below VSS or 0.3 V or more above VDD currents which could cause latch-up will flow through those diodes. 3. External Reset Input When inputting an “L” 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. 4. Power Supply Pins All VDD pins should be connected to the same potential (exception can be the external bus interface on F362GB and F369GA) . The analogue supply voltage (AVCC) must not be turned on before the digital supply voltage. If the external bus interface is supplied with 3.3 V this voltage also must not be turned on before the 5 V digital voltage has been switched on. If the supply voltage to the external bus interface is switched off (it may not be tristate but should be pulled low) it must be made sure that all related signals do not have a voltage higher than this pulled down supply. When multiple VDD and VSS pins are provided, be sure to connect all VDD and VSS pins to the power supply or ground externally. Although pins at the same potential are connected together in the internal device design so as to prevent malfunctions such as latch-up, connecting all VDD and VSS pins appropriately minimizes unwanted radiation, prevents malfunction of strobe signals due to increases in the ground level, and keeps the overall output current rating. Also, take care to connect VDD and VSS to current source in the lowest possible impedance. Connection of a ceramic bypass capacitor of approximately 0.1 µF between VDD and VSS close to the device is recommended. The MB91360G series contains a regulator. To use the device with the 5-V power supply, supply 5-V power to the VCC pins and be sure to connect a bypass capacitor of 10 µF parallel to 10 nF to the VCC3C pin for the regulator. [Use with 5-V power supply] 5V 5V VCC AVCC AVRH AVSS VSS GND 10 µF 10 nF VCC3C 59 MB91360G Series 5. Crystal Oscillator Circuit Noise in the vicinity of the X0 and X1 pins can be a cause of device malfunction. Design the circuit board so that X0, X1, the crystal oscillator (or ceramic oscillator) , and the bypass capacitor to ground are located as close to the device as possible. A printed circuit board design that surrounds the X0 and X1 pins with ground provides for stable operation and is strongly recommended. 6. Using an External Clock To use an external clock, drive X0 pin only and leave X1 pin open. Below is a diagram of how to use external clock. MB91360G Series X0 X1 7. Mode Pins Connect the mode pins (MD0 to MD2) directly to VDD or VSS. To prevent the device unintentionally entering test mode due to noise, lay out the printed circuit board so as to minimize the distance from the mode pins to VDD or VSS and to provide a low-impedance connection. 8. Turning the Power Supply on Immediately after power on always execute INIT at the INITX pin (start with a low level at 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 analogue supply voltage (AVCC) must not be turned on before the digital supply voltage. If the external bus interface is supplied with 3.3 V this voltage also must not be turned on before the 5 V digital voltage has been switched on. 9. A State in Turning Power on As long as the minimum operating voltage has not been reached during power-on the output pin levels are not guaranteed. 10. Note on During Operation of PLL Clock Mode If the PLL clock mode is selected, the microcontroller attempts to be working with the self-frequency of the selfoscillating circuit within the PLL even when there is no external oscillator or external clock input is stopped. Performance of this operation, however, cannot be guaranteed. 11. The Function of the Watchdog Timer The watchdog timer in this model has the functions watching that the program performs the delay of reset within a fixed period and resetting the CPU when the delay of reset is not performed because of the program malfunction. 60 MB91360G Series Therefore, once the function of the watchdog timer is enabled, the watchdog timer keeps on operating until the reset operation. As an exceptional processing, the watchdog timer performs the delay of reset automatically under the condition in which the CPU program operation is stopped. Please refer to the explanation item of the function of the watchdog timer about the exceptional condition. By the way, if above condition will be issued by the system program or hardware malfunction, a watchdog reset may be not performed. In this case please perform the reset operation (INIT) by using the external INITX pin. 61 MB91360G Series ■ BLOCK DIAGRAM Clock Generation FR50 Core Watchdog Timer User RAM D-bus 32 Instruction Cache/RAM 32 Bit Search Module F-bus RAM 32 32 Boot ROM 2 KB DMA Controller Bus Converter FlashMemory 32 External Bus External Bus Interface R-bus Adapter CAN 16 SIO Prescaler/ SIO ADC DAC External Interrupt U-Timer/ UART Sub clock Calibration I2C Reload Timer Alarm Comparator Real Time Clock Power Down Reset ICU Free Running Timer OCU Voltage Regulator LED Sound Generator Stepper Motor Control Prog. Pulse Generator 62 MB91360G Series ■ CPU CORE 1. Memory Space 0000 0000H Byte data I/O 0000 0100H Halfword data I/O 0000 0200H Word data I/O 0000 0400H Other I/O 0000 0800H Direct addressing area • Byte data access : 000H to 0FFH • Halfword data access: 000H to 1FFH • Word data access: 000H to 3FFH 000F FC00H Initial vector table area 000F FFFFH FFFF FFFFH 63 MB91360G Series 2. Dedicated Registers Each of the dedicated registers is used for a particular purpose. The dedicated registers consist of the program counter (PC) , program status (PS) , table base register (TBR) , return pointer (RP) , system stack pointer (SS P) , user stack pointer (USP) , and multiplication and division result registers (MDH/MDL) . 32 bits Program counter PC Initial value XXXX XXXXH (Indeterminate) Program status PS Table base register TBR 000F FC00H XXXX XXXXH (Indeterminate) 0000 0000H XXXX XXXXH (Indeterminate) XXXX XXXXH (Indeterminate) XXXX XXXXH (Indeterminate) Return pointer RP System stack pointer SSP User stack pointer USP Multiplication and division results resisters MDH MDL (1) Program status (PS) Bit position 31 ⎯ 20 16 ⎯ 10 87 0 ILM SCR CCR CCR : Condition Code Register SCR : System Condition Code Register ILM : Interrupt Level Mask 64 MB91360G Series (2) Condition code register (CCR) (Bit) 7 ⎯ 6 ⎯ 5 S 4 I 3 N 2 Z 1 V 0 C Initial value --00XXXXB (3) System condition code register (SCR) (Bit) 10 D1 9 D0 8 T Initial value XX0B (4) Interrupt level mask register (ILM) (Bit) 20 19 18 17 16 Initial value 01111B ILM4 ILM3 ILM2 ILM1 ILM0 65 MB91360G Series 3. General-Purpose Registers The general-purpose registers are CPU registers R0 to R15. The register are used as the accumulator for operations and as pointers (a field indicating an address) for memory access. The user can specify the purpose for which the general-purpose registers are used. Register bank structure 32-bits Initial value R0 R1 XXXX XXXXH R12 R13 R14 R15 AC (Accumulator) FP (Frame Pointer) SP (Stack Pointer) XXXX XXXXH 0000 0000H Among 16 general-purpose registers, the following registers assume a special purpose. This enhances some instructions. R13 : Virtual accumulator (AC) R14 : Frame pointer (FP) R15 : Stack pointer (SP) The initial value of R0 to R14 after a reset is indeterminate. The initial value of R15 is 00000000H (SSP value) . 66 MB91360G Series ■ MODE SETTING The FR50 of devices uses mode pins (MD2 to MD0) and a mode register (MODR) to set the operation mode. (1) Mode Pins Three mode pins (MD2 to MD0) are used to specify the reset mode vector access area. Mode Pins Reset vector Mode name Remarks access area MD2 MD1 MD0 0 0 0 0 0 1 Internal ROM mode vector External ROM mode vector ⎯ Internal External ⎯ The mode register is used to set the bus width. Reserved remaining settings (2) Mode Register (MODR) The data to be written to 0000 07FDH using mode vector fetch is called mode data. MODR is located at 0000 07FDH. After an operation mode has been set in MODR, the device operates in this operation mode. MODR is set only when a reset factor (INIT level) occurs. User programs cannot write data to MODR. < Mode Register (MODR) > Address 0000 07FDH 7 0 6 0 5 0 4 0 3 0 2 ROMA 1 WTH1 0 WTH0 Initial value XXXXXXXXB Operation mode setting bit [Bits 7 to 3] : (Reserved bits) Always set 00000 at bits 7 to 3. Operation is not guaranteed when other values are set. [Bit 2] : ROMA (internal ROM enable bit) The ROMA bit is used to set whether to validate the internal ROM area (F-bus memory area) . ROMA Function Remarks 0 1 External ROM mode Internal ROM mode Access to the F-bus area is external. 67 MB91360G Series [Bits 1 and 0] : WTH1 and WTH0 (bus width/single chip mode specifying bits) The WTH1 and WTH0 bits are used to set the bus width (valid when operation mode is external bus mode) and the single chip mode. When the operation mode is the external bus mode, this value is set at the BW1 and BW0 bits of AMD0 (CS0 area) . WTH1 WTH0 Function Remarks 0 0 1 1 0 1 0 1 8-bit bus width 16-bit bus width 32-bit bus width Single chip mode External bus mode External bus mode External bus mode (3) Fixed Vector If MB91360 series devices are started in mode MD[2 : 0] = 000, the internal fixed mode vector (FMV = 0x06) and the fixed reset vector are used. The fixed reset vector points to the start address of the internal Boot ROM. This enables access to the F-bus area, to the internal CAN modules and the internal flash memory. See also section Boot ROM. 68 MB91360G Series ■ I/O MAP • How to Read the I/O Map Register Address 000014H +0 PDRG [R/W] XXXXXX - +1 PDRH [R/W] XXXXXXXX +2 PDRI [R/W] ----XXXX +3 ⎯ Internal peripheral circuit Port data register Read/write attribute Register initial value after a reset (bit initial values) “1” : initial value “1”, ”0” : initial value “0”, “x” : initial value “X” (Undefined) , “-” indicates non-existent bits Register name (The register in column 1 is at address 4n, the register in column 2 at 4n + 1, and so on.) Address of far left of register (+0) , +1, +2, and +3 each increment the address by one. When performing word access, the register in column 1 is placed at the MSB end of the data. Note : Do not use RMW instructions on registers containing write-only (W) bits. RMW instructions (RMW : read-modify-write) : AND Rj, @Ri OR Rj, @Ri EOR Rj, @Ri ANDH Rj, @Ri ORH Rj, @Ri EORH Rj, @Ri ANDB Rj, @Ri ORB Rj, @Ri EORB Rj, @Ri BANDL #u4, @Ri BORL #u4, @Ri BEORL #u4, @Ri BANDH #u4, @Ri BORH #u4, @Ri BEORH #u4, @Ri The data in reserved areas and areas marked “⎯” is indeterminate. Do not use those areas. 69 MB91360G Series Address 000000H 000004H 000008H 00000CH 000010H 000014H 000018H 00001CH 000020H to 00003CH 000040H 000044H 000048H 00004CH 000050H 000054H 000058H 00005CH 000060H 000064H Register +0 Reserved Reserved PDR8 [R/W] XXXXXXXX PDRG [R/W] XXXXXXXX PDRK [R/W] XXXXXXXX PDRO [R/W] XXXXXXXX PDRS [R/W] XXXXXXXX +1 Reserved Reserved PDR9 [R/W] XXXXXXX1 ⎯ PDRH [R/W] XXXXXXXX PDRL [R/W] XXXXXXXX PDRP [R/W] XXXXXXXX ⎯ ⎯ EIRR [R/W] 00000000 DICR [R/W] -------0 ENIR [R/W] 00000000 HRCL [R/W, R] 0 - - 11111 ELVR [R/W] 00000000 00000000 CLKR2 [R/W] - - - - - 000 reserved PDRI [R/W] X---X--PDRM [R/W] - - - - XXXX PDRQ [R/W] - - XXXXXX ⎯ PDRJ [R/W] XXXXXXXX PDRN [R/W] - - XXXXXX PDRR [R/W] XXXXXXXX ⎯ +2 Reserved Reserved ⎯ +3 Reserved PDR7 [R/W] 1111XXXX PDRB [R/W] XXXXXXXX Block T-unit Port Data Register R-bus Port Data Register Reserved Ext int/NMI DLYI/I-unit RTC TMRLR0 [W] XXXXXXXX XXXXXXXX ⎯ TMRLR1 [W] XXXXXXXX XXXXXXXX ⎯ TMRLR2 [W] XXXXXXXX XXXXXXXX ⎯ SSR0 [R/W] 00001 - 00 ULS0 [R/W] - - - - 0000 SIDR0 [R/W] XXXXXXXX ⎯ TMR0 [R] XXXXXXXX XXXXXXXX TMCSR0 [R/W] - - - - 0000 - - - 00000 TMR1 [R] XXXXXXXX XXXXXXXX TMCSR1 [R/W] - - - - 0000 - - - 00000 TMR2 [R] XXXXXXXX XXXXXXXX TMCSR2 [R/W] - - - - 0000 - - - 00000 SCR0 [R/W, W] 00000100 ⎯ SMR0 [R/W, W] 00 - - 0 - 00 ⎯ Reload Timer 0 Reload Timer 1 Reload Timer 2 UART0 (Continued) 70 MB91360G Series Address 000068H 00006CH 000070H 000074H 000078H 00007CH 000080H 000084H 000088H 00008CH 000090H 000094H 000098H 00009CH 0000A0H 0000A4H 0000A8H 0000ACH 0000B0H 0000B4H Register +0 +1 +2 DRCL0 [W] -------SCR1 [R/W, W] 00000100 ⎯ DRCL1 [W] -------SCR2 [R/W, W] 00000100 ⎯ DRCL2 [W] -------SES0 [R/W] - - - - - - 00 SES1 [R/W] - - - - - - 00 CDCR1 [R/W] 0 - - - 1111 ⎯ ⎯ ⎯ ADMD [R/W, W] - - - X0000 ⎯ ⎯ ADCH [R/W] 00000000 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ADCS [R/W, W] 0000 - - 00 ADBL [R/W] -------0 +3 UTIMC0 [R/W] 0 - - - 0001 SMR1 [R/W, W] 00 - - 0 - 00 ⎯ UTIMC1 [R/W] 0 - - - 0001 SMR2 [R/W, W] 00 - - 0 - 00 ⎯ UTIMC2 [R/W] 0 - - - 0001 SDR0 [R/W] 00000000 SDR1 [R/W] 00000000 Reserved UTIM0/UTIMR0 [R/W] 00000000 00000000 SSR1 [R/W, R] 00001 - 00 ULS1 [R/W] - - - - 0000 SIDR1 [R/W] XXXXXXXX ⎯ Block U-TIMER 0 UART1 UTIM1/UTIMR1 [R/W] 00000000 00000000 SSR2 [R/W, R] 00001 - 00 ULS2 [R/W] - - - - 0000 SIDR2 [R/W] XXXXXXXX ⎯ U-TIMER 1 UART2 UTIM2/UTIMR2 [R/W] 00000000 00000000 SMCS0 [R/W, R] 00000010 - - - - 00-0 SMCS1 [R/W, R] 00000010 - - - - 00 - 0 CDCR0 [R/W] 0 - - - 1111 Reserved U-TIMER2 SIO 0 SIO 1 SIO 0/1 Prescaler Reserved Reserved ADCD [R/W] 000000XX XXXXXXXX ⎯ DACR [R/W] - - - - - 000 A/D Converter DADR0 [R/W] - - - - - - XX XXXXXXXX ⎯ IOTDBL1 [R/W] - - - - - 000 DDBL [R/W] -------0 ICS23 [R/W] 00000000 DADR1 [R/W] - - - - - - XX XXXXXXXX IOTDBL0 [R/W] - - - - - 000 ICS01 [R/W] 00000000 DAC IPCP0 [R] XXXXXXXX XXXXXXXX IPCP2 [R] XXXXXXXX XXXXXXXX IPCP1 [R] XXXXXXXX XXXXXXXX IPCP3 [R] XXXXXXXX XXXXXXXX Input Capture 0, 1, 2, 3 (Continued) 71 MB91360G Series Address 0000B8H 0000BCH 0000C0H 0000C4H 0000C8H Register +0 +1 +2 reserved OCCP1 [R/W] XXXXXXXX XXXXXXXX OCCP3 [R/W] XXXXXXXX XXXXXXXX ⎯ TCDT0 [R/W] XXXXXXXX XXXXXXXX TCDT1 [R/W] XXXXXXXX XXXXXXXX ZPD0 [R/W] 00000010 ZPD2 [R/W] 00000010 PWC20 [R/W] XXXXXXXX PWC21 [R/W] XXXXXXXX PWC22 [R/W] XXXXXXXX PWC23 [R/W] XXXXXXXX SMDBL0 [R/W] -------0 ⎯ SGAR [R/W] 00000000 ⎯ ⎯ WTHR [R/W] - - - 00000 PWC0 [R/W] - - 000 - - 0 PWC2 [R/W] - - 000 - - 0 PWC10 [R/W] XXXXXXXX PWC11 [R/W] XXXXXXXX PWC12 [R/W] XXXXXXXX PWC13 [R/W] XXXXXXXX SMDBL1 [R/W] ------0 SGDBL [R/W] -------0 SGFR [R/W] XXXXXXXX WTDBL [R/W] -------0 ⎯ TCCS0 [R/W] - 0000000 TCCS1 [R/W] - 0000000 PWC1 [R/W] 00000 - - 0 PWC3 [R/W] 00000 - - 0 PWS10 [R/W] - - 000000 PWS11 [R/W] - - 000000 PWS12 [R/W] - - 000000 PWS13 [R/W] - - 000000 SMDBL3 [R/W] -------0 +3 OCS01 [R/W] - - - 0 - - 00 0000 - - 00 OCCP0 [R/W] XXXXXXXX XXXXXXXX OCCP2 [R/W] XXXXXXXX XXXXXXXX Block Output Compare 0, 1, 2.3 Reserved Free Running Counter 0 for ICU/OCU Free Running Counter 1 for ICU/OCU SMC 0, 1 SMC 2, 3 SMC 0 SMC 1 SMC 2 SMC 3 SMC 0, 1, 2, 3 0000CCH ⎯ ZPD1 [R/W] 00000010 ZPD3 [R/W] 00000010 PWS20 [R/W] - 0000000 PWS21 [R/W] - 0000000 PWS22 [R/W] - 0000000 PWS23 [R/W] - 0000000 SMDBL2 [R/W] -------0 0000D0H 0000D4H 0000D8H 0000DCH 0000E0H 0000E4H 0000E8H 0000ECH 0000F0H 0000F4H 0000F8H 0000FCH 000100H 000104H SGCR [R/W, R] 0 - - - - - 00 000 - - 000 SGTR [R/W] XXXXXXXX SGDR [R/W] XXXXXXXX Sound generator WTCR [R/W, R] 00000000 000 - 00 - 0 Real Time Clock (WatchTimer) WTBR [R/W] - - - XXXXX XXXXXXXX XXXXXXXX WTMR [R/W] - - 000000 WTSR [R/W] - - 000000 ⎯ TMRLR3 [W] XXXXXXXX XXXXXXXX ⎯ TMR3 [R] XXXXXXXX XXXXXXXX TMCSR3 [R/W] - - - - XX - - - - - XXXXX Reload Timer 3 (Continued) 72 MB91360G Series Address 000108H 00010CH 000110H 000114H 000118H 00011CH 000120H 000124H 000128H 00012CH 000130H 000134H 000138H 00013CH 000140H 000144H 000148H 00014CH 000150H 000154H Register +0 +1 +2 +3 TMRLR4 [W] XXXXXXXX XXXXXXXX ⎯ TMRLR5 [W] XXXXXXXX XXXXXXXX ⎯ GCN10 [R/W] 00110010 00010000 GCN11 [R/W] 00110010 00010000 PTMR0 [R] 11111111 11111111 PDUT0 [W] XXXXXXXX XXXXXXXX PTMR1 [R] 11111111 11111111 PDUT1 [W] XXXXXXXX XXXXXXXX PTMR2 [R] 11111111 11111111 PDUT2 [W] XXXXXXXX XXXXXXXX PTMR3 [R] 11111111 11111111 PDUT3 [W] XXXXXXXX XXXXXXXX PTMR4 [R] 11111111 11111111 PDUT4 [W] XXXXXXXX XXXXXXXX PTMR5 [R] 11111111 11111111 PDUT5 [W] XXXXXXXX XXXXXXXX PTMR6 [R] 11111111 11111111 PDUT 6 [W] XXXXXXXX XXXXXXXX TMR4 [R] XXXXXXXX XXXXXXXX TMCSR4 [R/W] - - - - XX - - - - - XXXXX TMR5 [R] XXXXXXXX XXXXXXXX TMCSR5 [R/W] - - - - XX - - - - - XXXXX PDBL0 [R/W] - - - 00000 PDBL1 [R/W] - - - 00000 GCN20 [R/W] - - - - 0000 GCN21 [R/W] - - - - 0000 Block Reload Timer 4 Reload Timer 5 PWM Control 0 PWM Control 1 PCSR0 [W] XXXXXXXX XXXXXXXX PCNH0 [R/W] 0000000 PCNL0 [R/W] 000000 - 0 PWM0 PCSR1 [W] XXXXXXXX XXXXXXXX PCNH1 [R/W] 0000000 PCNL1 [R/W] 000000 - 0 PWM1 PCSR2 [W] XXXXXXXX XXXXXXXX PCNH2 [R/W] 0000000 PCNL2 [R/W] 000000 - 0 PWM2 PCSR3 [W] XXXXXXXX XXXXXXXX PCNH3 [R/W] 0000000 PCNL3 [R/W] 000000 - 0 PWM3 PCSR4 [W] XXXXXXXX XXXXXXXX PCNH4 [R/W] 0000000 PCNL4 [R/W] 000000 - 0 PWM4 PCSR5 [W] XXXXXXXX XXXXXXXX PCNH5 [R/W] 0000000 PCNL5 [R/W] 000000 - 0 PWM5 PCSR6 [W] XXXXXXXX XXXXXXXX PCNH6 [R/W] 0000000 PCNL6 [R/W] 000000 - 0 PWM6 (Continued) 73 MB91360G Series Address 000158H 00015CH 000160H 000164H 000168H 00016CH 000170H 000174H 000178H 00017CH 000180H 000184H 000188H 00018CH 000190H 000194H 000198H to 0001F8H 0001FCH 000200H 000204H Register +0 +1 +2 +3 PTMR7 [R] 11111111 11111111 PDUT7 [W] XXXXXXXX XXXXXXXX ⎯ CMCR [R/W] 11111111 0000000 CMLS0 [R/W] 01110111 1111111 CMLS2 [R/W] 01110111 1111111 CMLT0 [R/W, R] - - - - -100 00000010 CMLT2 [R/W] - - - - -100 00000010 CMAC [R/W] 11111111 1111111 ⎯ ACCDBL[R/W] -------0 IBCR2 [R/W] 00000000 ITMKH [R/W, R] 00 - - - - 11 IDARH [-] 00000000 PDRCR [R/W] - - - - - 000 ACSR [R/W, R] -11XXX00 IBSR2 [R] 00000000 ITMKL [R/W] 11111111 IDAR2 [R/W] 00000000 CMPR [R/W] - - - -1001 1 - - -0001 CMLS1 [R/W] 01110111 1111111 CMLS3 [R/W] 01110111 1111111 CMLT1 [R/W, R] 11110100 00000010 CMLT3 [R/W, R] - - - - -100 00000010 CMTS [R] - -000001 01111111 ⎯ ⎯ ITBAH [R/W] - - - - - - 00 ISMK [R/W] 01111111 ICCR2 [R/W] - 0011111 ⎯ ⎯ ITBAL [R/W] 00000000 ISBA [R/W] - 0000000 IDBL2 [R/W] -------0 PCSR7 [W] XXXXXXXX XXXXXXXX PCNH7 [R/W] 0000000 PCNL7 [R/W] 000000 - 0 Block PWM7 Reserved Clock Modulation Power down reset Alarm comparator I2C (new) CUCR [R/W, R] - - - - - - - - - - - 0 - -00 CUTR1 [R] - - - - - - - - 00000000 ⎯ ⎯ ⎯ CUTD [R/W] 10000000 00000000 CUTR2 [R] 00000000 00000000 Calibration Unit of 32 kHz oscillator Reserved F362MD [R/W] 00000000 ⎯ F362GB Mode Register DMACA0 [R/W] 00000000 0000XXXX XXXXXXXX XXXXXXXX DMACB0 [R/W] 00000000 00000000 XXXXXXXX XXXXXXXX DMAC (Continued) 74 MB91360G Series Address 000208H 00020CH 000210H 000214H 000218H 00021CH 000220H 000224H 000228H to 00023CH 000240H 000244H to 0002FCH 000300H 000304H 000308H to 0003E0H 0003E4H 0003E8H to 0003ECH Register +0 +1 +2 +3 DMACA1 [R/W] 00000000 0000XXXX XXXXXXXX XXXXXXXX DMACB1 [R/W] 00000000 00000000 XXXXXXXX XXXXXXXX DMACA2 [R/W] 00000000 0000XXXX XXXXXXXX XXXXXXXX DMACB2 [R/W] 00000000 00000000 XXXXXXXX XXXXXXXX DMACA3 [R/W] 00000000 0000XXXX XXXXXXXX XXXXXXXX DMACB3 [R/W] 00000000 00000000 XXXXXXXX XXXXXXXX DMACA4 [R/W] 00000000 0000XXXX XXXXXXXX XXXXXXXX DMACB4 [R/W] 00000000 00000000 XXXXXXXX XXXXXXXX ⎯ DMACR [R/W] 00 - - 0000 - - - - - - - - - - - - - - - - - - - - - - - ⎯ IRBS [R/W, R] 00000000 00000001 00100000 - - - - - - - ⎯ ⎯ ⎯ ⎯ ICHCR [R/W] 0-000000 ISIZE [R/W] - - - - - -11 Block DMAC Reserved Instruction Cache Reserved Instruction Cache Reserved (Continued) 75 MB91360G Series Address 0003F0H 0003F4H 0003F8H 0003FCH 000400H 000404H 000408H 00040CH 000410H 000414H 000418H 00041CH 000420H to 00043CH 000440H 000444H 000448H 00044CH 000450H 000454H 000458H Register +0 +1 +2 +3 BSD0 [W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX BSD1 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX BSDC [W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX BSRR [R] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DDRG [R/W] 00000000 DDRK [R/W] 00000000 DDRO [R/W] 00000000 DDRS [R/W] 00000000 PFRG [R/W] 00000000 PFRK [R/W] 00000000 PFRO [R/W] 00000000 PFRS [R/W] 00000000 DDRH [R/W] 00000000 DDRL [R/W] 00000000 DDRP [R/W] 00000000 ⎯ PFRH [R/W] 00000000 PFRL [R/W] 00000000 PFRP [R/W] 00000000 ⎯ ⎯ ICR00 [R/W, R] - - -11111 ICR04 [R/W, R] - - -11111 ICR08 [R/W, R] - - -11111 ICR12 [R/W, R] - - -11111 ICR16 [R/W, R] - - -11111 ICR20 [R/W, R] - - -11111 ICR24 [R/W, R] - - -11111 ICR01 [R/W, R] - - -11111 ICR05 [R/W, R] - - -11111 ICR09 [R/W, R] - - -11111 ICR13 [R/W, R] - - -11111 ICR17 [R/W, R] - - -11111 ICR21 [R/W, R] - - -11111 ICR25 [R/W, R] - - -11111 ICR02 [R/W, R] - - -11111 ICR06 [R/W, R] - - -11111 ICR10 [R/W, R] - - -11111 ICR14 [R/W, R] - - -11111 ICR18 [R/W, R] - - -11111 ICR22 [R/W, R] - - -11111 ICR26 [R/W, R] - - -11111 ICR03 [R/W, R] - - -11111 ICR07 [R/W, R] - - -11111 ICR11 [R/W, R] - - -11111 ICR15 [R/W, R] - - -11111 ICR19 [R/W, R] - - -11111 ICR23 [R/W, R] - - -11111 ICR27 [R/W, R] - - -11111 DDRI [R/W] - - - -0- - DDRM [R/W] - - - -0000 DDRQ [R/W] - -000000 ⎯ PFRI [R/W] - - - -0- - PFRM [R/W] - - - -0000 PFRQ [R/W] - -000000 ⎯ DDRJ [R/W] 00000000 DDRN [R/W] - -000000 DDRR [R/W] 00000000 ⎯ PFRJ [R/W] 00000000 PFRN [R/W] - -000000 PFRR [R/W] 00000000 ⎯ Block Bit Search Module R-bus Data Direction Register R-bus Port Function Register Reserved Interrupt Control unit (Continued) 76 MB91360G Series Address 00045CH 000460H 000464H 000468H 00046CH 000470H to 00047CH 000480H 000484H 000488H to 0005FCH 000600H 000604H 000608H 00060CH 000610H 000614H 000618H 00061CH 000620H 000624H 000628H to 00063FH Register +0 ICR28 [R/W, R] - - -11111 ICR32 [R/W, R] - - -11111 ICR36 [R/W, R] - - -11111 ICR40 [R/W, R] - - -11111 ICR44 [R/W, R] - - -11111 +1 ICR29 [R/W, R] - - -11111 ICR33 [R/W, R] - - -11111 ICR37 [R/W, R] - - -11111 ICR41 [R/W, R] - - -11111 ICR45 [R/W, R] - - -11111 ⎯ RSRR [R, R/W] 10000-00 CLKR [R/W] 00000000 STCR [R/W] 00110011 WPR [W] XXXXXXXX ⎯ ⎯ ⎯ DDR8 [R/W] 00000000 ⎯ ⎯ PFR8 [R/W] 111110-⎯ ⎯ DDR9 [R/W] 00000000 ⎯ ⎯ ⎯ PFR9 [R/W] 11110101 ⎯ ⎯ ⎯ ⎯ PFR27 [R/W] 1111-00⎯ ⎯ ⎯ ⎯ PFR7 [R/W] 00001111 PFRB [R/W] 00000000 ⎯ ⎯ ⎯ ⎯ DDR7 [R/W] 00000000 DDRB [R/W] 00000000 TBCR [R/W] 00XXXX00 DIVR0 [R/W] 00000011 CTBR [W] XXXXXXXX DIVR1 [R/W] 00000000 +2 ICR30 [R/W, R] - - -11111 ICR34 [R/W, R] - - -11111 ICR38 [R/W, R] - - -11111 ICR42 [R/W, R] - - -11111 ICR46 [R/W, R] - - -11111 +3 ICR31 [R/W, R] - - -11111 ICR35 [R/W, R] - - -11111 ICR39 [R/W, R] - - -11111 ICR43 [R/W, R] - - -11111 ICR47 [R/W, R] - - -11111 Block Interrupt Control unit Reserved Clock Control unit Reserved T-unit Port Direction Register T-unit Port Function Register Reserved (Continued) 77 MB91360G Series Address 000640H 000644H 000648H 00064CH 000650H 000654H 000658H 00065CH 000660H 000664H 000668H 00066CH 000670H 000674H to 0007F8H 0007FCH 000800H to 000AFCH Register +0 +1 +2 +3 ASR0 [W] 00000000 00000000 ASR1 [W] 00000000 00000000 ASR2 [W] 00000000 00000000 ASR3 [W] 00000000 00000000 ASR4 [W] 00000000 00000000 ASR5 [W] 00000000 00000000 ASR6 [W] 00000000 00000000 ASR7 [W] 00000000 00000000 AMD0 [R/W] -0000111 AMD4 [R/W] - -000000 CSE 11000011 ⎯ CHE 11111111 ⎯ ⎯ ⎯ MODR [W] XXXXXXXX ⎯ ⎯ ⎯ AMD1 [R/W] -0000000 AMD5 [R/W] - -000000 ⎯ AMR0 [W] 11111000 11111111 AMR1 [W] 00000000 00000000 AMR2 [W] 00000000 00000000 AMR3 [W] 00000000 00000000 AMR4 [W] 00000000 00000000 AMR5 [W] 00000000 00000000 AMR6 [W] 00000000 00000000 AMR7 [W] 00000000 00000000 AMD2 [R/W] - -000000 AMD6 [R/W] - -000000 ⎯ ⎯ ⎯ AMD3 [R/W] - -000000 AMD7 [R/W] - -000000 ⎯ Block T-unit Reserved Mode Register Reserved (Continued) 78 MB91360G Series Address 000B00H 000B04H 000B08H 000B0CH 000B10H 000B14H to 000B1CH 000B20H 000B24H 000B28H 000B2CH 000B30H 000B34H 000B38H 000B3CH 000B40H 000B44H 000B48H 000B4CH 000B50H 000B54H Register +0 ESTS0 X0000000 ECTL0 0X000000 ECNT0 XXXXXXXX +1 ESTS1 XXXXXXXX ECTL1 00000000 ECNT1 XXXXXXXX +2 ESTS2 XXXXXXXX ECTL2 000X0000 EUSA XXX0000X ⎯ EDTR1 XXXXXXXX XXXXXXXX ⎯ EIA0 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA1 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA2 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA3 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA4 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA5 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA6 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIA7 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EDTA XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EDTM XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EOA0 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EOA1 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EPCR XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EPSR XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX +3 ⎯ ECTL3 00000X11 EDTC 0000XXXX Block EWPT XXXXXXXX XXXXXXXX EDTR0 XXXXXXXX XXXXXXXX DSU (Continued) 79 MB91360G Series Address 000B58H 000B5CH 000B60H 000B64H 000B68H 000B6CH 001000H 001004H 001008H 00100CH 001010H 001014H 001018H 00101CH 001020H 001024H 001028H to 003FFCH 004000H to 006FFFH Register +0 +1 +2 +3 EIAM0 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EIAM1 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EOAM0/EODM0 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EOAM1/EODM1 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EOD0 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX EOD1 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMASA0 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMADA0 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMASA1 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMADA1 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMASA2 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMADA2 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMASA3 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMADA3 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMASA4 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DMADA4 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX ⎯ Block DSU DMAC Reserved ⎯ Reserved (Continued) 80 MB91360G Series Address 007000H 007004H 007008H to 00FFFCH 010000H to 010FFCH 011000H to 011FFCH 012000H to 01FFFCH 020000H to 03BFFCH 03C000H to 03FFFCH 040000H to 043FFCH 044000H to 0FEFFCH 050000H to 0507FCH 050800H to 07FFF4H Register +0 FMCS [R, R/W] 1110X000 FMWT [R/W] -0000011 +1 ⎯ ⎯ ⎯ +2 ⎯ ⎯ +3 ⎯ ⎯ Block Flash Memory Control Register Reserved Cache memory is only available on MB91FV360GA. I-Cache 4 KB Not available on MB91F364G. On MB91FV360GA, the cache memory can be used in I-RAM mode. ⎯ I-RAM 4 4 KB Reserved ⎯ Reserved User RAM 16 KB (D-bus) Fast RAM 16 KB (F-bus) MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. MB91F362GB, MB91F364G : Only 12 KB (03D000H to 03FFCH) MB91F362GB, MB91F364G : Only 4 KB (040000H to 040FFCH) ⎯ Reserved Boot ROM 2 KB (F-bus) reserved ⎯ ⎯ (Continued) 81 MB91360G Series Address 080000H to 09FFFCH 0A0000H to 0BFFFCH 0C0000H to 0DFFFCH 0E0000H to 0EFFFCH 0F0000H to 0F3FFCH 0F4000H to 0F7FFCH 0F8000H to 0FFFF4H 0FFFF8H 0FFFFCH Register +0 Sector 0 64 KB Sector 1 64 KB Sector 2 64 KB Sector 3 32 KB Sector 4 8 KB Sector 5 8 KB Sector 6 16 KB FMV [R] 06 00 00 00H FRV [R] 00 05 00 00H (MB91F376G : 00 04 40 00H) +1 +2 Sector 7 64 KB Sector 8 64 KB Sector 9 64 KB 256 KB Flash on F-bus Sector 10 32 KB Sector 11 8 KB Sector 12 8 KB Sector 13 16 KB +3 Block Mode Vector Fixed Reset Vector Write operations to address 0FFFF8H and 0FFFFCH are not possible. When reading these addresses, the values shown above will be read. (Continued) Note : For the 256 KB Flash macro, used only on the MB91F364G. 82 MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. 512 KB Flash on F-bus MB91360G Series Address 100000H 100004H 100008H 10000CH 100010H 100014H 100018H 10001CH 100020H 100024H 100028H 10002CH to 100048H 10004CH 100050H 100054H 100058H 10005CH 100060H 100064H 100068H Register +0 +1 +2 +3 BVALR0 [R/W] 00000000 00000000 TCANR0 [W] 00000000 00000000 RCR0 [R/W] 00000000 00000000 ROVRR0 [R/W] 00000000 00000000 CSR0 [R/W, R] 00000000 00000001 RTEC0 [R] 00000000 00000000 IDER0 [R/W] XXXXXXXX XXXXXXXX RFWTR0 [R/W] XXXXXXXX XXXXXXXX TREQR0 [R/W] 00000000 00000000 TCR0 [R/W] 00000000 00000000 RRTRR0 [R/W] 00000000 00000000 RIER0 [R/W] 00000000 00000000 ⎯ LEIR0 [R/W] 000-0000 Block TRTRR0 [R/W] 00000000 00000000 TIER0 [R/W] 00000000 00000000 CAN 0 Remark : Address range for CAN 0 to CAN 3 depends on chip select range. Mentioned addresses are default values, determined by boot ROM contents. AMSR0 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX AMR00 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX AMR10 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX GENERAL PURPOSE RAM [R/W] IDR00 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR10 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR20 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR30 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR40 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR50 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR60 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR70 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX (Continued) 83 MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. BTR0 [R/W] -1111111 11111111 MB91360G Series Address 10006CH 100070H 100074H 100078H 10007CH 100080H 100084H 100088H 10008CH 100090H 100094H 100098H 10009CH 1000A0H 1000A4H 1000A8H Register +0 +1 +2 +3 IDR80 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR90 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR100 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR110 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR120 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX Block IDR140 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR150 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX DLCR00 [R/W] - - - - - - - - - - - - XXXX DLCR20 [R/W] - - - - - - - - - - - - XXXX DLCR40 [R/W] - - - - - - - - - - - - XXXX DLCR60 [R/W] - - - - - - - - - - - - XXXX DLCR80 [R/W] - - - - - - - - - - - - XXXX DLCR100 [R/W] - - - - - - - - - - - - XXXX DLCR120 [R/W] - - - - - - - - - - - - XXXX DLCR140 [R/W] - - - - - - - - - - - - XXXX DLCR10 [R/W] - - - - - - - - - - - - XXXX DLCR30 [R/W] - - - - - - - - - - - - XXXX DLCR50 [R/W] - - - - - - - - - - - - XXXX DLCR70 [R/W] - - - - - - - - - - - - XXXX DLCR90 [R/W] - - - - - - - - - - - - XXXX DLCR110 [R/W] - - - - - - - - - - - - XXXX DLCR130 [R/W] - - - - - - - - - - - - XXXX DLCR150 [R/W] - - - - - - - - - - - - XXXX CAN 0 1000ACH DTR00 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR10 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR20 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX (Continued) 1000B4H 1000BCH 84 MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. IDR130 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX MB91360G Series Address Register +0 +1 +2 +3 DTR30 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR40 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR50 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX Block 1000C4H 1000CCH 1000D4H 1000DCH 1000E4H DTR70 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR80 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR90 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR100 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR110 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR120 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR130 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR140 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR150 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX CREG0 [R/W] 00000000 00000110 ⎯ (Continued) 1000ECH 1000F4H CAN 0 1000FCH 100104H 10010CH 100114H 10011CH 100124H 10012CH 85 MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. DTR60 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX MB91360G Series Address 100200H 100204H 100208H 10020CH 100210H 100214H 100218H 10021CH 100220H 100224H 100228H 10022CH to 100248H 10024CH 100250H 100254H 100258H 10025CH 100260H 100264H Register +0 BVALR1 [R/W] 00000000 00000000 TCANR1 [W] 00000000 00000000 RCR1 [R/W] 00000000 00000000 ROVRR1 [R/W] 00000000 00000000 CSR1 [R/W, R] 00000000 00000001 RTEC1 [R] 00000000 00000000 IDER1 [R/W] XXXXXXXX XXXXXXXX RFWTR1 [R/W] XXXXXXXX XXXXXXXX +1 ⎯ +2 TREQR1 [R/W] 00000000 00000000 TCR1 [R/W] 00000000 00000000 RRTRR1 [R/W] 00000000 00000000 RIER1 [R/W] 00000000 00000000 +3 ⎯ Block BTR1 [R/W] -1111111 11111111 TRTRR1 [R/W] 00000000 00000000 TIER1 [R/W] 00000000 00000000 CAN 1 Remark : Address range for CAN 0 to CAN 3 depends on chip select range. Mentioned addresses are default values, determined by boot ROM contents. AMSR1 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX AMR01 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX AMR11 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX GENERAL PURPOSE RAM [R/W] IDR01 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR11 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR21[R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR31 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR41 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR51 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR61 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX (Continued) 86 MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. ⎯ LEIR1 [R/W] 000-0000 MB91360G Series Address 100268H 10026CH 100270H 100274H 100278H 10027CH 100280H 100284H 100288H 10028CH 100290H 100294H 100298H 10029CH 1002A0H 1002A4H 1002A8H Register +0 +1 +2 +3 IDR71 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR81 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR91 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX Block IDR111 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR121 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXX - - IDR131 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR141 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR151 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX DLCR01 [R/W] - - - - - - - - - - - - XXXX DLCR21 [R/W] - - - - - - - - - - - - XXXX DLCR41 [R/W] - - - - - - - - - - - - XXXX DLCR61 [R/W] - - - - - - - - - - - - XXXX DLCR81[R/W] - - - - - - - - - - - - XXXX DLCR101 [R/W] - - - - - - - - - - - - XXXX DLCR121 [R/W] - - - - - - - - - - - - XXXX DLCR141 [R/W] - - - - - - - - - - - - XXXX DLCR11 [R/W] - - - - - - - - - - - - XXXX DLCR31 [R/W] - - - - - - - - - - - - XXXX DLCR51 [R/W] - - - - - - - - - - - - XXXX DLCR71 [R/W] - - - - - - - - - - - - XXXX DLCR91 [R/W] - - - - - - - - - - - - XXXX DLCR111 [R/W] - - - - - - - - - - - - XXXX DLCR131 [R/W] - - - - - - - - - - - - XXXX DLCR151 [R/W] - - - - - - - - - - - - XXXX CAN 1 1002ACH DTR01 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX (Continued) MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. 87 IDR101 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX MB91360G Series Address Register +0 +1 +2 +3 DTR11 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR21 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR31 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX Block 1002B4H 1002BCH 1002C4H 1002CCH 1002D4H DTR51 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR61 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR71 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR81 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR91 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR101 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR111 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR121 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR131 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR141 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 1002DCH 1002E4H CAN 1 1002ECH 1002F4H 1002FCH 100304H 10030CH 100314H 10031CH (Continued) 88 MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. DTR41 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX MB91360G Series Address Register +0 +1 +2 +3 DTR151 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX CREG1 [R/W] 00000000 00000110 BVALR2 [R/W] 00000000 00000000 TCANR2 [W] 00000000 00000000 RCR2 [R/W] 00000000 00000000 ROVRR2 [R/W] 00000000 00000000 CSR2 [R/W, R] 00000000 00000001 RTEC2 [R] 00000000 00000000 IDER2 [R/W] XXXXXXXX XXXXXXXX RFWTR2 [R/W] XXXXXXXX XXXXXXXX ⎯ TREQR2 [R/W] 00000000 00000000 TCR2 [R/W] 00000000 00000000 RRTRR1 [R/W] 00000000 00000000 RIER2 [R/W] 00000000 00000000 ⎯ LEIR2 [R/W] 000-0000 Block MB91F376G : Please refer to the “■MB91F376G Special I/O Map”. 100324H CAN 1 10032CH 100400H 100404H 100408H 10040CH 100410H 100414H 100418H 10041CH 100420H 100424H 100428H 10042CH to 100448H 10044CH 100450H 100454H 100458H 10045CH BTR2 [R/W] -1111111 11111111 TRTRR2 [R/W] 00000000 00000000 TIER2 [R/W] 00000000 00000000 CAN 2 Remark : Address range for CAN 0 to CAN 3 depends on chip select range. Mentioned addresses are default values, determined by boot ROM contents. AMSR2 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX AMR02 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX AMR12 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX GENERAL PURPOSE RAM [R/W] IDR02 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR12 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR22[R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR32 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR42 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX (Continued) 89 MB91360G Series Address 100460H 100464H 100468H 10046CH 100470H 100474H 100478H 10047CH 100480H 100484H 100488H 10048CH 100490H 100494H 100498H 10049CH 1004A0H 1004A4H 1004A8H Register +0 +1 +2 +3 IDR52 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR62 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR72 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR82 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR92 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR102 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR112 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR122 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXX - - IDR132 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR142 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR152 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX DLCR02 [R/W] - - - - - - - - - - - - XXXX DLCR22 [R/W] - - - - - - - - - - - - XXXX DLCR42 [R/W] - - - - - - - - - - - - XXXX DLCR62 [R/W] - - - - - - - - - - - - XXXX DLCR82[R/W] - - - - - - - - - - - - XXXX DLCR102 [R/W] - - - - - - - - - - - - XXXX DLCR122 [R/W] - - - - - - - - - - - - XXXX DLCR142 [R/W] - - - - - - - - - - - - XXXX DLCR12 [R/W] - - - - - - - - - - - - XXXX DLCR32 [R/W] - - - - - - - - - - - - XXXX DLCR52 [R/W] - - - - - - - - - - - - XXXX DLCR72 [R/W] - - - - - - - - - - - - XXXX DLCR92 [R/W] - - - - - - - - - - - - XXXX DLCR112 [R/W] - - - - - - - - - - - - XXXX DLCR132 [R/W] - - - - - - - - - - - - XXXX DLCR152 [R/W] - - - - - - - - - - - - XXXX Block CAN 2 (Continued) 90 MB91360G Series Address Register +0 +1 +2 +3 DTR02 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR12 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR22 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR32 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR42 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR52 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR62 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR72 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR82 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR92 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR102 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR112 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR122 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR132 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX Block 1004ACH 1004B4H 1004BCH 1004C4H 1004CCH 1004D4H 1004DCH CAN 2 1004E4H 1004ECH 1004F4H 1004FCH 100504H 10050CH 100514H (Continued) 91 MB91360G Series Address Register +0 +1 +2 +3 DTR142 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR152 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX CREG2 [R/W] 00000000 00000110 BVALR3 [R/W] 00000000 00000000 TCANR3 [W] 00000000 00000000 RCR3 [R/W] 00000000 00000000 ROVRR3 [R/W] 00000000 00000000 CSR3 [R/W, R] 00000000 00000001 RTEC3 [R] 00000000 00000000 IDER3 [R/W] XXXXXXXX XXXXXXXX RFWTR3 [R/W] XXXXXXXX XXXXXXXX ⎯ TREQR3 [R/W] 00000000 00000000 TCR3 [R/W] 00000000 00000000 RRTRR31 [R/W] 00000000 00000000 RIER3 [R/W] 00000000 00000000 ⎯ LEIR3 [R/W] 000-0000 Block 10051CH 100524H CAN 2 10052CH 100600H 100604H 100608H 10060CH 100610H 100614H 100618H 10061CH 100620H 100624H 100628H 10062CH to 100648H 10064CH 100650H 100654H 100658H BTR3 [R/W] -1111111 11111111 TRTRR3 [R/W] 00000000 00000000 TIER3 [R/W] 00000000 00000000 CAN 3 Remark : Address range for CAN 0 to CAN 3 depends on chip select range. Mentioned addresses are default values, determined by boot ROM contents. AMSR3 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX AMR03 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX AMR13 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX GENERAL PURPOSE RAM [R/W] IDR03 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR13 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR23[R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR33 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX (Continued) 92 MB91360G Series Address 10065CH 100660H 100664H 100668H 10066CH 100670H 100674H 100678H 10067CH 100680H 100684H 100688H 10068CH 100690H 100694H 100698H 10069CH 1006A0H 1006A4H 1006A8H Register +0 +1 +2 +3 IDR43 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR53 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR63 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR73 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR83 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR93 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR103 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR113 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR123 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXX - - IDR133 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR143 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX IDR153 [R/W] XXXXXXXX XXXXXXXX XXXXX - - - XXXXXXXX DLCR032 [R/W] - - - - - - - - - - - - XXXX DLCR232 [R/W] - - - - - - - - - - - - XXXX DLCR43 [R/W] - - - - - - - - - - - - XXXX DLCR63 [R/W] - - - - - - - - - - - - XXXX DLCR83[R/W] - - - - - - - - - - - - XXXX DLCR103 [R/W] - - - - - - - - - - - - XXXX DLCR123 [R/W] - - - - - - - - - - - - XXXX DLCR143 [R/W] - - - - - - - - - - - - XXXX DLCR13 [R/W] - - - - - - - - - - - - XXXX DLCR33 [R/W] - - - - - - - - - - - - XXXX DLCR53 [R/W] - - - - - - - - - - - - XXXX DLCR733 [R/W] - - - - - - - - - - - - XXXX DLCR93 [R/W] - - - - - - - - - - - - XXXX DLCR113 [R/W] - - - - - - - - - - - - XXXX DLCR133 [R/W] - - - - - - - - - - - - XXXX DLCR153 [R/W] - - - - - - - - - - - - XXXX Block CAN 3 (Continued) 93 MB91360G Series Address Register +0 +1 +2 +3 DTR03 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR13 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR23 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR33 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR43 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR53 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR63 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR73 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR83 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR93 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR103 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR113 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR123 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR133 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX Block 1006ACH 1006B4H 1006BCH 1006C4H 1006CCH 1006D4H 1006DCH CAN 3 1006E4H 1006ECH 1006F4H 1006FCH 100704H 10070CH 100714H (Continued) 94 MB91360G Series (Continued) Address Register +0 +1 +2 +3 DTR143 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR153 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX CREG3 [R/W] 00000000 00000110 ⎯ CAN 3 Block 10071CH 100724H 10072CH Note : Data in reserved areas and in the areas marked with “⎯” is indeterminate. Do not use these areas. 95 MB91360G Series ■ MB91F376G SPECIAL I/O MAP Address 044000H to 0447FCH 044800H to 05FFFCH 060000H to 07FFFCH 080000H to 09FFFCH 0A0000H to 0BFFFCH 0C0000H to 0DFFFCH 0E0000H to 0EFFFCH 0F0000H to 0F3FFCH 0F4000H to 0F7FFCH 0F8000H to 0FFFFCH 100000H to 11FFFCH 120000H to 13FFFCH Sector 0 (parity) 56 KB Sector 1 64 KB Sector 4 64 KB Sector 5 64 KB Sector 6 64 KB Sector 7 32 KB Sector 8 8 KB Sector 9 8 KB Sector 10 16 KB Register +0 +1 ________ +2 +3 Block Boot ROM 2 KB (F-bus) Sector 2 (parity) 56 KB Sector 3 64 KB Sector 11 64 KB Sector 12 64 KB Sector 13 64 KB Sector 14 32 KB Sector 15 8 KB Sector 16 8 KB Sector 17 16 KB Flash Memory 768 KB (F-bus) Fixed Mode and Reset Vector Sector 0 - mirrored 64 KB Sector 1 - mirrored 64 KB Sector 2 - mirrored 64 KB Sector 3 - mirrored 64 KB (Continued) 96 MB91360G Series Address 200000H 200004H 200008H 20000CH 200010H 200014H 200018H 20001CH 200020H 200024H 200028H 20002CH to 200048H 20004CH 200050H 200054H 200058H 20005CH 200060H 200064H 200068H Register +0 +1 +2 +3 BVALR0 [R/W] 00000000 00000000 TCANR0 [W] 00000000 00000000 RCR0 [R/W] 00000000 00000000 ROVRR0 [R/W] 00000000 00000000 CSR0 [R/W, R] 00000000 00000001 RTEC0 [R] 00000000 00000000 IDER0 [R/W] XXXXXXXX XXXXXXXX RFWTR0 [R/W] XXXXXXXX XXXXXXXX TREQR0 [R/W] 00000000 00000000 TCR0 [R/W] 00000000 00000000 RRTRR0 [R/W] 00000000 00000000 RIER0 [R/W] 00000000 00000000 ⎯ LEIR0 [R/W] 000-0000 Block BTR0 [R/W] -1111111 11111111 TRTRR0 [R/W] 00000000 00000000 TIER0 [R/W] 00000000 00000000 CAN 0 Remark: Address range for CAN 0 to CAN 1 depends on chip select range. Mentioned addresses are default values, determined by boot ROM contents. AMSR0 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX AMR00 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX AMR10 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX GENERAL PURPOSE RAM [R/W] IDR00 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR10 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR20 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR30 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR40 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR50 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR60 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR70 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX (Continued) 97 MB91360G Series Address 20006CH 200070H 200074H 200078H 20007CH 200080H 200084H 200088H 20008CH 200090H 200094H 200098H 20009CH 2000A0H 2000A4H 2000A8H Register +0 +1 +2 +3 IDR80 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR90 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR100 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR110 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR120 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR130 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR140 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR150 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX DLCR00 [R/W] -------- ----XXXX DLCR20 [R/W] -------- ----XXXX DLCR40 [R/W] -------- ----XXXX DLCR60 [R/W] -------- ----XXXX DLCR80 [R/W] -------- ----XXXX DLCR100 [R/W] -------- ----XXXX DLCR120 [R/W] -------- ----XXXX DLCR140 [R/W] -------- ----XXXX DLCR10 [R/W] -------- ----XXXX DLCR30 [R/W] -------- ----XXXX DLCR50 [R/W] -------- ----XXXX DLCR70 [R/W] -------- ----XXXX DLCR90 [R/W] -------- ----XXXX DLCR110 [R/W] -------- ----XXXX DLCR130 [R/W] -------- ----XXXX DLCR150 [R/W] -------- ----XXXX Block CAN 0 2000ACH DTR00 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR10 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR20 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX (Continued) 2000B4H 2000BCH 98 MB91360G Series Address Register +0 +1 +2 +3 DTR30 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR40 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR50 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR60 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR70 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR80 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR90 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR100 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR110 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR120 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR130 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR140 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR150 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX CREG0 [R/W] 00000000 00000110 ⎯ Block 2000C4H 2000CCH 2000D4H 2000DCH 2000E4H 2000ECH 2000F4H CAN 0 2000FCH 200104H 20010CH 200114H 20011CH 200124H 20012CH (Continued) 99 MB91360G Series Address 200200H 200204H 200208H 20020CH 200210H 200214H 200218H 20021CH 200220H 200224H 200228H 20022CH to 200248H 20024CH 200250H 200254H 200258H 20025CH 200260H 200264H 200268H Register +0 +1 +2 +3 BVALR1 [R/W] 00000000 00000000 TCANR1 [W] 00000000 00000000 RCR1 [R/W] 00000000 00000000 ROVRR1 [R/W] 00000000 00000000 CSR1 [R/W] 00000000 00000001 RTEC1 [R] 00000000 00000000 IDER1 [R/W] XXXXXXXX XXXXXXXX RFWTR1 [R/W] XXXXXXXX XXXXXXXX TREQR1 [R/W] 00000000 00000000 TCR1 [R/W] 00000000 00000000 RRTRR1 [R/W] 00000000 00000000 RIER1 [R/W] 00000000 00000000 ⎯ LEIR1 [R/W] 000-0000 Block BTR1 [R/W] -1111111 11111111 TRTRR1 [R/W] 00000000 00000000 TIER1 [R/W] 00000000 00000000 CAN 1 Remark: Address range for CAN 0 to CAN 1 depends on chip select range. Mentioned addresses are default values, determined by boot ROM contents. AMSR1 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX AMR01 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX AMR11 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX GENERAL PURPOSE RAM [R/W] IDR01 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR11 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR21[R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR31 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXXIDR41 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR51 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR61 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR71 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX (Continued) 100 MB91360G Series Address 20026CH 200270H 200274H 200278H 20027CH 200280H 200284H 200288H 20028CH 200290H 200294H 200298H 20029CH 2002A0H 2002A4H 2002A8H Register +0 +1 +2 +3 IDR81 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR91 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR101 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR111 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR121 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXX--IDR131 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR141 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX IDR151 [R/W] XXXXXXXX XXXXXXXX XXXXX--- XXXXXXXX DLCR01 [R/W] -------- ----XXXX DLCR21 [R/W] -------- ----XXXX DLCR41 [R/W] -------- ----XXXX DLCR61 [R/W] -------- ----XXXX DLCR81[R/W] -------- ----XXXX DLCR101 [R/W] -------- ----XXXX DLCR121 [R/W] -------- ----XXXX DLCR141 [R/W] -------- ----XXXX DLCR11 [R/W] -------- ----XXXX DLCR31 [R/W] -------- ----XXXX DLCR51 [R/W] -------- ----XXXX DLCR71 [R/W] -------- ----XXXX DLCR91 [R/W] -------- ----XXXX DLCR111 [R/W] -------- ----XXXX DLCR131 [R/W] -------- ----XXXX DLCR151 [R/W] -------- ----XXXX Block CAN 1 2002ACH DTR01 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR11 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR21 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX (Continued) 101 2002B4H 2002BCH MB91360G Series (Continued) Address Register +0 +1 +2 +3 DTR31 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR41 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR51 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR61 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR71 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR81 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR91 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR101 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR111 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR121 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR131 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR141 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX DTR151 [R/W] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX CREG1 [R/W] 00000000 00000110 Block 2002C4H 2002CCH 2002D4H 2002DCH 2002E4H 2002ECH 2002F4H CAN 1 2002FCH 200304H 20030CH 200314H 20031CH 200324H 20032CH 102 MB91360G Series ■ INTERRUPT CAUSES, INTERRUPT VECTORS, AND INTERRUPT CONTROL REGISTER Interrupt number Interrupt Reset Mode vector System reserved System reserved System reserved System reserved System reserved Co-processor default trap * Co-processor error trap *4 INTE instruction *4 Instruction break exception *4 Operand break trap *4 Step trace trap *4 NMI interrupt (tool) *4 Undefined instruction exception NMI request External Interrupt 0 External Interrupt 1 External Interrupt 2 External Interrupt 3 External Interrupt 4 External Interrupt 5 External Interrupt 6 External Interrupt 7 Reload Timer 0 Reload Timer 1 Reload Timer 2 CAN 0 RX CAN 0 TX/NS CAN 1 RX CAN 1 TX/NS 4 Interrupt level *1 Setting Register ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ FH fixed ICR00 ICR01 ICR02 ICR03 ICR04 ICR05 ICR06 ICR07 ICR08 ICR09 ICR10 ICR11 ICR12 ICR13 ICR14 0x440H 0x441H 0x442H 0x443H 0x444H 0x445H 0x446H 0x447H 0x448H 0x449H 0x44AH 0x44BH 0x44CH 0x44DH 0x44EH Register address ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Interrupt vector *2 Offset 0x3FCH 0x3F8H 0x3F4H 0x3F0H 0x3ECH 0x3E8H 0x3E4H 0x3E0H 0x3DCH 0x3D8H 0x3D4H 0x3D0H 0x3CCH 0x3C8H 0x3C4H 0x3C0H 0x3BCH 0x3B8H 0x3B4H 0x3B0H 0x3ACH 0x3A8H 0x3A4H 0x3A0H 0x39CH 0x398H 0x394H 0x390H 0x38CH 0x388H 0x384H Default Vector address 0x000FFFFCH 0x000FFFF8H 0x000FFFF4H 0x000FFFF0H 0x000FFFECH 0x000FFFE8H 0x000FFFE4H 0x000FFFE0H 0x000FFFDCH 0x000FFFD8H 0x000FFFD4H 0x000FFFD0H 0x000FFFCCH 0x000FFFC8H 0x000FFFC4H 0x000FFFC0H 0x000FFFBCH 0x000FFFB8H 0x000FFFB4H 0x000FFFB0H 0x000FFFACH 0x000FFFA8H 0x000FFFA4H 0x000FFFA0H 0x000FFF9CH 0x000FFF98H 0x000FFF94H 0x000FFF90H 0x000FFF8CH 0x000FFF88H 0x000FFF84H RN ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 4 5 8 9 ⎯ ⎯ ⎯ ⎯ 6 7 ⎯ ⎯ ⎯ ⎯ ⎯ Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Hexadecimal 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E (Continued) 103 MB91360G Series Interrupt number Interrupt CAN 2 RX CAN 2 TX/NS CAN 3 RX *5 CAN 3 TX/NS * PPG 0/1 PPG 2/3 PPG 4/5 PPG 6/7 Reload Timer 3 Reload Timer 4 Reload Timer 5 ICU 0/1 OCU 0/1 ICU 2/3 OCU 2/3 ADC Timebase Overflow Free Running Counter 0 Free Running Counter 1 SIO 0 * SIO 1 * 6 6 5 Interrupt level *1 Setting Register ICR15 ICR16 ICR17 ICR18 ICR19 ICR20 ICR21 ICR22 ICR23 ICR24 ICR25 ICR26 ICR27 ICR28 ICR29 ICR30 ICR31 ICR32 ICR33 ICR34 ICR35 ICR36 ICR37 ICR38 ICR39 ICR40 ICR41 ICR42 ICR43 ICR44 ICR45 ICR46 Register address 0x44FH 0x450H 0x451H 0x452H 0x453H 0x454H 0x455H 0x456H 0x457H 0x458H 0x459H 0x45AH 0x45BH 0x45CH 0x45DH 0x45EH 0x45FH 0x460H 0x461H 0x462H 0x463H 0x464H 0x465H 0x466H 0x467H 0x468H 0x469H 0x46AH 0x46BH 0x46CH 0x46DH 0x46EH Interrupt vector *2 Offset 0x380H 0x37CH 0x378H 0x374H 0x370H 0x36CH 0x368H 0x364H 0x360H 0x35CH 0x358H 0x354H 0x350H 0x34CH 0x348H 0x344H 0x340H 0x33CH 0x338H 0x334H 0x330H 0x32CH 0x328H 0x324H 0x320H 0x31CH 0x318H 0x314H 0x310H 0x30CH 0x308H 0x304H Default Vector address 0x000FFF80H 0x000FFF7CH 0x000FFF78H 0x000FFF74H 0x000FFF70H 0x000FFF6CH 0x000FFF68H 0x000FFF64H 0x000FFF60H 0x000FFF5CH 0x000FFF58H 0x000FFF54H 0x000FFF50H 0x000FFF4CH 0x000FFF48H 0x000FFF44H 0x000FFF40H 0x000FFF3CH 0x000FFF38H 0x000FFF34H 0x000FFF30H 0x000FFF2CH 0x000FFF28H 0x000FFF24H 0x000FFF20H 0x000FFF1CH 0x000FFF18H 0x000FFF14H 0x000FFF10H 0x000FFF0CH 0x000FFF08H 0x000FFF04H RN ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 14 ⎯ ⎯ ⎯ 12 15 ⎯ 0 1 2 3 10 11 13 ⎯ ⎯ ⎯ Decimal 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 Hexadecimal 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E Sound Generator UART 0 RX UART 0 TX UART 1 RX UART 1 TX UART 2 RX UART 2 TX I2C * 7 Alarm Comparator RTC (Watchtimer) / Calibration Unit DMA (Continued) 104 MB91360G Series (Continued) Interrupt number Interrupt Delayed interrupt activation bit System reserved * System reserved * Security vector System reserved System reserved System reserved System reserved System reserved System reserved System reserved System reserved System reserved System reserved System reserved System reserved System reserved Used by the INT instruction. 3 3 Interrupt level *1 Setting Register ICR47 ⎯ ⎯ ⎯ (ICR51) (ICR52) (ICR53) (ICR54) (ICR55) (ICR56) (ICR57) (ICR58) (ICR59) (ICR60) (ICR61) (ICR62) (ICR63) ⎯ Register address 0x46FH ⎯ ⎯ ⎯ 0x473H 0x474H 0x475H 0x476H 0x477H 0x478H 0x479H 0x47AH 0x47BH 0x47CH 0x47DH 0x47EH 0x47FH ⎯ Interrupt vector *2 Offset 0x300H 0x2FCH 0x2F8H 0x2F4H 0x2F0H 0x2ECH 0x2E8H 0x2E4H 0x2E0H 0x2DCH 0x2D8H 0x2D4H 0x2D0H 0x2CCH 0x2C8H 0x2C4H 0x2C0H 0x2BCH to 0x000H Default Vector address 0x000FFF00H 0x000FFEFCH 0x000FFEF8H 0x000FFEF4H 0x000FFEF0H 0x000FFEECH 0x000FFEE8H 0x000FFEE4H 0x000FFEE0H 0x000FFEDCH 0x000FFED8H 0x000FFED4H 0x000FFED0H 0x000FFECCH 0x000FFEC8H 0x000FFEC4H 0x000FFEC0H 0x000FFEBCH to 0x000FFC00H RN ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Decimal 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 to 255 Hexadecimal 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 to FF *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 (0x000FFC00H) . The TBR is initialized to this value by a reset.After execution of the internal boot ROM TBR is set to 0x00FFC00H. *3 : Used by REALOS *4 : System reserved *5 : Only available on MB91FV360GA *6 : USART5/6 in MB91F364G, UART1/2 in all other devices. *7 : DMA to/from the USARTs in MB91F364G is not implemented. Remarks: The 1-Kbyte area from the address specified in TBR is the EIT vector area. Each vector consists of four bytes. The following formula shows the relationship between the vector number and vector address. vctadr = TBR + vctofs = TBR + (3FCH - 4 × vct) vctadr : Vector address, vctofs : Vector offset, vct : Vector number 105 MB91360G Series ■ PERIPHERAL RESOURCES 1. Instruction Cache This section describes the instruction cache memory included in FR50 Family members and it operation. This only applies to MB91FV360GA. (1) General description The instruction cache is temporary memory. When an external low-speed memory accesses an instruction code, the instruction cache stores the single-accessed code to increase the second and subsequent access speeds.Setting this memory to the RAM mode enables software to directly read and write instruction cache data RAM and tag RAM. (2) Main body structure • FR basic instruction length : 2 bytes • Block arrangement system : 2-way set associative system • Block One way consists of 128 blocks. One block consists of 16 bytes ( = 4 sub-blocks) . One sub-block consists of 4 bytes ( = 1 bus access unit) . 4 bytes 4 bytes I3 4 bytes I2 4 bytes I1 4 bytes I0 Way 1 Cache tag 128 blocks Sub-block 3 Sub-block 2 Sub-block 1 Sub-block 0 Block 0 Cache tag Sub-block 3 Sub-block 2 Sub-block 1 Sub-block 0 Block 127 Way 2 Cache tag Sub-block 3 Sub-block 2 Sub-block 1 Sub-block 0 Block 0 128 blocks Cache tag Sub-block 3 Sub-block 2 Sub-block 1 Sub-block 0 Block 127 Instruction Cache Structure 106 MB91360G Series Way 1 31 Address tag 07 SBV3 SBV2 06 ABV1 05 SBV0 04 TAGV 09 08 Reserved 03 02 LRU 01 ETLK 00 Reserved Sub-block valid LRU Entry lock Way 2 31 Address tag 07 SBV3 SBV2 06 ABV1 05 SBV0 TAG valid 09 08 Reserved 04 TAGV 03 02 Reserved 01 ETLK 00 Sub-block valid Entry lock TAG valid Instruction Cache Tag 107 MB91360G Series (3) Control register structure IRBS (32 bits) Address : 00000300H 31 0 R 23 0 R 30 0 R 22 0 R 29 0 R 21 0 R 28 0 R 20 0 R 27 0 R 19 0 R 26 0 R 18 0 R 25 0 R 17 0 R 24 0 R 16 1 R Initial value 00000000B Initial value 00000001B ICR26 15 14 IRBS R/W 6 ⎯ ⎯ 13 IRBS R/W 5 ⎯ ⎯ 12 IRBS R/W 4 ⎯ ⎯ 11 ⎯ ⎯ 3 ⎯ ⎯ 10 ⎯ ⎯ 2 ⎯ ⎯ 9 ⎯ ⎯ 1 ⎯ ⎯ 8 ⎯ ⎯ 0 ⎯ ⎯ Address : 00000302H IRBS R/W 7 ⎯ ⎯ Initial value 0010 - - - -B Initial value --------B IRBS [bits 15 to 12] These bits are used to set the base address of cache RAM at access in the RAM mode. Align cache RAM in units of 4K bytes. These bits are initialized by INIT. The initial value is the 00012000H address. ISIZE (8 bits) 7 6 ⎯ ⎯ 5 ⎯ ⎯ 4 ⎯ ⎯ 3 ⎯ ⎯ 2 ⎯ ⎯ 1 SIZE1 R/W 0 SIZE0 R/W ⎯ ⎯ Initial value 00000307H - - - - - - 11B The ICHCR (I-CacHe Control Register) controls the instruction cache operations. Writing to the ICHCR does not affect caching of instructions fetched within three subsequent cycles. ICHCR (8 bits) Initial value 7 6 ⎯ ⎯ 5 GBLK R/W 4 ALFL R/W 3 EOLK R/W 2 ELKR R/W 1 FLSH R/W 0 ENAB R/W 000003E7H RAM R/W 0 - 000000B 108 MB91360G Series 2. Boot ROM The Boot ROM is a fixed start-up routine which is located at FF000H (Reset entry) and will therefore be executed after every RST or INIT. The purpose of this ROM is to configure the device after a reset and to provide a simple serial bootloader for programming the embedded Flash memories. The Boot ROM contains three logical parts : (1) Chip initializations Immediately after each reset, the following settings will be made : CS0 : 200000H…2FFFFFH, 32 Bit Bus, 1 wait-state (default external access) CS7 : 100000H…10FFFFH, 16 Bit Bus, 1 wait-state (CAN) In addition, the Table-Base Register will be initialized to 1FFC00H (F361GA only) and the synchronous reset (see TBCR) will be enabled. (2) Check for bootcondition After the chip initialization, the “Security-Vector” will be checked (Vector #66) . The purpose of this feature is to disable the bootstraploader due to security reasons. The RSRR (reset cause register) will be read and saved. If no power-on reset (external INITX input, RSRR = 0x80) is indicated, a branch to the user application will be initiated (Branch to 1F4000H) . If INITX was detected and the “Security-Vector” check okay, the following conditions must be met in order to start the Bootstraploader : Within a certain time, the start-up character “V” must be received via UART0 (9600, 8N1) . The time-out is set to 200 ms. (3) Bootstraploader If the Bootcondition was met, an acknowledge character “F” will be transmitted via UART0 to indicate that the Bootloader is ready to accept commands. 4 different commands are possible : Receive and write to a specified memory block Dump the contents of a specified memory block Initiate a “CALL” to a certain location Re-dump a calculated checksum for verification (4) Configuration register (F362 mode register F362MD) This register is used to control which pins of the external bus interface are active, where the pins for the external DMA channel are located and which I2C module is used. address bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 00001FEH ADRSWAP ASYMCLKT HIZ_D_A HIZ_ECLK HIZ_D_23_16 HIZ_D_15_0 DMASWP access R/W R/W R/W R/W R/W R/W R/W Initial value 0 0 0 0 0 0 0 bit 8 IICSEL R/W 0 109 MB91360G Series 3. Clock Modulator An important property of MCUs and other electronic devices is their electromagnetic compatibility - EMC. Besides a low susceptibility against external interferences, a low radiated emission is desired to avoid interference of adjacent devices. Particularly the system clock and derived signals such as data- and address busses contribute significantly to the radiated emission. The purpose of the clock modulator is to spread the energy of these signals over a wide range of frequencies and thus reducing the amplitudes of the fundamental and harmonic frequencies. With the use of an advanced frequency modulation algorithm, the Fujitsu built in clock modulator can achieve an attenuation of up to 20-25 dB compared to non modulated clock operation. Since the modulator is highly configurable, it can be optimally adjusted to the actual application in order to achieve minimal electromagnetic interference. By default, the modulator is disabled and the MCU is running with unmodulated clock. If you plan to use this feature, please contact Fujitsu. 110 MB91360G Series 4. I/O Ports The I/O port registers consist of the “port data registers (PDR) ”, the “data direction registers (DDR) ” and the “port function registers (PFR) ”. The bits in PDRs correspond to the bits in DDRs and PFRs. Similarly, the register bits correspond to the port pins. The port data registers contain the port I/O data and the data direction registers specify whether the corresponding bits (pins) are inputs or outputs. Bits set to “0” are inputs and bits set to “1” are outputs. The port function registers specify whether the port is used as peripheral port or as “I/O” port. Usually bits set to “0” mean I/O port and bits set to “1” mean functional port. In case of analog peripherals there is additional circuitry to ensure that the digital logic is not disturbed by the analog signals. If the analog input function e.g. ADC is enabled the digital input is fixed to “0”. • Input mode (DDR = “0”) PDR read : Reads the level on the corresponding external pin. PDR write : writes the PDR setting value. • Output mode (DDR = “1”) PDR read : Reads the PDR value. PDR write : Outputs the PDR value to the corresponding external pins. 111 MB91360G Series (1) Register configuration Port data register PDR7 Address : 00000007H PDR8 Address : 00000008H PDR9 Address : 00000009H PDRB Address : 0000000BH PDRG Address : 00000010H PDRH Address : 00000011H PDRI Address : 00000012H PDRJ Address : 00000013H PDRK Address : 00000014H PDRL Address : 00000015H PDRM Address : 00000016H PDRN Address : 00000017H PDRO Address : 00000018H 7 P77 6 P76 5 P75 4 P74 3 P73 2 P72 1 P71 0 P70 Initial value Access 1111XXXXB R/W 7 P87 6 P86 5 P85 4 P84 3 P83 2 P82 1 P81 0 P80 Initial value Access XXXXXXXXB R/W 7 P97 6 P96 5 P95 4 P94 3 P93 2 P92 1 P91 0 P90 Initial value Access XXXXXXX1B R/W 7 PB7 6 PB6 5 PB5 4 PB4 3 PB3 2 PB2 1 PB1 0 PB0 Initial value Access XXXXXXXXB R/W 7 PG7 6 PG6 5 PG5 4 PG4 3 PG3 2 PG2 1 PG1 0 PG0 Initial value Access XXXXXXXXB R/W 7 PG7 PH7 6 PG6 PH6 5 PG5 PH5 4 PG4 PH4 3 PG3 PH3 2 PG2 PH2 1 PG1 PH1 0 PG0 PH0 Initial value Access XXXXXXXXB R/W 7 P17 6 ⎯ 6 PJ6 5 ⎯ 5 PJ5 4 ⎯ 4 PJ4 3 PI3 2 ⎯ 2 PJ2 1 ⎯ 1 PJ1 0 ⎯ 0 PJ0 Initial value Access X - - - X - - -B R/W 7 PJ7 3 PJ3 Initial value Access XXXXXXXXB R/W 7 PK7 6 PK6 5 PK5 4 PK4 3 PK3 2 PK2 1 PK1 0 PK0 Initial value Access XXXXXXXXB R/W 7 PL7 6 PL6 5 PL5 4 PL4 3 PL3 2 PL2 1 PL1 0 PL0 Initial value Access XXXXXXXXB R/W 7 ⎯ 7 ⎯ 7 PO7 6 ⎯ 6 ⎯ 6 PO6 5 ⎯ 5 PN5 4 ⎯ 4 PN4 3 PM3 2 PM2 1 PM1 0 PM0 Initial value Access - - - - XXXXB R/W 3 PN3 2 PN2 1 PN1 0 PN0 Initial value Access - -XXXXXXB R/W 5 PO5 4 PO4 3 PO3 2 PO2 1 PO1 0 PO0 Initial value Access XXXXXXXXB R/W (Continued) 112 MB91360G Series (Continued) PDRP Address : 00000019H PDRQ Address : 0000001AH PDRR Address : 0000001BH PDRS Address : 0000001CH 7 PP7 6 PP6 5 PP5 4 PP4 3 PP3 2 PP2 1 PP1 0 PP0 Initial value Access XXXXXXXXB R/W 7 ⎯ 7 PR7 6 ⎯ 6 PR6 5 PQ5 4 PQ4 3 PQ3 2 PQ2 1 PQ1 0 PQ0 Initial value Access --XXXXXXB R/W 5 PR5 4 PR4 3 PR3 2 PR2 1 PR1 0 PR0 Initial value Access XXXXXXXXB R/W 7 PS7 6 PS6 5 PS5 4 PS4 3 PS3 2 PS2 1 PS1 0 PS0 Initial value Access XXXXXXXXB R/W 113 MB91360G Series Data directon register (DDR) DDR7 Address : 00000607H DDR8 Address : 00000608H DDR9 Address : 00000609H DDRB Address : 0000600BH DDRG Address : 00000400H DDRH Address : 00000401H DDRI Address : 00000402H DDRJ Address : 00000403H DDRK Address : 00000404H DDRL Address : 00000405H DDRM Address : 00000406H DDRN Address : 00000407H DDRO Address : 00000408H 7 P77 6 P76 5 P75 4 P74 3 P73 2 P72 1 P71 0 P70 Initial value Access 00000000B R/W 7 P87 6 P86 5 P85 4 P84 3 P83 2 P82 1 P81 0 P80 Initial value Access 00000000B R/W 7 P97 6 P96 5 P95 4 P94 3 P93 2 P92 1 P91 0 P90 Initial value Access 00000000B R/W 7 PB7 6 PB6 5 PB5 4 PB4 3 PB3 2 PB2 1 PB1 0 PB0 Initial value Access 00000000B R/W 7 PG7 6 PG6 5 PG5 4 PG4 3 PG3 2 PG2 1 PG1 0 PG0 Initial value Access 00000000B R/W 7 PG7 PH7 6 PG6 PH6 5 PG5 PH5 4 PG4 PH4 3 PG3 PH3 2 PG2 PH2 1 PG1 PH1 0 PG0 PH0 Initial value Access 00000000B R/W 7 ⎯ 7 PJ7 6 ⎯ 6 PJ6 5 ⎯ 5 PJ5 4 ⎯ 4 PJ4 3 PI3 2 ⎯ 2 PJ2 1 ⎯ 1 PJ1 0 ⎯ 0 PJ0 Initial value Access - - - - 0 - - -B R/W 3 PJ3 Initial value Access 00000000B R/W 7 PK7 6 PK6 5 PK5 4 PK4 3 PK3 2 PK2 1 PK1 0 PK0 Initial value Access 00000000B R/W 7 PL7 6 PL6 5 PL5 4 PL4 3 PL3 2 PL2 1 PL1 0 PL0 Initial value Access 00000000B R/W 7 ⎯ 7 ⎯ 7 PO7 6 ⎯ 6 ⎯ 6 PO6 5 ⎯ 5 PN5 4 ⎯ 4 PN4 3 PM3 2 PM2 1 PM1 0 PM0 Initial value Access - - - - 0000B R/W 3 PN3 2 PN2 1 PN1 0 PN0 Initial value Access - -000000B R/W 5 PO5 4 PO4 3 PO3 2 PO2 1 PO1 0 PO0 Initial value Access 00000000B R/W (Continued) 114 MB91360G Series (Continued) DDRP Address : 00000409H DDRQ Address : 0000040AH DDRR Address : 0000040BH DDRS Address : 0000040CH 7 PP7 6 PP6 5 PP5 4 PP4 3 PP3 2 PP2 1 PP1 0 PP0 Initial value Access 00000000B R/W 7 ⎯ 7 PR7 6 ⎯ 6 PR6 5 PQ5 4 PQ4 3 PQ3 2 PQ2 1 PQ1 0 PQ0 Initial value Access --000000B R/W 5 PR5 4 PR4 3 PR3 2 PR2 1 PR1 0 PR0 Initial value Access 00000000B R/W 7 PS7 6 PS6 5 PS5 4 PS4 3 PS3 2 PS2 1 PS1 0 PS0 Initial value Access 00000000B R/W 115 MB91360G Series Port function registers (PFR) PFR7 Address : 00000617H PFR8 Address : 00000618H PFR9 Address : 00000619H PFRB Address : 0000061BH PFR27 Address : 00000627H PFRG Address : 00000410H PFRH Address : 00000411H PFRI Address : 00000412H PFRJ Address : 00000413H PFRK Address : 00000414H PFRL Address : 00000415H PFRM Address : 00000416H PFRN Address : 00000417H 7 P77 6 P76 5 P75 4 P74 3 P73 2 P72 1 P71 0 P70 Initial value Access 00001111B R/W 7 P87 6 P86 5 P85 4 P84 3 P83 2 P82 1 ⎯ 1 P91 0 ⎯ 0 P90 Initial value Access 111110 - -B R/W 7 P97 6 P96 5 P95 4 P94 3 P93 2 P92 Initial value Access 11110101B R/W 7 PB7 6 PB6 5 PB5 4 PB4 3 PB3 2 PB2 1 PB1 0 PB0 Initial value Access 00000000B R/W 7 P277 6 P276 5 P275 4 P274 3 P273 2 P272 1 P271 0 P270 Initial value Access 1111 - 00 -B R/W 7 PG7 6 PG6 5 PG5 4 PG4 3 PG3 2 PG2 1 PG1 0 PG0 Initial value Access 00000000B R/W 7 PH7 6 PH6 5 PH5 4 PH4 3 PH3 2 PH2 1 PH1 0 PH0 Initial value Access 00000000B R/W 7 ⎯ 7 PJ7 6 ⎯ 6 PJ6 5 ⎯ 5 PJ5 4 ⎯ 4 PJ4 3 PI3 2 ⎯ 2 PJ2 1 ⎯ 1 PJ1 0 ⎯ 0 PJ0 Initial value Access - - - - 0 - - -B R/W 3 PJ3 Initial value Access 00000000B R/W 7 PK7 6 PK6 5 PK5 4 PK4 3 PK3 2 PK2 1 PK1 0 PK0 Initial value Access 00000000B R/W 7 PL7 6 PL6 5 PL5 4 PL4 3 PL3 2 PL2 1 PL1 0 PL0 Initial value Access 00000000B R/W 7 ⎯ 7 ⎯ 6 ⎯ 6 ⎯ 5 ⎯ 5 PN5 4 ⎯ 4 PN4 3 PM3 2 PM2 1 PM1 0 PM0 Initial value Access - - - - 0000B R/W 3 PN3 2 PN2 1 PN1 0 PN0 Initial value Access - - 000000B R/W (Continued) 116 MB91360G Series (Continued) PFRO Address : 00000418H PFRP Address : 00000419H PFRQ Address : 0000041AH PFRR Address : 0000041BH PFRS Address : 0000041CH 7 PO7 6 PO6 5 PO5 4 PO4 3 PO3 2 PO2 1 PO1 0 PO0 Initial value Access 00000000B R/W 7 PP7 6 PP6 5 PP5 4 PP4 3 PP3 2 PP2 1 PP1 0 PP0 Initial value Access 00000000B R/W 7 ⎯ 7 PR7 6 ⎯ 6 PR6 5 PQ5 4 PQ4 3 PQ3 2 PQ2 1 PQ1 0 PQ0 Initial value Access - - 000000B R/W 5 PR5 4 PR4 3 PR3 2 PR2 1 PR1 0 PR0 Initial value Access 00000000B R/W 7 PS7 6 PS6 5 PS5 4 PS4 3 PS3 2 PS2 1 PS1 0 PS0 Initial value Access 00000000B R/W 117 MB91360G Series 5. DMA Controller (DMAC) The DMAC module is used to implement direct memory access (DMA) transfer in FR50 family devices. In a DMA transfer controlled by this module, various types of data can be transferred at high speed without involving the CPU, thus increasing system performance. (1) Hardware configuration The following are the main components of the DMAC module : • Five independent DMA channels • 5-channel independent access control circuit • 32-bit address registers (Reload can be specified : Two registers for each channel.) • 16-bit transfer count registers (Reload can be specified : One register for each channel.) • 4-bit block count registers (One register for each channel) • External transfer request input pins DREQ0, DREQ1, and DREQ2 (only ch0, ch1, and ch2) • External transfer request acceptance output pins DACK0, DACK1, and DACK2 (only ch0, ch1, and ch2) • DMA termination output pins DEOP0, DEOP1, and DEOP2 (only ch0, ch1, and ch2) • Two-cycle transfer (2) Main functions The following are the main functions of data transfer performed by the module : • Independent data transfer in multiple channels is enabled (5 channels) . a : Priority (ch0 > ch1 > ch2 > ch3 > ch4) b : Priority can be alternated between ch0 and ch1. c : DMAC start cause • External-only pin input (edge detection/level detection channels 0 to 2 only) • Internal peripheral request (interrupt request is shared, including external interrupts) • Software request (register write) d : Transfer mode • Demand transfer, burst transfer, step transfer, block transfer • Addressing mode 32-bit full address specification (increase, decrease, fixed) (An address increment/decrement size of −255 to +255 can be specified.) • Data types of byte, halfword, and word lengths • Single-shot/reload selectable 118 MB91360G Series (3) Registers configuration Channel 0 control/status register A Channel 0 control/status register B Channel 1 control/status register A Channel 1 control/status register B Channel 2 control/status register A Channel 2 control/status register B Channel 3 control/status register A Channel 3 control/status register B Channel 4 control/status register A Channel 4 control/status register B Overall control register Channel 0 transfer source address register Channel 1 transfer source address register Channel 2 transfer source address register Channel 3 transfer source address register Channel 4 transfer source address register DMACA0 0000200 H DMACB0 0000204 H DMACA1 0000208 H DMACB1 000020CH DMACA2 0000210 H DMACB2 0000214 H DMACA3 0000218 H DMACB3 000021CH DMACA4 0000220 H DMACB4 0000224 H D M A C R 0000240 H DMASA0 0001000 H Channel 0 transfer destination address register DMADA0 0001004H DMASA1 0001008 H Channel 1 transfer destination address register DMADA1 000100CH DMASA2 0001010 H Channel 2 transfer destination address register DMADA2 0001014H DMASA3 0001018 H Channel 3 transfer destination address register DMADA3 000101CH DMASA4 0001020 H Channel 4 transfer destination address register DMADA4 0001024H 119 MB91360G Series (4) Block diagram Counter DMA trnasfer request to bus controller Buffer Selector Write back DMA start cause selection circuit and request acceptance control Peripheral start request/stop input External pin start request/stop input DTC 2-step register DTCR Counter DSS [3:0] Buffer Read Write Read/Write control Selector BLK register Status transition circuit Priority circuit To transfer controller ERIR, EDIR Clear peripheral interrupt TYPE, MOD, WS IRQ [4:0] MCLREQ Selector Bus control section DDNO To bus controller DMA control Counter buffer Selector DSAD 2-step register SDAM, SASZ [7:0] SADR Address counter Access Address Write-back Counter buffer Selector DDAD 2-step register DADM, DASZ [7:0] DADR Write-back DMAC 5-channel block diagram 120 Bus control section DDNO register X-bus MB91360G Series 6. UART The UART is a serial I/O port for performing asynchronous (stop-start synchronization) communications. The MB91360G series contains three UART channels. (1) • • • • • • • • Features Full-duplex, double buffering Supports asynchronous (stop-start synchronization) communications Supports multi-processor mode Fully programmable baud rate The baud rate can be set using an internal timer. (See the U-TIMER section.) Supports flexible baud rate setting using an external clock Error detection function (parity, framing, overrun) Non return to zero (NRZ) transfer signal Supports DMA transfer activation using an interrupt 121 MB91360G Series (2) Register configuration Register structure 15 SCR SSR ULS 8 bits 8 bits 87 SMR SIDR (R)/SODR (W) 0 Access R/W R/W Serial input register (SIDR) 7 D7 6 D6 5 D5 4 D4 3 D3 2 D2 1 D1 0 D0 Serial output register (SODR) 7 D7 6 D6 5 D5 4 D4 3 D3 2 D2 1 D1 0 D0 Serial status register (SSR) 7 PE 6 ORE 5 FRE 4 RDRF 3 TDRE 2 ⎯ 1 RIE 0 TIE Serial mode register (SMR) 7 MD1 6 MD0 5 ⎯ 4 ⎯ 3 CS0 2 ⎯ 1 SCKE 0 ⎯ Serial control register (SCR) 7 PEN 6 P 5 SBL 4 CL 3 A/D 2 REC 1 RXE 0 TXE UART level select register (ULS) 7 ⎯ 6 ⎯ 5 ⎯ 4 ⎯ 3 NSDO 2 NSDI 1 UTDBL 0 UDBL SMR Address Bits 0000 0063H 0000 006FH 0000 007BH Address Bits 0000 0062H 0000 006EH 0000 007AH 7 MD1 R/W 7 PEN R/W 6 MD2 R/W 6 P R/W 5 4 3 CS0 W 2 1 0 Reserved Reserved Reserved Reserved Reserved Initial value 00 - - 0 - 00B ← Access 5 SBL R/W 4 CL R/W 3 A/D R/W 2 REC W 1 RXE R/W 0 TXE R/W SCR Initial value 00000100B ← Access 122 MB91360G Series (3) Block diagram Control signals Reception interrupt (to CPU) SCK (Clock) From U-TIMER Clock selection circuit Receiving clock Transmitting clock Transmission interrupt (to CPU) Reception control circuit SI (Reception data) Start bit detecter Transmission control circuit Transmission start circuit Transmission bit counter Transmission parity counter SO (Transmission data) Received bit counter Received parity bit counter Reception status detecton circuit Reception Shifter Reception completed SIDR Transmission Shifter Start of transmission SODR Reception error occurrence signal for DMA (to DMAC) R - bus MD1 MD0 SMR register SCR register CS0 PEN P SBL CL A/D REC RXE TXE SSR register PE ORE FRE RDRF TDRE RIE TIE Control signals 123 MB91360G Series 7. U-TIMER (16-bit Timer for UART Baud Rate Generation) The U-timer (U-TIMER) is a 16-bit timer used to generate the baud rate for the UART. The operating frequency of the chip and the U-TIMER reload value can be combined to set a user-defined baud rate. The MB91360G series contains three U-TIMER channels. The intervaltimers can count for a maximum of 216 × φ. (1) Block diagram 15 UTIMR (reload register) 0 15 Load UTIM (U-timer) Clock 0 φ (Peripheral clock) Underflow control f.f. To UART 124 MB91360G Series (2) Register configuration Register structure 15 87 UTIM UTIMR DRCL UTIMC 0 Access R W R/W R : Read, W : Write UTIM Address Bits ch0 00000068H ch1 00000074H ch2 00000080H UTIMR Reload Register UTIMR Address Bits ch0 00000068H ch1 00000074H ch2 00000080H UTIMC Address ch0 0000006BH ch1 00000077H ch2 00000083H 15 b15 14 b14 2 b2 1 b1 0 b0 Initial value Access 0 R 15 b15 14 b14 2 b2 1 b1 0 b0 Initial value Access 0 W UTIMC U Timer Control Register 7 UCC1 6 ⎯ 5 ⎯ 4 ⎯ 3 2 1 UTST 0 UTCR Initial value Access 0---0001 R/W UNDR Reserved 125 MB91360G Series 8. PWM Timer The PWM (Pulse Width Modulation) timer can output high-precision pulse waves at an arbitrary cycle and pulse width (duty ratio) . The MB91360G series contains eight PWM timer channels. Each of the channels consists of a 16-bit downcounter, cycle setting register, duty setting register, and pin controller. The control status register for each channel is used to indicate the operation status of the PWM timer. General control registers 1 and 2 are common registers shared by four channels, serving for input and software triggering. (1) Features • The count clock for the 16-bit down-counter can be selected from among the following four types : Internal clocks : φ, φ/4, φ/16, φ/64 (φ : Machine clock for peripherals) • The counter can be initialized to “FFFFH” by a reset or underflow. The 16-bit down-counter causes an underflow when it changes from “0000H” to “FFFFH”. • Each channel has PWM outputs. Eight channels : Eight output pins • Registers Cycle setting register : Data reload register with buffer Data transfer from the buffer is performed either when an activation trigger is detected or when the down-counter causes an underflow (cycle match) . The output is inverted at a cycle match. Duty setting register : Compare register with buffer. The value set in this register is compared to the counter value. The output is inverted when the values match (duty match) . • Pin control A duty match causes a reset to “1” (given priority) . An underflow causes a reset to “0”. The output value fix mode enables output of all “L” or all “H”. The polarity can also be specified. • Interrupt requests can be generated by selecting the following interrupt sources : Activation of the PWM timer (software trigger or trigger input) Occurrence of an underflow (cycle match) Occurrence of a duty match Occurrence of an underflow (cycle match) or duty match • You can set simultaneous activation of two or more channels using software or another interval timer. You can also set restarting the PWM timer during operation. 126 MB91360G Series (2) Register configuration for ch 0 to ch 3 Bits 87 GCN10 Address 00000118 H 0000011AH PWM timer ch 0 00000120 H 00000122 H 00000124 H 00000126 H PWM timer ch 1 00000128 H 0000012AH 0000012CH 0000012EH PWM timer ch 2 00000130 H 00000132 H 00000134 H 00000136 H PWM timer ch 3 00000138 H 0000013AH 0000013CH 0000013EH 15 0 Access R/W GCN20 Register name General control register 10 Disable/General control register 20 PDBL0 R/W PTMR0 PCSR0 PDUT0 PCNH0 PCNL0 R W W R/W ch0 timer register ch0 cycle setting register ch0 duty setting register ch0 control status registers PTMR1 PCSR1 PDUT1 PCNH1 PCNL1 R W W R/W ch1 timer register ch1 cycle setting register ch1 duty setting register ch1 control status registers PTMR2 PCSR2 PDUT2 PCNH2 PCNL2 R W W R/W ch2 timer register ch2 cycle setting register ch2 duty setting register ch2 control status registers PTMR3 PCSR3 PDUT3 PCNH3 PCNL3 R W W R/W ch3 timer register ch3 cycle setting register ch3 duty setting register ch3 control status registers 127 MB91360G Series (3) PWM timer registers for ch 4 to ch 7 Bits 87 GCN11 Address 0000011CH 0000011EH PWM timer ch 4 00000140 H 00000142 H 00000144 H 00000146 H PWM timer ch 5 00000148 H 0000014AH 0000014CH 0000014EH PWM timer ch 6 00000150 H 00000152 H 00000154 H 00000156 H PWM timer ch 7 00000158 H 0000015AH 0000015CH 0000015EH 15 0 Access R/W GCN21 Register name General control register 11 Disable/General control register 21 PDBL1 R/W PTMR4 PCSR4 PDUT4 PCNH4 PCNL4 R W W R/W ch4 timer register ch4 cycle setting register ch4 duty setting register ch4 control status registers PTMR5 PCSR5 PDUT5 PCNH5 PCNL5 R W W R/W ch5 timer register ch5 cycle setting register ch5 duty setting register ch5 control status registers PTMR6 PCSR6 PDUT6 PCNH6 PCNL6 R W W R/W ch6 timer register ch6 cycle setting register ch6 duty setting register ch6 control status registers PTMR7 PCSR7 PDUT7 PCNH7 PCNL7 R W W R/W ch7 timer register ch7 cycle setting register ch7 duty setting register ch7 control status registers 128 MB91360G Series (4) Configuration diagram of the entire PWM timer Output pins OCPA0 (PWM0) OCPA1 (PWM1) 16-bit reload timer ch0 ch1 General control register 20 Disable register 0 16-bit reload timer ch2 ch3 General control register 21 Disable register 1 General control register 11 (source selection) General control register 10 (source selection) TRG input PWM timer ch0 TRG input PWM timer ch1 TRG input PWM timer ch2 TRG input PWM timer ch3 TRG input PWM timer ch4 TRG input PWM timer ch5 TRG input PWM timer ch6 TRG input PWM timer ch7 OCPA2 (PWM2) OCPA3 (PWM3) OCPA4 (PWM4) OCPA5 (PWM5) OCPA6 (PWM6) OCPA7 (PWM7) (5) Configuration diagram of PWM timer 1 ch Cycle setting register PCSR Prescalar φ/1 φ/4 φ / 16 φ / 64 Duty setting register PDUT Clock 16-bit down-counter Start Load cmp Underflow PPG mask S Peripheral clock (φ) R Q PWM output Inverted bit Enable Edge detection Interrupt selection IRQ (Interrupt request signal) TRG input (Internal trigger input) Software trigger 129 MB91360G Series 9. 16-bit Reload Timer Each 16-bit reload timer consists of a 16-bit down-counter, a 16-bit reload register, a prescaler for generating the internal count clock, and a control register. The 16-bit reload timer can also activate DMA transfer using interrupts. The MB91360G series contains six 16-bit reload timer channels. (1) 16-bit reloard timer eegister configuration Control status register (TMCSR) 15 ⎯ 7 ⎯ 14 ⎯ 6 ⎯ 13 ⎯ 5 ⎯ 12 ⎯ 4 RELD 11 CSL1 3 INTE 10 CSL0 2 UF 9 ⎯ 1 CNTE 8 ⎯ 0 TRG 16-bit timer register (TMR) 15 0 16-bit reload register (TMRLR) 15 0 130 MB91360G Series (2) Block diagram 16 16-bit reload register 8 Reload RELD 16-bit down-counter UF ⎯ ⎯ GATE CSL1 Clock selector CSL0 TRG CNTE OUT CTL. INTE UF IRQ 16 R-bus 2 φ φ φ 21 23 25 Clear prescalar PWM (Reload timer 0 channel to 3 channel)* A/D (Reaload timer 4 channel)* * Internally connected Internal clock 131 MB91360G Series 10. Bit Search Module The bit search module searches for a “0”, “1”, or change-point in the data written to the input register and returns the position of the detected bit. This section describes the data register for detecting zeros (BSD0) , data register for detecting ones (BSD1) , data register for detecting change-points (BSDC) , and detection result register (BSRR) . a : Data register for detecting zeros (BSD0) Address 0000 03F0H b : Date register for detecting ones (BSD1) Address 0000 03F4H c : Data register for detecting change points (BSDC) Address 0000 03F8H d : Detection Result Register (BSRR) Address 0000 03FCH 31 31 31 31 Register structure 0 Initial value Indeterminate Access W Register structure 0 Initial value Indeterminate Access R/W Register structure 0 Initial value Indeterminate Access W Register structure 0 Initial value Indeterminate Access R 132 MB91360G Series • Block diagram of the bit search module Input latch Address decoder Detection mode D-bus One-detect data conversion Bit search circuit Search result 133 MB91360G Series 11. 10-bit A/D Converter (Successive Approximation Conversion Type) This section provides an overview of the A/D converter, describes the register structure and functions, and describes the operation of the A/D converter. A/D Converter converts analog input voltage into digital values, and provides the following features. • Conversion time : minimum 178 cycles (32 MHz : 5.6 µs, 24 MHz : 7.4 µs, 16 MHz : 11.2 µs) per channel • RC type successive approximation conversion with sample & hold circuit • 10-bit resolution • Program selection analog input from 16 channels Single conversion mode : conversion of one selected channel Scan conversion mode : continuous conversion of multiple channels, programmable for up to 16 channels Single conversion mode : Convert the specified channel once only. • Continuous mode : Repeatedly convert the specified channels. • Stop mode : Convert one channel then temporarily halt until the next activation. (Enables synchronization of the conversion start timing.) • A/D conversion can be followed by an A/D conversion interrupt request to CPU. This interrupt, an option that is ideal for continuous processing can be used to start a DMA transfer of the results of A/D conversion to memory. • Startup may be by software, external trigger (falling edge) or timer (rising edge) 134 MB91360G Series 15 ADMD 87 ADCH ADCS ADCD ADBL 8 bit 8 bit 0 Channel setting register (ADCH) bit Address : 00009DH Mode register (ADMD) bit Address : 00009CH Control status register (ADCS) bit Address : 00009FH Data register (ADCD) bit Address : 0000A1H bit Address : 0000A0H Disable register (ADBL) bit Address : 0000A3H 15 ⎯ 14 ⎯ 13 ⎯ 12 ⎯ 11 ⎯ 10 ⎯ 9 ⎯ 8 DBL 7 D7 15 ⎯ 6 D6 14 ⎯ 5 D5 13 ⎯ 4 D4 12 ⎯ 3 D3 11 ⎯ 2 D2 10 ⎯ 1 D1 9 D9 0 D0 8 D8 7 BUSY 6 INT 5 INTE 4 PAUS 3 ⎯ 2 ⎯ 1 STRT 0 Reserved 7 ANS3 6 ANS2 5 ANS1 4 ANS0 3 ANE3 2 ANE2 1 ANE1 0 ANE0 15 ⎯ 14 ⎯ 13 ⎯ 12 ⎯ 11 MOD1 10 MOD0 9 STS1 8 STS0 135 MB91360G Series • Block diagram AVCC MPX AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 AN8 AN9 ANA ANB ANC AND ANE ANF AVRH/AVRL AVSS D/A Converter Input circuit Sequential comparison register Comparator Data bus A/D data register ADCD A/D channel setting register A/D mode register ADCH ADMD ADCS A/D control status register Operating clock Prescaler Sample-and-hold circuit Trigger activation ATGX Timer activation Output of 16-bit reload timer 4 (internal connection) Machine clock (φ) 136 Decoder MB91360G Series 12. Interrupt Controller An interrupt controller controls interrupt acceptance and arbitration processing. Hardware configuration This module consists of the following : • ICR register • Interrupt priority evaluation circuit • Interrupt level and interrupt number (vector) generator • Hold request cancel request generator Major functions This module has the following major functions : • Detecting an NMI request or interrupt request • Priority evaluation (using the level or number) • Transferring the level of the interrupt cause in the evaluation result (to the CPU) • Transferring the number of the interrupt cause in the evaluation result (to the CPU) • Instructing recovery from stop mode due to an NMI or interrupt level other than 11111 (to the CPU) • Generating a hold request cancel request for the bus master 137 MB91360G Series (1) Register configuration bit 7 6 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 5 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 R 3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 R/W 2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 R/W 1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 R/W 0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 R/W Address : 00000440H Address : 00000441H Address : 00000442H Address : 00000443H Address : 00000444H Address : 00000445H Address : 00000446H Address : 00000447H Address : 00000448H Address : 00000449H Address : 0000044AH Address : 0000044BH Address : 0000044CH Address : 0000044DH Address : 0000044EH Address : 0000044FH Address : 00000450H Address : 00000451H Address : 00000452H Address : 00000453H Address : 00000454H Address : 00000455H Address : 00000456H Address : 00000457H Address : 00000458H Address : 00000459H Address : 0000045AH Address : 0000045BH Address : 0000045CH Address : 0000045DH Address : 0000045EH Address : 0000045FH ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ICR00 ICR01 ICR02 ICR03 ICR04 ICR05 ICR06 ICR07 ICR08 ICR09 ICR10 ICR11 ICR12 ICR13 ICR14 ICR15 ICR16 ICR17 ICR18 ICR19 ICR20 ICR21 ICR22 ICR23 ICR24 ICR25 ICR26 ICR27 ICR28 ICR29 ICR30 ICR31 (Continued) 138 MB91360G Series (Continued) bit 7 6 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 5 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 ICR4 R 3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 ICR3 R/W 2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 ICR2 R/W 1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 ICR1 R/W 0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 ICR0 R/W Address : 00000460H Address : 00000461H Address : 00000462H Address : 00000463H Address : 00000464H Address : 00000465H Address : 00000466H Address : 00000467H Address : 00000468H Address : 00000469H Address : 0000046AH Address : 0000046BH Address : 0000046CH Address : 0000046DH Address : 0000046EH Address : 0000046FH ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ICR32 ICR33 ICR34 ICR35 ICR36 ICR37 ICR38 ICR39 ICR40 ICR41 ICR42 ICR43 ICR44 ICR45 ICR46 ICR47 Address : 00000045H MHALTI R/W ⎯ ⎯ LVL4 R LVL3 R/W LVL2 R/W LVL1 R/W LVL0 R/W HRCL 139 MB91360G Series (2) Block diagram UNMI WAKEUP (1 if LEVEL = 11111) Priority evaluation 5 NMI processing HLDREQ withdrawal request MHALT1 LEVEL4 to 0 NMIRQ (NMI request) LEVEL evaluation R100 ICR00 VECTOR evaluation R147 (DLYIRQ) ICR47 6 LEVEL and VECTOR generation VCT5 to 0 R-bus 140 MB91360G Series 13. External Interrupt/NMI Control Block The external interrupt/NMI controller controls external interrupt requests input from the NMIX and INT0 to INT7 pins. Detection of “H” levels, “L” levels, rising edges, or falling edges can be selected (except for the NMI) . The external interrupt/NMI controller can also be used for DMA requests. This section lists the registers of the controller and provides its block diagram. (1) Register configuration of the external interrupt NMI controller External interruption permission register (ENIR) Bit 7 EN7 6 EN6 5 EN5 4 EN4 3 EN3 2 EN2 1 EN1 0 EN0 External interruption factors register (EIRR) Bit 15 ER7 14 ER6 13 ER5 12 ER4 11 ER3 10 ER2 9 ER1 8 ER0 Request level setting register (ELVR) Bit 15 LB7 14 LA7 6 LA3 13 LB6 5 LB2 12 LA6 4 LA2 11 LB5 3 LB1 10 LA5 2 LA1 9 LB4 1 LB0 8 LA4 0 LA0 Bit 7 LB3 (2) Block diagram R-bus 8 Enable interrupt request register 9 Interrupt request 8 Gate Request F/F 9 Edge detect circuit INT0 to 7 NMIX External interrupt request register 8 External level register 141 MB91360G Series 14. Delayed Interrupt Delayed interrupt control register (DICR) The delayed interrupt control register (DICR) is a delayed interrupt generator register and is used to generate the task switching interrupt. Structure of the DICR Address 00000044H Bits 7 ⎯ 6 ⎯ 5 ⎯ 4 ⎯ 3 ⎯ 2 ⎯ 1 ⎯ 0 DLYI R/W Initial value -------0 ← Access 142 MB91360G Series 15. Clock Generation The MB91360G series generates internal operating clocks as follows : • Base clock generation : Device scales clock source input by 2 (X clock) or oscillates base clock with PLL to generate basic clock (PLL clock) • Generation of each internal clock : Device scales base clock to generate clocks supplied to each block Generation and control of each clock are explained below. Some devices allow the operation of the RTC module based on a separate 32 kHz subclock. See the section “27. Subclock” for more details. (1) Register configuration RSRR : Reset source register, Watchdog timer control register bit address : 00000480H access Initial Value (INITX) Initial Value (INIT) Initial Value (RST) After Boot ROM ** * : varies with reset factor x : not initialized ** : After execution of the program in the internal boot ROM the reset source is visible 15 INIT R 1 * X 0 14 HSTB R 0 * X 0 13 WDOG R 0 * X 0 12 ERST R 0 X * 0 11 SRST R 0 X * 0 10 ⎯ ⎯ ⎯ ⎯ ⎯ 0 9 WT1 R/W 0 0 0 0 8 WT0 R/W 0 0 0 0 STCR : Standby control register bit address : 00000481H access Initial Value (INITX) Initial Value (HSTX) * Initial Value (INIT) Initial Value (RST) 7 STOP R/W 0 0 0 0 6 SLEEP R/W 0 0 0 0 5 HIZ R/W 1 1 1 X 4 SRST R/W 1 1 1 1 3 OS1 R/W 0 1 X X 2 OS0 R/W 0 1 X X 1 0 OSCD2 OSCD1 R/W 1 1 1 X R/W 1 1 1 X * : Valid only when this initialization is performed simultaneously with initialization by INITX : others same as INIT. (Continued) 143 MB91360G Series TBCR : Time-based counter control register bit address : 00000482H Initial Value (INIT) Initial Value (RST) 15 TBIF 0 0 R/W 14 TBIE 0 0 R/W 13 TBC2 X X R/W 12 TBC1 X X R/W 11 TBC0 X X R/W 10 ⎯ X X R/W 9 8 SYNCR SYNCS 0 X R/W 0 X R/W CTBR : Time-based counter clear register bit address : 00000483H Initial Value (INIT) Initial Value (RST) 7 D7 X X W 6 D6 X X W 5 D5 X X W 4 D4 X X W 3 D3 X X W 2 D2 X X W 1 D1 X X W 0 D0 X X W CLKR : Clock source control register bit address : 00000484H Initial Value (INIT) Initial Value (RST) 15 14 13 12 11 10 9 8 CLKS0 R/W 0 X PLL2S0 PLL1S2 PLL1S1 PLL1S0 PLL2EN PLL1EN CLKS1 R/W 0 X R/W 0 X R/W 0 X R/W 0 X R/W 0 X R/W 0 X R/W 0 X WPR Watchdog reset generation postponement register bit address : 00000485H Initial Value (INIT) Initial Value (RST) 7 D7 W X X 6 D6 W X X 5 D5 W X X 4 D4 W X X 3 D3 W X X 2 D2 W X X 1 D1 W X X 0 D0 W X X DIVR0 : Base clock division setting register 0 bit address : 00000486H Initial Value (INIT) Initial Value (RST) 7 B3 R/W 0 X 6 B2 R/W 0 X 5 B1 R/W 0 X 4 B0 R/W 0 X 3 P3 R/W 0 X 2 P2 R/W 0 X 1 P1 R/W 1 X 0 P0 R/W 1 X DIVR1 : Base clock division setting register 1 bit address : 00000487H Initial Value (INIT) Initial Value (RST) 7 T3 R/W 0 X 6 T2 R/W 0 X 5 T1 R/W 0 X 4 T0 R/W 0 X 3 S3 R/W 0 X 2 S2 R/W 0 X 1 S1 R/W 0 X 0 S0 R/W 0 X (Continued) 144 MB91360G Series (Continued) CMCR : Clock control for CAN modules address 0164H bit 15 PRE7 R/W 1 bit 14 PRE6 R/W 1 bit 13 PRE5 R/W 1 bit 12 PRE4 R/W 1 bit 11 PRE3 R/W 1 bit 10 PRE2 R/W 1 bit 9 PRE1 R/W 1 bit 8 PRE0 R/W 1 initial 11111111 address 0165H bit 7 bit 6 bit 5 bit 4 CAL R/W 0 bit 3 MSEL R/W 0 bit 2 MTST R/W 0 bit 1 SCLK R/W 0 bit 0 MSRT R/W 0 initial 00000000 PRES CDSELE IRNG R/W 0 R/W 0 R/W 0 Subclock RTC32 (CLKR2) This register is used to control the RTC32 mode bit for use in subclock system. address 000046H access initial value bit 15 ⎯ ⎯ ⎯ bit 14 ⎯ ⎯ ⎯ bit 13 ⎯ ⎯ ⎯ bit 12 ⎯ ⎯ ⎯ bit 11 ⎯ ⎯ ⎯ bit 10 ⎯ R/W 0 bit 9 ⎯ R/W 0 bit 8 RTC32 R/W 0 145 MB91360G Series (2) Block diagram R b u s DIVR0 and DIVR1 registers [Clock generation block] CPU clock division CPU clock CLKB Resource clock CLKP Ext. bus clock CLKT MONCLK Clock for CAN CANCLK Stop control Resource clock division Ext. bus clock division CLKR register SELCLK X0 X1 Oscillator circuit 4 MHz 1 0 X0A X1A Oscillator circuit 32 kHz STCR register internal Interrrupt internal Reset State transition control circuit PLL1 1/2 Clock mod Clock for RTC [Stop/sleep control block] Stop state Sleep state Reset occurrence F/F Reset occurrence F/F [Reset source circuit] Internal reset (RST) Internal reset (INIT) HSTX RSTX INITX RSRR register WPR register Watchdog F/F Time-base counter CTBR register TBCR register Overflow detect. F/F Time-base timer interrupt request [Watchdog control block] Interrupt enable 146 MB91360G Series 16. Bus Interface The external bus interface controls the interfaces with the external memory and external I/Os. • Up to 32-bit (4 GB) address output. • Up to eight independent banks provided by chip-select function The banks can be set in 64-KB (minimum) at any position in the logic address space. Can be set to no area • 32/16/8 bit bus width setup can be performed for each chip-select area. • Programmable automatic memory wait (up to 7 cycles) insertion • Unused address/data pins can be used as I/O ports. (But see notes below) Note : Chip Select Area CS7 is used for the internal CAN modules. The necessary register settings are done by an internal boot routine. Take care not to overwrite register bits related to this CS area. If the CAN macros which are connected internally to the external bus (also called User Logic Bus) are used, a certain number of data, address and control ports of the external bus interface cannot be configured as general purpose I/O ports. (1) Register Configuration Area select registers (ASR0 to ASR7) ASR0 15 A31 15 A31 15 A31 15 A31 15 A31 15 A31 15 A31 15 A31 14 A30 14 A30 14 A30 14 A30 14 A30 14 A30 14 A30 14 A30 13 A29 13 A29 13 A29 13 A29 13 A29 13 A29 13 A29 13 A29 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... 2 A18 2 A18 2 A18 2 A18 2 A18 2 A18 2 A18 2 A18 1 A17 1 A17 1 A17 1 A17 1 A17 1 A17 1 A17 1 A17 0 A16 0 A16 0 A16 0 A16 0 A16 0 A16 0 A16 0 A16 00000640H ASR1 Initial value INIT RST 0000H 0000H Access W 00000644H ASR2 Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W 00000648H ASR3 0000064CH ASR4 0000650H ASR5 00000654H ASR6 00000658H ASR7 0000065CH Note: After execution of the code in the initial boot ROM ASR0 is set to “0x20”, and ASR7 to “0x10”. (Continued) 147 MB91360G Series (Continued) Area mask register (AMR0 to AMR7) AMR0 15 A31 15 A31 15 A31 15 A31 15 A31 15 A31 15 A31 15 14 A30 14 A30 14 A30 14 A30 14 A30 14 A30 14 A30 14 13 A29 13 A29 13 A29 13 A29 13 A29 13 A29 13 A29 13 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... 12 PO4 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... ... PO3 ... 2 A18 2 A18 2 A18 2 A18 2 A18 2 A18 2 A18 2 A18 1 A17 1 A17 1 A17 1 A17 1 A17 1 A17 1 A17 1 A17 0 A16 0 A16 0 A16 0 A16 0 A16 0 A16 0 A16 0 A16 00000642H AMR1 Initial value INIT RST FFFFH FFFFH Access W 00000646H AMR2 Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W Initial value Access INIT RST 0000H XXXXH W INIT RST -0000111B -00XX111B -0000000B -XXXXXXXB R/W --000000B --XXXXXXB to to --000000B --XXXXXXB 0000064AH AMR3 0000064EH AMR4 0000652H AMR5 00000656H AMR6 0000065AH AMR7 A31 A30 A29 0000065EH Area mode registers (AMD0 to AMD7) 00000660H 00000661H 00000662H to 00000667H ⎯ ⎯ RDYE BW1 BW0 WTC2 WTC1 WTC0 CHE (CacHe Enable register) 00000670H CHE7 CHE6 CHE5 CHE4 CHE3 CHE2 CHE1 CHE0 11111111B R/W CSE (Chip Select Enable register) 00000668H CSE7 CSE6 CSE5 CSE4 CSE3 CSE2 CSE1 CSE0 00000001B R/W 148 MB91360G Series (2) Block diagram Address bus Data bus A-OUT 32 32 External data bus Write bus Switch MUX Read buffer Switch Data block Address block +1 or +2 External address bus Address buffer ASR ASZ Comparator CS0X to CS7X External pin control section All block control resisters & control RDX WR0X, WR1X WR2X, WR3X BRQ BGRNTX RDY CLK 149 MB91360G Series 17. CAN Controller This section provides an overview of the CAN Interface, describes the register structure and functions, and describes the operation of the CAN Interface. The CAN controller is a module built into a MB91360G series. The CAN (Controller Area Network) is the standard protocol for serial communication between automobile controllers and is widely used in industrial applications. The CAN controller has the following features : • Conforms to CAN Specification Version 2.0 Part A and B - Supports transmission/reception in standard frame and extended frame formats • Supports transmitting of data frames by receiving remote frames • 16 transmitting/receiving message buffers - 29-bit ID and 8-byte data - Multi-level message buffer configuration • Supports full-bit comparison, full-bit mask and partial bit mask filtering. - Two acceptance mask registers in either standard frame format or extended frame formats • Bit rate programmable from 10 Kbits/s to 1 Mbits/s (when input clock is at 16 MHz) The following sections only describe CAN 0. For the addresses of the registers of the other CAN channels see the I/O map. The address shown assume that the CS7 area is defined as described in the chapter about the internal Boot ROM. 150 MB91360G Series (1) List of control registers List of Control Registers Address CAN0 100000H 100001H 100002H 100003H 100004H 100005H 100006H 100007H 100008H 100009H 10000AH 10000BH 10000CH 10000DH 10000EH 10000FH 100010H 100011H 100012H 100013H 100014H 100015H 100016H 100017H 100018H 100019H Register Message buffer valid register Transmit request register Transmit cancel register Transmit complete register Receive complete register Remote request receiving register Receive overrun register Receive interrupt enable register Control status register Last event indicator register Receive/transmit error counter Bit timing register IDE register Abbreviation BVALR0 TREQR0 TCANR0 TCR0 RCR0 RRTRR0 ROVRR0 RIER0 CSR0 LEIR0 RTEC0 BTR0 IDER0 Access R/W R/W W R/W R/W R/W R/W R/W R/W, R R/W R R/W R/W Initial Value 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 - - - 000 0 - - - - 0 - 1 - - - - - - - - 000 - 0000 00000000 00000000 -1111111 11111111 XXXXXXXX XXXXXXXX (Continued) 151 MB91360G Series (Continued) Address CAN0 10001AH 10001BH 10001CH 10001DH 10001EH 10001FH 100020H 100021H 100022H 100023H 100024H 100025H 100026H 100027H 100028H 100029H 10002AH 10002BH Acceptance mask register 1 AMR10 R/W XXXXX - - - XXXXXXXX Acceptance mask register 0 AMR00 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX Acceptance mask select register AMSR0 R/W XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX Register Transmit RTR register Remote frame receive waiting register Transmit interrupt enable register Abbreviation TRTRR0 RFWTR0 TIER0 Access R/W R/W R/W Initial Value 00000000 00000000 XXXXXXXX XXXXXXXX 00000000 00000000 XXXXXXXX XXXXXXXX 152 MB91360G Series (2) Message buffers List of Message Buffers (ID Registers) Address CAN0 10002CH to 10004BH 10004CH 10004DH 10004EH 10004FH 100050H 100051H 100052H 100053H 100054H 100055H 100056H 100057H 100058H 100059H 10005AH 10005BH 10005CH 10005DH 10005EH 10005FH 100060H 100061H 100062H 100063H 100064H 100065H 100066H 100067H ID register 6 IDR60 R/W XXXXX - - - XXXXXXXX (Continued) ID register 5 IDR50 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 4 IDR40 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 3 IDR30 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 2 IDR20 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 1 IDR10 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 0 IDR00 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX Register Abbreviation Access Initial Value XXXXXXXX to XXXXXXXX XXXXXXXX XXXXXXXX General-purpose RAM ⎯ R/W 153 MB91360G Series Address CAN0 100068H 100069H 10006AH 10006BH 10006CH 10006DH 10006EH 10006FH 100070H 100071H 100072H 100073H 100074H 100075H 100076H 100077H 100078H 100079H 10007AH 10007BH 10007CH 10007DH 10007EH 10007FH 100080H 100081H 100082H 100083H 100084H 100085H 100086H 100087H Register Abbreviation Access Initial Value XXXXXXXX XXXXXXXX ID register 7 IDR70 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 8 IDR80 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 9 IDR90 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 10 IDR10 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 11 IDR11 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 12 IDR12 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 13 IDR13 R/W XXXXX - - - XXXXXXXX XXXXXXXX XXXXXXXX ID register 14 IDR14 R/W XXXXX - - - XXXXXXXX (Continued) 154 MB91360G Series (Continued) Address CAN0 100088H 100089H 10008AH 10008BH ID register 15 IDR15 R/W XXXXX - - - XXXXXXXX Register Abbreviation Access Initial Value XXXXXXXX XXXXXXXX List of Message Buffers (DLC Registers and Data Registers) Address CAN0 10008CH 10008DH 10008EH 10008FH 100090H 100091H 100092H 100093H 100094H 100095H 100096H 100097H 100098H 100099H 10009AH 10009BH 10009CH 10009DH 10009EH 10009FH 1000A0H 1000A1H Register DLC register 0 DLC register 1 DLC register 2 DLC register 3 DLC register 4 DLC register 5 DLC register 6 DLC register 7 DLC register 8 DLC register 9 DLC register 10 Abbreviation DLCR00 DLCR10 DLCR20 DLCR30 DLCR40 DLCR50 DLCR60 DLCR70 DLCR80 DLCR90 DLCR100 Access R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Initial Value - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX (Continued) 155 MB91360G Series Address CAN0 1000A2H 1000A3H 1000A4H 1000A5H 1000A6H 1000A7H 1000A8H 1000A9H 1000AAH 1000ABH 1000ACH to 1000B3H 1000B4H to 1000BBH 1000BCH to 1000C3H 1000C4H to 1000CBH 1000CCH to 1000D3H 1000D4H to 1000DBH 1000DCH to 1000E3H 1000E4H to 1000EBH 1000ECH to 1000F3H 1000F4H to 1000FBH Register DLC register 11 DLC register 12 DLC register 13 DLC register 14 DLC register 15 Abbreviation DLCR110 DLCR120 DLCR130 DLCR140 DLCR150 Access R/W R/W R/W R/W R/W Initial Value - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX - - - - XXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX (Continued) Data register 0 (8 bytes) DTR00 R/W Data register 1 (8 bytes) DTR10 R/W Data register 2 (8 bytes) DTR20 R/W Data register 3 (8 bytes) DTR30 R/W Data register 4 (8 bytes) DTR40 R/W Data register 5 (8 bytes) DTR50 R/W Data register 6 (8 bytes) DTR60 R/W Data register 7 (8 bytes) DTR70 R/W Data register 8 (8 bytes) DTR80 R/W Data register 9 (8 bytes) DTR90 R/W 156 MB91360G Series (Continued) Address CAN0 1000FCH to 100103H 100104H to 10010BH 10010CH to 100113H 100114H to 10011BH 10011CH to 100123H 100124H to 10012BH Register Abbreviation Access Initial Value XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX XXXXXXXX to XXXXXXXX Data register 10 (8 bytes) DTR100 R/W Data register 11 (8 bytes) DTR110 R/W Data register 12 (8 bytes) DTR120 R/W Data register 13 (8 bytes) DTR130 R/W Data register 14 (8 bytes) DTR140 R/W Data register 15 (8 bytes) DTR150 R/W Configuration Register (CREG) Address Register CAN0 10012CH 10012DH Configuration register CREG0 R/W 00000000 00000110 Abbreviation Access Initial Value 157 MB91360G Series (3) Block diagram CREG CANCLK CLKT Clock Configuration Clock for CAN transmit/receive operation Clock for External Bus Access TQ (Operating clock) SYNC, TSEG1, TSEG2 External Bus (User Logic Bus) PSC PR PH RSJ TOE TS RS CSR HALT NIE NT NS1,0 BTR RTEC BVALR TREQR Prescaler 1 to 64 frequency division Bit timing generation Node status change interrupt generation Node status change interrupt Error control Bus state machine IDLE, INT, SUSPND, transmit, receive, ERR, OVRLD TBFx, clear Transmitting/ receiving sequencer Transmitting buffer x decision TBFX Data Acceptance counter filter control TDLC RDLC IDSEL Error frame generation Overload frame generation ARBLOST Output driver TX TBFX TCANR TRTRR RFWTR TCR TIER RCR RIER RRTRR ROVRR AMSR AMR0 AMR1 IDR0 to 15, DLCR0 to 15, DTR0 to 15, RAM LEIR 0 1 TBFx, set, clear Transmission complete interrupt generator RBFx, set Reception complete interrupt generation RBFx, TBFx, set, clear RBFx, set IDSEL Reception completed interrupt Transmission complete interrupt BITER, STFER, CRCER, FRMER, ACKER Transmission shift register Stuffing CRC ACK TDLC generation generation CRCER RDLC CRC generator/ error check STFER Receive shift register Destuffing/ stuffing error check Arbitration check Bit error check Acknowledgment error check Form error check ARBLOST BITER ACKER FRMER Acceptance filter Receiving buffer x decision RBFX PH1 Input latch RX RAM address generation RBFX, TBFX, RDLC, TDLC, IDSEL 158 MB91360G Series 18. D/A Converter This section provides an overview of the D/A converter, describes the register structure and functions, and describes the operarton of D/A converter.This block is an R-2R format D/A converter, having ten-bit resolution. The D/A converter has two channels.Output control can be performed independently for the two channels using the D/A control register. (1) Block diagram R-bus DA DA DA DA DA DA DA DA DA DA 19 18 17 16 15 14 13 12 11 10 DA DA DA DA DA DA DA DA DA DA 09 08 07 06 05 04 03 02 01 00 DVR DA19 2R DA18 2R DA17 R DA09 DVR 2R DA08 2R DA07 R R R DA11 2R DA10 R DA01 2R DA00 R 2R 2R DAE1 Standby control 2R 2R DAE0 Standby control DA output ch1 DA output ch0 159 MB91360G Series (2) Registers D/A control register (DACR) bit Address : 0000A5H 7 ⎯ 6 ⎯ 5 ⎯ 4 ⎯ 3 ⎯ 2 MODE 1 DAE1 0 DAE0 D/A converter data register (ch 0) (DADR0) bit Address : 0000A6H bit Address : 0000A7H 15 ⎯ 7 DA07 14 ⎯ 6 DA06 13 ⎯ 5 DA05 12 ⎯ 4 DA04 11 ⎯ 3 DA03 10 ⎯ 2 DA02 9 DA09 1 DA01 8 DA08 0 DA00 D/A converter data register (ch 1) (DADR1) bit Address : 0000A8H bit Address : 0000A9H D/A clock control (DDBL) bit Address : 0000ABH 7 ⎯ 6 ⎯ 5 ⎯ 4 ⎯ 3 ⎯ 2 ⎯ 1 ⎯ 0 DBL 15 ⎯ 7 DA17 14 ⎯ 6 DA16 13 ⎯ 5 DA15 12 ⎯ 4 DA14 11 ⎯ 3 DA13 10 ⎯ 2 DA12 9 DA19 1 DA11 8 DA18 0 DA10 160 MB91360G Series 19. 400 kHz I2C Interface This section describes the functions and operation of the fast I2C interface. The I2C interface is a serial I/O port supporting the Inter IC bus, operating as a master/slave device on the I2C bus. (1) • • • • • • • • • • • • • • • • • Features Master/slave transmitting and receiving functions Arbitration function Clock synchronization function General call addressing support Transfer direction detection function Repeated start condition generation and detection function Bus error detection function 7 bit addressing as master and slave 10 bit addressing as master and slave Possibility to give the interface a seven and a ten bit slave address Acknowledging upon slave address reception can be disabled (Master-only operation) Address masking to give interface several slave addresses (in 7 and 10 bit mode) Up to 400 KBit transfer rate Possibility to use built-in noise filters for SDA and SCL Can receive data at 400 KBit if R-bus-Clock is higher than 6 MHz regardless of prescaler setting Can generate MCU interrupts on transmission and bus error events Supports being slowed down by a slave on bit and byte level The I2C interface does not support SCL clock stretching on bit level since it can receive the full 400 KBit datarate if the R-bus-Clock (CLKP) is higher than 6 MHz regardless of the prescaler setting. However, clock stretching on byte level is performed since SCL is pulled low during an interrupt (INT = “1” in IBCR register) . 161 MB91360G Series (2) Block diagram IDBL2 DBL ICCR2 5 CS4 CS3 CS2 CS1 CS0 5 Clock Selector Clock Divider 2 (by 12) SCL Duty Cycle Generator Bus busy Repeat start Last Bit Send/receive Address Data Arbitration Loss Detector ICCR2 NSF enable SCL Noise Filter SDA Bus Observer Bus Error Sync Clock disable R-bus Clock (CLKP) FB59 Module Clock Supply Clock Divider 1 2345 32 Shift Clock Generator IBSR2 BB RSC LRB TRX ADT AL IBCR2 BER BEIE INTE INT R-bus IBCR2 SCC MSS ACK GCAA 8 IDAR IBSR2 AAS GCA ISMK ENSB ITMK ENTB RAL enable 10 bit mode received ad. length 10 ITBA 10 10 7 7 ITMK 10 7 ISBA 7 ISMK enable 7 bit mode Slave General call Slave Address Comparator 8 Start Master ACK enable ACK Generator GC-ACK enable Start-Stop Condition Generator Interrupt Request MCU IRQ SCL SDA 162 MB91360G Series (3) I2C interface registers a : Bus control register (IBCR2) bit 15 BER (R/W) (0) 14 BEIE (R/W) (0) 13 SCC (W) (0) 12 MSS (R/W) (0) 11 ACK (R/W) (0) 10 GCAA (R/W) (0) 9 INTE (R/W) (0) 8 INT (R/W) (0) Address : 000184H Read/write Default value b : Bus status register (IBSR2) bit 7 BB (R) (0) 6 RSC (R) (0) 5 AL (R) (0) 4 LRB (R) (0) 3 TRX (R) (0) 2 AAS (R) (0) 1 GCA (R) (0) 0 ADT (R) (0) Address : 000185H Read/write Default value c : Ten bit slave address register (ITBAH, ITBAL) Ten Bit Address high byte bit 15 ⎯ (⎯) (0) 14 ⎯ (⎯) (0) 13 ⎯ (⎯) (0) 12 ⎯ (⎯) (0) 11 ⎯ (⎯) (0) 10 ⎯ (⎯) (0) 9 TA9 (R/W) (0) 8 TA8 (R/W) (0) Address : 000186H Read/write Default value Ten Bit Address low byte bit 7 TA7 (R/W) (0) 6 TA6 (R/W) (0) 5 TA5 (R/W) (0) 4 TA4 (R/W) (0) 3 TA3 (R/W) (0) 2 TA2 (R/W) (0) 1 TA1 (R/W) (0) 0 TA0 (R/W) (0) Address : 000187H Read/write Default value d : Ten bit slave address mask register (ITMKH, ITMKL) Ten Bit Address Mask high byte bit 15 ENTB (R/W) (0) 14 RAL (R) (0) 13 ⎯ (⎯) (1) 12 ⎯ (⎯) (1) 11 ⎯ (⎯) (1) 10 ⎯ (⎯) (1) 9 TM9 (R/W) (1) 8 TM8 (R/W) (1) Address : 000188H Read/write Default value Ten Bit Address Mask low byte bit 7 TM7 (R/W) (1) 6 TM6 (R/W) (1) 5 TM5 (R/W) (1) 4 TM4 (R/W) (1) 3 TM3 (R/W) (1) 2 TM2 (R/W) (1) 1 TM1 (R/W) (1) 0 TM0 (R/W) (1) Address : 000189H Read/write Default value e : Seven bit slave address register (ISBA) bit 7 ⎯ (⎯) (0) 6 SA6 (R/W) (0) 5 SA5 (R/W) (0) 4 SA4 (R/W) (0) 3 SA3 (R/W) (0) 2 SA2 (R/W) (0) 1 SA1 (R/W) (0) 0 SA0 (R/W) (0) Address : 00018BH Read/write Default value (Continued) 163 MB91360G Series (Continued) f : Seven bit slave address mask register (ISMK) bit 15 ENSB (R/W) (0) 14 SM6 (R/W) (1) 13 SM5 (R/W) (1) 12 SM4 (R/W) (1) 11 SM3 (R/W) (1) 10 SM2 (R/W) (1) 9 SM1 (R/W) (1) 8 SM0 (R/W) (1) Address : 00018AH Read/write Default value g : Data register (IDARH, IDAR2) Data register high byte bit 15 ⎯ (⎯) (0) 14 ⎯ (⎯) (0) 13 ⎯ (⎯) (0) 12 ⎯ (⎯) (0) 11 ⎯ (⎯) (0) 10 ⎯ (⎯) (0) 9 ⎯ (⎯) (0) 8 ⎯ (⎯) (0) Address : 00018CH Read/write Default value Data register bit 7 D7 (R/W) (0) 6 D6 (R/W) (0) 5 D5 (R/W) (0) 4 D4 (R/W) (0) 3 D3 (R/W) (0) 2 D2 (R/W) (0) 1 D1 (R/W) (0) 0 D0 (R/W) (0) Address : 00018DH Read/write Default value h : Clock control register (ICCR2) bit 15 ⎯ (⎯) (0) 14 NSF (R/W) (0) 13 EN (R/W) (0) 12 CS4 (R/W) (1) 11 CS3 (R/W) (1) 10 CS2 (R/W) (1) 9 CS1 (R/W) (1) 8 CS0 (R/W) (1) Address : 00018EH Read/write Default value i : Clock disable register (IDBL2) bit 7 ⎯ (⎯) (0) 6 ⎯ (⎯) (0) 5 ⎯ (⎯) (0) 4 ⎯ (⎯) (0) 3 ⎯ (⎯) (0) 2 ⎯ (⎯) (0) 1 ⎯ (⎯) (0) 0 DBL (R/W) (0) Address : 00018FH Read/write Default value 164 MB91360G Series 20. 16-bit I/O Timer The MB91360G Series contains two 16-bit free-running timer modules, two output compare modules, and two input capture modules and supports four input channels and four output channels. The following sections only describes the 16-bit free-running timer, Output Compare 0/1 and Input Capture 0/1. The remaining modules have the identical functions and the register addresses should be found in the I/O map. (1) Function overview a : 16-bit free-running timer The 16-bit free-run timer consists of a 16-bit up counter, control register, and prescaler. The values output from this timer counter are used as the base timer for input capture and output compare. • Four counter clocks are available. Internal clock : φ/4, φ/16, φ/32, φ/64 • An interrupt can be generated upon a counter overflow or a match with compare register 0. • The counter value can be initialized to “0000H” upon a reset, software clear, or match with compare register 0. b : Output compare (2 channels per one module) The output compare module consists of two 16-bit compare registers, compare output latch, and control register. When the 16-bit free-running timer value matches the compare register value, the output level is reversed and an interrupt is issued. • The two compare registers can be used independently. Output pins and interrupt flags corresponding to compare registers • Output pins can be controlled based on pairs of the two compare registers. Output pins can be reversed by using the two compare registers. • Initial values for output pins can be set. • Interrupts can be generated upon a compare match. c : Input capture (2 channels per one module) The input capture module consists of two 16-bit capture registers and control registers corresponding to two independent external input pins. The 16-bit free-running timer value can be stored in the capture register and an interrupt is issued simultaneously upon detection of an edge of a signal input from an external input pin. • The detection edge of an external input signal can be specified. Rising, falling, or both edges • Two input channels can operate independently. • An interrupt can be issued upon a valid edge of an external input signal. 165 MB91360G Series (2) Registers a : 16-bit free-running timer 15 0 000C8 H 0000CCH 0000CBH 0 000CF H TCDT0/1 0 Timer data register TCCS0/1 Timer status register b : 16-bit output compare 15 0000BCH 0 000BE H 0 000C0 H 0 000C2 H 0 000B8 H OCCP0/1/2/3 0 Compare register OSC01 Control status register c : 16-bit input capture 15 0 000B0 H 0 000B2 H 0 000B4 H 0 000B6 H 0000ACH 0 000AE H IOTDBL0/1 IPCP0/1/2/3 0 Capture register ICS01/23 Disable/Control status register (3) Block diagram Control logic Interrupt 16-bit free-run timer 16-bit timer Clear Output compare 0 Compare register 0 Bus Output compare 1 Compare register 1 TQ OUT1 TQ OUT0 To each block Edge selection Input caputure 0 Capture register 0 Input caputure 1 Capture register 1 Edge selection IN1 IN0 166 MB91360G Series 21. Alarm Comparator This section provides an overview of the Alarm Comparator (Also called Under/Overvoltage Detection) , describes the register structure and functions, and describes the operation of the Alarm Comparator. (1) Block diagram Alarm comparator - analog part AVDD Alarm comparator - digital part FR51 RB [15:0] OUT1 DQ CK PD ACSR B0DX RB [15:0] STOP DEC RSLEEP RST CLKP REG CDBLE Interrupt logic F-MODULE IRQ_AC B-MODULE IRQ_AC ALARM STOP WRCR PMWR RDCR RSLEEP RST CLKP CDBLE OUT2 DQ CK CLKP UMQA02 (2) Registers Alarm comparator clock disable register (ACCDBL) Address 00000180H Bits 7 ⎯ 6 ⎯ 5 ⎯ 4 ⎯ 3 ⎯ 2 ⎯ 1 ⎯ 0 CDBLE R/W Initial value - - - - - - - 0B ← Access Initial value -11xxx00B ← Access Alarm comparator status disable register (ACSR) Address 00000181H Bits 7 ⎯ 6 5 4 OUT2 R 3 OUT1 R 2 IRQ R/W 1 IEN R/W 0 PD R/W OV_EN UV-EN R/W R/W 167 MB91360G Series 22. Power Down Reset This section provides an overview of the Power Down Reset, and describes the register structure. The power down reset module performs a system reset when VCC goes below a threshold voltage. The reset signal is be disabled and enabled by setting the power down reset control register (PDRCR) . For low power applications the digital and the analog part of the power down reset control circuit can be disabled. (1) Block diagram input stage PDCOMP IN OUT EN RST 9-bit LFSR counter CLR READY PDRSTX S WR RB [1] (RD bit) R Q (2) Register 7 6 ⎯ ⎯ ⎯ X 5 ⎯ ⎯ ⎯ X 4 ⎯ ⎯ ⎯ X 3 ⎯ ⎯ ⎯ X 2 CDSBLE R/W 0 X 1 PD R/W 0 X 0 EN R/W 0 X PDRCR 00017DH access initial value (INIT) initial value (RST) ⎯ ⎯ ⎯ X 168 MB91360G Series 23. Serial I/O Interface (SIO) This section provides an overview of the Serial I/O Interface (SIO) , and describes the register structure. (1) Block diagram This block is a serial I/O interface that allows data transfer using clock synchronization. The interface consists of a single eight-bit channel. Data can be transferred from the LSB or MSB. MB91360G series contains two Serial I/O units SIO0 and SIO1. This section only describes SIO0. Please see the I/O map for the register addresses of SIO1. The serial I/O interface operates in two modes : • Internal shift clock mode : Data is transferred in synchronization with the internal clock. • External shift clock mode : Data is transferred in synchronization with the clock supplied via the external pin (SCK) . By manipulating the general-purpose port sharing the external pin (SCK) , data can also be transferred by a CPU instruc tion in this mode. Internal data bus (MSB first) D7 to D0 SIN3 SDR (Serial data register) D7 to D0 (LSB first) Transfer direction selection Read Write SOT3 SCK3 Control circuit Shift clock counter Internal clock 2 SMD2 1 SMD1 0 SMD0 SIE SIR BUSY STOP STRT MODE BDS ⎯ SCOE Interrupt request Internal data bus 169 MB91360G Series (2) Registers Serial mode control status register (SMCS) 15 14 SMD1 13 SMD0 12 SIE 11 SIR 10 BUSY 9 STOP 8 STRT Address : 000084H SMD2 7 6 ⎯ 5 ⎯ 4 ⎯ 3 MODE 2 BDS 1 ⎯ 0 SCOE Address : 000085H ⎯ SIO edge selection/clock disable register (SES) 15 14 ⎯ 13 ⎯ 12 ⎯ 11 ⎯ 10 ⎯ 9 DBL 8 NEG Address : 000086H Serial data register (SDR) ⎯ 7 6 D6 5 D5 4 D4 3 D3 2 D2 1 D1 0 D0 Address : 000087H D7 170 MB91360G Series 24. Sound Generator This section provides an overview of the Sound Generator, and describes the register structure. The Sound Generator consists of the Sound Control register, Frequency Data register, Amplitude Data register, Decrement Grade register, Tone Count register, Sound Disable register, PWM pulse generator, Frequency counter, Decrement counter and Tone Pulse counter. (1) Registers Sound control register (SGCR) bit 7 S1 (R/W) (0) bit 15 TST (R/W) (0) 6 S0 (R/W) (0) 14 ⎯ (⎯) (⎯) 5 TONE (R/W) (0) 13 ⎯ (⎯) (⎯) 4 ⎯ (⎯) (⎯) 12 ⎯ (⎯) (⎯) 3 ⎯ (⎯) (⎯) 11 ⎯ (⎯) (⎯) 2 INTE (R/W) (0) 10 ⎯ (⎯) (⎯) 1 INT (R/W) (0) 9 BUSY (R) (0) 0 ST (R/W) (0) 8 DEC (R/W) (0) Address : 0000EFH Read/write Default value Address : 0000EEH Read/write Default value Frequency data register (SGFR) bit 7 D7 (R/W) (X) 6 D6 (R/W) (X) 5 D5 (R/W) (X) 4 D4 (R/W) (X) 3 D3 (R/W) (X) 2 D2 (R/W) (X) 1 D1 (R/W) (X) 0 D0 (R/W) (X) Address : 0000F1H Read/write Default value Amplitude data register (SGAR) bit 15 D7 (R/W) (0) 14 D6 (R/W) (0) 13 D5 (R/W) (0) 12 D4 (R/W) (0) 11 D3 (R/W) (0) 10 D2 (R/W) (0) 9 D1 (R/W) (0) 8 D0 (R/W) (0) Address : 0000F0H Read/write Default value Decrement grade register (SGDR) bit 7 D7 (R/W) (X) 6 D6 (R/W) (X) 5 D5 (R/W) (X) 4 D4 (R/W) (X) 3 D3 (R/W) (X) 2 D2 (R/W) (X) 1 D1 (R/W) (X) 0 D0 (R/W) (X) Address : 0000F3H Read/write Default value Tone count register (SGTR) bit 15 D7 (R/W) (X) 14 D6 (R/W) (X) 13 D5 (R/W) (X) 12 D4 (R/W) (X) 11 D3 (R/W) (X) 10 D2 (R/W) (X) 9 D1 (R/W) (X) 8 D0 (R/W) (X) Address : 0000F2H Read/write Default value Sound disable register (SGDBL) bit 7 ⎯ (⎯) (⎯) 6 ⎯ (⎯) (⎯) 5 ⎯ (⎯) (⎯) 4 ⎯ (⎯) (⎯) 3 ⎯ (⎯) (⎯) 2 ⎯ (⎯) (⎯) 1 ⎯ (⎯) (⎯) 0 DBL (R/W) (0) Address : 0000EDH Read/write Default value 171 MB91360G Series (2) Block diagram Clock input Prescaler S1 S0 8-bit PWM pulse generator CO EN PWM Reload CI Frequency counter CO EN Reload Decrement Grade register DEC Toggle flip-flop D EN Q 1/d Amplitude data register DEC Decrement counter CI CO EN SGA Decrement grade register Mix SGO Tone pulse counter TONE CI CO EN Tone count register INTE INT ST IRQ 172 MB91360G Series 25. Stepper Motor Controller This section provides an overview of the Stepper Motor Control Module, and describe the register structure. The Stepping Motor Controller consists of two PWM Pulse Generators, four motor drivers, Selector Logic and the Zero Rotor Position Detector. The four motor drivers have high output drive capabilities and they can be directly connected to the four ends of two motor coils. The combination of the PWM Pulse Generators and Selector Logic is designed to control the rotation of the motor. A Synchronization mechanism assures the synchronous operations of the two PWMs. The Zero Rotor Position Detector helps CPU obtain feed back information of the rotor movements. The following sections describe the Stepping Motor Controller 0 only. The other controllers have the same functions. The register addresses are found in the I/O map. Note : The Rotor Zero Position Detection capability is protected by a patent from siemens VDO automatic AG and may only be used with VDO’s prior approval. (1) Block diagram Machine clock Prescaler CK PWM1 pulse generator EN PWM Selector PWM1P0 PWM1M0 P1 P0 PWM1 compare register PWM1 selector register CK PWM2P0 PWM2 pulse generator CE EN PWM Load PWM2 compare register BS PWM2 select register Selector PWM2M0 Comparator Debounce logic 8-bit counter + − 1/9 AVCC reference voltage PWM2M0 Zero Detect 0 register Power down Zero Rotor Position Detector 173 MB91360G Series (2) Registers PWM control 0 register (PWC0) bit 7 ⎯ (⎯) (⎯) 6 ⎯ (⎯) (⎯) 5 P1 (R/W) (0) 4 P0 (R/W) (0) 3 CE (R/W) (0) 2 ⎯ (⎯) (⎯) 1 ⎯ (⎯) (⎯) 0 TST (R/W) (0) Address : 0000D1H Read/write Default value Zero detect 0 register (ZPD0) bit 15 S1 (R/W) (0) 14 S0 (R/W) (0) 13 TS (R/W) (0) 12 T2 (R/W) (0) 11 T1 (R/W) (0) 10 T0 (R/W) (0) 9 PD (R/W) (1) 8 RS (R/W) (0) Address : 0000D0H Read/write Default value PWM1 compare 0 register (PWC10) bit 7 D7 (R/W) (X) 6 D6 (R/W) (X) 5 D5 (R/W) (X) 4 D4 (R/W) (X) 3 D3 (R/W) (X) 2 D2 (R/W) (X) 1 D1 (R/W) (X) 0 D0 (R/W) (X) Address : 0000D9H Read/write Default value PWM2 compare 0 register (PWC20) bit 15 D7 (R/W) (X) 14 D6 (R/W) (X) 13 D5 (R/W) (X) 12 D4 (R/W) (X) 11 D3 (R/W) (X) 10 D2 (R/W) (X) 9 D1 (R/W) (X) 8 D0 (R/W) (X) Address : 0000D8H Read/write Default value PWM1 select register (PWS10) bit 7 ⎯ (⎯) (⎯) 6 ⎯ (⎯) (⎯) 5 P2 (R/W) (0) 4 P1 (R/W) (0) 3 P0 (R/W) (0) 2 M2 (R/W) (0) 1 M1 (R/W) (0) 0 M0 (R/W) (0) Address : 0000DBH Read/write Default value PWM2 select register (PWS20) bit 15 ⎯ (⎯) (⎯) 14 BS (R/W) (0) 13 P2 (R/W) (0) 12 P1 (R/W) (0) 11 P0 (R/W) (0) 10 M2 (R/W) (0) 9 M1 (R/W) (0) 8 M0 (R/W) (0) Address : 0000DAH Read/write Default value PWM clock disable register (SMDBL0) bit 7 ⎯ (⎯) (⎯) 6 ⎯ (⎯) (⎯) 5 ⎯ (⎯) (⎯) 4 ⎯ (⎯) (⎯) 3 ⎯ (⎯) (⎯) 2 ⎯ (⎯) (⎯) 1 ⎯ (⎯) (⎯) 0 DBL (R/W) (0) Address : 0000E8H Read/write Default value 174 MB91360G Series 26. Real Time Clock This section provides an overview of the Real Time Clock (also called WatchTimer) , describes the register structure and functions.The Real Time Clock (Watch Timer) consists of the Timer Control register, Sub-second register, Second/Minute/Hour registers, 1/2 clock divider, 21bit prescaler and Second/Minute/Hour counters. The Real Time Clock operates as the real-world timer and provides the real-world time information. (1) Block diagram Oscillation clock 1/2 Clock Divider 21 bit prescaler COEN WOT Sub second register UPDT ST Second counter CI EN LOAD CO 6 bits Minute counter CO 6 bits Hour counter CO 5 bits Second/Minute/Hour register INTE0 INT0 INTE1 INT1 INTE2 INT2 INT3 INT3 IRQ 175 MB91360G Series (2) Registers Timer disable register (WTDBL) bit 7 ⎯ (⎯) (⎯) 6 ⎯ (⎯) (⎯) 5 ⎯ (⎯) (⎯) 4 ⎯ (⎯) (⎯) 3 ⎯ (⎯) (⎯) 2 ⎯ (⎯) (⎯) 1 ⎯ (⎯) (⎯) 0 DBL (R/W) (0) Address : 0000F5H Read/write Default value Timer control register (WTCR) bit 7 TST2 (R/W) (0) 6 TST1 (R/W) (0) 14 INT3 (R/W) (0) 5 TST0 (R/W) (0) 13 INTE2 (R/W) (0) 4 ⎯ (⎯) (⎯) 12 INT2 (R/W) (0) 3 RUN (R) (0) 11 INTE1 (R/W) (0) 2 UPDT (R/W) (0) 10 INT1 (R/W) (0) 1 ⎯ (⎯) (⎯) 9 INTE0 (R/W) (0) 0 ST (R/W) (0) 8 INT0 (R/W) (0) Address : 0000F7H Read/write Default value bit 15 INTE3 (R/W) (0) Address : 0000F6H Read/write Default value Sub-second register (WTBR) bit 7 D7 (R/W) (X) 6 D6 (R/W) (X) 14 D14 (R/W) (X) 6 ⎯ (⎯) (⎯) 5 D5 (R/W) (X) 13 D13 (R/W) (X) 5 ⎯ (⎯) (⎯) 4 D4 (R/W) (X) 12 D12 (R/W) (X) 4 D20 (R/W) (X) 3 D3 (R/W) (X) 11 D11 (R/W) (X) 3 D19 (R/W) (X) 2 D2 (R/W) (X) 10 D10 (R/W) (X) 2 D18 (R/W) (X) 1 D1 (R/W) (X) 9 D9 (R/W) (X) 1 D17 (R/W) (X) 0 D0 (R/W) (X) 8 D8 (R/W) (X) 0 D16 (R/W) (X) Address : 0000FBH Read/write Default value bit 15 D15 (R/W) (X) Address : 0000FAH Read/write Default value bit 7 ⎯ (⎯) (⎯) Address : 0000F9H Read/write Default value Second register (WTSR) bit 15 ⎯ (⎯) (⎯) 14 ⎯ (⎯) (⎯) 13 S5 (R/W) (X) 12 S4 (R/W) (X) 11 S3 (R/W) (X) 10 S2 (R/W) (X) 9 S1 (R/W) (X) 8 S0 (R/W) (X) Address : 0000FEH Read/write Default value (Continued) 176 MB91360G Series (Continued) Minute register (WTMR) bit 7 ⎯ (⎯) (⎯) 6 ⎯ (⎯) (⎯) 5 M5 (R/W) (X) 4 M4 (R/W) (X) 3 M3 (R/W) (X) 2 M2 (R/W) (X) 1 M1 (R/W) (X) 0 M0 (R/W) (X) Address : 0000FDH Read/write Default value Hour register (WTHR) bit 15 ⎯ (⎯) (⎯) 14 ⎯ (⎯) (⎯) 13 ⎯ (⎯) (⎯) 12 H4 (R/W) (X) 11 H3 (R/W) (X) 10 H2 (R/W) (X) 9 H1 (R/W) (X) 8 H0 (R/W) (X) Address : 0000FCH Read/write Default value 177 MB91360G Series 27. Subclock The Subclock System provides various power saving modes. The key of the concept is to supply the 32 kHz clock signal only to the Real Time Clock RTC) Module, while the rest of the MCU is provided with 4 MHz clock signal in order to achieve lower power supply current in the RTC32K mode. This behavior can be altered by the configuration input, SELCLK pin to switch the RTC module to operate with the 4 MHz clock. The following sections describe the operation with SELCLK connected to “0” and SELCLK connected to “1” respectively. Note : On MB91F362GB SELCLK should always be connected to “1”, subclock operation is not implemented on those devices. (1) Operation of subclock (SELCLK = 0) The next table summarizes the operation states of the components related to the Subclock System.To simplify this table SLEEP modes are not listed but the operation is the same as for RUN modes except that the CPU is stopped. Operation of Components Mode Power Dissipation CPU & 4 M Osc. 32 K Osc. RTC PLL Peripheral RUN RTC4M32K RTC32K STOP High Medium Low Low Lowest Run Run Stop Stop Run Run Run Stop Run Run Run Stop Run Stop Stop Stop Stop/Run Stop Stop Stop The following table summarizes those operation modes and necessary software settings. Software Setting Mode STOP PLL1EN PLL2EN OSCD1 OSCD2 RUN RTC4M32K RTC32K STOP 0 1 1 1 0 or 1 Don’t Care Don’t Care Don’t Care 1 1 1 Don’t Care Don’t Care 0 1 1 Don’t Care 0 0 1 RTC32 Don’t Care Don’t Care 1 Don’t Care It is recommended that PLL2EN is set to “1” after the initialization to start the 32 kHz oscillation and this bit should be kept at “1” during the operation. Otherwise the 32 kHz oscillator does not start. Also bits 9 and 10 of the CLKR register (address 0046H) should always be set to “0” during operation. 178 MB91360G Series (2) 4 MHz real time clock configuration (SELCLK = 1) When the SELCLK pad is connected logic level 1, the 32 kHz oscillation is disabled regardless of the software setting. In this configuration, the Real Time Clock Module is supplied with the 4 MHz oscillation clock signal. The following table summaries the modes available in this configuration. Operation of Components Mode Power Dissipation CPU & 4 M Osc. 32 K Osc. RTC Peripheral RUN RTC4M STOP High Medium Low Lowest Run Run Stop Stop Stop Stop Run Run Stop Run Stop Stop PLL Stop/Run Stop Stop Mode RUN RTC4M STOP Software Setting STOP 0 1 1 PLL1EN 0 or 1 Don’t Care Don’t Care PLL2EN Don’t Care Don’t Care Don’t Care OSCD1 Don’t Care 0 1 OSCD2 Don’t Care Don’t Care Don’t Care RTC32 Don’t Care Don’t Care Don’t Care (3) Use of real time clock module There is some additional consideration needed to operate the RTC module to achieve the desired functionality. Because the RTC module is directly connected to the 32 kHz oscillation clock, the oscillation stabilization time has to be taken care of by the software.This can be achieved by using another timer (e.g the Time Base Timer) to trigger the software to start the RTC module (Setting of ST bit to “1”) . It is also important to stop the RTC module before entering the STOP mode. Otherwise, the reactivation from STOP mode results in unpredictable operation of the RTC module. After the reactivation, the oscillation stabilization time has to be measured again by the software, then the RTC module can be restarted. 179 MB91360G Series 28. 32 kHz Clock Calibration Unit The 32 kHz Clock Calibration Module provides possibilities to calibrate the 32 kHz oscillation clock with respect to the 4 MHz oscillation clock. (1) Description This hardware allows the software to measure time generated by the 32 kHz clock with the 4 MHz clock. By utilizing this hardware in conjunction with software processing, the accuracy of the 32 kHz clock can come closer to that of the 4 MHz clock. The measurement result from the 32 kHz Clock Calibration Module can be processed by the software and the setting required for the Real Time Clock Module can be obtained. This module consists of two timers, one operating with the 32 kHz clock and the other operating with the 4 MHz clock. The 32 kHz timer triggers the 4 MHz timer and resulting 4 MHz timer value is stored in a register. The value stored in this register can be used for the subsequent software processing to calculate the desired Real Time Clock module’s setting. (2) Block diagram OSC4 STRT READY RUNS OSC32 STRT CLKP RSLEEPB UC18CLK CLK4G = OSC4 | ∼ STRT | (READY & −RUNS) ; gate CLK4G gate gate gate CLKPG CLK32G 32 kHz UC18TRD TIMER counter (16 bit) & anync RUN RST READY STRT 4 MHz TIMER CUTR (24 bit) UC18TRR CLKPG2 CUTD STRTS RUN sync RUNS 32 ≥ 4 CUTR RSLEEPB STRT SLKPG2 = CLKP | (∼STRT & RSLEEPB) ; sync CLKP ≥ 32 async STRT RST STRT RB STRT set /reset INTEN set /reset INT reset reset & READY RUNSS1 RUNSS sync 4 ≥ CLKP RB RSLEEP RMW UC18BUS INT *_RD *_WR RST UC18I/O RBB RSLEEPB RMWB set READYPULSE CUCR (3 bit) INT_I *_RDB *_WRB RSTB & INT_INT CUTR (24 bit) CUTD VC18RBI CUTD (16 bit) 180 MB91360G Series (3) Timing 32 kHz STRT (CLKP) STRTS (32 kHz) RUN (32 kHz) RUNS (4 MHz) 32 kHz counter (16 bit) 4 MHz counter (24 bit) READY (32 kHz) READYPULSE (CLKP) INT (CLKP) old CUTR 0 CUTD CUTD-1 2 1 0 CUTD new CUTR 181 MB91360G Series (4) Clocks The module operates with 3 different clocks : The 4 MHz clock OSC4, the 32 kHz clock OSC32 and the R-bus clock CLKP Synchronization circuits adapt the different domains. . All 3 clocks are gated. The 32 kHz and the 4 MHz clock are switched off if STRT is 0. CLKPG is gated by RSLEEP and CLKPG2 by RSLEEP and STRT for the 2 bits, which are set/reset by hardware. The clock frequencies have to fulfill the following requirements : 1.) Clock ratio TOSC32 > 2 × TOSC4 + 3 × TCLKP TOSC4 < 1 / 2 × TOSC32 − 3 / 2 × TCLKP TCLKP < 1 / 3 × TOSC32 − 2 / 3 × TOSC4 2.) The input frequencies must not exceed the values given in next table. Maximum operation frequencies CLKP Maximum 32 MHz 31.25 ns 4 MHz OSC32 250 ns OSC4 13 MHz 76.9 ns Examples of valid clock ratios which fulfill requirements 1 and 2 OSC32 Maximum operation speed Standard TDIR mode Normal operation 4 MHz 500 kHz 32 kHz 250 ns 2000 ns 31.25 us 4 MHz 4 MHz OSC4 13 MHz 76.9 ns 250 ns 250 ns 4 MHz > 2 MHz CLKP 32 MHz 31.25 ns 250 ns 500 ns 182 MB91360G Series (5) Register description a : Calibration unit control register (CUCR) Control register low byte (CUCRL) bit 7 ⎯ (R) (0) 6 ⎯ (R) (0) 5 ⎯ (R) (0) 4 STRT (R/W) (0) 3 ⎯ (R) (0) 2 ⎯ (R/W) (0) 1 INT (R/W) (0) 0 INTEN (R/W) (0) Address : 000191H Read/write Default value b : 32 kHz timer data register (CUTD) 32 kHz timer data register high byte (CUTDH) bit 15 TDD15 (R/W) (1) 14 TDD14 (R/W) (0) 13 TDD13 (R/W) (0) 12 TDD12 (R/W) (0) 11 TDD11 (R/W) (0) 10 TDD10 (R/W) (0) 9 TDD9 (R/W) (0) 8 TDD8 (R/W) (0) Address : 000192H Read/write Default value 32 kHz timer data register low byte (CUTDL) bit 7 TDD7 (R/W) (0) 6 TDD6 (R/W) (0) 5 TDD5 (R/W) (0) 4 TDD4 (R/W) (0) 3 TDD3 (R/W) (0) 2 TDD2 (R/W) (0) 1 TDD1 (R/W) (0) 0 TDD0 (R/W) (0) Address : 000193H Read/write Default value c : 4 MHz timer data register (CUTR) 4 MHz timer data register1 high byte (CUTR1H) bit 15 ⎯ (R) (0) 14 ⎯ (R) (0) 13 ⎯ (R) (0) 12 ⎯ (R) (0) 11 ⎯ (R) (0) 10 ⎯ (R) (0) 9 ⎯ (R) (0) 8 ⎯ (R) (0) Address : 000194H Read/write Default value 4 MHz timer data register1 low byte (CUTR1L) bit 7 TDR23 (R) (0) 6 TDR22 (R) (0) 5 TDR21 (R) (0) 4 TDR20 (R) (0) 3 TD19 (R) (0) 2 TDR18 (R) (0) 1 TDR17 (R) (0) 0 TDR16 (R) (0) Address : 000195H Read/write Default value 4 MHz timer data register2 high byte (CUTR2H) bit 15 TDR15 (R) (0) 14 TDR14 (R) (0) 13 TDR13 (R) (0) 12 TDR12 (R) (0) 11 TDR11 (R) (0) 10 TDR10 (R) (0) 9 TDR9 (R) (0) 8 TDR8 (R) (0) Address : 000196H Read/write Default value 4 MHz timer data register2 low byte (CUTR2L) bit 7 TDR7 (R) (0) 6 TDR6 (R) (0) 5 TDR5 (R) (0) 4 TDR4 (R) (0) 3 TD3 (R) (0) 2 TDR2 (R) (0) 1 TDR1 (R) (0) 0 TDR0 (R) (0) Address : 000197H Read/write Default value 183 MB91360G Series 29. Flash Memory MB91360G series devices feature 512 Kbyte of embedded flash memory unit derived from the MB29LV400C and the FLASH Memory interface circuit. (1) Out line of flash memory The Flash Memory consists of a flash memory unit derived from the MBM29LV400C and a flash memory interface circuit. • 512 Kword × 8 bit/256 Kword × 16 bit/128 Kword × 32 bit (64 Kbyte×3 + 32 Kbyte + 8 Kbyte×2 + 16 Kbyte) sectors • Uses automatic program algorithm (Embedded AlgorithmTM*) • Erase pause/restart function • Detects completion of writing/erasing using data polling or toggle bit functions • Detects completion of writing/erasing by RY/BY pin • Compatible with JEDEC standard commands • Performs minimum of 10,000 write/erase operations • Sector erase function (any combination of sectors) • Sector protect function • Temporary sector protect cancellation function • Allows flash memory interface circuit to write to/erase flash memory both under control of external pin by writer and under control of internal bus by CPU. * : Embedded Algorithm™ is a registered trademark of Advanced Micro Devices, Inc. 184 MB91360G Series (2) Block diagrams of flash memory a : Block diagram of flash memory Figure shows the block diagram of the flash memory unit, which has almost the same configuration as the MBM29LV400C. RY/BY buffer DQ0 to DQ15 RY/BY Erase circuit WE BYTE RESET Control circuit Write circuit CE OE Chip enable/ output enable circuit STB I/O buffer Data latch Y decoder STB Low VCC detection circuit A0 to A17 A-1 Write/erase pulse timer address latch X decoder Y gate cell matrix b : Entire block diagram of flash memory Figure shows the entire block diagram of the flash memory with the flash memory interface circuit. Flash memorry interface circuit BYTE CE OE WE A0 to A18 User Logic bus DQ0 to DQ15 RY/BY 4 Mbit flash memory BYTE CE OE WE A0 to A17 A-1 DQ0 to DQ15 RY/BY RESET Ext.Bus I/F External reset signal RY/BY write enable signal 185 MB91360G Series c : Sector configuration Write, Byte read, Half word read Flash Memory Mode 8 bit × 2 Sector 13 Sector 12 Sector 11 Sector 10 Sector 9 Sector 8 Sector 7 Sector 6 Sector 5 Sector4 Sector 3 Sector 2 Sector 1 Sector 0 16 KB 8 KB 8 KB 32 KB 64 KB 64 KB 64 KB 16 KB 8 KB 8 KB 32 KB 64 KB 64 KB 64 KB 7FFFFH 7C000H 7A000H 78000H 70000H 60000H 50000H 40000H 3C000H 3A000H 38000H 30000H 20000H 10000H 00000H Other Modes FFFFFH FC000H FA000H F8000H F0000H E0000H D0000H C0000H BC000H BA000H B8000H B0000H A0000H 90000H 80000H Long word read MSB 8 bit × 2 Sector 13 Sector 12 Sector 11 Sector 10 Sector 9 Sector 8 Sector 7 16 KB 8 KB 8 KB 32 KB 64 KB 64 KB 64 KB Sector 6 Sector 5 Sector 4 Sector 3 Sector 2 Sector 1 Sector 0 LSB 8 bit × 2 16 KB 8 KB 8 KB 32 KB 64 KB 64 KB 64 KB Flash Memory Mode 7FFFFH 78000H 74000H 70000H 60000H 40000H 20000H 00000H Other Modes FFFFFH F8000H F4000H F0000H E0000H C0000H A0000H 80000H 186 MB91360G Series (3) Write/Erase modes The flash memory can be accessed in two different ways; the flash memory mode allowing write/erase directly from the external pins, and the other modes allowing write/erase from the CPU via the internal bus. These modes are selected by the external mode pins. a : Flash memory mode The CPU stops when the mode pins are set to 111 while the INITX signal is asserted. The flash memory interface circuit is directly connected to the external bus interface, allowing direct control by the external pins. This mode makes the MCU seem like a standard flash memory at the external pins, and write/erase can be performed using a flash memory programmer. In the flash memory mode all the operations supported by the flash memory automatic algorithm can be used. b : Other modes The flash memory is located in the CS1X area of the CPU memory space and like ordinary mask ROM can be read-accessed and program-accessed from the CPU through the flash memory interface circuit. Writing/erasing the flash memory is performed by instructions from the CPU via the flash memory interface circuit. Therefore, this mode allows rewriting even when the MCU is soldered on the target board. The sector protect operations can not be performed in these modes. c : Control signals of flash memory Next table lists the flash memory control signals in the flash memory mode. There is almost a one-to-one correspondence between the flash memory control signals and the external pins of the MBM291V400TA. The VID (12 V) pins required by the sector protect operations are MD0, MD1 and MD2 instead of A9, RESET and OE for the MBM29LV400C. In the flash memory mode, the width of the external data bus can be 8 or 16 bit. 187 MB91360G Series ■ FLASH MEMORY MODE SIGNAL ASSIGNMENT • MB91FV360GA/F362GB/F364G/F369GA Pins used in flash memory mode MBM29LV 400C A-1 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 [A20] WE BYTE OE CE RY/BY A9 (VID) RESET (VID) OE (VID) RESET MB91FV360GA Pin No. 202 310 201 357 257 144 309 256 200 356 308 92 44 255 143 199 307 91 142 ⎯ ⎯ 140 196 305 139 88 293 31 239 30 Pin Name A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 ⎯ ⎯ CS4X CS5X RDY BGRNTX BRQ MD0 MD1 MD2 INITX MB91F362GB Pin No. 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 ⎯ ⎯ 32 33 35 36 37 111 112 113 115 Pin Name A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 ⎯ ⎯ CS4X CS5X RDY BGRNTX BRQ MD0 MD1 MD2 INITX Pin No. 92 93 94 95 96 97 98 99 102 103 104 105 107 108 109 110 113 114 115 ⎯ 117 116 2 54 55 56 57 58 59 60 MB91F364G Pin Name PR0 PR1 PR2 PR3 PR4 PR5 PR6 PR7 LED0 LED1 LED2 LED3 LED4 LED5 LED6 LED7 PO4 PO5 PO6 ⎯ DA0 PO7 AN1 TESTX CPUTESTX ATGX MD0 MD1 MD2 INITX MB91F369GA Pin No. 157 158 159 160 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 ⎯ 72 71 73 69 68 58 59 60 62 Pin Name A0 A1 A2 A3 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 ⎯ INT4 INT3 INT5 INT1 INT0 MD0 MD1 MD2 INITX Remarks Address A(0) Address A(1) Address A(2) Address A(3) Address A(4) Address A(5) Address A(6) Address A(7) Address A(8) Address A(9) Address A(10) Address A(11) Address A(12) Address A(13) Address A(14) Address A(15) Address A(16) Address A(17) Address A(18) See notes See notes Write enabled Byte access Output enabled Chip enabled Ready/Busy (open drain) VDA9 High voltage VDRS High voltage VDOE High voltage Reset (Continued) 188 MB91360G Series (Continued) MBM29LV 400C DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7 DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15 [TMODX] [ATDIN] [EQIN] MB91FV360GA Pin No. 46 95 1 148 205 45 94 260 312 204 147 93 259 203 146 258 89 253 42 Pin Name D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 CS6X DREQ2 A26 MB91F362GB Pin No. 201 202 203 204 205 206 207 208 1 2 3 4 5 6 7 8 34 ⎯ ⎯ Pin Name D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 CS6X ⎯ ⎯ Pin No. 44 45 46 47 48 49 50 51 34 35 36 37 38 39 40 41 118 1 90 MB91F364G Pin Name IN0 IN1 IN2 IN3 OUT0 OUT1 OUT2 OUT3 INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 DA1 AN0 LTESTX MB91F369G Pin No. 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 70 74 75 Pin Name D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 INT2 INT6 INT7 Remarks Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Test mode Pull-up ATD test Pull-down EQ test Pull-down Notes : • MB91F362GB : A19 (pin 30) and A20 (pin 32) must be pulled “L” level in Flash Memory Mode. At reading from Flash memory, D0 to D15 (p183 to pin 197, pin 200) are switched to the output mode. See “Pins not used in flash memory mode (MB91F362GB) ”. • MB91F364G : DA0 (pin 117) must be pulled “H” level in Flash Memory Mode. • MB91F369GA : Pin 70 must be pulled “H” level in Flash Memory Mode. Also, pin 74 and pin 75 must be pulled “L” level in Flash Memory Mode. ALARM (pin 54) must be pulled “L” level. The other pins should be set to open at Flash Memory Mode. 189 MB91360G Series Pins not used in flash memory mode (MB91F362GB) MB91F362GB Pin No. 75, 76 77 81 to 83 114 116 117 119, 121 120, 122 124 125 Other signal Normal function DA0, DA1 ALARM TESTX, CPUTESTX, LTESTX HSTX MONCLK SELCLK X0, X0A X1, X1A CPO VCI Flash memory mode Output Input Input Input Output Input Input Output Output Input Input Remarks Open Pull-down Pull-up or open (Initial pull-up) Pull-up or open (Initial pull-up) Open Pull-up Pull-down Open Open Pull-down Pull-up 190 MB91360G Series • MB91F365GB/F366GB/F367GB/F368GB/F376G Pins used in flash memory mode MBM29LV 400C A-1 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 [A20] WE BYTE OE CE RY/BY A9 (VID) RESET (VID) OE (VID) RESET MB91F365GB/ MB91F366GB Pin No. 96 97 98 99 101 102 103 104 106 107 108 109 111 112 113 114 91 92 93 ⎯ ⎯ 31 32 51 50 38 57 58 59 60 Pin Name PWM1P0 PWM1M0 PWM2P0 PWM2M0 PWM1P1 PWM1M1 PWM2P1 PWM2M1 PWM1P2 PWM1M2 PWM2P2 PWM2M2 PWM1P3 PWM1M3 PWM2P3 PWM2M3 PG3 PG4 PG5 ⎯ ⎯ BOOT TESTX IN1 IN0 MONCLK MD0 MD1 MD2 INITX MB91F367GB/ MB91F368GB Pin No. 96 97 98 99 101 102 103 104 106 107 108 109 111 112 113 114 91 92 93 ⎯ ⎯ 31 32 51 50 38 57 58 59 60 Pin Name PR0 PR1 PR2 PR3 PR4 PR5 PR6 PR7 PS0 PS1 PS2 PS3 PS4 PS5 PS6 PS7 PG3 PG4 PG5 ⎯ ⎯ BOOT TESTX IN1 IN0 MONCLK MD0 MD1 MD2 INITX MB91F376G Pin No. 96 97 98 99 101 102 103 104 106 107 108 109 111 112 113 114 91 92 93 89 88 31 32 51 50 38 57 58 59 60 Pin Name PWM1P0 PWM1M0 PWM2P0 PWM2M0 PWM1P1 PWM1M1 PWM2P1 PWM2M1 PWM1P2 PWM1M2 PWM2P2 PWM2M2 PWM1P3 PWM1M3 PWM2P3 PWM2M3 PG3 PG4 PG5 PG1 PG0 BOOT TESTX IN1 IN0 MONCLK MD0 MD1 MD2 INITX Address A(0) Address A(1) Address A(2) Address A(3) Address A(4) Address A(5) Address A(6) Address A(7) Address A(8) Address A(9) Address A(10) Address A(11) Address A(12) Address A(13) Address A(14) Address A(15) Address A(16) Address A(17) Address A(18) Address A(19) Pull-up See note Write enabled Byte access Output enabled Chip enabled Ready/Busy (open drain) VDA9 High voltage VDRS High voltage VDOE High voltage Reset (Continued) 191 Remarks MB91360G Series (Continued) MBM29LV 400C DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7 DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15 [TMODX] [ATDIN] [EQIN] MB91F365GB/ MB91F366GB Pin No. 117 118 119 120 52 53 54 55 39 40 41 42 43 44 45 46 33 63 90 Pin Name PJ0 PJ1 PJ2 PJ3 IN2 IN3 OUT0 OUT1 INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 CPUTESTX SOT4 PG2 MB91F367GB/ MB91F368GB Pin No. 117 118 119 120 52 53 54 55 39 40 41 42 43 44 45 46 33 63 90 Pin Name PJ0 PJ1 PJ2 PJ3 IN2 IN3 OUT0 OUT1 INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 CPUTESTX SOT4 PG2 MB91F376G Pin No. 117 118 119 120 52 53 54 55 39 40 41 42 43 44 45 46 33 63 90 Pin Name PJ0 PJ1 PJ2 PJ3 IN2 IN3 OUT0 OUT1 INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 CPUTESTX SOT4 PG2 Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Data I/O Test mode Pull-up ATD test Pull-down EQ test Pull-down Remarks Note : MB91F376G : At using for 768KB Flash macro, A18 is used as the append input pin of Flash macro. Line (A20) which is connected to pin 88 (PG0) should be set to “H” level. 192 MB91360G Series Pins not used in flash memory mode (MB91F365GB/F366GB/F367GB/F368GB/F376G) MB91F365GB/F366GB/F367GB/F368GB/F376G Pin No. 35 36 66 67 68 27 28 29 Other signal Normal function X0 X1 SIN3 SOT3 SCK3 DA0/X0A DA1/X1A ALARM Pin state Input Output Output Output Output Output/Input Output Input Input Remarks Pull-up Open Open Open Open Open/Pull-up Open Pull-up Pull-up 193 MB91360G Series (4) Flash control status register (FMCS) Flash Memory Macros used in devices : Normal Flash Macro used in : MB91F362GB Fast Flash Macro used in : MB91FV360GA Address FV360GA, F362GB : 00007000H Access Initial value value after Boot ROM *: It is not allowed to use RDYEG. bit 7 FACCEN bit 6 ⎯ R/W 1 1 bit 5 ⎯ R/W 1 1 bit 4 RDYEG* bit 3 RDY bit 2 RDYI bit 1 WE bit 0 LPM R/W 1 0 R 0 0 R X X R/W 0 0 R/W 0 0 R/W 0 0 194 MB91360G Series (5) Read/Write access In the flash memory mode, read/write access to the flash memory must be under control of the external pins. However, with the CPU access, there are no special timing constraints on read/write access because the flash memory is controlled by the flash memory interface circuit. In this section, “write access” does not directly mean “program flash memory”. It implies “activation of the flash commands”. a : Read/write access in flash memory mode Next table gives the setting of pins for read/write access in the Flash Memory mode. There is no special problem with control of these pins if connected to a flash memory writer. However, in other cases, timing specifications must be met. Setting Conditions of Pins for Read/Write Access in Flash Memory Mode Operations Read Write Output disable Standby Hardware reset BGRNTX (CE) L L L H x RDY (OE) L H H x x CS4X (WE) H L H x x A0 to A18 Read address Write address x x x D16 to D31 DOUT DIN High-Z High-Z High-Z INIT H H H H L Note : This table uses pin names from F362GB. Check corresponding pin names of other devices. b : Read access with CPU Flash Wait Control Register (FMWT) Address 00007004H Access Initial value value after Boot ROM Normal Flash Macro value after Boot ROM Fast Flash Macro bit 7 ⎯ ⎯ ⎯ ⎯ ⎯ bit 6 ⎯ R/W 0 0 0 bit 5 FAC1 R/W 0 0 0 bit 4 FAC0 R/W 0 0 1 bit 3 EQINH R/W 0 0 0 bit 2 WTC2 R/W 0 0 0 bit 1 WTC1 R/W 1 1 1 bit 0 WTC0 R/W 1 1 1 195 MB91360G Series Normal flash macro : Recommended settings Without Applying Clock Modulation CLKB Unmodulated Core Clock Frequency [MHz] 64 48 40 32 24 16 FAC1 0 0 0 0 0 0 FAC0 1 1 1 0 0 0 EQINH 0 0 0 0 0 0 WTC2 0 0 0 0 0 0 WTC1 1 1 1 1 0 0 WTC0 1 1 0 0 1 1 FACC Low Cycles/Wait Cycles 1/3 1/3 1/2 0.5 / 2 0.5 / 1 0.5 / 1 FMWT 13H 13H 12H 02H 01H 01H When Applying Clock Modulation CLKB Core Clock Frequency [MHz] 48 32 24 24 16 Peak Max Frequency 64 48 40 32 24 FAC1 0 0 0 0 0 FAC0 EQINH WTC2 WTC1 WTC0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0 0 1 FACC Low Cycles/Wait Cycles 1/3 1/3 1/2 0.5 / 2 0.5 / 1 FMWT 13H 13H 12H 02H 01H Example for flash memory read access with 1 cycle for the low time of FACC and 3 wait cycles 1 cycle FACC = "L" 3 wait cycles CLKB core clock F-bus address F-bus wait tFP tFACC FACC for flash F-bus data FA A1 A2 A3 FWAITR FACC FD D1 The minimum value for tFP is 15 ns, for tFACC it is 40 ns. 196 MB91360G Series Fast flash macro : Recommended settings Without Applying Clock Modulation CLKB Unmodulated Core Clock Frequency [MHz] 64 48 40 32 24 16 FAC1 0 0 0 0 0 0 FAC0 1 0 0 0 0 0 EQINH 0 0 0 1 0 0 WTC2 0 0 0 0 0 0 WTC1 1 1 1 0 0 0 WTC0 1 0 0 1 1 1 ATDIN High Cycles/Wait Cycles 1/3 0.5 / 2 0.5 / 2 0.5 / 1 0.5 / 1 0.5 / 1 FMWT 13H 02H 02H 09H 01H 01H When Applying Clock Modulation CLKB Core Clock Peak Max Frequency Frequency [MHz] 48 32 24 24 16 64 48 40 32 24 FAC1 0 0 0 0 0 FAC0 1 0 0 0 0 EQINH 0 0 0 1 0 WTC2 0 0 0 0 0 WTC1 1 1 1 0 0 WTC0 1 0 0 1 1 ATDIN High Cycles/Wait Cycles 1/3 0.5 / 2 0.5 / 2 0.5 / 1 0.5 / 1 FMWT 13H 02H 12H 09H 01H Example for flash memory read access with 1 cycle for the high time of ATDIN and 3 wait cycles 1 cycle ATDIN ="H" 3 wait cycles CLKB FA FWAITR ATDIN EQIN FD tACC tRC A1 A2 core clock F-bus A3 address F-bus wait ATDIN for flash EQIN for flash D1 F-bus data tWATD tWEQ The minimum value for tWATD is 10 ns, the minimum value for tWEQ is 20 ns. The minimum value for tRC is 40 ns. The maximum value for tACC is tWATD + tWEQ + 5 ns. 197 MB91360G Series c : Write access with CPU Recommended settings for WTC2 to WTC0 for write access to the flash memory, FACCEN of FMCS should be set to 1 for writing, so FAC1, FAC0, EQINH bit settings then have no meaning for the write operation Without Applying Clock Modulation CLKB Unmodulated Core Clock Frequency [MHz] 64 48 40 32 24 16 1 1 0 0 0 0 0 1 1 0 WTC2 WTC1 WTC0 Wait Cycles FMWT setting not allowed for writing 0 0 0 0 1 4 4 2 2 1 X4H X4H X2H X2H X1H When Applying Clock Modulation CLKB Core Clock Frequency [MHz] 48 32 24 24 16 Peak Max Frequency 64 48 40 32 24 1 1 0 0 WTC2 WTC1 WTC0 Wait Cycles FMWT setting not allowed for writing 0 0 1 1 0 0 0 0 4 4 2 2 X4H X4H X2H X2H 198 MB91360G Series (6) Automatic write/erase Irrespective of the Flash Memory mode or other modes, writing to/erasing the flash memory unit is performed by starting the flash memory automatic algorithm. To start the automatic algorithm, various sequences of write accesses are executed in 1 to 6 cycles. They are called Flash commands. a : Flash commands There are four commands for starting the automatic algorithm of the Flash Memory unit; Read/Reset, Write, Chip Erase, and Sector Erase. There are also Erase Suspend and Erase Resume commands for the sector erase operation. Next tables give the command sequence lists in the flash memory and other modes. b : Command sequence Command Sequence List (CPU access) Write Write Cycle Write Cycle of Write Cycle Command Cycle of First Bus Second Bus of Third Bus Sequence of Bus Address Data Address Data Address Data Read/ Reset* Read/ Reset* Write Chip Erase Sector Erase Sector Erase Suspend Sector Erase Resume 1 4 4 6 6 **xxxx Read/ Write Cycle of Fourth Bus Address Data Write Cycle of Fifth Bus Address Data Write Cycle of Sixth Bus Address Data xxF0 ⎯ ⎯ xx55 xx55 xx55 xx55 ⎯ **5554 ⎯ xxF0 xxA0 ⎯ RA PA (even) ⎯ RD PD (half word) ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ **5554 xxAA **aaa8 **5554 xxAA **aaa8 **5554 xxAA **aaa8 **5554 xxAA **aaa8 **5554 **5554 **5554 xx80 **5554 xxAA **aaa8 xx55 **5554 xx10 xx80 **5554 xxAA **aaa8 xx55 SA (even) xx30 Input of address **xxxx or data (xxB0H) suspends sector erasing. Input of address **xxxx or data (xx30H) suspends and resumes sector erasing. Addresses in the table are the values in the CPU memory space. All addresses and data are hexadecimal values, where x is any value and ** may be 08 to 0F. * : Two Read/Reset commands reset Flash memory to the read mode. 199 MB91360G Series Command Sequence List (Flash Memory Mode) Write Command Cycle Sequence of Bus Read/ Reset* Read/ Reset* Write Chip Erase Sector Erase Sector Erase Suspend Sector Erase Resume 1 4 4 6 6 Write Cycle of First Bus Address Data Write Cycle Write Cycle of of Second Third Bus Bus Address Data Address Data Read/ Write Cycle of Fourth Bus Address Data Write Cycle Write Cycle of Fifth Bus of Sixth Bus Address Data Address Data nxxxx naaaa naaaa naaaa naaaa F0 AA AA AA AA ⎯ n5554 n5554 n5554 n5554 ⎯ 55 55 55 55 ⎯ naaaa naaaa naaaa naaaa ⎯ F0 A0 80 80 ⎯ RA PA (even) ⎯ RD PD (word) AA AA ⎯ ⎯ ⎯ n5554 n5554 ⎯ ⎯ ⎯ 55 55 ⎯ ⎯ ⎯ naaaa SA (even) ⎯ ⎯ ⎯ 10 30 naaaa naaaa Input of address nxxxx or data (B0H) suspends sector erasing. Input of address nxxxx or data (30H) suspends and resumes sector erasing. Addresses in the table are values for writer addresses. All addresses and data are hexadecimal values, where x is any value and n may be 0 to 7. RA : Read address PA : Write address. Only even addresses can be specified. SA : Sector address (See next table) . Only even addresses can be specified. RD : Read data PD : Write data. Only word data can be specified. * : Two Read/Reset commands reset Flash memory to the read mode. 200 MB91360G Series Sector Address for Half Word Mode Sector SA13 SA12 SA11 SA10 SA9 SA8 SA7 SA6 SA5 SA4 SA3 SA2 SA1 SA0 A18 1 1 1 1 1 1 1 0 0 0 0 0 0 0 A17 1 1 1 1 1 0 0 1 1 1 1 1 0 0 A16 1 1 1 1 0 1 0 1 1 1 1 0 1 0 A15 1 1 1 0 ⎯ ⎯ ⎯ 1 1 1 0 ⎯ ⎯ ⎯ A14 1 0 0 ⎯ ⎯ ⎯ ⎯ 1 0 0 ⎯ ⎯ ⎯ ⎯ A13 ⎯ 1 0 ⎯ ⎯ ⎯ ⎯ ⎯ 1 0 ⎯ ⎯ ⎯ ⎯ Address range 7C000H to 7FFFFH 7A000H to 7BFFFH 78000H to 79FFFH 70000H to 77FFFH 60000H to 6FFFFH 50000H to 5FFFFH 40000H to 4FFFFH 3C000H to 3FFFFH 3A000H to 3BFFFH 38000H to 39FFFH 30000H to 37FFFH 20000H to 2FFFFH 10000H to 1FFFFH 00000H to 0FFFFH 201 MB91360G Series (7) Connection to flash memory The Flash Memory mode of the MB91360G series devices is intended mainly for external connection to a flash memory writer. As indicated in Table Flash Control Signals, there is a slight difference between the external pins of the MB91360G series devices and the MBM29LV400C (4 Mbit flash memory) . Connection to an MBM29LV400C writer requires the socket adapter. Socket adapter flash writer A9 2.2 kΩ RESET 2.2 kΩ OE 2.2 kΩ 2.2 kΩ 2.2 kΩ 2.2 kΩ MD1 MD2 MD1 MD2 INITX RDY MD0 INITX INT5 MD0 MB91F362GB MB91FV360GA A10 MB91F369GA D9 202 MB91360G Series (8) Notes to use of flash memory Notes on the flash memory in MB91360G series devices are given below. a : Input of hardware reset (INITX) To input a hardware reset when the automatic algorithm is not started, where reading is in progress, a minimum of 500 ns should be taken at a low-level width. In this case, a maximum of 500 ns is required until data can be read from the flash memory after a hardware reset has been activated. Similarly, to input a hardware reset when the automatic algorithm is activated, where writing/erasing is in progress, a minimum of 50 ns should be taken in a low-level width. In this case, 20 µs are required until data can be read after the executing operation has been terminated to initialize the flash memory. A hardware reset during writing undefined data being written. A hardware reset during erasing may make the sector being erased unusable. b : Canceling software reset, watchdog timer reset, and hardware standby When writing/erasing the flash memory with the CPU access and if reset conditions occur while the automatic algorithm is active, the CPU may run away. This occurs because these reset conditions cause the automatic algorithm to continue without initializing the flash memory unit, possibly preventing the flash memory unit from entering the read state when the CPU starts the sequence after the reset has been deasserted. These reset conditions should be inhibited during writing/erasing the Flash Memory. c : Program access to flash memory When the automatic algorithm is operating, read access to the flash memory is disabled. With the memory access mode of the CPU set to the internal ROM mode, writing/erasing should be started after switching the program area to another area such as RAM. In this case, when sectors containing interrupt vectors are erased, interrupt processing cannot be executed. For the same reason, all interrupt sources should be disabled while the automatic algorithm is operating. d : Hold function When the CPU accepts a hold request, the Write signal WE of the flash memory unit may be skewed and many cause erroneous writing/erasing. When the acceptance of a hold request is enabled, ensure that the WE bit of the FLASH control status register (FMCS) is 0. e : Applying VID Applying VID required for the sector protect operation should always be started and terminated when the supply voltage is on. 203 MB91360G Series (9) Timing diagrams in flash mode Each timing diagram for the external pins of the MB91360G series in the Flash Memory mode is shown below. a : Data read by read access tRC A18 to A0 tAC 120 ns Address stable BGRNTX (CE) tOE 50 ns 30 ns tDF RDY (OE) 120 ns (TOGGLE) 0 ms (Read) tOEH CS4X (WE) tCE 120 ns High-Z Output defined tOH 0 High-Z D31 to D16 b : Write data polling read (WE control) Third bus cycle Data Polling PA tAS tAH PA tRC A18 to A0 7AAAAH tWC BGRNTX (CE) tGHEL RDY (OE) tWP tWHWH1 CS4X (WE) tCS A0H tDS tWPH tDH tOE tDF PD D23 DOUT tOH tCE D31 to D16 VDD (5.0 V) PA : Write address PD : Write data D23 : Reverse output of write data DOUT : Output of write data Note : The last two bus cycle sequences out of the four are described. 204 MB91360G Series c : Write data polling read (CE control) Third bus cycle Data Polling PA tAS tWH tAH PA A18 to A0 7AAAAH tWC BGRNTX (CE) tGHEL RDY (OE) tCP tWHWH1 CS4X (WE) tWS A0H tDS tCPH tDH D31 to D16 VDD (5.0 V) PD D23 DOUT PA : Write address PD : Write data D23 : Reverse output of write data DOUT : Output of write data Note : The last two bus cycle sequences out of the four are described. d : Chip erase/sector erase command sequence tAS tAH 75554H 7AAAAH 7AAAAH 75554H SA* A18 to A0 7AAAAH BGRNTX (CE) tGHWL RDY (OE) tWP CS4X (WE) tCS tWPH tDH AAH tDS 55H 80H AAH 55H 10H/30H D31 to D16 VDD tVCS Note : SA is the sector address at sector erasing. 7AAAAH (or 6AAAAH) is the address at chip erasing. 205 MB91360G Series e : Data polling tCH BGRNTX (CE) tOE tDF RDY (OE) tOEH CS4X (WE) tCE * D23 tWHWH1 or tWHWH2 D23 tOH D23 = Valid data High-Z D31 to D16 D31 - D16 = Invalid tEOE D31 - D16 = Valid data * : DQ7 is valid data (The device terminates automatic operation) . f : Toggle bit BGRNTX (CE) tOEH RDY (OE) tOES CS4X (WE) * D22 = Toggle D22 = Toggle tOE * D22 = Stop toggling D31 to D16 = Valid (D31 to D16) * : DQ6 stops toggling (The device terminates automatic operation) . g : RY/BY timing during writing/erasing BGRNTX (CE) Rising edge of last write pulse RDY (OE) Writing or erasing CS4X (WE) tBUSY 206 MB91360G Series h : INITX and RY/BY timing BGRNTX (CE) CS4X (OE) tRP BRQ (RY/BY) tREADY i : Enable sector protect/verify sector protect A18 to A13 A7, A2, A1 SAx SAy (A7, A2, A1) = (0, 1, 0) MD0 (A9(VID)) 12 V 5V 12 V 5V tVLHT tVLHT MD2 (OE(VID)) CS4X (WE) RDY (OE) tOESP tWPP D31 to D16 tCSP 01H tOE SAx : First sector address SAy : Next sector address 207 MB91360G Series j : Temporary sector protect cancellation MD1 (RESET (VID)) BGRNTX (CE) 12 V 5V 5V CS4X (WE) tVLHT Write/erase command sequence BRQ (RY/BY) Sector protect cancellation 208 MB91360G Series (10) AC characteristics in flash memory mode The AC specifications for the external pins of the MB91360G series in the Flash Memory mode are shown below. They apply to the case where the user performs read/write access in the Flash Memory mode. They are not needed for access in the normal mode and for use of a flash memory writer. The values are subject to change without prior notice. a : Read access AC Characteristics for Read Access (Under recommended conditions) Parameter Read cycle time Address access time CE to data output OE to data output CE to output floating OE to output floating Previous cycle data output hold time INITX pin to return to read mode Symbol tRC tACC tCE tOE tDF tDF tOH tReady Test Conditions ⎯ CE = VIL OE = VIL OE = VIL ⎯ ⎯ ⎯ ⎯ ⎯ Value Min 120 ⎯ ⎯ ⎯ ⎯ ⎯ 0 ⎯ Typ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Max ⎯ 120 120 50 30 30 ⎯ 20 Unit ns ns ns ns ns ns ns µs 209 MB91360G Series b : Write [write/erase command] access (WE control) AC Characteristics for Write Access (WE Control) (Under recommended conditions) Parameter Write cycle time Address setup time Address hold time Data setup time Data hold time Output enable setup time Output enable hold time Read Toggle and data polling Symbol tWC tAS tAH tDS tDH tOES tOEH tGHWL tCS tCH tWP tWPH tWHWH1 tWHWH2 tVCS 2 Value Min 120 0 50 50 0 0 0 10 0 0 0 50 20 ⎯ ⎯ 50 4 100 4 4 500 50 Typ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 8 1 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Max ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 15 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Unit ns ns ns ns ns ns ns ns ns ns ns ns ns µs s µs µs µs µs µs ns ns Read recovery time before write CE setup time CE hold time Write pulse width Write pulse width High level Write continuation time Sector erase continuation time*1 VCC setup time Voltage transition time* Write pulse width*2 OE setup time for validating WE*2 CE setup time for validating WE* INIT pulse width RY/BY delay until write/erase is enabled 2 tVLHL tWPP tOESP tCSP tRP tBUSY *1 : The internal preprogramming time before erasing is not included. *2 : Applies only to sector protection 210 MB91360G Series c : Write [write/erase command] access (CE control) AC Characteristics for Write Access (CE Control) (Under recommended conditions) Parameter Write cycle time Address setup time Address hold time Data setup time Data hold time Output enable setup time Output enable hold time Read Toggle and data polling Symbol tWC tAS tAH tDS tDH tOES tOEH tGHWL tWS tWH tCP tCPH tWHWH1 tWHWH2 tVCS tRP tBUSY Value Min 120 0 50 50 0 0 0 10 0 0 0 50 20 ⎯ ⎯ 50 500 50 Typ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 16 1.5 ⎯ ⎯ ⎯ Max ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 30 ⎯ ⎯ ⎯ Unit ns ns ns ns ns ns ns ns ns ns ns ns ns µs s µs ns ns Read recovery time before write WE setup time WE hold time CE pulse width CE pulse width High level Write continuation time Sector erase continuation time* VCC setup time INIT pulse width RY/BY delay until write/erase is enabled * : The internal preprogramming time before erasing is not included. 211 MB91360G Series ■ ELECTRICAL CHARACTERISTICS 1. Absolute Maximum Ratings Parameter Digital supply voltage External interface supply Stepper motor control supply voltage Storage temperature Power consumption Digital input voltage Analog input voltage Analog supply voltage Analog reference voltage Static DC current into digital I/O Static total DC current into digital I/O Symbol VDD-VSS VDD35-VSS HVDD-HVSS Tstg PTOT VIDIG VIA AVCC-AVSS VREFH/L-VSSA II/ODC Σ⏐II/ODC⏐ Rating Min −0.3 −0.3 −0.3 −55 ⎯ −0.3*1 −0.3 −0.3 −0.3 −2.0 ⎯ Max +6.0 +6.0 +6.5 +125 *3 +5.8 +5.8 +5.8 +5.8 +2.0 20 Unit V V V °C W V V V V mA mA TA = +25°C VSS = 0 V, VDD = 5 V AVSS = 0 V, AVCC = 5 V AVSS = 0 V AVSS = 0 V ΣII/ODC < ISRUN, *2 *2 *4 Condition *1 : Making full use of the allowed static DC correct into digital I/O will lead to lower values for VIDIG Min. *2 : • Applicable to pins : D0 to D31, A0 to A20, CS0X to CS6X, RDY, BGRNTX, BRQ, RDX, WR0X to WR3X, AS, ALE, CLK, DREQ0, DACK0, DEOP0, INT0 to INT7, SGO, SGA, SDA, SCL, SOT0, SIN0, SCK0, OCPA0 to OCPA3, TX0, TX1, RX0, RX1, SOT3, SOT4, SIN3, SIN4, SCK3, SCK4, LED0 to LED7 (MB91F362GB only) , IN0 to IN3 (MB91F362GB only) , OUT0 to OUT3 (MB91F362GB only) , OCPA4 to OCPA7 (MB91F362GB only) , SOT1, SOT2 (MB91F362GB only) , SIH1, SIH2 (MB91F362GB only) , SCK1, SCK2 (MB91F362GB only) , PWM1P0 to PWM1P3 (MB91F362GB only) , PWM1M0 to PWM1M3 (MB91F362GB only) , PWM2P0 to PWM2P3 (MB91F362GB only) , PWM2M0 to PWM2M3 (MB91F362GB only) • Use within recommended operating conditions. • Use at DC voltage (current) . • The +B signal should always be applied with a limiting resistance placed between the +B signal and the microcontroller. • The value of the limiting resistance should be set so that when the +B signal is applied the input current to the microcontroller pin does not exceed rated values, either instantaneously or for prolonged periods. • Note that when the microcontroller drive current is low, such as in the power saving modes, the +B input potential may pass through the protective diode and increase the potential at the VCC pin, and this may affect other devices. • Note that if a +B signal is input when the microcontroller current is off (not fixed at 0 V) , the power supply is provided from the pins, so that incomplete operation may result. • Note that if the +B input is applied during power-on, the power supply is provided from the pins and the resulting supply voltage may not be sufficient to operate the power-on reset. • Care must be taken not to leave the +B input pin open. • Note that analog system input/output pins other than the A/D input pins (LCD drive pins, comparator input pins, etc.) cannot accept +B signal input. (Continued) 212 MB91360G Series (Continued) • Sample recommended circuits •I/O equivalent circuit Protective diode VCC P-ch +B input (0 V to 16 V) Limiting resistance N-ch R *3 : Dependent on each product (see Maximum power consumption) *4 : The external interface on MB91F362GB and MB91F369GA can be operated with low voltage (typical 3.3 V) at the VDD35 pins. WARNING: Semiconductor devices can be permanently damaged by application of stress (voltage, current, temperature, etc.) in excess of absolute maximum ratings. Do not exceed these ratings. Maximum power consumption Device MB91FV360GA MB91F362GB MB91F364G MB91F376G MB91F369GA Maximum Power Consumption 2.5 W 2.5 W 1.2 W 1.2 W 2.5 W Device MB91F365GB MB91F366GB MB91F367GB MB91F368GB MB91366GA Maximum Power Consumption 1.3 W 1.3 W 1.3 W 1.3 W 1.3 W 213 MB91360G Series Absolute maximum I/O output current Parameter Symbol IOL1 IOL2 “L” level maximum output current *1 IOL3 IOL4 IOL5 IOLAV1 IOLAV2 “L” level average output current *2 IOLAV3 IOLAV4 IOLAV5 ΣIOL1 ΣIOL2 “L” level total output current ΣIOL3 ΣIOL4 ΣIOL5 ΣIOLAV1 ΣIOLAV2 “L” level total average output current *2 Rating Min ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Max 15 35 40 10 20 4 24 30 3 8 100 100 240 ⎯ ⎯ 50 50 155 ⎯ ⎯ −15 −25 −40 −10 −20 −4 −14 −30 −3 −8 Unit mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA I/O Circuit Type/ Remark *3 J (LED) K, M (SMC) Y, TA (I2C) Q1 (MONCLK) *3 J (LED) K, M (SMC) Y, TA (I2C) Q1 (MONCLK) *3 J (LED) K, M (SMC) Y, TA (I2C) *4 Q1 (MONCLK) *4 *3 J (LED) K, M (SMC) Y, TA (I2C) *4 Q1 (MONCLK) *4 *3 J (LED) K, M (SMC) Y, TA (2C) *4 Q1 (MONCLK) *4 *3 J (LED) K, M (SMC) Y, TA (I2C) Q1 (MONCLK) (Continued) ΣIOLAV3 ΣIOLAV4 ΣIOLAV5 IOH1 IOH2 “H” level maximum output current *1 IOH3 IOH4 IOH5 IOHAV1 IOHAV2 “H” level average output current *2 IOHAV3 IOHAV4 IOHAV5 214 MB91360G Series (Continued) Parameter Symbol ΣIOH1 ΣIOH2 “H” level total output current ΣIOH3 ΣIOH4 ΣIOH5 ΣIOHAV1 ΣIOHAV2 “H” level total average output current *2 Rating Min ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ Max −100 −50 −240 ⎯ ⎯ −50 −25 −155 ⎯ ⎯ Unit mA mA mA mA mA mA mA mA mA mA I/O Circuit Type/ Remark *3 J (LED) K, M (SMC) Y, TA (I2C) *4 Q1 (MONCLK) *4 *3 J (LED) K, M (SMC) Y, TA (I2C) *4 Q1 (MONCLK) *4 ΣIOHAV3 ΣIOHAV4 ΣIOHAV5 *1 : Maximum output current means peak current. *2 : Average output current = operating current x operating efficiency *3 : All I/O circuit types not specially mentioned. *4 : No total current values because there are only 2 pins for I2C and one for MONCLK. For an overview of the I/O circuit types, see “■I/O CIRCUIT TYPE”. 215 MB91360G Series 2. Recommended Operating Conditions Parameter Symbol Value Min −40 −40 Digital supply Stepper motor Supply voltage control supply (Internal voltage Analog supply regulator) External interface supply RAM data retention voltage VDD - VSS HVDD - HVSS VDDA - VSSA VDD35 - VSS VDD - VSS 4.25*1 4.75 4.9 3.0 4.25 3.0 Typ ⎯ ⎯ 5 5 5 3.5 5 ⎯ Max +85 +105 5.25 5.25 5.1 3.6 5.25 ⎯ V V V V V Unit Condition Other than MB91F364G MB91F364G, *2 VDDCORE = 3.3 V HVSS = 0 V VSSA = 0 V *3 Operating temperature TA °C *1 : This is only valid if the integrated power-down reset circuit is switched-off, else a reset can be triggered at voltages less or equal than 4.5 V. The minimum voltage is 4.75 V during operation at 64 MHz. *2 : The external interface on MB91F362GB and MB91F369GA can be operated with low voltage (typical 3.3 V) at the VDD35 pins. *3 : MB91F364G can be used at TA = + 85 °C to + 105 °C under the following conditions. - The maximum frequency of core clock (fCLKS) must not exceed 48 MHz. - The total current consumption inclusive pads must not exceed 125 mA (The core current needs approx. 90 mA at 48 MHz) . WARNING: The recommended operating conditions are required in order to ensure the normal operation of the semiconductor device. All of the device’s electrical characteristics are warranted when the device is operated within these ranges. Always use semiconductor devices within their recommended operating condition ranges. Operation outside these ranges may adversely affect reliability and could result in device failure. No warranty is made with respect to uses, operating conditions, or combinations not represented on the data sheet. Users considering application outside the listed conditions are advised to contact their FUJITSU representatives beforehand. 216 MB91360G Series 3. DC Characteristics Parameter Run mode MB91F 364G Sleep mode Current consumption RTC mode MB91F 376G MB91FV 360GA all other devices Symbol Isrun Issleep Issleep Issleep Issleep Value Min ⎯ ⎯ ⎯ ⎯ ⎯ Typ ⎯ 50 40 60 50 200 165 145 110 Max *1 80 60 120 *6 100 *6 250 200 170 140 Unit Condition mA TA = +25 °C mA 64 MHz, TA = +25 °C, *4 mA 48 MHz, TA = +25 °C, *5 mA 64 MHz, TA = +25 °C, *4 mA 48 MHz, TA = +25 °C, *5 mA 64 MHz, TA = +25 °C, *4 mA 48 MHz, TA = +25 °C, *5 mA 64 MHz, TA = +25 °C, *4 mA 48 MHz, TA = +25 °C, *5 Main clock frequency = 4 MHz mA TA = +25 °C µA Subclock frequency = 32 kHz TA = +25 °C IsRTC ⎯ 0.5 ⎯ 1.25 500 Stop mode Isstop VOHH VOHL VOHH VOHL VOHH VOHL ⎯ HVDD − 500 HVSS + 125 HVDD − 500 HVSS + 125 HVDD − 500 HVSS + 125 HVDD / 9 − 70 ⎯ 45 10 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ HVDD / 9 40 45 200 Oscillation stop µA TA = +25 °C At Software Standby HVDD − 125 mV Iol = ±30 mA, TC = +25 °C HVSS + 500 mV Iol = ±30 mA, TC = +25 °C HVDD − 125 mV Iol = ±27 mA, TC = +85 °C HVSS + 500 mV Iol = ±27 mA, TC = +85 °C HVDD − 125 mV Iol = ±30 mA, TC = −40 °C HVSS + 500 mV Iol = ±30 mA, TC = −40 °C HVDD / 9 + 70 ⎯ 45 H-port output voltage Stepper motor control SMC comparator threshold voltage Slew rate OverThreshold voltage voltage Undervoltage Switching hysteresis Alarm sense time Input resistance Power down Reset Threshold voltage Reset sense time VTHcomp ⎯ VTAH VTAL VTAHYS tAS Rin VTPOR tRS mV ns V V mV µs MΩ at VTAH, VTAL V mV µs (Continued) Cload = 0 pF (external 4 : 1 divider) / VDDA − 5% /5 VDDA − 5% / VDDA /5 VDDA / VDDA + 5% / VDDA + 5% Alarm comparator 2 2 25 12.5 ⎯ 5 3.5 20 ⎯ 25 ⎯ ⎯ 4.0 50 ⎯ 50 10 ⎯ 4.5 80 10 Switching hysteresis VTPORHYS 217 MB91360G Series Parameter Symbol VOH Value Min VDD − 0.5 VDD35 − 0.8 VDD35 − 0.5 VSS VSS 0.65 × VDD 0.65 × VDD35 VSS VSS 0.8 × VDD VSS 0.8 × VDD 0.8 × VDD35 VSS VSS ⎯ 0.65 × VDD VSS 0.65 × VDD VSS ⎯ −1 ⎯ Typ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 0.5 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 50 10 Max VDD VDD35 VDD35 VSS + 0.4 VSS + 0.7 VSS + 0.4 VDD VDD35 0.25 × VDD 0.25 × VDD35 VDD 0.2 × VDD VDD VDD35 0.5 × VDD 0.4 × VDD35 ⎯ VDD 0.25 × VDD VDD 0.25 × VDD 16 +1 ⎯ Unit V V V V V V V V V V V V V V V V V V V V pF Condition Iload = −4 mA Iload = −4 mA, *3 Iload = −2.5 mA Iload = 4 mA Iload = 4 mA, *3 Iload = 2.5 mA VDD35 < 4.25 V, *3 VDD35 < 4.25 V, *3 Output “H” voltage Digital outputs Output “L” voltage High voltage CMOS range (Type : Q, S, Low voltage Y, T) range CMOS SchmittTrigger (Types : E, F, U) CMOS Automotive level SchmittTrigger (Types : A, B, K1, M1, J) High voltage range Low voltage range High voltage range Low voltage range hysteresis voltage VOH35 VOL VOL35 VIH VIH35 VIL VIL35 VIH VIL VIH VIH35 VIL VIL35 ⎯ VIH VIL VIH VIL CIN IIL Rup1 Rup2 VDD35 < 4.25 V, *3 VDDmin = 4.25 V VDD35 < 4.25 V, *3 Digital Inputs*2 High voltage CMOS 3/5 V range (Type : L, N, Low voltage O) range High voltage range Low voltage range CMOS 3 V Input (Type : P, W) capacitance Input leakage current Pull up resistor µA TA = +25 °C kΩ Types : E, U kΩ Type : S (Continued) 218 MB91360G Series (Continued) Parameter Reference voltage input Input voltage range ADC inputs Input resistance Input capacitance Input leakage current Impedance of external output driving the ADC input DAC analog outputs Output voltage Output impedance Output capacitance Symbol VREFH VREFL Vimax Vimin RI CI IIL ⎯ Vout Rout Cout VoutHIGH VoutLOW Iout VoutHIGH VoutLOW Iout VoutHIGH VoutLOW VoutHIGH VoutLOW Iout ⎯ Vsurge Value Min VREFL + 3 VSSA VREFL ⎯ ⎯ ⎯ −1 ⎯ VSSA 2.0 ⎯ VDD − 0.5 VSS 4 VDD − 0.5 VSS 4 VDD − 0.8 ⎯ ⎯ VSS 3 ⎯ 2 Typ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 2.9 ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 0.1 ⎯ Max VDDA VREFH − 3 VREFH ⎯ 3.6 30 +1 4.0 VDDA 4.0 20 VDD VSS + 0.4 ⎯ VDD VSS + 0.4 ⎯ ⎯ VSS + 0.8 VDD VSS + 0.4 ⎯ 1 ⎯ Unit V V V V kΩ pF µA kΩ V kΩ pF V V mA V V mA V V V V IoutHIGH = 12 mA IoutLOW = 24 mA IoutLOW = 3 mA external voltage follower required at sampling time of 1.6 µs Condition Output voltage Sound generator Output current PPG Output voltage Output current LED I2C Bus Interface (Open Drain Output) Output voltage Output voltage Output current mA IoutLOW = 3 mA ms Rdischarge = 1.5 kΩ Cdischarge = 100 pF Lock-up time PLL1 (4 MHz →16 MHz to 64 MHz) ESD Protection (Human body model MIL883-B compliant) kV *1 : See “4. Run Mode Current/Power Consumption”. *2 : Valid for bidirectional tristate I/O PAD cell. *3 : The external interface on MB91F362GB and MB91F369GA can be operated with low voltage (typical 3.3 V) at the VDD35 pins. The parameters are tested at VDD35 = (4.25 V to 5.5 V) . The parameters at lower voltage are guaranteed by design. *4 : Sleep mode current consumption given for CLKB : CLKP : CLKT = 64 : 32 : 4 MHz, VDD = 5.25 V. *5 : Sleep mode current consumption given for CLKB : CLKP : CLKT = 48 : 24 : 4 MHz, VDD = 5.25 V. *6 : The current consumption values of MB91F376G are currently under evaluation. 219 MB91360G Series 4. Run Mode Current/Power Consumption The power dissipation during normal operation is determined by the total power dissipation of the internal logic PC, the dissipation from analog modules PA and the power dissipation PIO of the I/O buffers. Among the I/O buffers the dissipation caused by the stepper motor drivers PSMC should be taken into special consideration. So the overall power consumption PD will be calculated as a sum of Pc + PA + PSMC + PIO . (1) Logic power consumption The following formula can be used to calculate the maximum core current consumption when the PLL is used depending on the frequency settings for the internal clocks : ICC = B × CLKB [MHz] + P × CLKP [MHz] + T × CLKT [MHz] + 35.5 [mA] The factors B, P, and T depend of the device, see table “Current consumption factors”. If clock modulation is used the following value must be added to this result : 0.24 [mA/MHz] × CLKB [MHz]. This results in the following values (higher clock settings are not allowed) : Current Consumption Factors Product MB91FV360GA MB91F362GB MB91F364G MB91F365GB MB91F366GB MB91F367GB MB91F368GB MB91366GA MB91F376G MB91F369GA B [mA/MHz] 3.45 1.25 T [mA/MHz] 2.52 1.70 P [mA/MHz] 0.72 0.40 Remarks 2.30 2.70 0.50 2.30 1.25 2.30 2.70 1.70 2.70 0.50 0.40 0.50 220 MB91360G Series Clock frequencies [MHz] CLKB 64 48 48 32 32 24 24 16 2 0.125 CLKP 16 24 16 32 16 24 12 16 2 0.125 CLKT 16 24 16 32 16 24 12 16 2 0.125 Logic Current Consumption at 5.25 V [mA] 308 290 264 257 205 202 163 146 40 30 Logic Power Consumption PC at 5.25 V [W] 1.62 1.52 1.39 1.35 1.08 1.06 0.86 0.77 0.21 0.16 Remarks no clock modulation possible no PLL, no clock modulation no PLL, no clock modulation In addition to this power consumption of the MCU core logic the following contributions to the overall power consumption have to be considered : • Analog power consumption • I/O and SMC power consumption See the following sections. (2) Analog power consumption Module DAC ADC Power down reset Alarm Comparator 3 mA 1.6 mA 0.26 mA 0.31 mA Typical Current Consumption Maximum Current Consumption 1 mA / channel 7 mA 2.6 mA 0.5 mA 0.5 mA Remarks current at AVCC current at AVCC current at AVRH current at VDD current at AVCC Zero point detection 0.13 mA 0.25 mA current at AVCC To calculate the analog power consumption PA, the current contributions of the active modules have to be multiplied by the maximum analog supply voltage of 5.1 V-or by the maximum digital supply voltage as in case of the Power down reset. 221 MB91360G Series (3) I/O and SMC Power Consumption SMC drivers : The average current consumption per SMC channel is 38.2 mA, for four channels this results in 152.8 mA. At 2 × 0.5 V this results in 153 mW power consumption PSMC for four channels of stepper motor drivers. Other I/O Buffers : The power dissipation (PIO) (at 5.25 V) of the I/O buffers is represented as the sum of the dynamic power dissipation (PAC5V, PAC3V) and the static power consumption (PDC) . PIO = PAC5V × 1.1 + PAC3V × 1.2 + PDC The following table lists values for PAC5V and PAC3V : Dynamic Power Dissipation Dynamic Power Dissipation Buffer Type PAC5V PAC3V PIB/POB at 5V PIB/POB at 3.3V Normal Input Bidirectional Input 4 mA Bidirectional Output 4 mA Output 8 mA Bidirectional Output 8 mA Output 12.4 194 + 25 CL 353 + 25 CL 12.4 85.5 + 11 CL 154 + 11 CL µW/MHz (pF in CL) Unit PAC = PIB × In × f × operating rate + POB × On × f × operating rate PIB : POB : In : On : f: Operating rate : Power Consumption of Input Buffers and Bidirectional Inputs Power Consumption of Output Buffers and Bidirectional Outputs Total number of input buffers and bidirectional buffer inputs Total number of output buffers and bidirectional buffer outputs System frequency 1.0 if all buffers are switched simultaneously at system frequency PDC is the caused by off chip loads which are drawing static currents. PDC = VO × IO × DCN VO : Output voltage drop - usually 0.4 V IO : Output current - usually 4 mA DCN : Number of output buffers and bidirectional buffers driving off chip loads causing static currents. 222 MB91360G Series 5. Clock Settings Max frequency setting 64 MHz 32 MHz 32 MHz 32 MHz 32 MHz Clock domain Core Resource bus Ext. Bus Clock for CAN Clock name CLKB CLKP CLKT CANCLK Remark under normal operating conditions 223 MB91360G Series 6. Converter Characteristics • A/D Converter Parameter Resolution Total error Non-linearity error Differential Non-linearity error Zero Reading voltage Full scale reading voltage Input current Reference voltage current Conversion time Ripple of supply voltage • D/A Converter Parameter Resolution Differential linearity error Conversion time Symbol ⎯ ⎯ ⎯ Value Min ⎯ −0.9 ⎯ Typ ⎯ ⎯ 3 Max 10 +0.9 ⎯ Unit Bit LSB µs 100pF external load Remark Symbol ⎯ ⎯ ⎯ ⎯ V0T VFST IA IR ⎯ ⎯ Value Min ⎯ ⎯ ⎯ ⎯ AVRL − 3.5 AVRH − 5.5 ⎯ ⎯ 178 cycles CLKP ⎯ Typ ⎯ ⎯ ⎯ ⎯ AVRL + 0.5 AVRH − 1.5 3.0 1.6 ⎯ ⎯ Max 10 ±5.0 ±2.5 ±1.9 AVRL + 4.5 AVRH + 2.5 7.0 2.6 1 ms ±5.0 mV Unit Bit LSB LSB LSB LSB LSB mA mA overall error Remark 224 MB91360G Series 7. A/D Converter Glossary • Resolution The smallest change in analog voltage detected by A/D converter. • Linearity error A deviation of actual conversion characteristic from a line connecting the zero-traction point (between “00 0000 0000” ↔ “00 0000 0001”) to the full-scale transition point (between “11 1111 1110” ↔ “11 1111 1111”) . • Differential linearity error A deviation of a step voltage for changing the LSB of output code from ideal input voltage. • Total error A difference between actual value and theoretical value. The overall error includes zero-transition error, fullscale transition error and linearity error. Total error 3FFH 1.5 LSB' 3FEH 3FDH {1 LSB' × (N − 1) + 0.5 LSB'} Digital output Actual conversion characteristic 004H 003H 002H Ideal characteristic 001H 0.5 LSB' AVRL Analog input AVRH VNT (measured value) Actual conversion Total error of digital output N VNT − {1 LSB’ × (N − 1) + 0.5 LSB’} [LSB] 1 LSB’ VOT’ (Ideal value) = AVRL + 0.5 LSB’ [V] = VFST’ (Ideal value) = AVRH − 1.5 LSB’ [V] VNT : A voltage for causing transition of digital output from (N − 1) to N (Continued) 225 MB91360G Series (Continued) Linearity error 3FFH 3FEH {1 LSB × (N − 1) + VOT} 3FDH VFST (measured value) 004H 003H 002H Ideal characteristic 001H VOT (measured value) AVRL Analog input AVRH AVRL N−2 VNT (measured value) Actual conversion characteristic N Actual conversion characteristic N+1 Differential linearity error Ideal characteristic Actual conversion characteristic Digital output Digital output N−1 V(N + 1)T (measured value) VNT (measured value) Actual conversion characteristic AVRH Analog input Linearity error of digital output N = VNT − {1 LSB × (N − 1) + VOT} 1 LSB V (N + 1) T − VNT 1 LSB′ −1 [LSB] [LSB] Differential linearity error of digital output N = 1 LSB = VFST − VOT 1022 [V] 1 LSB’ (ideal value) = AVRH − AVRL 1024 [V] VOT : A voltage for causing transition of digital output from (000) H to (001) H VFST : A voltage for causing transition of digital output from (3FE) H to (3FF) H VNT : A voltage for causing transition of digital output from (N − 1) H to NH 226 MB91360G Series 8. Notes on Using A/D Converter • About the external impedance of analog input and its sampling time • A/D converter with sample and hold circuit. If the external impedance is too high to keep sufficient sampling time, the analog voltage charged to the internal sample and hold capacitor is insufficient, adversely affecting A/D conversion precision. • Analog input circuit model R Analog input ↑ During sampling : ON Comparator C R 3.6 kΩ (Max) 3.6 kΩ (Max) C 30.0 pF (Max) 24.0 pF (Max) Mask products*1 Flash products*2 *1 : MB91366GA *2 : MB91FV360GA/F362GB/F364G/F369GA/F365GB/F366GB/F367GB/F368GB/F376G Note : The values are reference values. • To satisfy the A/D conversion precision standard, consider the relationship between the external impedance and minimum sampling time and either adjust the resistor value and operating frequency or decrease the external impedance so that the sampling time is longer than the minimum value. • The relationship between the external impedance and minimum sampling time [External impedance = 0 kΩ to 100 kΩ] Flash products 100 90 [External impedance = 0 kΩ to 20 kΩ] Flash products 20 18 Mask products Mask products External impedance (kΩ) 80 70 60 50 40 30 20 10 0 0 5 10 15 20 25 30 35 External impedance (kΩ) 16 14 12 10 8 6 4 2 0 0 1 2 3 4 5 6 7 8 Minimum sampling time (µs) Minimum sampling time (µs) • If the sampling time cannot be sufficient, connect a capacitor of about 0.1 µF to the analog input pin. • About errors As |AVRH − AVSS| becomes smaller, values of relative errors grow larger. 227 MB91360G Series 9. Time for Power Supply Parameter Power supply raising slope Power supply raising slope Symbol ∆V/∆t tR Value Min ⎯ 80 Typ ⎯ ⎯ Max 0.05 ⎯ Unit V/µs µs 4.2 V VDD 0.2 V ∆t ∆V 10. Flash Memory • Erase and programming performance Parameter Sector erase time Chip erase time Half word (16-bit) programming time Erase/Program cycle Data retention time * : TA = + 85 °C, VDD = 5.0 V ⎯ ⎯ TA = + 25 °C, VDD = 5.0 V Condition Value Min ⎯ ⎯ ⎯ 10,000 100,000 Typ 1 14 16 ⎯ ⎯ Max 15* ⎯ 3,600* ⎯ ⎯ Unit s s µs cycle h Remarks Excludes 00H programming prior erasure Excludes 00H programming prior erasure Excludes system-level overhead 11. AC Characteristics • Measurement conditions Parameter “H” level input voltage “L” level input voltage “H” level output voltage “L” level output voltage “H” level input voltage “L” level input voltage “H” level output voltage “L” level output voltage Load conditions Output pin C = 50 pF Symbol VIH VIL VOH VOL VIH VIL VOH VOL Value according to I/O spec 0.5 × VDD 0.5 × VDD 3.0 0 0.5 × VDD 0.5 × VDD Unit V V V V V V V V Conditions VDD = 4.25 to 5.25 V, TA = −40 to +85 °C VDD = 3.0 to 3.6 V, TA = −40 to +85 °C 228 MB91360G Series • External bus clock (VDD = 4.25 V to 5.25 V, TA = −40 °C to +85 °C) Symbol tCYC tCHCL tCLCH Pin name CLK CLK CLK Value Min tCPT tCYC / 2 − 10 tCYC / 2 − 10 Max ⎯ tCYC / 2 + 10 tCYC / 2 + 10 Unit ns ns ns Parameter CLK cycle CLK rise → CLK fall CLK fall → CLK rise Note : This is only valid for operation without clock modulator tCYC tCHCL tCLCH VOH VOH VOL CLK The values for tCHCL and tCLCH are heavily dependent on the load connected to the CLK pin. The following diagrams show this dependency for the worst case situation. The first diagram shows the situation for even division ratios between CLKB and CLKT, the second diagram shows this for odd division ratios between CLKB and CLKT (ASYMCLKT bit is not set) . It has to note that when the combination of CLK frequency and load at CLK pin is such that rise or fall times are longer than tCYC / 2 the duty ratio can get worse. 229 MB91360G Series Deviation of tCHCL from tCYC / 2 versus load (Even CLKB/CLKT division ratios) : deviation of tCHCL from tCYC / 2 versus load 14,0 12,0 10,0 Deviation (ns) 8,0 6,0 4,0 2,0 0,0 0 20 40 60 Load (pF) 5V 3.3 V 80 100 120 Deviation of tCHCL from tCYC / 2 versus load (Odd CLKB/CLKT division ratios) : deviation of tCHCL from tCYC / 2 versus load 14,0 12,0 10,0 8,0 6,0 4,0 2,0 0,0 0 20 40 60 Load (pF) Deviation (ns) 5V 3.3 V 80 100 120 230 MB91360G Series • External bus interface (VDD = 4.25 V to 5.25 V, TA = −40 °C to +85 °C) Symbol tCHCSL tCHCSH tCHAV tCHDV tCLRL tCLRH tCLWL tCLWH tAVDV tRLDV tDSRH tRHDX tCHASL tCHASH CLK → AS CLK → AS RDX, D31 to D0 Pin name CLK, CS6X to CS0X CLK, A20 to A0 CLK, D31 to D0 CLK, RDX CLK, WR3X to WR0X A20 to A0, D31 to D0 Value Min ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ ⎯ 25 *1 30 *2 0 ⎯ ⎯ Max 15 15 20 16 15 15 15 15 3 / 2 × tCYC − 30 tCYC − 20 *1 tCYC − 25 *2 ⎯ ⎯ 15 15 Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns Parameter CS6X to CS0X delay time CS6X to CS0X delay time Address delay time Data delay time RDX delay time RDX delay time WR3X to WR0X delay time WR3X to WR0X delay time Effective address ⇒ Effect data input time RDX (↓) → Effect data input time Data set up → RDX (↑) time RDX (↑) → Data hold time AS delay time AS delay time *1 : Values valid for 4.25 V ≤ VDD ≤ 5.25 V *2 : Values valid for 3.00 V ≤ VDD ≤ 4.25 V 231 MB91360G Series tCYC VOH tCHASL VOH tCHASH VOH VOH CLK VOL VOL AS tCHCSL VOL tCHCSH VOH CS0X to CS6X VOL tCHAV A23 to A00 VOH VOL tCLRL tCLRH VOH tRLDV RDX VOL tRHDX tDSRH VOH VOL VOH VOL tAVDV D31 to D00 tCLWL tCLWH VOH WR3X to WR0X VOL tCHDV D31 to D00 VOH VOL 232 MB91360G Series • RDY (VDD = 4.25 V to 5.25 V, TA = −40 °C to +85 °C) Parameter Symbol tRDYS tRDYH Pin name CLK, RDY CLK, RDY Value Min 16 *1 25 *2 0 Max ⎯ ⎯ Unit ns ns RDY setup RDY hold *1 : Values valid for 4.25 V ≤ VDD ≤ 5.25 V *2 : Values valid for 3.00 V ≤ VDD ≤ 4.25 V tCYC CLK VOH VOL VOH VOL tRDYS tRDYH tRDYS tRDYH RDY case 1 VIL VIH RDY case 2 VIH VIL 233 MB91360G Series • BGRNTX (VDD = 4.25 V to 5.25 V, TA = −40 °C to +85 °C) Symbol tCHBGL tCHBGH tXHAL BGRNTX tHAHV tcyc − 15 tcyc + 15 ns Pin name CLK, BGRNTX Value Min ⎯ ⎯ tcyc − 15 Max 10 10 tcyc + 15 Unit ns ns ns Parameter BGRNTX BGRNTX Bus access enabled BGRNTX falling Bus access disabled BGRNTX rising tCYC VOH VOH VOH CLK BRQ tCHBGL tCHBGH BGRNTX tXHAL VOH tHAHV Other Ports High-Z 234 MB91360G Series • DMA (VDD = 4.25 V to 5.25 V, TA = −40 °C to +85 °C) Parameter Symbol tDRWH tDSWH tCLDL tCLDH tCLEL tCLEH Pin name DREQ0 DSTP0* CLK, DACK0 CLK, DEOP0 Value Min 5tCYC 5tCYC ⎯ ⎯ ⎯ ⎯ Max ⎯ ⎯ 20 20 20 20 Unit ns ns ns ns DREQ DSTP DACK DEOP * : DSTP and DEOP share a pin. The pin is possible to change DSTP and DEOP functions using a port function register. tCYC CLK tCLDL tCLDH DACK0 tCLEL tCLEH DEOP0 tDSWH DSTP0 DREQ0 tDRWH 235 MB91360G Series ■ PACKAGE THERMAL RESISTANCE and MAX ALLOWED POWER CONSUMPTION Thermal Resistance [ °C/W] Package 0 m/s FPT-120P-M21 FPT-160P-M15 FPT-208P-M04 PGA-401C-A02 30 16 16 16 θja (junction to ambient) 1 m/s 27 13 13 8.5 3 m/s 25 11 11 5.5 θjc (junction to case) 5 2.5 2.5 ⎯ Maximum allowed power consumption [W] * 1.33 2.5 2.5 2.5 * : The maximum allowed ambient temperature is +85 °C, the maximum allowed junction temperature is +125 °C. Under these conditions, the maximum allowed power consumption will be PMAX = (125 °C − 85 °C) / θja (K/W) θja is the thermal resistance of this package at 0 m/s when used on a multi-layer board with separate power and ground planes. ■ ORDERING INFORMATION Part number MB91FV360GACR MB91F362GBPFVS MB91F369GAPQS1 MB91F365GBPMT MB91F366GBPMT MB91F367GBPMT MB91F368GBPMT MB91366GAPMT MB91F376GPMT MB91F364GPMT Package 401-pin Ceramic PGA (PGA-401C-A02) 208-pin Plastic QFP (FPT-208P-M04) 160-pin Plastic QFP (FPT-160P-M15) 120-pin plastic LQFP (FPT-120P-M21) 120-pin plastic LQFP (FPT-120P-M21) 120-pin plastic LQFP (FPT-120P-M21) 120-pin plastic LQFP (FPT-120P-M21) 120-pin plastic LQFP (FPT-120P-M21) 120-pin plastic LQFP (FPT-120P-M21) 120-pin plastic LQFP (FPT-120P-M21) Remarks 236 MB91360G Series ■ PACKAGE DIMENSIONS 401-pin ceramic PGA (PGA-401C-A02) 48.26 ± 0.55 SQ (1.900 ± .022) 2.54 (.100) TYP 0.40 ± 0.10 DIA (.016 ± .004) 1.00 (.039) DIA TYP (4 PLCS) 45.72 (1.800) REF INDEX AREA 1.20 ± 0.25 (.047 ± .010) 3.40 ± 0.40 (.134 ± .016) 5.27 (.207) MAX 1.02 (.040) C TYP (4 PLCS) EXTRA INDEX PIN © 1994 FUJITSU LIMITED R401002SC-2-2 Dimensions in mm (inches) . Note : The values in parentheses are reference values. 208-pin plastic QFP (FPT-208P-M04) 30.60±0.20(1.205±.008)SQ * 28.00±0.10(1.102±.004)SQ 156 105 Note 1) * : These dimensions do not include resin protrusion. Note 2) Pins width and pins thickness include plating thickness. Note 3) Pins width do not include tie bar cutting remainder. 0.17 –0.08 .007 –.003 104 +0.03 +.001 157 0.08(.003) Details of "A" part 3.75 –0.30 .148 –.012 +0.20 +.008 (Mounting height) 0.40 –0.15 INDEX 0˚~8˚ 53 +0.10 +.004 .016 –.006 (Stand off) 208 "A" LEAD No. 1 52 0.50(.020) 0.22±0.05 (.009±.002) 0.50±0.20 (.020±.008) 0.60±0.15 (.024±.006) 0.25(.010) 0.08(.003) M C 2003 FUJITSU LIMITED F208020S-c-3-4 Dimensions in mm (inches) . Note : The values in parentheses are reference values. (Continued) 237 MB91360G Series (Continued) 160-pin plastic QFP (FPT-160P-M15) 32.00±0.20(1.260±.008)SQ * 28.00±0.10(1.102±.004)SQ 120 81 Note 1) * : These dimensions do not include resin protrusion. Note 2) Pins width and pins thickness include plating thickness. Note 3) Pins width do not include tie bar cutting remainder. 0.17 –0.03 .007 –.001 +0.05 +.002 121 80 0.10(.004) Details of "A" part 3.75 –0.20 .148 –.008 +0.35 +.014 (Mounting height) 0.25(.010) INDEX 0~8˚ 41 160 1 40 "A" M 0.65(.026) 0.32 –0.07 +0.08 +.0031 0.80±0.20 (.031±.008) 0.88±0.15 (.035±.006) 0.40 –0.15 +0.10 +.004 .016 –.006 (Stand off) .013 –.0028 0.13(.005) C 2003 FUJITSU LIMITED F160037S-c-3-3 Dimensions in mm (inches) . Note : The values in parentheses are reference values. Note 1) * : These dimensions 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. 18.00±0.20(.709±.008)SQ * 16.00 –0.10 .630 +.016 SQ –.004 90 61 +0.40 120-pin plastic LQFP (FPT-120P-M21) 91 60 0.08(.003) Details of "A" part 1.50 –0.10 .059 –.004 +0.20 +.008 (Mounting height) INDEX 0~8˚ 120 31 "A" 0.10±0.05 (.004±.002) (Stand off) 0.25(.010) LEAD No. 1 30 0.50(.020) 0.22±0.05 (.009±.002) 0.08(.003) M 0.145 –0.03 .006 –.001 +0.05 +.002 0.60±0.15 (.024±.006) C 2002 FUJITSU LIMITED F120033S-c-4-4 Dimensions in mm (inches) . Note : The values in parentheses are reference values. 238 MB91360G Series FUJITSU LIMITED All Rights Reserved. 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. F0506 © 2005 FUJITSU LIMITED Printed in Japan
MB91366GAPMT 价格&库存

很抱歉,暂时无法提供与“MB91366GAPMT”相匹配的价格&库存,您可以联系我们找货

免费人工找货