FUJITSU SEMICONDUCTOR DATA SHEET DS07-16308-1E 32-Bit RISC Microcontroller CMOS FR30 Series MB91133/MB91F133 ■ DESCRIPTION The MB91133/MB91F133, a standard single-chip microcontroller featuring various I/O resources and bus control mechanisms to incorporate the control required for high-performance high-speed CPU processes, is the core unit in the 32-bit RISC CPU (FR family) . This unit has the optimal specifications for incorporating applications that require high-performance CPU processing power by featuring peripheral I/O resources suitable for single-lens reflex cameras, digital video cameras, etc. ■ FEATURES 1. CPU • • • • • • • • • • • 32-bit RISC (FR30) , load/store architecture, 5-level pipeline Multi-purpose register : 32 bits × 16 16-bit fixed length instructions (basic instructions) , 1 instruction per cycle Instructions for barrel shift, bit processing and inter-memory transfers : Instructions suited to loading purposes Function entry / exit instruction, multi load / store instruction of register details : High-level language handling instruction Register interlock function : Simplification of assembler description Branch instruction with delay slot : Reduction in overheads in case of branching Multiplier is built-in / supported at instruction level. Signed 32-bit multiplication : 5 cycles Signed 16-bit multiplication : 3 cycles Interruption (saving PC and PS) : 6 cycles, 16 priority levels (Continued) ■ PACKAGES 144-pin plastic FBGA 144-pin plastic LQFP (BGA-144P-M01) (FPT-144P-M08) MB91133/MB91F133 (Continued) 2. Bus Interface • • • • • 24-bit address output, 8/16-bit data input/output Basic bus cycle : 2 clock cycles Interface support for various memories Unused data and address pins can be used as input/output ports. Supports “little endian” mode 3. Built-in ROM Mask device : 254 KB; FLASH device : 254 KB; EVA-FLASH device : 254 KB 4. Built-in RAM Mask device : 8 KB; FLASH device : 8 KB; EVA-FLASH device : 8 KB 5. DMA Controller This is a descriptor-type MA controller whose transfer parameters are arranged in the main memory. A maximum of 8 factors in total (internal and external) can be transferred. External factors are 3 channels. 6. Bit Search Module Searches the first “1” / “0” change bit positions within 1 cycle from MSB in 1 word 7. Timer • 16-bit reload timer × 5 channels • 16-bit OCU × 8 channels, ICU × 4 channels, free-run timer × 1 channel Output waveform adjusting function for AC motor waveforms is included in the above timer. • 8/16-bit up/down timer/counter (8-bit × 2 channels or 16-bit × 1 channel) External interruption and pin are shared for AIN and BIN. • 16-bit down count timer × 5 channels; can also be used as the UART baud rate timer • 16-bit PPG timer × 6 channels; out-pulse cycle / duty can be changed at random 8. D/A Converter • 8-bit × 3 channels 9. A/D Converter (Sequential comparison type) • • • • 10-bit × 8 channels Sequential conversion method (conversion time 5.0 µs at 33 MHz) Setting for single conversion, scan conversion and repeat conversion is possible. Conversion starting function using hardware or software 10. Serial I/O • UART × 5 channels; clock synchronous serial transfer with LSB / MSB switching function is possible for both. • Serial data output or serial lock output can be selected using push-pull / open-drain software. 11. Level Comparator Input • 1 channel; shared input and pins of A/D converter. 12. Clock Switching Function • Base clock : Software can be used to select from two types of clock sources, namely 32 kHz and high-speed. • Gear function : Four types of settings (1 : 1, 1 : 2, 1 : 4, 1 : 8) can be set individually as the operating clock ratio to the basic clock per CPU and peripheral equipment. 2 MB91133/MB91F133 13. Interruption Controller • External interruption input (total 24 channels) • With pull up pin control / standby return function : 4 channels (rising / falling / H level / L level settings are possible) • With pull up pin control / standby return function; AIN / BIN pins of the up/down counter are shared : 4 channels (rising / falling / H level / L level settings are possible) • With pull up pin controln : 16 channels (rising / falling / H level / L level settings are possible) • Internal interruption factor • Interruption / delay interruption by resource 14. Others • Reset factors Power on reset, watchdog timer, software reset, external reset • Low power consumption mode Sleep/stop mode • Packages FBGA-144, LQFP-144 • CMOS technology (0.35 µm) • Power Two power sources (5 V / 3 V) 1) 5 V system : 5 V ± 10% (A/D, D/A and level comparator included) 2) 3 V system : A) 3.0 V to 3.6 V : All functions guaranteed B) 2.7 V to 3.0 V : All functions guaranteed for single-chip mode of mask devices only ■ PRODUCT LINEUP MB91133 MB91F133 MB91FV130 MASK ROM device (mass production item) FLASH ROM device (for evaluation) Piggy/EVA device (for evaluation / development) 6 KB 6 KB 6 KB CROM capacity 254 KB FLASH capacity 254 KB 254 KB CRAM capacity 2 KB 2 KB 2 KB Mass production Trial production Provided CLASSIFICATION RAM capacity Others 3 MB91133/MB91F133 ■ PIN ASSIGNMENTS • MB91FV130 (BOTTOM VIEW) 3 299 296 293 277 274 270 268 278 275 262 254 247 257 252 250 245 233 230 224 2 298 292 289 286 283 280 276 269 264 263 258 251 248 243 240 237 234 225 221 5 10 4 297 291 287 284 279 271 265 261 256 249 242 239 235 229 228 219 218 8 13 6 300 295 290 285 281 272 267 259 255 246 241 236 231 226 223 215 207 25 16 11 7 1 294 288 282 273 266 260 253 244 238 232 227 222 217 212 202 27 19 15 12 9 220 216 213 209 199 32 23 18 17 14 214 211 210 205 195 34 26 24 21 20 208 206 204 201 203 22 33 31 30 28 198 197 196 194 200 29 39 38 35 36 192 193 191 190 187 37 40 41 43 42 186 185 188 189 179 50 44 46 47 48 178 180 181 183 172 53 51 54 56 58 170 171 174 176 184 45 55 60 61 64 164 167 168 173 182 49 59 63 66 70 159 162 165 169 177 52 62 67 72 77 82 88 94 103 110 116 123 133 139 145 153 157 161 166 175 57 65 73 76 81 86 91 96 105 109 117 122 131 136 141 147 151 156 163 158 68 69 78 79 85 89 92 99 106 111 115 121 129 135 138 142 148 154 160 155 71 75 84 87 90 93 98 101 108 113 114 119 126 130 134 137 140 144 150 152 74 80 83 95 100 102 107 97 104 112 125 128 118 120 124 127 132 143 146 149 (PGA-299C-A01) 4 MB91133/MB91F133 • MB91F133/MB91133 (TOP VIEW) 14 108 107 106 102 99 96 92 89 85 82 79 75 74 72 13 110 109 105 103 100 97 93 88 84 81 78 76 73 71 12 111 112 113 104 101 98 91 90 86 83 80 77 69 70 11 115 114 116 95 94 87 68 67 66 10 118 117 119 65 64 63 9 121 120 122 59 62 61 60 8 125 124 126 123 58 55 57 56 7 128 129 127 130 51 54 52 53 6 132 133 134 131 50 48 49 5 135 136 137 47 45 46 4 138 139 140 44 42 43 3 142 141 5 8 11 2 143 1 4 6 1 144 2 3 A B C 15 22 23 14 18 19 26 29 32 41 40 39 9 12 16 21 25 28 31 33 37 38 7 10 13 17 20 24 27 30 34 35 36 D E F G H J K L M N P INDEX (BGA-144P-M01) 5 P61/A17/INT17 P62/A18/INT18 P63/A19/INT19 P64/A20/INT20 P65/A21/INT21 P66/A22/INT22 P67/A23/INT23 VCC3 P80/RDY P81/BGRNT P82/BRQ P83/RD P84/WR0 P85/WR1 P86/CLK VSS PC0/INT0 PC1/INT1 PC2/INT2 PC3/INT3 PC4/AIN0/INT4 PC5/BIN0/INT5 PC6/AIN1/INT6 PC7/BIN1/INT7 PD0/INT8/TRG0 PD1/INT9/TRG1 PD2/INT10/TRG2 PD3/INT11/TRG3 PD4/INT12/TRG4 PD5/INT13/TRG5 PD6/DEOP2/INT14 PD7/ATG/INT15 PE0/ZIN0 PE1/ZIN1 PE2/IN0 PE3/IN1 P20/D16 P21/D17 P22/D18 P23/D19 P24/D20 P25/D21 P26/D22 P27/D23 VSS P30/D24 P31/D25 P32/D26 P33/D27 P34/D28 P35/D29 P36/D30 P37/D31 P40/A00 P41/A01 P42/A02 P43/A03 P44/A04 P45/A05 P46/A06 P47/A07 VSS VCC5 P50/A08 P51/A09 P52/A10 P53/A11 P54/A12 P55/A13 P56/A14 P57/A15 P60/A16/INT16 6 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 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 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 67 68 69 70 71 72 MD2 MD1 MD0 VSS X1 X0 VCC3 X1A X0A VSS RST PL7/DACK2 PL6/DREQ2 PL5/DEOP1 PL4/DACK1 PL3/DREQ1 PL2/DEOP0 PL1/DACK0 PL0/DREQ0 PK7/AN7/CMP PK6/AN6 PK5/AN5 PK4/AN4 PK3/AN3 PK2/AN2 PK1/AN1 PK0/AN0 AVSS AVRL AVRH AVCC DAVC DAVS DA0 DA1 DA2 MB91133/MB91F133 • MB91F133/MB91133 (TOP VIEW) 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 (FPT-144P-M08) VCC5 PH0/SIN0 PH1/SOT0 PH2/SCK0 PI0/SIN1 PI1/SOT1 PI2/SCK1 PI3/SIN2 PI4/SOT2 PI5/SCK2 PJ0/SIN3 PJ1/SOT3 PJ2/SCK3 PJ3/SIN4 PJ4/SOT4 PJ5/SCK4 VCC3 VSS PG5/PPG5 PG4/PPG4 PG3/PPG3 PG2/PPG2 PG1/PPG1 PG0/PPG0 PF7/RTO7 PF6/RTO6 PF5/RTO5 PF4/RTO4 PF3/RTO3 PF2/RTO2 PF1/RTO1 PF0/RTO0 PE7/DTTI PE6/FRCK PE5/IN3 PE4/IN2 MB91133/MB91F133 ■ PIN NUMBERS LIST • Device : MB91FV130 Package : PGA-299C-A01 No. Pin Name No. Pin Name No. Pin Name No. Pin Name 1 P20/D16 35 P54/A12 69 N.C. 103 PK3/AN3 2 VSS 36 P55/A13 70 N.C. 104 VCC5 3 OPEN 37 VCC5 71 VSS 105 PK4/AN4 4 P21/D17 38 P56/A14 72 N.C. 106 PK5/AN5 5 VCC5 39 P57/A15 73 N.C. 107 PK6/AN6 6 P22/D18 40 P60/A16/INT16 74 VCC5 108 PK7/AN7/CMP 7 P23/D19 41 P61/A17/INT17 75 N.C. 109 DAVC 8 VSS 42 P62/A18/INT18 76 MD0 110 DAVS 9 P24/D20 43 P63/A19/INT19 77 MD1 111 DA0 10 P25/D21 44 P64/A20/INT20 78 MD2 112 VSS 11 P26/D22 45 P65/A21/INT21 79 VCC3 113 DA1 12 P27/D23 46 P66/A22/INT22 80 VSS 114 DA2 13 P30/D24 47 P67/A23/INT23 81 X0 115 PH0/SIN0 14 P31/D25 48 P80/RDY 82 X1 116 PH1/SOT0 15 P32/D26 49 VCC3 83 VCC5 117 PH2/SCK0 16 P33/D27 50 VSS 84 RST 118 PI0/SIN1 17 P34/D28 51 P81/BGRNT 85 N.C. 119 PI1/SOT1 18 P35/D29 52 P82/BRQ 86 ICLK 120 PI2/SCK1 19 P36/D30 53 VCC5 87 ICS0 121 PI3/SIN2 20 P37/D31 54 P83/RD 88 ICS1 122 PI4/SOT2 21 P40/A00 55 P84/WR0 89 ICS2 123 PI5/SCK2 22 VCC5 56 P85/WR1 90 ICD0 124 PJ0/SIN3 23 P41/A01 57 P86/CLK 91 ICD1 125 VCC5 24 P42/A02 58 PL0/DREQ0 92 ICD2 126 PJ1/SOT3 25 P43/A03 59 PL1/DACK0 93 ICD3 127 PJ2/SCK3 26 P44/A04 60 PL2/DEOP0 94 BREAK 128 VSS 27 P45/A05 61 PL3/DREQ1 95 AVCC 129 VCC3 28 P46/A06 62 PL4/DACK1 96 AVRH 130 X0A 29 VSS 63 PL5/DEOP1 97 VSS 131 X1A 30 P47/A07 64 PL6/DREQ2 98 AVRL 132 VSS 31 P50/A08 65 PL7/DACK2 99 AVSS 133 PJ3/SIN4 32 P51/A09 66 N.C. 100 PK0/AN0 134 PJ4/SOT4 33 P52/A10 67 N.C. 101 PK1/AN1 135 PJ5/SCK4 34 P53/A11 68 VCC5 102 PK2/AN2 136 PC0/INT0 (Continued) 7 MB91133/MB91F133 (Continued) No. Pin Name 8 No. Pin Name No. Pin Name No. Pin Name No. Pin Name 137 PC1/INT1 173 PF5/RTO5 209 TAD14 245 TDT23 281 TDT53 138 PC2/INT2 174 PF6/RTO6 210 TAD15 246 TDT24 282 TDT54 139 PC3/INT3 175 PF7/RTO7 211 VCC3 247 VSS 283 TDT55 140 PC4/INT4/AIN0 176 PG0/PPG0 212 TOE 248 TDT25 284 TDT56 141 PC5/INT5/BIN0 177 PG1/PPG1 213 TCE1 249 TDT26 285 TDT57 142 PC6/INT6/AIN1 178 PG2/PPG2 214 TADSC 250 TDT27 286 VCC3 143 VCC5 179 VSS 215 TWR 251 TDT28 287 TDT58 144 PC7/INT7/BIN1 180 PG3/PPG3 216 TDT00 252 TDT29 288 TDT59 145 PD0/INT8/TRG0 181 PG4/PPG4 217 TDT01 253 TDT30 289 TDT60 146 VSS 182 PG5/PPG5 218 VSS 254 VCC5 290 TDT61 147 PD1/INT9/TRG1 183 N.C. 219 TDT02 255 TDT31 291 TDT62 148 PD2/INT10/TRG2 184 N.C. 220 TDT03 256 TDT32 292 TDT63 149 VCC5 185 N.C. 221 VCC5 257 TDT33 293 VCC5 150 PD3/INT11/TRG3 186 N.C. 222 TDT04 258 TDT34 294 TDT64 151 PD4/INT12/TRG4 187 VCC5 223 TDT05 259 TDT35 295 TDT65 152 VSS 188 EXRAM 224 VSS 260 TDT36 296 VSS 153 PD5/INT13/TRG5 189 TAD00 225 TDT06 261 TDT37 297 TDT66 154 PD6/INT14/DEOP2 190 TAD01 226 TDT07 262 VSS 298 TDT67 155 VCC5 191 TAD02 227 TDT08 263 TDT38 299 VCC5 156 PD7/INT15/ATG 192 TAD03 228 TDT09 264 TDT39 300 TDT68 157 PE0/ZIN0 193 VCC3 229 TDT10 265 TDT40 158 VSS 194 TAD04 230 VCC5 266 TDT41 159 PE1/ZIN1 195 TAD05 231 TDT11 267 TDT42 160 PE2/IN0 196 TAD06 232 TDT12 268 TDT43 161 PE3/IN1 197 TAD07 233 VSS 269 VCC3 162 PE4/IN2 198 TAD08 234 TDT13 270 TDT44 163 PE5/IN3 199 TAD09 235 TDT14 271 TDT45 164 PE6/FRCK 200 VSS 236 TDT15 272 TDT46 165 PE7/DTTI 201 TAD10 237 TDT16 273 TDT47 166 VCC3 202 TAD11 238 TDT17 274 TDT48 167 PF0/RTO0 203 VCC5 239 TDT18 275 VCC5 168 PF1/RTO1 204 TAD12 240 VCC3 276 TDT49 169 PF2/RTO2 205 TAD13 241 TDT19 277 TDT50 170 PF3/RTO3 206 TAD14 242 TDT20 278 VSS 171 PF4/RTO4 207 TAD15 243 TDT21 279 TDT51 172 VCC5 208 TCLK 244 TDT22 280 TDT52 MB91133/MB91F133 • Device : MB91F133/MB91133 LQFP FBGA Pin Name Package : BGA-144P-M01/FPT-144P-M08 LQFP FBGA Pin Name LQFP FBGA Pin Name 1 B2 P20/D16 36 P1 P60/A16/INT16 71 P13 PE2/IN0 2 B1 P21/D17 37 N2 P61/A17/INT17 72 P14 PE3/IN1 3 C1 P22/D18 38 P2 P62/A18/INT18 73 N13 PE4/IN2 4 C2 P23/D19 39 P3 P63/A19/INT19 74 N14 PE5/IN3 5 C3 P24/D20 40 N3 P64/A20/INT20 75 M14 PE6/FRCK 6 D2 P25/D21 41 M3 P65/A21/INT21 76 M13 PE7/DTTI 7 D1 P26/D22 42 N4 P66/A22/INT22 77 M12 PF0/RTO0 8 D3 P27/D23 43 P4 P67/A23/INT23 78 L13 PF1/RTO1 9 E2 VSS 44 M4 VCC3 79 L14 PF2/RTO2 10 E1 P30/D24 45 N5 P80/RDY 80 L12 PF3/RTO3 11 E3 P31/D25 46 P5 P81/BGRNT 81 K13 PF4/RTO4 12 F2 P32/D26 47 M5 P82/BRQ 82 K14 PF5/RTO5 13 F1 P33/D27 48 N6 P83/RD 83 K12 PF6/RTO6 14 F3 P34/D28 49 P6 P84/WR0 84 J13 PF7/RTO7 15 G4 P35/D29 50 M6 P85/WR1 85 J14 PG0/PPG0 16 G2 P36/D30 51 L7 P86/CLK 86 J12 PG1/PPG1 17 G1 P37/D31 52 N7 VSS 87 H11 PG2/PPG2 18 G3 P40/A00 53 P7 PC0/INT0 88 H13 PG3/PPG3 19 H3 P41/A01 54 M7 PC1/INT1 89 H14 PG4/PPG4 20 H1 P42/A02 55 M8 PC2/INT2 90 H12 PG5/PPG5 21 H2 P43/A03 56 P8 PC3/INT3 91 G12 VSS 22 H4 P44/A04 57 N8 PC4/AIN0/INT4 92 G14 VCC3 23 J4 P45/A05 58 L8 PC5/BIN0/INT5 93 G13 PJ5/SCK4 24 J1 P46/A06 59 L9 PC6/AIN1/INT6 94 G11 PJ4/SOT4 25 J2 P47/A07 60 P9 PC7/BIN1/INT7 95 F11 PJ3/SIN4 26 J3 VSS 61 N9 PD0/INT8/TRG0 96 F14 PJ2/SCK3 27 K1 VCC5 62 M9 PD1/INT9/TRG1 97 F13 PJ1/SOT3 28 K2 P50/A08 63 P10 PD2/INT10/TRG2 98 F12 PJ0/SIN3 29 K3 P51/A09 64 N10 PD3/INT11/TRG3 99 E14 PI5/SCK2 30 L1 P52/A10 65 M10 PD4/INT12/TRG4 100 E13 PI4/SOT2 31 L2 P53/A11 66 P11 PD5/INT13/TRG5 101 E12 PI3/SIN2 32 L3 P54/A12 67 N11 PD6/DEOP2/INT14 102 D14 PI2/SCK1 33 M2 P55/A13 68 M11 PD7/ATG/INT15 103 D13 PI1/SOT1 34 M1 P56/A14 69 N12 PE0/ZIN0 104 D12 PI0/SIN1 35 N1 P57/A15 70 P12 PE1/ZIN1 105 C13 PH2/SCK0 (Continued) 9 MB91133/MB91F133 (Continued) LQFP FBGA 10 Pin Name LQFP FBGA Pin Name 106 C14 PH1/SOT0 126 C8 PL0/DREQ0 107 B14 PH0/SIN0 127 C7 PL1/DACK0 108 A14 VCC5 128 A7 PL2/DEOP0 109 B13 DA2 129 B7 PL3/DREQ1 110 A13 DA1 130 D7 PL4/DACK1 111 B12 DA0 131 D6 PL5/DEOP1 112 A12 DAVS 132 A6 PL6/DREQ2 113 C12 DAVC 133 B6 PL7/DACK2 114 B11 AVCC 134 C6 RST 115 A11 AVRH 135 A5 VSS 116 C11 AVRL 136 B5 X0A 117 B10 AVSS 137 C5 X1A 118 A10 PK0/AN0 138 A4 VCC3 119 C10 PK1/AN1 139 B4 X0 120 B9 PK2/AN2 140 C4 X1 121 A9 PK3/AN3 141 B3 VSS 122 C9 PK4/AN4 142 A3 MD0 123 D8 PK5/AN5 143 A2 MD1 124 B8 PK6/AN6 144 A1 MD2 125 A8 PK7/AN7/CMP MB91133/MB91F133 ■ PIN DESCRIPTIONS Pin No. Pin name Circuit type Function 1 2 3 4 5 6 7 8 D16/P20 D17/P21 D18/P22 D19/P23 D20/P24 D21/P25 D22/P26 D23/P27 C External data bus bits 16 to 23 Only valid for external bus 16-bit mode. Can be used as ports in single-chip and external bus 8-bit modes. 10 11 12 13 14 15 16 17 D24/P30 D25/P31 D26/P32 D27/P33 D28P34 D29/P35 D30/P36 D31/P37 C External data bus bits 24 to 31 Can be used as ports in single-chip mode. 18 19 20 21 22 23 24 25 28 29 30 31 32 33 34 35 A00/P40 A01/P41 A02/P42 A03/P43 A04/P44 A05/P45 A06/P46 A07/P47 A08/P50 A09/P51 A10/P52 A11/P53 A12/P54 A13/P55 A14/P56 A15/P57 F External address bus bits 0 to 15 Valid for external bus mode. Can be used as ports in single-chip mode. 36 37 38 39 40 41 42 43 A16/INT16/P60 A17/INT17/P61 A18/INT18/P62 A19/INT19/P63 A20/INT20/P64 A21/INT21/P65 A22/INT22/P66 A23/INT23/P67 O External address bus bits 16 to 23 [ INT16 to 23 ] are external interruption request inputs 16 to 23. These inputs are always used when dealing with external interruptions is permitted, so output by ports should be stopped except when carried out intentionally. Can be used as ports when address bus and external interruption request input are not used. C External RDY input This function is valid when external RDY input is permitted. “0” is input if the bus cycle being executed is not completed. Can be used as a port when the external RDY input is not used. 45 RDY/P80 (Continued) 11 MB91133/MB91F133 Pin No. 46 47 Pin name BGRNT/P81 BRQ/P82 Circuit type Function F External bus open reception output This function is valid when external bus open reception output is permitted. “L” is output if the external bus is opened. Can be used as a port when the external bus open reception output is prohibited. C External bus open request input This function is valid when external bus open request input is permitted. “1” is input if the external bus requests to be opened. Can be used as a port when the external bus open request input is not used. 48 RD/P83 F External bus read strobe output This function is valid when external bus read strobe output is permitted. Can be used as a port when the external bus read strobe output is prohibited. 49 WR0/P84 F External bus write strobe output This function is valid in external bus mode. Can be used as a port in single-chip mode. 50 WR1/P85 F External bus write strobe output This function is valid in external bus mode and with 16-bit buses. Can be used as a port in single-chip mode or with external 8-bit bus. 51 CLK/P86 F System clock output Outputs the same clock frequency as the external bus operation. Can be used as a port when it is not otherwise used. H External interruption request inputs 0 to 3 These inputs are always used when dealing with external interruptions is permitted, so output by ports should be stopped except when carried out intentionally. Can be used to reset standby as input is permitted in this port under standby status.Can be used as ports when external interruption request input is not used. 53 54 55 56 57 58 59 60 INT0/PC0 INT1/PC1 INT2/PC2 INT3/PC3 AIN0/INT4/PC4 BIN0/INT5/PC5 AIN1/INT6/PC6 BIN1/INT7/PC7 External interruption request inputs 4 to 7 These inputs are always used when dealing with external interruptions is permitted, so output by ports should be stopped except when carried out intentionally. Can be used to reset standby as input is permitted in these ports under standby status. H [ AIN, BIN ] Up/down timer input This input is always used when input is permitted, so output by ports should be stopped except when carried out intentionally. Can be used as a port when external interruption request input and up/down timer input are not used. (Continued) 12 MB91133/MB91F133 Pin No. Pin name Circuit type Function External interruption request inputs 8 to 15 These inputs are always used when dealing with external interruptions is permitted, so output by ports should be stopped except when carried out intentionally. [ TRG0 to 5 ] These are external trigger inputs for PPG timers. 61 62 63 64 65 66 67 68 TRG0/INT8/PD0 TRG1/INT9/PD1 TRG2/INT10/PD2 TRG3/INT11/PD3 TRG4/INT12/PD4 TRG5/INT13/PD5 DEOP2/INT14/PD6 ATG/INT15/PD7 69 70 ZIN0/PE0 ZIN1/PE1 O Up/down timer input These inputs are always used when input is permitted, so output by ports should be stopped except when carried out intentionally. Can be used as ports when up/down timer input is not used. 71 72 73 74 IN0/PE2 IN1/PE3 IN2/PE4 IN3/PE5 F Input capture input This function is valid when input capture activates input. Can be used as ports when input capture input is not used. 75 FRCK/PE6 F External clock input pin of free-run timer Can be used as a port when external clock input of free-run timer is not used. 76 DTTI/PE7 F RTOn pin level fixed input Invalid when input is permitted in the waveform generation area. Can be used as a port when RTOn pin level fixed input is not used. 77 78 79 80 81 82 83 84 RTO0/PF0 RTO1/PF1 RTO2/PF2 RTO3/PF3 RTO4/PF4 RTO5/PF5 RTO6/PF6 RTO7/PF7 F Output compare event pins/waveform output pins in the waveform generation area Can be used as ports when specification of the output compare event pin/waveform output pin of the waveform generation area is prohibited. 85 86 87 88 89 90 PPG0/PG0 PPG1/PG1 PPG2/PG2 PPG3/PG3 PPG4/PG4 PPG5/PG5 F PPG timer output This function is valid when output specification of the PPG timer is permitted. Can be used as ports when output specification of the PPG timer is prohibited. 111 110 109 DA0 DA1 DA2 D/A converter output This function is valid when output specification of the D/A converter is permitted. O [ DEOP2 ] DMA external transfer termination output This function is valid when external transfer termination output specification of the DMA controller is permitted. [ ATG ] A/D converter external trigger input These inputs are always used when they are selected as A/D initiation factors, so output by ports should be stopped except when carried out intentionally. Can be used as ports when not otherwise used. (Continued) 13 MB91133/MB91F133 Pin No. 107 106 105 104 103 102 101 100 99 98 97 Pin name SIN0/PH0 SOT0/PH1 SCK0/PH2 SIN1/PI0 SOT1/PI1 SCK1/PI2 SIN2/PI3 SOT2/PI4 SCK2/PI5 SIN3/PJ0 SOT3/PJ1 Circuit type Function P UART0 data input This input is always used when UART0 activates input, so output by ports should be stopped except when carried out intentionally. Can be used as a port when UART0 data input is not used. P UART0 data output This function is valid when UART0 data output specification is permitted. Can be used as a port when UART0 data output specification is prohibited. P UART0 clock input/output This function is valid when UART0 clock output specification is permitted. Can be used as a port when UART0 clock output specification is prohibited. P UART1 data input This input is always used when UART1 activates input, so output by ports should be stopped except when carried out intentionally. Can be used as a port when UART1 data input is not used. P UART1 data output This function is valid when UART1 data output specification is permitted. Can be used as a port when UART1 data output specification is prohibited. P UART1 clock input/output This function is valid when UART1 clock output specification is permitted. Can be used as a port when UART1 clock output specification is prohibited. P UART2 data input This input is always used when UART2 activates input, so output by ports should be stopped except when carried out intentionally. Can be used as a port when UART2 data input is not used. P UART2 data output This function is valid when UART2 data output specification is permitted. Can be used as a port when UART2 data output specification is prohibited. P UART2 clock input/output This function is valid when UART2 clock output specification is permitted. Can be used as a port when UART2 clock output specification is prohibited. P UART3 data input This input is always used when UART3 activates input, so output by ports should be stopped except when carried out intentionally. Can be used as a port when UART3 data input is not used. P UART3 data output This function is valid when UART3 data output specification is permitted. Can be used as a port when UART3 data output specification is prohibited. (Continued) 14 MB91133/MB91F133 Pin No. 96 95 94 Pin name SCK3/PJ2 SIN4/PJ3 SOT4/PJ4 93 SCK4/PJ5 118 119 120 121 122 123 124 125 AN0/PK0 AN1/PK1 AN2/PK2 AN3/PK3 AN4/PK4 AN5/PK5 AN6/PK6 CMP/AN7/PK7 126 DREQ0/PL0 Circuit type Function P UART3 clock input/output This function is valid when UART3 clock output specification is permitted. Can be used as a port when UART3 clock output specification is prohibited. P UART4 data input This input is always used when UART4 activates input, so output by ports should be stopped except when carried out intentionally. Can be used as a port when UART4 data input is not used. P UART4 data output This function is valid when UART4 data output specification is permitted. Can be used as a port when UART4 data output specification is prohibited. P UART4 clock input/output This function is valid when UART4 clock output specification is permitted. Can be used as a port when UART4 clock output specification is prohibited. A/D converter analog input This is valid when the AICK register specification is analog input. N [ CMP ] level comparator input Can be used as ports when A/D converter analog input is not used. F DMA external transfer request input This input is always used if selected as the transfer factor for the DMA controller, so output by ports should be stopped except when carried out intentionally. Can be used as a port when DMA external transfer request input is not used. 127 DACK0/PL1 F DMA external transfer request reception output This function is valid when external transfer request reception output specification of the DMA controller is permitted. Can be used as a port when transfer request reception output specification of the DMA controller is prohibited. 128 DEOP0/PL2 F DMA external transfer termination output This function is valid when external transfer termination output specification of the DMA controller is permitted. F DMA external transfer request input This input is always used if selected as the transfer factor for the DMA controller, so output by ports should be stopped except when carried out intentionally. Can be used as a port when DMA external transfer request input is not used. 129 DREQ1/PL3 (Continued) 15 MB91133/MB91F133 (Continued) Pin No. Pin name Circuit type Function 130 DACK1/PL4 F DMA external transfer request reception output This function is valid when external transfer request reception output specification of the DMA controller is permitted. Can be used as a port when transfer request reception output specification of the DMA controller is prohibited. 131 DEOP1/PL5 F DMA external transfer termination output This function is valid when external transfer termination output specification of the DMA controller is permitted. F DMA external transfer request input This input is always used if selected as the transfer factor for the DMA controller, so output by ports should be stopped except when carried out intentionally. Can be used as a port when DMA external transfer request input is not used. 132 DREQ2/PL6 133 DACK2/PL7 F DMA external transfer request reception output This function is valid when external transfer request reception output specification of the DMA controller is permitted. Can be used as a port when transfer request reception output specification of the DMA controller is prohibited. 134 RST B External reset input 136 137 X0A X1A K Oscillation pin for low-speed clock (32 kHz) 139 140 X0 X1 A Oscillation pin for high-speed clock (16.5 MHz) 142 143 144 MD0 MD1 MD2 G Mode pins Basic MCU operation mode is set by these pins. They should be directly connected to VCC or VSS for use. 112 DAVS Ground pin of D/A converter (connected to analog ground) 113 DAVC Power pin of D/A converter 114 AVCC Power pin for A/D converter 115 AVRH Reference voltage pin for A/D converter (high electric potential side) When this pin is turned on/off, AVRH or more electric potential must be supplied to VCC. 116 AVRL Reference voltage pin for A/D converter (low electric potential side) 117 AVSS Ground pin for A/D converter (connected to analog ground) 27, 108 VCC5 5 V power of digital circuit Power must be connected to all VCC5 pins for use. 44, 92 138 VCC3 3 V power of digital circuit Power must be connected to all VCC3 pins for use. 9, 26, 52, 91, 135, 141 VSS Ground level of digital circuit Note : In most of the above pins, the input/output of the I/O ports and resources are multiplexed, such as xxxx/Pxx. If the output from ports and resources of those pins compete with each other, the resource is given priority. 16 MB91133/MB91F133 ■ INPUT/OUTPUT CIRCUIT TYPES Type Circuit Remarks • High-speed oscillation circuit (16.5 MHz) X1 Xout A X0 Oscillation feedback resistance = approximately 1 MΩ 3 V CMOS level input Standby control signal • With pull up resistance CMOS level input Pull-up resistance value = approximately 25 kΩ (Typ.) B Digital input • CMOS level input/output pin Pout CMOS level output CMOS level input (with standby control) Nout C IOL = 4 mA R CMOS input Standby control • CMOS hysteresis input/output pin Pout CMOS level output CMOS hysteresis input (with standby control) Nout F IOL = 4 mA R Hysteresis input Standby control (Continued) 17 MB91133/MB91F133 Type Circuit Remarks • CMOS level input pin CMOS level input (without standby control) G IOL = 4 mA R Digital input Pull-up control Pout R • CMOS hysteresis input/output pin with pull- up control CMOS level output CMOS hysteresis input (without standby control) Pull-up resistance value = approximately 50 kΩ (Typ.) H Nout R Hysteresis input IOL = 4 mA • Clock oscillation circuit (32 kHz) X1A Xout K X0A Oscillation feedback resistance = approximately 4.5 MΩ/3 V 3 V CMOS level input Standby control signal • Analog/CMOS level input/output pin Pout Nout N R CMOS input Standby control CMOS level output CMOS level input (with standby control) Analog input (Analog input is valid when bit dealt by AIC is “1”.) IOL = 4 mA Analog input (Continued) 18 MB91133/MB91F133 (Continued) Type Circuit Remarks Pull-up control Pout R O Nout R Hysteresis input • CMOS hysteresis input/output pin with pull-up control CMOS level output CMOS hysteresis input (with standby control) Pull-up resistance value = approximately 50 kΩ (Typ.) IOL = 4 mA Standby control Pull-up control Open-drain control R P Nout R • CMOS hysteresis input/output pin with pull-up control CMOS level output (with open-drain control) CMOS hysteresis input (with standby control) Pull-up resistance value = approximately 50 kΩ (Typ) Hysteresis input Standby control IOL = 4 mA 19 MB91133/MB91F133 ■ HANDLING DEVICES 1. Points to Note on Handling Devices (1) Latch-up prevention Latch-up may occur by CMOS IC if a voltage in excess of VCC5 or lower than VSS is applied to the input/output pins, or if the voltage exceeds the rating between VCC5 and VSS. If latch-up occurs, the electrical current increases significantly and may destroy certain components due to excessive heat, so great care must be taken to ensure that the maximum rating is not exceeded during use. (2) Handling Pins • Handling unused pins Input pins that are not used should be pulled up or down as they may cause erroneous operations if left open. • Handling N.C. pins N.C. pins must be opened for use. • Handling output pins Excessive electric current may flow if the output pin is shorted by the power source or other output pins, or connected to large loads. If such status is prolonged, the device is liable to be damaged, so great care must be taken to ensure that the usage volume does not exceed the maximum rating. • Mode pins (MD0 to MD2) Those pins must be directly connected to VCC5 or VSS for use. Pattern lengths between VCC5 or VSS and each mode pin on the printed-circuit board should be arranged to be as short as possible to prevent the test mode from being erroneously turned on due to noise, and they should be connected with low impedance. • Power pins When there are a number of VCC5/VCC3/VSS, those whose electrical potential must be the same within the device are connected to prevent erroneous operation such as latch-up for device design purposes, but those must be externally connected to a power source and earthed to follow the general output current standard and prevent erroneous operation of strobe signals due to increased ground level and reduction in unnecessary radiation. Care must also be taken to ensure that they are connected to the VCC5/VSS or VCC3/VSS of this device at the lowest possible impedance from the source of the electrical current supply. Furthermore, it is recommended that a ceramic capacitor of around 0.1 µF be used to connect the VCC5 and VSS, or VCC3 and VSS near the device as a bypass capacitor. • Crystal oscillation circuits Noise near the X0, X1, X0A or X1A pins can cause erroneous operation. The printed-circuit board must be designed so that the X0, X1, X0A and X1A pins, crystal oscillator (or ceramic oscillator) and bypass capacitor to the ground can be arranged as close as possible. Also, a printed-circuit board with grounded artwork enclosing the X0, X1, X0A and X1A pins is strongly recommended to ensure stable operation. 20 MB91133/MB91F133 (3) Points to note on usage • External reset input “L” level should be input to the RST pin, which is required for at least five machine cycles to ensure that the internal status is reset. • Oscillation pin Oscillation pin is 3 V CMOS input level. • External clock Use with an external clock is prohibited. A crystal (or ceramic) oscillator should be used. • Analog Power The AVCC should always be used at the same electric potential as VCC5. If the VCC5 is larger than the AVCC, electricity may flow through pins AN 0 to AN 7. • Points to note for using level comparator When the level comparator is used, a reference current (IR) flows even though it is stopped. The stop mode must be turned on after prohibiting action of the level comparator. 2. Points to Note on Turning On Power • RST pin handling The RST pin must be started from “L” level when the power is turned on, and when the power is adjusted to the VDD level, it should be changed to the “H” level after being left on for at least 5 cycles of the internal operation clock. • Original oscillation input The clock must be input until the waiting status for oscillation stability is reset in the event that power is turned on. • Power on reset “Power on reset” must be executed if power is turned on, but the power voltage falls below the guaranteed operating temperature and power is turned on again. • Order for turning on power Power should be turned on in the following order. VCC3 → VCC5 → AVCC → AVRH The opposite order should be used when turning off. 21 MB91133/MB91F133 ■ BLOCK DIAGRAM FR30 CPU UART × 5 ch 15 SIN0 to SIN4 SOT0 to SOT4 SCK0 to SCK4 RAM 6 Kbyte DREQ0 toDREQ 2 DACK0 toDACK 2 DEOP0 to DEOP2 DMAC 8 ch 9 Resource Bus Controller Reload timer × 5 ch 8 bit 3 output D/A converter 5 Bus Converter 6 6 External Bus Controller A23 to A00 D31 to D16 RD WR1, WR0 RDY BRQ BGRNT CLK RAM 2 Kbyte 16 bit PPG × 6 ch 47 PPG0 to PPG5 TRG0 to TRG5 Multi-Function Timer ROM 254 Kbyte 16 bit ICU × 4 ch DA0 toDA2 DAVC, DAVS 4 IN0 to IN3 Interrupt Controller 16 bit FRT X0, X1, X0A, X1A RST MD0 to MD2 AIN0, 1 BIN0, 1 ZIN0, 1 Clock Generator 8 Up/Down counter × 2 ch 6 16 bit OCU × 8 ch 24 ch external interrupt INT0 to INT23 (∗) FRCK RTO0 (U) RTO1 (X) RTO2 (V) RTO3 (Y) RTO4 (W) RTO5 (Z) RTO6 RTO7 DTTI 24 AN0 to AN7 AVRH, AVRL AVCC, AVSS CMP (AN7) 10 bit 8 input A/D converter Waveform Generator 12 level comparator * : INT23 to INT16 share pins with A23 to A16 * : INT15 shares pins with ATG * : INT14 shares pins with DEOP2 * : INT13 to INT8 share pins with TRG5 to TRG0 * : INT7 to INT4 share pins with AIN0, BIN0, AIN1 and BIN1 The total number of above pins is 133. The remainder (144 − 133 = 11 pins) are VCC5 , VCC3 and VSS. 22 MB91133/MB91F133 ■ CPU 1. Memory Space The FR series has 4 Gbytes (232 addresses) of logic address space which the CPU accesses linearly. • Memory Map External ROM external bus mode Internal ROM external bus mode Single-chip mode 0000 0000H I/O I/O I/O I/O I/O I/O Access is prohibited Access is prohibited Access is prohibited Built-in RAM 6 KB Built-in RAM 6 KB Built-in RAM 6 KB Access is prohibited Access is prohibited Access is prohibited 0000 0400H Direct Madressing area Refer to "I/O MAP" 0000 0800H 0000 1000H 0000 2800H 0001 0000H 0001 0000H External area Access is prohibited 000C 0000H External area Built-in RAM 2KB Built-in RAM 2KB Built-in ROM 254KB Built-in ROM 254KB External area Access is prohibited 000C 0800H FFFF FFFFH 010 0000H FFFF FFFFH * : It is impossible to access the external area on single-chip mode. When accessing the external area, select the internal ROM external bus mode. 23 MB91133/MB91F133 2. Registers There are two types of multi-purpose registers in the FR family. One is a dedicated purpose register that exists within the CPU and the other is a multi-purpose register that exists in the memory. • Dedicated Registers Program Counter (PC) Program Status (PS) Table Base Register (TBR) : 32-bit length; indicates instruction storage position. : 32-bit length; stores register pointers and condition codes. : Holds the starting address of the vector table to be used for Exception, Interruption and Trapping (EIT) . : Holds the address to return to from the sub-routine. : Indicates the system stuck position. : Indicates the user’s stuck position. Return Pointer (RP) System Stuck Pointer (SSP) User Stuck Pointer (USP) Multiplication and Division Results Resister (MDH/MDL) : 32-bit length; act as registers for multiplication and division. 32 bit PC Program Counter PS Program Status Initial values XXXX XXXXH (Undecided) Table Base Register 000F FC00H Return Pointer XXXX XXXXH SSP System Stuck Pointer 0000 0000H USP User Stuck Pointer XXXX XXXXH (Undecided) MDH Multiplication and Division Results Resister XXXX XXXXH (Undecided) XXXX XXXXH (Undecided) TBR RP MDL (Undecided) • Program Status (PS) PS is the register that holds the program status and is classified into three categories, namely, Condition Code Register (CCR) , System Condition Code Register (SCR) and Interruption Level Master Register (ILM) . 31 PS 20 19 18 16 ILM4 ILM3 ILM2 ILM1 ILM0 ILM 24 17 10 9 8 7 6 5 4 3 2 1 0 D1 D0 T S I N Z V C SCR CCR MB91133/MB91F133 • Condition Code Register (CCR) S flag : Specifies the stuck pointer to be used as R15. I flag : Controls permission and prohibition of user interruption requests. N flag : Indicates codes when computation results are defined as integers that are expressed in complements of 2. Z flag : Indicates whether or not a result of the computation is “0” . V flag : Operands used for computation are defined as integers expressed in complements of 2, and indicate whether or not an overflow is generated as a result of the computation. C flag : Indicates whether carrying or borrowing is generated from the highest bit as a result of the computation. • System Condition Code Register (SCR) T flag : Specifies whether or not the step trace trap will be valid. • Interruption Level Mask Register (ILM) ILM4 to ILM0 : Holds the interruption level mask values, and those values that are held by the ILM are used for the level mask. Interruption requests can be accepted only when the interruption levels handled within the interruption requests to be input into the CPU are stronger than the levels shown by the ILM. ILM4 ILM3 ILM2 ILM1 ILM0 Interruption level Strength 0 0 0 0 0 0 Strong 0 1 0 0 0 15 1 1 1 1 1 31 Weak 25 MB91133/MB91F133 ■ MULTI-PURPOSE REGISTERS The multi-purpose registers are CPU registers R0 to R15 which are used as accumulators for various computations and memory access pointers (fields that indicate the address) . • Register bank configuration 32-bit R0 Initial value XXXX XXXXH R1 R12 R13 AC (Accumulator) R14 FP (Frame Pointer) XXXX XXXXH R15 SP (Stack Pointer) 0000 0000H Special purposes are assumed for the following 3 of the 16 registers. Thus, some instructions are emphasized. R13 : Virtual accumulator (AC) R14 : Frame Pointer (FP) R15 : Stack Pointer (SP) Initial values for R0 to R14 on resetting are unspecified. The initial value of R15 will be 0000 0000H (SSP value) . 26 MB91133/MB91F133 ■ MODE SETTING 1. Pins • Mode pins and set mode Mode pins Mode name MD2 MD1 MD0 Reset vector access areas External data bus width Bus modes 0 0 0 External vector mode 0 External 8-bit 0 0 1 External vector mode 1 External 16-bit 0 1 0 0 1 1 Internal vector mode Internal (Mode register) 1 External ROM external bus mode Setting is prohibited Single chip mode Usage is prohibited 2. Register Mode register (MODR) and set mode Address 0000 07FFH M1 M0 * * * * * * Initial value Access XXXX XXXXB W Bus mode set bit W : Write only X : Undecided * : “0” should always be written for bits other than M1 and M0. • Bus mode set bit and its functions M1 M0 Functions 0 0 Single chip mode 0 1 Internal ROM external bus mode 1 0 External ROM external bus mode 1 1 Remarks Setting is prohibited 27 MB91133/MB91F133 ■ I/O MAP Register Address 000000H +0 PDR3 +1 (R/W) PDR2 XXXXXXXX 000004H 000008H +2 (R/W) (R/W) 000014H 000018H 00001CH 000020H 000024H 000028H PDRF (R/W) XXXXXXXX 00003CH 000040H PDRE XXXXXXXX PDRJ PDRI - - XXXXXX LVLC (R/W) (R/W) SIDR0/SODR0 (R/W) 0 0 0 0 1 -00 SSR1 (R/W) XXXXXXXX SIDR1/SODR1 (R/W) 0 0 0 0 1 -00 SSR2 (R/W) (R/W) - - XXXXXX XXXX 0 0 0 0 SSR0 (R/W) XXXXXXXX (R/W) PDR4 (R/W) XXXXXXXX PDR8 (R/W) - XXXXXXX XXXXXXXX SIDR2/SODR2 (R/W) PDRD (R/W) XXXXXXXX PDRH (R/W) - - - - - XXX PDRL (R/W) XXXXXXXX SCR0 (R/W) 00000100 SCR1 (R/W) 00000100 SCR2 (R/W) PDRC XXXXXXXX PDRG (R/W) - - XXXXXX PDRK (R/W) XXXXXXXX SMR0 (R/W) 0 0 0 0 0-0 0 SMR1 (R/W) 0 0 0 0 0-0 0 SMR2 (R/W) XXXXXXXX 00000100 0 0 0 0 0-0 0 TMRLR (W) TMR (R) XXXXXXXX XXXXXXXX TMRLR XXXXXXXX XXXXXXXX UART0 UART1 UART2 Reload Timer 0 (R) XXXXXXXX XXXXXXXX (R/W) Reload Timer 1 ----0000 0 0 0 0 0 0 0 0 (R/W) 0 0 1 0 1 - XX XXXXXXXX (W) XXXXXXXX XXXXXXXX TMR TMCSR TMRLR (R/W) Level Comparator ----0000 0 0 0 0 0 0 0 0 (W) ADCR XXXXXXXX XXXXXXXX TMCSR Port Data Register (R/W) 0 0 0 0 1 -00 000034H 000038H (R/W) 00002CH 000030H PDR5 XXXXXXXX 00000CH 000010H XXXXXXXX PDR6 Block +3 ADCS1 (R/W) ADCS0 (R/W) 00000000 00000000 TMR (R) XXXXXXXX XXXXXXXX TMCSR (R/W) A/D Converter (Sequential type) Reload Timer 2 ----0000 0 0 0 0 0 0 0 0 (Continued) 28 MB91133/MB91F133 Register Address 000044H 000048H +0 +1 +2 +3 IPCP1 (R) IPCP0 (R) XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX IPCP3 IPCP2 (R) XXXXXXXX XXXXXXXX ICS23 00004CH 000058H 00005CH 000060H 000064H 000068H 00006CH 000070H 000074H 000078H 00007CH 000080H (R) XXXXXXXX XXXXXXXX (R/W) ICS01 00000000 OCCP1 (R/W) XXXXXXXX XXXXXXXX OCCP3 (R/W) XXXXXXXX XXXXXXXX OCCP5 (R/W) XXXXXXXX XXXXXXXX OCCP7 (R/W) XXXXXXXX XXXXXXXX OCS32 (R/W) XXX 0 0 0 0 0 0 0 0 0 XX 0 0 OCS76 (R/W) XXX 0 0 0 0 0 0 0 0 0 XX 0 0 TCDT (R/W) 00000000 Reserved OCCP0 (R/W) SIDR3/SODR3 (R/W) 0 0 0 0 1 0 00 SSR4 (R/W) XXXXXXXX SIDR4/SODR4 (R/W) 0 0 0 0 1 0 00 CDCR1 XXXXXXXX (R/W) 0 ---0 0 0 0 CDCR3 (R/W) 0 ---0 0 0 0 (R/W) XXXXXXXX XXXXXXXX OCCP2 (R/W) XXXXXXXX XXXXXXXX OCCP4 (R/W) XXXXXXXX XXXXXXXX OCCP6 (R/W) 16-bit OCU XXXXXXXX XXXXXXXX OCS10 (R/W) XXX 0 0 0 0 0 0 0 0 0 XX 0 0 OCS54 (R/W) XXX 0 0 0 0 0 0 0 0 0 XX 0 0 TCCS 00000000 00000000 SSR3 16-bit ICU (R/W) 000050H 000054H Block (R/W) 0------- 0 0 0 0 0 0 0 0 SCR3 (R/W) 00000100 SCR4 (R/W) 00000100 CDCR0 (R/W) 0 ---0 0 0 0 CDCR2 (R/W) 0 ---0 0 0 0 CDCR4 (R/W) 0 ---0 0 0 0 SMR3 (R/W) 0 0 0 0 0-0 0 SMR4 (R/W) 0 0 0 0 0-0 0 16-bit Free-run Timer UART3 UART4 Communication Pre-scalar (Continued) 29 MB91133/MB91F133 Register Address 000084H 000088H 00008CH +0 RCR1 +1 (W) 00000000 CCRH0 (R/W) 00000000 CCRH1 (R/W) -0 0 0 0 0 0 0 +2 RCR0 (W) CCRL0 000098H 00009CH 0000A0H (R/W) EIRR0 (R/W) ENIR0 (R/W) 00000000 CSR1 00000000 Reserved EIRR1 (R/W) ENIR1 (R/W) 00000000 ELVR0 (R/W) ELVR1 (R/W) 00000000 00000000 EIRR2 (R/W) ENIR2 00000000 00000000 (R/W) 00000000 00000000 ELVR2 (R/W) DACR2 DACR1 -------0 DTCR1 (R/W) DADR2 (R/W) 00000000 TMRR1 DADR1 (R/W) XXXXXXXX (R/W) DTCR0 XXXXXXXX SIGCR (R/W) -------0 XXXXXXXX (R/W) (R/W) 00000000 (R/W) DTCR2 00000000 (R/W) 00000000 DACR0 (R/W) -------0 DADR0 (R/W) PCRE PCRJ ------0 0 (R/W) --0 0 0 0 0 0 OCRJ (R/W) (R/W) PCRI (R/W) --0 0 0 0 0 0 OCRI (R/W) D/A Converter XXXXXXXX TMRR0 (R/W) XXXXXXXX TMRR2 (R/W) Waveform Generator XXXXXXXX 0000C0H Ext Int 00000000 00000 000 8-/16-bit U/D Counter (R/W) 00000000 0000B4H to 0000BCH 0000CCH (R/W) 00000000 0000B0H 0000C8H CSR0 00000000 0000A8H 0000C4H 00000000 -0 0 0 1 0 0 0 (R) 0000A4H 0000ACH UDCR0 -0 0 0 1 0 0 0 CCRL1 (R) 00000000 (R/W) 000090H 000094H UDCR1 00000000 Block +3 Reserved PCRD (R/W) 00000000 PCRH PCRC 00000000 (R/W) (R/W) --0 0 0 0 0 0 --0 0 0 0 0 0 -----0 0 0 Pull-up Control -----0 0 0 OCRH (R/W) AICK Open-drain Control (R/W) 00000000 Analog Input Control (Continued) 30 MB91133/MB91F133 Register Address 0000D0H 0000D4H 0000D8H 0000DCH 0000E0H 0000E4H 0000E8H 0000ECH 0000F0H 0000F4H 0000F8H 0000FCH 000100H 000104H 000108H 00010CH +0 DDRF +1 (R/W) 00000000 DDRJ (R/W) DDRE +2 (R/W) 00000000 DDRI (R/W) --0 0 0 0 0 0 --0 0 0 0 0 0 GCN1 (R/W) DDRD 00000000 (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 (R/W) -----0 0 0 DDRL (R/W) 00000000 DDRC (R/W) 00000000 DDRG (R/W) --0 0 0 0 0 0 DDRK 00000000 (R/W) 00000000 PCSR0 (R/W) PCNL0 (R/W) 0000000- 00000000 PCSR1 (W) XXXXXXXX XXXXXXXX PCNH1 (R/W) PCNL1 (R/W) 0000000- 00000000 PCSR2 (W) XXXXXXXX XXXXXXXX PCNH2 (R/W) PCNL2 (R/W) 0000000- 00000000 PCSR3 (W) XXXXXXXX XXXXXXXX PCNH3 (R/W) PCNL3 (R/W) 0000000- 00000000 PCSR4 (W) XXXXXXXX XXXXXXXX PCNH4 (R/W) PCNL4 (R/W) 0000000- 00000000 PCSR5 (W) XXXXXXXX XXXXXXXX PCNH5 (R/W) 0000000- PPG ctl (W) XXXXXXXX XXXXXXXX PCNH0 Data Direction Register (R/W) GCN2 00110010 00010000 PTMR0 (R/W) DDRH Block +3 PCNL5 (R/W) PPG0 PPG1 PPG2 PPG3 PPG4 PPG5 00000000 (Continued) 31 MB91133/MB91F133 Register Address 000110H +0 +1 +2 +3 TMRLR (W) TMR (R) XXXXXXXX XXXXXXXX 000118H TMCSR (W) TMR XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX -------- -------- -------- 00000000 00000000 DATCR XXXX0 0 0 0 (R/W) 000210H to 0003ECH BSD0 XXXXXXXX XXXXXXXX BSDC 0003F8H XXXXXXXX XXXXXXXX BSRR 0003FCH 000408H XXXXXXXX BSD1 0003E4H XXXXXXXX ICR00 (R/W) ----1 1 1 1 ICR04 (R/W) ----1 1 1 1 ICR08 (R/W) ----1 1 1 1 XXXXXXXX ICR01 (R/W) ----1 1 1 1 ICR05 (R/W) ----1 1 1 1 ICR09 (R/W) ----1 1 1 1 DMAC XXXX0 0 0 0 XXXX0 0 0 0 00020CH XXXXXXXX -0 0 0 0 0 0 0 (R/W) 00000000 00000000 XXXXXXXX Reserved (R/W) DACSR 0003F0H Reload Timer 4 ----0000 0 0 0 0 0 0 0 0 DPDP 000208H 000404H (R/W) 000200H Reload Timer 3 (R) TMCSR 000120H to 0001FCH 000400H (R/W) ----0000 0 0 0 0 0 0 0 0 TMRLR 00011CH 000204H XXXXXXXX XXXXXXXX 000114H Block Reserved (W) XXXXXXXX XXXXXXXX (R/W) XXXXXXXX XXXXXXXX Bit Search Module (W) XXXXXXXX XXXXXXXX (R) XXXXXXXX XXXXXXXX ICR02 (R/W) ----1 1 1 1 ICR06 (R/W) ----1 1 1 1 ICR10 (R/W) ----1 1 1 1 ICR03 (R/W) ----1 1 1 1 ICR07 (R/W) ----1 1 1 1 ICR11 Interrupt Control Unit (R/W) ----1 1 1 1 (Continued) 32 MB91133/MB91F133 Register Address 00040CH 000410H 000414H 000418H 00041CH 000420H 000424H 000428H 00042CH 000430H +0 ICR12 +1 (R/W) ----1 1 1 1 ICR16 (R/W) ----1 1 1 1 ICR20 (R/W) ----1 1 1 1 ICR24 (R/W) ----1 1 1 1 ICR28 (R/W) ----1 1 1 1 ICR32 (R/W) ----1 1 1 1 ICR36 (R/W) ----1 1 1 1 ICR40 (R/W) ----1 1 1 1 ICR44 (R/W) ----1 1 1 1 DICR (R/W) -------0 ICR13 +2 (R/W) ----1 1 1 1 ICR17 000484H 000488H 00048CH to 0005FCH ICR18 ----1 1 1 1 ICR21 (R/W) ICR39 (R/W) ICR46 ICR43 (R/W) (R/W) ----1 1 1 1 (R/W) ICR47 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 ---1 1 1 1 1 Delay Int RSRR/WTCR (R/W) 1 XXXX - 0 0 GCR (R/W) 1 1 0 0 1 1-1 CT STCR (R/W) WPR Reserved PDRR 0 0 0 1 1 1-- Interrupt Control Unit ----1 1 1 1 (R/W) ICR42 ----1 1 1 1 HRCL ICR35 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 (R/W) ICR38 ----1 1 1 1 ICR45 ICR31 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 (R/W) ICR34 ----1 1 1 1 ICR41 ICR27 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 (R/W) ICR30 ----1 1 1 1 ICR37 ICR23 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 (R/W) ICR26 ----1 1 1 1 ICR33 ICR19 ----1 1 1 1 (R/W) (R/W) ----1 1 1 1 (R/W) ICR22 ----1 1 1 1 ICR29 ICR15 ----1 1 1 1 ----1 1 1 1 ICR25 (R/W) ----1 1 1 1 (R/W) 000434H to 00047CH 000480H ICR14 Block +3 (R/W) CTBR ----0 0 0 0 (W) (W) XXXXXXXX Clock Control Unit XXXXXXXX (R/W) 0 0--0-0 0 PLL Control Reserved (Continued) 33 MB91133/MB91F133 Register Address 000600H +0 DDR3 (W) 00000000 000604H 000608H 00060CH 000610H 000614H 000618H 00061CH 000620H 000624H 000628H +1 DDR2 DDR6 (W) DDR5 (W) 00000000 ASR1 (W) AMR1 00000000 00000001 ASR2 (W) ASR3 (W) ---0 0 1 1 1 AMD5 (W) (W) AMR4 (W) 00000000 00000000 (W) AMD1 (W) 00000000 00000000 AMR5 00000000 00000101 (R/W) (W) -0 0 0 0 0 0 0 AMR3 00000000 00000100 AMD0 DDR8 Data Direction Register 00000000 00000000 00000000 00000011 ASR5 (W) 00000000 AMR2 (W) ASR4 DDR4 Block 00000000 00000000 00000000 00000010 (W) 00000000 00000000 (R/W) AMD32 0--0 0 0 0 0 (R/W) AMD4 00000000 (R/W) T-unit (R/W) 0--0 0 0 0 0 0--0 0 0 0 0 EPCR0 (W) EPCR1 ----1 1 0 0 -1------ (W) -------- 1 1 1 1 1 1 1 1 PCR6 (R/W) 00000000 000634H to 0007BCH 0007C8H to 0007F8H 00000000 00000000 000630H 0007C4H +3 (W) 00062CH 0007C0H +2 FLCR (R/W) Reserved 000X0000 FWTC Pull-up Control FLASH Control (R/W) -----0 0 0 Reserved (Continued) 34 MB91133/MB91F133 (Continued) Address 0007FCH Register +0 +1 +2 LER Block +3 (W) MODR -----0 0 0 (W) XXXXXXXX Little Endian Register Mode Register *1 : Do not execute RMW instructions to registers with write-only bits. *2 : Do not execute write access to read-only or reserved registers except for particular requests. *3 : Data in areas with “-” or reserved ones are unspecified. *4 : RMW instructions (RMW : Read / Modify / Write) AND Rj, @Ri OR Rj, @Ri ANDH Rj, @Ri ORH Rj, @Ri ANDB Rj, @Ri ORB Rj, @Ri BANDL #u4, @Ri BORL #u4, @Ri BANDH #u4, @Ri BORH #u4, @Ri EOR EORH EORB BEORL BEORH Rj, @Ri Rj, @Ri Rj, @Ri #u4, @Ri #u4, @Ri 35 MB91133/MB91F133 ■ INTERRUPTION VECTOR Causes of MB91130 interruptions and allocation of interruption vectors and interruption control registers are described in the interruption vector table. Interruption number Interruption Address *2 Interruption sauce Offset *1 of TBR default level Decimal Hexadecimal Reset 0 00 3FCH 000FFFFCH System reservation 1 01 3F8H 000FFFF8H System reservation 2 02 3F4H 000FFFF4H System reservation 3 03 3F0H 000FFFF0H System reservation 4 04 3ECH 000FFFECH System reservation 5 05 3E8H 000FFFE8H System reservation 6 06 3E4H 000FFFE4H System reservation 7 07 3E0H 000FFFE0H System reservation 8 08 3DCH 000FFFDCH System reservation 9 09 3D8H 000FFFD8H System reservation 10 0A 3D4H 000FFFD4H System reservation 11 0B 3D0H 000FFFD0H System reservation 12 0C 3CCH 000FFFCCH System reservation 13 0D 3C8H 000FFFC8H Exceptions to undefined instructions 14 0E 3C4H 000FFFC4H System reservation 15 0F 3C0H 000FFFC0H External interruption 0 16 10 ICR00 3BCH 000FFFBCH External interruption 1 17 11 ICR01 3B8H 000FFFB8H External interruption 2 18 12 ICR02 3B4H 000FFFB4H External interruption 3 19 13 ICR03 3B0H 000FFFB0H External interruption 4 20 14 ICR04 3ACH 000FFFACH External interruption 5 21 15 ICR05 3A8H 000FFFA8H External interruption 6 22 16 ICR06 3A4H 000FFFA4H External interruption 7 23 17 ICR07 3A0H 000FFFA0H External interruption 8 to 15 24 18 ICR08 39CH 000FFF9CH External interruption 16 to 23 25 19 ICR09 398H 000FFF98H UART0 (Reception completion) 26 1A ICR10 394H 000FFF94H UART1 (Reception completion) 27 1B ICR11 390H 000FFF90H UART2 (Reception completion) 28 1C ICR12 38CH 000FFF8CH UART3 (Reception completion) 29 1D ICR13 388H 000FFF88H UART4 (Reception completion) 30 1E ICR14 384H 000FFF84H (Continued) 36 MB91133/MB91F133 Interruption sauce Interruption number Interruption level *1 Decimal Hexadecimal Offset Address *2 of TBR default UART0 (Transmission completion) 31 1F ICR15 380H 000FFF80H UART1 (Transmission completion) 32 20 ICR16 37CH 000FFF7CH UART2 (Transmission completion) 33 21 ICR17 378H 000FFF78H UART3 (Transmission completion) 34 22 ICR18 374H 000FFF74H UART4 (Transmission completion) 35 23 ICR19 370H 000FFF70H DMAC (end, error) 36 24 ICR20 36CH 000FFF6CH Reload timer 0 37 25 ICR21 368H 000FFF68H Reload timer 1 38 26 ICR22 364H 000FFF64H Reload timer 2 39 27 ICR23 360H 000FFF60H Reload timer 3 40 28 ICR24 35CH 000FFF5CH Reload timer 4 41 29 ICR25 358H 000FFF58H A/D (sequential type) 42 2A ICR26 354H 000FFF54H PPG0 43 2B ICR27 350H 000FFF50H PPG1 44 2C ICR28 34CH 000FFF4CH PPG2 45 2D ICR29 348H 000FFF48H PPG3 46 2E ICR30 344H 000FFF44H PPG4/5 47 2F ICR31 340H 000FFF40H Waveform generator 48 30 ICR32 33CH 000FFF3CH U/D counter 0 (compare/ underflow-overflow, up/down invert) 49 31 ICR33 338H 000FFF38H U/D counter 1 (compare/ underflow-overflow, up/down invert) 50 32 ICR34 334H 000FFF34H ICU0 (load) 51 33 ICR35 330H 000FFF30H ICU1 (load) 52 34 ICR36 32CH 000FFF2CH ICU2 (load) 53 35 ICR37 328H 000FFF28H ICU3 (load) 54 36 ICR38 324H 000FFF24H OCU0 (matched) 55 37 ICR39 320H 000FFF20H OCU1 (matched) 56 38 ICR40 31CH 000FFF1CH OCU2 (matched) 57 39 ICR41 318H 000FFF18H OCU3 (matched) 58 3A ICR42 314H 000FFF14 OCU4/5 (matched) 59 3B ICR43 310H 000FFF10H OCU6/7 (matched) 60 3C ICR44 30CH 000FFF0CH Level comparator 61 3D ICR45 308H 000FFF08H 16-bit freerun timer 62 3E ICR46 304H 000FFF04H Delay interruption factor bit 63 3F ICR47 300H 000FFF00H (Continued) 37 MB91133/MB91F133 (Continued) Interruption sauce Interruption number Interruption level *1 Decimal Hexadecimal Offset Address *2 of TBR default System reservation (used under REALOS *3) 64 40 2FCH 000FFEFCH System reservation (used under REALOS *3) 65 41 2F8H 000FFEF8H Used under INT instruction 66 42 2F4H 000FFEF4H Used under INT instruction 67 43 2F0H 000FFEF0H Used under INT instruction 68 44 2ECH 000FFEECH Used under INT instruction 69 45 2E8H 000FFEE8H Used under INT instruction 70 46 2E4H 000FFEE4H Used under INT instruction 71 47 2E0H 000FFEE0H Used under INT instruction 72 48 2DCH 000FFEDCH Used under INT instruction 73 49 2D8H 000FFED8H Used under INT instruction 74 4A 2D4H 000FFED4H Used under INT instruction 75 4B 2D0H 000FFED0H Used under INT instruction 76 4C 2CCH 000FFECCH Used under INT instruction 77 4D 2C8H 000FFEC8H Used under INT instruction 78 4E 2C4H 000FFEC4H Used under INT instruction 79 4F 2C0H 000FFEC0H Used under INT instruction 80 to 255 50 to FF 2BCH to 000H 000FFEBCH to 000FFC00H *1 : ICR sets the interruption level for each interruption request using the register built into the interruption controller. ICR is prepared in accordance with each interruption request. *2 : TBR is the register that indicates the starting address of the vector table for EIT. Addresses with added offset values that are specified per TBR and EIT factor will be the vector addresses. *3 : 0X40, 0X41 interruptions for system codes are used in the event that REALOS/FR is used. 38 MB91133/MB91F133 ■ PERIPHERAL RESOURCES 1. Bus Interface The bus interface controls the interface with external memory and external I/O. • • • • • • • Bus Interface Characteristics 24-bit (16 MB) address output 16/8-bit bus width can be set. Insertion of programmable “automatic memory wait” (maximum of 7 cycles) Supports “little endian” mode Unused addresses / data pins can be used as I/O ports. Clock doubled should be used if the external bus exceeds 25 MHz. Bus speed is 1/2 of the CPU speed. • Areas A total of six types of chip selection areas are prepared for the bus interface. The position of each area can be randomly arranged per 64 KB at least using area selection registers (ASR1 to ASR 5) and area mask registers (AMR1 to AMR 5) in an area of 4 GB. The area 0 is allocated to space outside the area specified by ASR1 to ASR5. External areas other than 00010000H to 0005FFFFH are deemed area 0 on resetting. There is no chip selection output pin so no setting is required. Setting it has no effect on usage. Figure 4.1-1 shows an example in which areas 1 to 5 are arranged from 00100000H to 0014FFFFH in 64 KB units. Also, Figure 4.1-2 shows an example in which area 1 is arranged as 00000000H to 0007FFFFH in 512 KB and areas 2 to 5 are arranged as 00100000H to 004FFFFFH in 1-MB units. 00000000H 00080000H CS0 (1 Mbyte) 00000000H CS1 (512 K) 00080000H CS0 (512 K) 000FFFFFH CS2 (1 Mbyte) 000FFFFFH 001FFFFFH 0010FFFFH CS1 (64 Kbyte) 0011FFFFH CS2 (64 Kbyte) 0012FFFFH CS3 (64 Kbyte) 0013FFFFH CS4 (64 Kbyte) 0014FFFFH CS5 (64 Kbyte) CS3 (1 Mbyte) 002FFFFFH CS4 (1 Mbyte) 003FFFFFH CS5 (1 Mbyte) 004FFFFFH CS0 Figure 4.1-1 Area Arrangement Example 1 CS0 Figure 4.1-2 Area Arrangement Example 2 39 MB91133/MB91F133 A - Out DATA BUS ADDRESS BUS • Block Diagram write buffer switch read buffer switch M U X External DATA Bus DATA BLOCK ADDRESS BLOCK +1 or +2 address buffer External Address Bus shifter inpage CS0 - CS5 comparator ASR AMR External pin control area RD WR0. WR1 Controls all blocks registers & Control 40 BRQ BGRNT RDY MB91133/MB91F133 • Register List Address 8 7 15 0 0000060CH ASR1 Area Select Register 1 0000060EH AMR1 Area Mask Register 1 00000610 H ASR2 Area Select Register 2 00000612 H AMR2 Area Mask Register 2 00000614 H ASR3 Area Select Register 3 00000616 H AMR3 Area Mask Register 3 00000618 H ASR4 Area Select Register 4 0000061AH AMR4 Area Mask Register 4 0000061CH ASR5 Area Select Register 5 0000061EH AMR5 Area Mask Register 5 00000620 H AMD0 AMD1 Area Mode Register 0 / Area Mode Register 1 00000622 H AMD32 AMD4 Area Mode Register 32 / Area Mode Register 4 00000624 H AMD5 Area Mode Register 5 00000626 H RFCR ReFresh Control Register 0000062CH DMCR4 DRAM Control Register 4 0000062EH DMCR5 DRAM Control Register 4 00000688 H EPCR0 EPCR1 External Pin Control Register 000007FEH LER MODR Little Endian Register / MODe Register Note : Functional pins have not been prepared in the shaded area for MB91133/MB91F133, so these registers should not be accessed. 41 MB91133/MB91F133 2. I/O Port MB91133/MB91F133 can be used as an I/O port when the setting for resources dealing with each pin does not use the pin for input/output. As regards the read value of the port (PDR) , the pin level is read out when input is set for the port. If output is set, the data register value is read out. This is the same for reading under Read Modify Write. If the input setting is changed to output setting, output data should be set first. If Read Modify Write instructions (i.e. bit set) are used in this case, the data that is read out is the input data from the pin and is not the latch value of the data register, so care must be taken. • Basic I/O Port Block Diagram Data bus Resource input 0 1 PDR read pin 0 PDR Resource output DDR 1 Resource output permission PDR : Port Data Register DDR : Data Direction Register • I/O Port Register The I/O port consists of the Port Data Register (PDR) and Port Direction Register (DDR) . • In case of input mode (DDR = “0”) When PDR reads : Level of external pins handled is read out. When PDR writes : Set value is written in PDR. • In case of output mode (DDR = “1”) When PDR reads : PDR values are read out. When PDR writes : PDR values are output to the external pin handled. • Switching control for resources and ports of the analog pin (A/D) • Resources and ports of the analog pin (A/D) are switched using the Analog Input Control register on Port K (AICK) . This controls whether Port K is used as an analog or general-purpose port. 0 : General-purpose port 1 : Analog input (A/D) 42 MB91133/MB91F133 • Block Diagram of Input/Output Port (with Pull-up Resistance) Data bus Resource input 0 Pull up resistance 1 PDR read (approximately 50 kΩ) pin 0 PDR Resource output DDR 1 Resource output permission PCR PDR : Port Data Register DDR : Data Direction Register PCR : Pull-up Control Register • Pull-up resistance control register (PCR) R/W Turns pull-up resistance ON/OFF. 0 : Pull-up resistance turned off 1 : Pull-up resistance turned on Notes : • The pull-up resistance control register setting is handled as a priority in stop mode (HIZ = 1) as well. • Use of the pull-up resistance control function is prohibited when the pin concerned is used as the external bus pin. “1” should not be written in this register. 43 MB91133/MB91F133 • Block Diagram of Input / Output Port (Open-drain Output Function with Pull-up Resistance) Data bus Resource input 0 1 PDR read pin 0 PDR Resource output 1 Resource output permission DDR ODCR PCR PDR : Port Data Register DDR : Data Direction Register ODCR : OpenDrain Control Register PCR : Pull-up Control Register • Pull-up resistance control register (PCR) R/W Controls pull up resistance ON/OFF. 0 : Without pull-up resistance 1 : With pull-up resistance • Open-drain control register (ODCR) R/W Controls open-drain in output mode. 0 : Standard output port in output mode 1 : Open-drain output port in output mode Notes : • This has no meaning in input mode (output Hi-Z) . Input/output mode is decided by the Direction Register (DDR) . • Pull-up resistance control register setting is handled as the priority in stop mode (HIZ = 1) as well. • Use of both the pull-up resistance control function and open-drain control function are prohibited when the pin concerned is used as an external bus pin. “1” should not be written in both registers. 44 MB91133/MB91F133 • Port Data Register (PDR) PDR2 7 6 5 4 3 2 1 0 Initial value Access Address : 000001H P27 P26 P25 P24 P23 P22 P21 P20 XXXXXXXXB R/W PDR3 7 6 5 4 3 2 1 0 Initial value Access Address : 000000H P37 P36 P35 P34 P33 P32 P31 P30 XXXXXXXXB R/W PDR4 7 6 5 4 3 2 1 0 Initial value Access Address : 000007H P47 P46 P45 P44 P43 P42 P41 P40 XXXXXXXXB R/W PDR5 7 6 5 4 3 2 1 0 Initial value Access Address : 000006H P57 P56 P55 P54 P53 P52 P51 P50 XXXXXXXXB R/W PDR6 7 6 5 4 3 2 1 0 Initial value Access Address : 000005H P67 P66 P65 P64 P63 P62 P61 P60 XXXXXXXXB R/W PDR8 7 6 5 4 3 2 1 0 Initial value Access Address : 00000BH P86 P85 P84 P83 P82 P81 P80 - XXXXXXXB R/W PDRC 7 6 5 4 3 2 1 0 Initial value Access Address : 000013H PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 XXXXXXXXB R/W PDRD 7 6 5 4 3 2 1 0 Initial value Access Address : 000012H PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 XXXXXXXXB R/W PDRE 7 6 5 4 3 2 1 0 Initial value Access Address : 000011H PE7 PE6 PE5 PE4 PE3 PE2 PE1 PE0 XXXXXXXXB R/W PDRF 7 6 5 4 3 2 1 0 Initial value Access Address : 000010H PF7 PF6 PF5 PF4 PF3 PF2 PF1 PF0 XXXXXXXXB R/W PDRG 7 6 5 4 3 2 1 0 Initial value Access Address : 000017H PG5 PG4 PG3 PG2 PG1 PG0 - - XXXXXXB R/W PDRH 7 6 5 4 3 2 1 0 Initial value Access Address : 000016H PH2 PH1 PH0 - - - - - XXXB R/W PDRI 7 6 5 4 3 2 1 0 Initial value Access Address : 000015H PI5 PI4 PI3 PI2 PI1 PI0 - - XXXXXXB R/W PDRJ 7 6 5 4 3 2 1 0 Initial value Access Address : 000014H PJ5 PJ4 PJ3 PJ2 PJ1 PJ0 - - XXXXXXB R/W PDRK 7 6 5 4 3 2 1 0 Initial value Access Address : 00001BH PK7 PK6 PK5 PK4 PK3 PK2 PK1 PK0 XXXXXXXXB R/W PDRL 7 6 5 4 3 2 1 0 Initial value Access Address : 00001AH PL7 PL6 PL5 PL4 PL3 PL2 PL1 PL0 XXXXXXXXB R/W PDR2 to L are input/output data registers of the I/O port. Input/output control is carried out by DDR2 to L that are handled. 45 MB91133/MB91F133 • Data Direction Register (DDR) DDR2 7 6 5 4 3 2 1 0 Address : 000601H P27 P26 P25 P24 P23 P22 P21 P20 DDR3 7 6 5 4 3 2 1 0 Address : 000600H P37 P36 P35 P34 P33 P32 P31 P30 DDR4 7 6 5 4 3 2 1 0 Address : 000607H P47 P46 P45 P44 P43 P42 P41 P40 DDR5 7 6 5 4 3 2 1 0 Address : 000606H P57 P56 P55 P54 P53 P52 P51 P50 DDR6 7 6 5 4 3 2 1 0 Address : 000605H P67 P66 P65 P64 P63 P62 P61 P60 7 6 5 4 3 2 1 0 Address : 00060BH P86 P85 P84 P83 P82 P81 P80 DDRC 7 6 5 4 3 2 1 0 Address : 0000D3H PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 DDRD 7 6 5 4 3 2 1 0 Address : 0000D2H PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 DDRE 7 6 5 4 3 2 1 0 Address : 0000D1H PE7 PE6 PE5 PE4 PE3 PE2 PE1 PE0 7 6 5 4 3 2 1 0 PF7 PF6 PF5 PF4 PF3 PF2 PF1 PF0 7 6 5 4 3 2 1 0 Address : 0000D7H PG5 PG4 PG3 PG2 PG1 PG0 DDRH 7 6 5 4 3 2 1 0 Address : 0000D6H PH2 PH1 PH0 7 6 5 4 3 2 1 0 Address : 0000D5H PI5 PI4 PI3 PI2 PI1 PI0 DDRJ 7 6 5 4 3 2 1 0 Address : 0000D4H PJ5 PJ4 PJ3 PJ2 PJ1 PJ0 DDRK 7 6 5 4 3 2 1 0 Address : 0000DBH PK7 PK6 PK5 PK4 PK3 PK2 PK1 PK0 DDRL 7 6 5 4 3 2 1 0 Address : 0000DAH PL7 PL6 PL5 PL4 PL3 PL2 PL1 PL0 DDR8 DDRF Address : 0000D0H DDRG DDRI Initial value Access 00000000B Initial value Access 00000000B W Initial value Access 00000000B W Initial value Access 00000000B W Initial value Access 00000000B W Initial value Access - 0000000B W Initial value Access 00000000B R/W Initial value Access 00000000B R/W Initial value Access 00000000B R/W Initial value Access 00000000B R/W Initial value Access - - 000000B R/W Initial value Access - - - - - 000B R/W Initial value Access - - 000000B R/W Initial value Access - - 000000B R/W Initial value Access 00000000B R/W Initial value Access 00000000B DDR0 to L control input/output direction of the I/O ports handled per bit. DDR = 0 : Port input DDR = 1 : Port output “0” must be written into the empty bit. 46 W R/W MB91133/MB91F133 • Pull up Control Register (PCR) PCR6 7 6 5 4 3 2 1 0 Address : 000631H P67 P66 P65 P64 P63 P62 P61 P60 PCRC 7 6 5 4 3 2 1 0 Address : 0000C3H PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 PCRD 7 6 5 4 3 2 1 0 Address : 0000C2H PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 7 6 5 4 3 2 1 0 PE1 PE0 7 6 5 4 3 2 1 0 PH2 PH1 PH0 7 6 5 4 3 2 1 0 PI5 PI4 PI3 PI2 PI1 PI0 7 6 5 4 3 2 1 0 PJ5 PJ4 PJ3 PJ2 PJ1 PJ0 PCRE Address : 0000C1H PCRH Address : 0000C6H PCRI Address : 0000C5H PCRJ Address : 0000C4H Initial value Access 00000000B R/W Initial value Access 00000000B R/W Initial value Access 00000000B R/W Initial value Access - - - - - - 00B R/W Initial value Access - - - - - 000B R/W Initial value Access - - 000000B R/W Initial value Access - - 000000B R/W PCR6 to J carry out pull-up resistance control of the I/O ports handled. PCR = 0 : Pull-up resistance turned off PCR = 1 : Pull-up resistance turned on • Open-drain Control Register (ODCR) OCRH Address : 0000CAH OCRI Address : 0000C9H OCRJ Address : 0000C8H 7 6 5 4 3 2 1 0 PH2 PH1 PH0 7 6 5 4 3 2 1 0 PI5 PI4 PI3 PI2 PI1 PI0 7 6 5 4 3 2 1 0 PJ5 PJ4 PJ3 PJ2 PJ1 PJ0 Initial value Access - - - - - 000B R/W Initial value Access - - 000000B R/W Initial value Access - - 000000B R/W OCRH to J carry out open-drain control in output mode of the I/O ports handled. OCR = 0 : Standard output port in output mode OCR = 1 : Open-drain output port in output mode This has no meaning in input mode (output Hi-z) . 47 MB91133/MB91F133 • Analog Input Control Register (AICR) AICK 7 6 5 4 3 2 1 0 Address : 0000CFH PK7 PK6 PK5 PK4 PK3 PK2 PK1 PK0 AICK controls each pin of the I/O ports handled as follows. AIC = 0 : Analog input mode AIC = 1 : Port input mode Set to “0” when reset. 48 Initial value Access 00000000B R/W MB91133/MB91F133 3. 8/16-bit Up/Down Counter / Timer 8/16-bit up/down counter / timer is configured of event input pins × 6, 8-bit up/down counters × 2, 8-bit reload / compare registers × 2 and their control circuits. • Characteristics of 8/16-bit Up/Down Counter / Timer • Counting from (0) d to (256) d is possible using an 8-bit counting register. (Counting from (0) d to (65535) d is possible in 16-bit × 1 operation mode.) • 4 types of counting mode can be selected by the count clock • Selection can be made from two types of internal clock as the count clock in timer mode. • Detection edge of the external pin input signals can be selected in up/down count mode. • Phase difference count mode is suited to count encoders such as motors. Turning angle and turning number, etc., can easily and accurately be counted by separately inputting phase A, B and Z outputs of the encoder. • Selection can be made from two function types for the ZIN pin (valid for all modes) . • Compare and reload functions are featured, and each function can be used alone or in combination. Up/down counting with random width can be carried out using both functions in combination. • The count direction directly before can be identified by the count direction flag. • Generation of interruptions in case of compared match, reload (underflow) or overflow and in cases where the count direction is changed can be controlled separately. 49 MB91133/MB91F133 • Block Diagram 8/16-bit Up/Down Counter / Timer (ch0) Data bus 8 bit Reload / Compare Register 0 (RCR0) CGE1 CGE0 C/GS ZIN0 RCUT Edge/level detection Reload control UCRE RLDE Counter clear UDCC 8 bit Up/Down Count Register 0 (UDCR0) Carry CES1 CES0 UDFF OVFF CMS1 CMS0 CITE AIN0 BIN0 Up/down count clock selection Pre-scalar CLKS 50 Count clock UDF1 UDF0 CDCF CFIE CSTR Interruption output UDIE CMPF MB91133/MB91F133 8/16-bit Up/Down Counter / Timer (ch1) Data bus 8 bit Reload / Compare Register 1 (RCR1) CGE1 CGE0 C/GS ZIN1 Edge/level detection UDCC RCUT Reload control UCRE RLDE Counter clear 8 bit Up/Down Count Register 1 (UDCR1) CMPF UDFF OVFF CMS1 CMS0 CES1 CES0 M16E CITE Carry UDIE Count clock AIN1 BIN1 Up/down count clock selection Pre-scalar UDF1 UDF0 CDCF CFIE CSTR Interruption output CLKS 51 MB91133/MB91F133 • Register List 31 24 23 16 15 0 RCR0 UDCR1 UDCR0 CCRH0 CCRL0 CSR0 CCRH1 CCRL1 CSR1 Up/down count register ch0 (UDCR0) bit 7 6 Address : 000087H D07 D06 5 4 3 2 1 0 D05 D04 D03 D02 D01 D00 Up/down count register ch1 (UDCR1) bit 15 14 Address : 000086H D17 D16 13 12 11 10 9 8 D15 D14 D13 D12 D11 D10 Reload compare register ch0 (RCR0) bit 7 6 Address : 000085H D07 D06 Reload compare register ch1 (RCR1) bit 15 14 Address : 000084H D17 D16 Counter Status register ch0, 1 (CSR0, 1) bit 7 6 00008BH Address : CSTR CITE 00008FH 5 4 3 2 1 0 D05 D04 D03 D02 D01 D00 13 12 11 10 9 8 D15 D14 D13 D12 D11 D10 5 4 3 2 1 0 UDIE CMPF OVFF UDFF UDF1 UDF0 4 3 2 1 0 RLDE UDCC CGSC CGE1 CGE0 Counter control register ch0, 1 (CCRL0, 1) bit 7 6 5 000089H Address : CTUT UCRE 00008DH 52 8 7 RCR1 Counter control register ch0 (CCRH0) bit 15 14 Address : 000088H M16E CDCF 13 12 11 10 9 8 CFIE CLKS CMS1 CMS0 CES1 CES0 Counter control register ch1 (CCRH1) bit 15 14 Address :00008CH CDCF 13 12 11 10 9 8 CFIE CLKS CMS1 CMS0 CES1 CES0 MB91133/MB91F133 4. 16-bit Reload Timer The 16-bit timer is configured with a 16-bit down counter, 16-bit reload register, pre-scalar to prepare the internal count clock and control register. Selection can be made from three types of internal clocks (machine clock 2 / 8 / 32 cycles) as the input clock. DMA transfer can be initiated by interruption. The MB91133/MB91F133 features a 5-channel timer. • Block Diagram 16 16-bit reload register 8 Reload RELD 16 16-bit down counter OUTE UF OUTL 2 OUT CTL. R - BUS GATE INTE 2 IRQ UF CSL1 CNTE Clock selector CSL0 Re-trigger 2 TRG IN CTL. EXCK φ φ φ 21 23 25 Pre-scalar clear 3 PWM (ch0, ch1) A/D (ch2) MOD2 MOD1 MOD0 3 Channel 2TO output of the reload timer is connected to the A/D converter inside the LSI. Thus, A/D conversion can be started up at the cycle set in the reload register. 53 MB91133/MB91F133 5. PPG Timer The PPG timer can efficiently output accurate PWM waveforms. The MB91130 series features a 6-channel PPG timer. • PPG Timer Characteristics • Each channel is configured with a 16-bit down counter, 16-bit data register with cycle setting buffer, 16-bit compare register with duty setting buffer and pin control area. • Selection can be made from four types of count clocks for 16-bit down counters. Internal clock φ, φ4, φ16, φ64 • Counter values can be initialized to “FFFFH” by resetting and counter borrowing. • PWM output is available per channel. • Register outline Cycle setting register : Reloading register with buffer Duty setting register : Compare register with buffer Transfer from buffer is carried out by counter borrowing. • Pin control outline Set to “1” by duty match. (Priority) Resets to “0” by counter borrowing. All “L” (or “H”) can simply be output by using the output values fixing mode. Polarization can also be specified. • Interruption request can be generated by selecting from the following combinations. Initiation of this timer Counter borrow generation (cycle match) Duty match generation Counter borrow generation (cycle match) or duty match generation DMA transfer can be initiated by the above interruption requests. • Simultaneous initiation of a number of channels can be set by software or other interval timers. Re-start during operation can also be set. 54 MB91133/MB91F133 • Block Diagram Overall Block Diagram of PPG Time 16-bit reload timer ch0 TRG input PWM timer ch0 PWM0 16-bit reload timer ch1 TRG input PWM timer ch1 PWM1 4 TRG input PWM timer ch2 PWM2 4 TRG input PWM timer ch3 PWM3 External TRG4 PWM timer ch4 PWM4 External TRG5 PWM timer ch5 PWM5 General control register 1 (factor selection) General control register 2 External TRG0 to 3 55 MB91133/MB91F133 Block Diagram of PPG Timer for 1 Channel PDUT PCSR Pre-scalar 1/1 1/4 1 / 16 1 / 64 CMP Load CK 16-bit down counter Start Borrow PPG mask S Peripheral system clock Q PWM OUTPUT R Reverse bit Enable TRG input Edge detection Soft trigger 56 Interruption selection IRQ MB91133/MB91F133 • Register list Address 15 0 GCN1 000000DCH 000000DFH GCN2 R/W General control register 1 R/W General control register 2 000000E0H PTMR R ch0 Timer register 000000E2H PCSR W ch0 Peripheral setting register 000000E4H PDUT W ch0 Duty setting register R/W ch0 Control status register 000000E6H PCNL PCNH 000000E8H PTMR R ch1 Timer register 000000EAH PCSR W ch1 Peripheral setting register 000000ECH PDUT W ch1 Duty setting register R/W ch1 Control status register 000000EEH PCNH PCNL 000000F0 H PTMR R ch2 Timer register 000000F2 H PCSR W ch2 Peripheral setting register 000000F4 H PDUT W ch2 Duty setting register R/W ch2 Control status register 000000F6 H PCNL PCNH 000000F8 H PTMR R ch3 Timer register 000000FAH PCSR W ch3 Peripheral setting register 000000FCH PDUT W ch3 Duty setting register R/W ch3 Control status register 000000FEH PCNH PCNL (Continued) 57 MB91133/MB91F133 (Continued) Address 0 00000100 H PTMR R ch4 Timer register 00000102 H PCSR W ch4 Peripheral setting register 00000104 H PDUT W ch4 Duty setting register R/W ch4 Control status register 00000106 H PCNL PCNH 00000108 H PTMR R ch5 Timer register 0000010AH PCSR W ch5 Peripheral setting register 0000010CH PDUT W ch5 Duty setting register R/W ch5 Control status register 0000010EH 58 15 PCNH PCNL MB91133/MB91F133 6. Multifunction Timer The multifunction timer unit is configured of a 16-bit freerun timer × 1, 16-bit output compare × 8, 16-bit input capture × 4, 16-bit PPG timer × 6 ch and waveform generation area modules. 12 independent waveform outputs based on a 16-bit free-run timer are possible using this function and measurement of input pulse width and external clock cycle is also possible. • Multifunction Timer Configuration • 16-bit free-run timer ( × 1) The 16-bit free-run timer consists of a 16-bit up counter, control register, 16-bit compare clear register and pre-scalar. Output values of this counter are used as the base timer for output compare and input capture. • Counter operation clocks can be selected from six types. Six types of internal clocks (φ2, φ4, φ8, φ16, φ32, φ64) φ : Machine clock • Interruption can be generated by overflow of the counter value and a compared match with compare clear register. (Mode setting is required for a compared match.) • Counter value can be initialized to “0000H” by a compared match with the reset, software clear or the compare clear register. • Output compare ( × 8) Output compare is configured of 16-bit compare register × 8, latch for compare output and control register. Interruption can be generated as well as reversing output level when the 16-bit free-run timer value and compare register value match. • 8 compare registers can be operated independently. Output pins and interruption flags support each compare register. • Output pins can be controlled by pairing two compare registers. Output pins are reversed using two compare registers. • Initial value of each output pin can be set. • Interruption can be generated by matching compare. • Input capture ( × 4) Input capture is configured with four independent external input pins , supported capture and control register. 16-bit free-run timer value is held in the capture register by detecting the random edge of signals that are input by the external input pin, and interruption can simultaneously be generated. • Valid edges (rising edge, falling edge, both edges) of external input signals can be selected. • Four input captures can be operated independently. • Interruption can be generated by the valid edges of external input signals. • 16-bit PPG timer ( × 6) Refer to PPG timer 59 MB91133/MB91F133 • Waveform Generation Area The waveform generation area is configured with 8-bit timer × 3, 8-bit reload register × 3, timer control register × 3 and 8-bit waveform control register. This control circuit controls the waveform of the 16-bit PPG timer and real-time output, and DC chopper output and non-overlapping 3-phase waveform output to be used for inverter control are possible. • Non-overlapping pulse output of the PPG timer is possible by setting dead time of the 8-bit timer (dead time timer function) . • Real timer output is operated by the 2-channel mode and non-overlapping output of the waveform is possible by setting the dead time of the 8-bit timer (dead time timer function) . • Operation of PPG timer can easily be started/stopped by generating a GATE signal for the PPG timer operation through match detection of real-time output compare (GATE function). • The 8-bit timer is operated by match detection of real-time output compare, and operation of the PPG timer can easily be started/stopped by generating a GATE signal for the PPG timer until the 8-bit timer is stopped (GATE function) . • Pin output can be forcibly controlled by input to the DTTI pin. Pins can be controlled externally even if oscillations stop due to lack of clocks for inputs to this pin. (Each pin level can be set by the program .) If this function is used, the port should be set to output (DDR = 1) and the output value should be described in the PDR beforehand. 60 MB91133/MB91F133 • Block Diagram Block Diagram of PPG Timer for 1 Channel φ Interruption IVF IVFE STOP MODE SCLR CLK2 CLK1 CLK0 Cycle device Clock 16-bit free-run timer 16-bit compare clear register (Ch. 6 compare register) MS13 ∼ 0 Compare register 0/2/4 Compare circuit Compare register 1/3/5 Interruption Compare circuit ICLR ICRE R-BUS T Q RT0/2/4 To waveform generation area T Q RT1/3/5 To waveform generation area CMOD Compare circuit IOP1 IOP0 IOE1 IOE0 Interruption Interruption IN 0/2 Edge detection Capture data register 0/2 EG11 Capture data register 1/3 EG10 EG01 Edge detection ICP0 ICP1 ICE0 EG00 IN 1/3 ICE1 Interruption Interruption 61 MB91133/MB91F133 Block Diagram of Waveform Generation Area φ DCK2 DCK1 DCK0 TMD1 TMD0 NRSL DTIL DTIE DTTI control circuit DTTI Cycle device GATE 0/1 Clock RT0 Waveform generation area TO0 TO1 RT1 8-bit timer Compare circuit 8-bit timer register 0 Selector Selector Dead time generation RTO0/U RTO1/X U X R−BUS GATE 2/3 Waveform generation area RT2 TO2 TO3 RT3 8-bit timer Compare circuit 8-bit timer register 1 Selector Selector Dead time generation RTO2/V RTO3/Y V Y GATE 4/5 Waveform generation area RT4 TO4 TO5 RT5 8-bit timer Compare circuit 8-bit timer register 2 62 Selector Selector Dead time generation RTO4/W RTO5/Z W Z MB91133/MB91F133 • Registers List Address 15 8 7 000044H to 4BH 0 (R) IPCP 00004DH, 4FH ICS (R/W) 000054H to 63H OCCP (R/W) 000064H to 6BH OCS (R/W) 00006CH, 6DH TCDT (R/W) 00006EH, 6FH TCCS (R/W) 0000ACH, AEH B2H 0000ADH, AFH B3H 0000B1H (R/W) DTCR TMRR (R/W) STGCR (R/W) 63 MB91133/MB91F133 7. External Interruption The external interruption control area is the block that controls the external interruption requests input in INT0 to INT23. The level of request to be detected can be selected from “H”, “L”, “Rising edge” or “ Falling edge”. • Block diagram R-BUS 24 Interruption requests Interruption permission register 24 Gate 24 Factor F/F 24 Edge detection circuit INT0 to INT23 Interruption factor register 48 Request level setting register • Register List External interruption permission register (ENIR) 15 14 13 bit ER7 ER6 12 11 10 9 8 ER4 ER3 ER2 ER1 ER0 12 11 10 9 8 ER5 ER4 ER3 ER2 ER1 ER0 5 4 3 2 1 0 LB2 LA2 LB1 LA1 LB0 LA0 ER5 External interruption factor register (EIRR) 15 14 13 bit ER7 ER6 Request level setting register (ELVR) 7 6 bit LB3 bit LA3 15 14 13 12 11 10 9 8 LB7 LA7 LB6 LA6 LB5 LA5 LB4 LA4 There are three sets of the above registers (for 8 channels) for a total of 24 channels. 64 MB91133/MB91F133 8. Delay Interruption Module The delay interruption module generates interruptions for task switching. Interruption requests to the CPU can be generated / cancelled using software with this module. • Block Diagram Refer to “9.(2) Block Diagram of Interruption Controller” for the block diagram of the delay interruption generation area. • Register List Address : 00000430H bit 7 6 5 4 3 2 1 0 DLYI DICR R/W 65 MB91133/MB91F133 9. Interruption Controller The interruption controller carries out interruption reception and arbitration. • Hardware configuration of the interruption controller This module consists of the following items. • ICR register • Interruption priority judgement circuit • Interruption level, interruption number (vector) generation area • Cancellation request generation area for HOLD request • Major interruption controller functions This module has the following functions. • Detection of interruption requests • Priority grade judgement (depending on the level and number) • Transferring interruption level of factors for the judgement results (to CPU) • Transferring interruption number of factors for the judgement results (to CPU) • Recovery instruction from stop mode by generating interruption • Cancellation of HOLD request to the bus master • Resetting Interruption Factors There are restrictions between RETI instructions and those for resetting interruption factors in the interruption routine. 66 MB91133/MB91F133 • Block Diagram INT0 IM Priority grade judgement OR 5 NMI LEVEL4 to 0 NMI processing 4 LEVEL judgement ICR00 RI00 VECTOR judgement 6 Generation of LEVEL / VECTOR HLDREQ (Holding request) HLDCAN VCT5 to 0 ICR47 RI47 (DLYIRQ) DLYI R-BUS Note : DLYI shown in the figure indicates delay interruption area. (Refer to the chapter on the delay interruption module for details.) INTO is the wake-up signal to the clock control area in case of sleep or stop. HLDCAN is the bus vacation request signal to bus masters other than the CPU. There is no NMI function in this model. 67 MB91133/MB91F133 • Register List bit 7 6 5 4 3 2 1 0 Address : 00000400H ICR3 ICR2 ICR1 ICR0 ICR00 Address : 00000401H ICR3 ICR2 ICR1 ICR0 ICR01 Address : 00000402H ICR3 ICR2 ICR1 ICR0 ICR02 Address : 00000403H ICR3 ICR2 ICR1 ICR0 ICR03 Address : 00000404H ICR3 ICR2 ICR1 ICR0 ICR04 Address : 00000405H ICR3 ICR2 ICR1 ICR0 ICR05 Address : 00000406H ICR3 ICR2 ICR1 ICR0 ICR06 Address : 00000407H ICR3 ICR2 ICR1 ICR0 ICR07 Address : 00000408H ICR3 ICR2 ICR1 ICR0 ICR08 Address : 00000409H ICR3 ICR2 ICR1 ICR0 ICR09 Address : 0000040AH ICR3 ICR2 ICR1 ICR0 ICR10 Address : 0000040BH ICR3 ICR2 ICR1 ICR0 ICR11 Address : 0000040CH ICR3 ICR2 ICR1 ICR0 ICR12 Address : 0000040DH ICR3 ICR2 ICR1 ICR0 ICR13 Address : 0000040EH ICR3 ICR2 ICR1 ICR0 ICR14 Address : 0000040FH ICR3 ICR2 ICR1 ICR0 ICR15 Address : 00000410H ICR3 ICR2 ICR1 ICR0 ICR16 Address : 00000411H ICR3 ICR2 ICR1 ICR0 ICR17 Address : 00000412H ICR3 ICR2 ICR1 ICR0 ICR18 Address : 00000413H ICR3 ICR2 ICR1 ICR0 ICR19 Address : 00000414H ICR3 ICR2 ICR1 ICR0 ICR20 Address : 00000415H ICR3 ICR2 ICR1 ICR0 ICR21 Address : 00000416H ICR3 ICR2 ICR1 ICR0 ICR22 Address : 00000417H ICR3 ICR2 ICR1 ICR0 ICR23 Address : 00000418H ICR3 ICR2 ICR1 ICR0 ICR24 Address : 00000419H ICR3 ICR2 ICR1 ICR0 ICR25 Address : 0000041AH ICR3 ICR2 ICR1 ICR0 ICR26 Address : 0000041BH ICR3 ICR2 ICR1 ICR0 ICR27 Address : 0000041CH ICR3 ICR2 ICR1 ICR0 ICR28 Address : 0000041DH ICR3 ICR2 ICR1 ICR0 ICR29 Address : 0000041EH ICR3 ICR2 ICR1 ICR0 ICR30 Address : 0000041FH ICR3 ICR2 ICR1 ICR0 ICR31 R/W R/W R/W R/W (Continued) 68 MB91133/MB91F133 (Continued) bit 7 6 5 4 3 2 1 0 Address : 00000420H ICR3 ICR2 ICR1 ICR0 ICR32 Address : 00000421H ICR3 ICR2 ICR1 ICR0 ICR33 Address : 00000422H ICR3 ICR2 ICR1 ICR0 ICR34 Address : 00000423H ICR3 ICR2 ICR1 ICR0 ICR35 Address : 00000424H ICR3 ICR2 ICR1 ICR0 ICR36 Address : 00000425H ICR3 ICR2 ICR1 ICR0 ICR37 Address : 00000426H ICR3 ICR2 ICR1 ICR0 ICR38 Address : 00000427H ICR3 ICR2 ICR1 ICR0 ICR39 Address : 00000428H ICR3 ICR2 ICR1 ICR0 ICR40 Address : 00000429H ICR3 ICR2 ICR1 ICR0 ICR41 Address : 0000042AH ICR3 ICR2 ICR1 ICR0 ICR42 Address : 0000042BH ICR3 ICR2 ICR1 ICR0 ICR43 Address : 0000042CH ICR3 ICR2 ICR1 ICR0 ICR44 Address : 0000042DH ICR3 ICR2 ICR1 ICR0 ICR45 Address : 0000042EH ICR3 ICR2 ICR1 ICR0 ICR46 Address : 0000042FH ICR3 ICR2 ICR1 ICR0 ICR47 R/W R/W R/W R/W LVL3 LVL2 LVL1 LVL0 R/W R/W R/W R/W Address : 00000431H HRCL 69 MB91133/MB91F133 10. Clock Generation Area (low power consumption mechanism) Clock generation area is a module with the following functions. • CPU clock generation (including gear function) • Peripheral clock generation (including gear function) • Reset generation and holding factors • Standby function (including hardware standby) • PLL (Phase Locked Loop) is built in • Register list Address 70 7 0 Reset factor / watchdog cycle control register 000480H RSRR/WTCR 000481H STCR Standby control register 000482H PDRR DMA request blocking register 000483H CTBR Time base timer clear register 000484H GCR Gear control register 000485H WPR Watchdog reset generation postponement register 000488H PCTR PLL / 32-K clock control register MB91133/MB91F133 • Block diagram [ Gear control area ] GCR register CPU gear Peripheral gear X0A X1A Oscillation circuit 1/2 X0 X1 Oscillation circuit PLL Internal clock generation circuit M P X CPU clock Internal bus clock Internal peripheral clock 32-kHz selection circuit [ Stop/sleep control area ] Internal interruption Internal reset STCR register STOP status SLEEP status CPU hold request DMA request PDRR register Status transfer control circuit Reset generation F/F Internal reset Power on detection circuit [ Reset factor circuit ] VCC3 R GND RSRR register RST pin [ Watchdog control area ] WPP register Watchdog F/F Count clock CTBR register Time base timer 71 MB91133/MB91F133 11. 8-/10-bit A/D Converter The 8-/10-bit A/D converter features functions that convert analog input voltages to 10- or 8-bit digital values using the RC sequential comparison conversion method. The input signal is selected from 8-channel analog input pins and three types of conversion initiation can be selected from software, internal clock, or external pin trigger. • characteristics of 8-/10-bit A/D converter The A/D conversion function for converting analog voltages (input voltages) input into the analog input pins to digital values has the following characteristics. • Conversion time is minimum 5.0 µs (including sampling time when machine clock is 33 MHz) . • Conversion method is RC sequential comparison conversion method with sample holding circuit. • 10- or 8-bit resolution can be selected. • Analog input pin can be selected from 8 channels using the program. • interruption request can be generated when A/D conversion ends. • Data is not lost even during continuous conversion as conversion data protection function works while interruptions are permitted. • Initiation factors for conversion can be selected from software, 16-bit reload timer 2 (rising edge) , or external pin trigger (L level detection) . There are three types of conversion modes. Conversion Modes Single conversion mode Converts the specified channel (1 channel Converts a series of channels (up to 8 only) once and ends. channels can be specified) once and ends. Consecutive conversion mode Repeatedly converts the specified channel Repeatedly converts a series of channels (1 channel only) . (up to 8 channels can be specified) . Stop conversion mode 72 Table 13.1-1 Conversion Modes of 8-/10-bit A/D Converter Single Conversion Operation Scan Conversion Operation Suspends after converting the specified channel (1 channel only) once and waits until the next one is initiated. Converts a series of channels (up to 8 channels can be specified) but is suspended between each channel conversion and waits until the next one is initiated. MB91133/MB91F133 • Block Diagram of 8-/10-bit A/D Converter The 8-/10-bit A/D converter is configured with the following 9 blocks. • A/D control status register (ADCS1, 2) • A/D data register (ADCR) • Clock selector (input clock selector to initiate A/D conversion) • Decoder • Analog channel selector • Sample holding circuit • D/A converter • Comparator • Control circuit • Block Diagram AVSS AVR± AVSS MP D/A converter AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 Input circuit Sequential comparison register R - BUS Comparator Sample and holding circuit Data register ADCR Decoder A/D control register 1 A/D control register 2 16-bit reload timer 2 ADCS1, 2 External pin trigger Operation clock φ Pre-scalar • Register List 15 14 13 12 11 10 9 8 7 0000CFH 00003AH 000038 H 6 5 4 3 2 1 0 AICK ADCS0 ADCS1 ADCR 73 MB91133/MB91F133 12. 8-bit D/A Converter The 8-bit D/A converter is an R-2R type D/A converter with 8-bit resolution. • Characteristics of the 8-bit D/A converter The MB81130 series features a 3-channel D/A converter and output control can be carried out individually by the D/A control register. • Block Diagram of 8-bit D/A Converter The 8-bit D/A converter is configured with the following three blocks. • 8-bit resistance ladder • Data register • Control register • Block Diagram R − BUS DA27 to DA20 DA17 to DA10 DAVC DAVC DAVC DA27 DA17 DA07 DA20 DA10 DA00 DAE Standby control DA output 74 DA07 to DA00 DAE Standby control DA output DAE Standby control DA output MB91133/MB91F133 • 8-bit D/A Converter Pins D/A converter pins are dedicated pins. • Registers of 8-bit D/A Converter The 8-bit D/A converter has the following two registers. D/A control register (DACR0, 1, 2) D/A data register (DADR2, 1, 0) • Register list D/A converter data register 0 bit 7 DADR0 DA07 00000ABH D/A converter data register 1 bit 15 DADR1 DA17 00000AAH D/A converter data register 2 bit 23 DADR2 DA27 00000A9H 6 5 4 3 2 1 0 DA06 DA05 DA04 DA03 DA02 DA01 DA00 14 13 12 11 10 9 8 DA16 DA15 DA14 DA13 DA12 DA11 DA10 22 21 20 19 18 17 16 DA26 DA25 DA24 DA23 DA22 DA21 DA20 7 6 5 4 3 2 1 0 DAE0 15 14 13 12 11 10 9 8 DAE1 23 22 21 20 19 18 17 16 DAE2 D/A control register 0 bit DACR0 00000A7H D/A control register 1 bit DACR1 00000A6H D/A control register 2 bit DACR2 00000A5H 75 MB91133/MB91F133 13. 4-bit Level Comparator The 4-bit level comparator is the module that compares input levels (large/small) and compares the size of the analog input voltage with 4-bit digital values. • Functions of the 4-bit level comparator Compares analog voltage that has been input to the analog input pins (input voltage) with 4-bit digital value and has the following characteristics. • Conversion time is minimum 1 µs (including sampling time) . • Sampling time is minimum 0.5 µs. • Interruption requests can be generated when analog comparison ends. • Interruption of 4-bit level comparator Interruption number #61 (3DH) Table 15.1-1 Interruption and DMAC of 4-bit level comparator Interruption control register TBR default Offset address Register name Address ICR45 × : Initiation is impossible 76 00042DH 308H 000FFF08H DMAC × MB91133/MB91F133 • Block Diagram of 4-bit Level Comparator The 4-bit level comparator is configured with the following three blocks. • Comparator • 4-bit resistance ladder • Control register • Block diagram AVCC AVR± AVSS 4-bit D/A (resistance ladder) RD3 - 0 Sample & holding circuit CPLV INT INTE CPEN FR30 R - BUS Comparator AN7 Interruption Reload timer Operation clock φ 77 MB91133/MB91F133 • Registers of 4-bit Lev el Comparator • Register list bit 31 bit 24 bit 23 0000-0018H Control register (LVLC) bit 0000018H 78 bit 16 LVLC 31 30 29 28 27 26 25 24 RD3 RD2 RD1 RD0 CPLV INT INTE CPEN R/W (X) R/W (X) R/W (X) R/W (X) R/W (0) R/W (0) R/W (0) R/W (0) Attribute Initial value MB91133/MB91F133 14. UART UART is the general-purpose serial data communications interface to carry out synchronous or asynchronous communication (start-stop synchronization) with external systems. It has a master/slave-type communications function (multiprocessor mode: supporting only master side) as well as normal bi-directional communications function (normal mode). • UART Functions UART is the general-purpose serial data communications interface that sends and receives serial data to/from other CPUs and peripheral equipment, and has functions shown in Table 16.1-1. Table 16.1-1 UART Functions Functions Data buffer Transfer mode Baud rate Data length Signal method Reception error detection Interruption request Master/slave-type communications function (Multiprocessor mode) Full-duplex double buffer • Clock synchronous (without start-stop bit) • Clock asynchronous (start-stop cycle) • Dedicated baud rate generator is available. Can be selected from 8 types. • External clock input is possible. • Internal clock (Internal clocks that are provided from 16-bit reload timer supporting each channel can be used.) • 7-bit (in case of asynchronous normal mode only) • 8-bit Non Return to Zero (NRZ) method • Framing error • Overrun error • Parity error (impossible in case of multiprocessor mode) • Reception interruption (reception completion, reception error detection) • Transmission interruption (transmission completion) Communication between 1 (master) and n (slaves) is possible (Only supports master side) Note : Start / stop bits are not added by UART and only data is transferred. Operations mode 0 1 Table 16.1-2 UART Operations Mode Data length Synchronization method Without parity With parity Normal mode Multiprocessor mode 2 Normal mode : Setting is impossible 7-bit or 8-bit Asynchronous 8 + 1* Asynchronous 8 Synchronous 1 Stop bit length 1-bit or 2-bit *2 N/A *1 : “ + 1” is address / data selection bit (A/D) to be used to control communications. *2 : 1-bit only can be detected for stop bit in case of reception. 79 MB91133/MB91F133 • UART Block Diagram UART is configured with the following 11 blocks. • Clock selector • Mode register (SMR0 to 4) • Reception control circuit • Control register (SCR0 to 4) • Transmission control circuit • Status register (SSR0 to 4) • Reception status judgement circuit • Input data register (SIDR0 to 4) • Shift register for reception • Output data register (SODR0 to 4) • Sift register for transmission • Block Diagram Control bus Reception interruption signals #26 to 30 * Dedicated baud rate generator 16-bit reload timer Reception interruption signals #31 to 35 * Transmission clock Clock selector Reception clock Pin Reception control circuit Transmission control circuit Start bit detection circuit Transmission start circuit Reception bit counter Transmission bit counter Reception parity counter Transmission parity counter Shift register for reception Shift register for transmission <SCK0 to SCK4> <SOT0 to SOT4 > Pin <SIN0 to SIN4 > Pin Reception status judgement circuit SIDR0 ∼ 4 Reception ends SODR0 ∼ 4 Transmission starts Reception error Generation signal (to CPU) Internal data bus SMR0 to 4 registers MD1 MD0 CS2 CS1 CS0 SCKE SOE * : Interruption number 80 SCR0 to 4 registers PEN P SBL CL A/D REC RXE TXE SSR0 to 4 registers PE ORE FRE RDRF TDRE BDS RIE TIE MB91133/MB91F133 • Block Diagram of UART Pins Data bus Resource input 0 1 PDR read pin 0 PDR Resource output 1 Resource output permission DDR ODCR PCR PDR : Port Data Register DDR : Data Direction Register ODCR : Open-drain Control Register PCR : Pull-up Control Register • Register List Address ch0 : 0000_001EH, ch1 : 0000_0022H, ch2 : 0000_0026H, ch3 : 0000_0072H, ch4 : 0000_0076H, ch0 : 0000_001CH, ch1 : 0000_0020H, ch2 : 0000_0024H, ch3 : 0000_0070H, ch4 : 0000_0074H, ch0 : 0000_007AH ch1 : 0000_0078H ch2 : 0000_007EH ch3 : 0000_007CH ch4 : 0000_0082H bit 15 1FH 23H 27H 73H 77H 1DH 21H 25H 71H 75H bit 8 bit 7 bit 0 Control register (SCR) Mode register (SMR) Status register (SSR) Input/output data register (SIDR/SODR) Communications pre-scalar control register (CDCR) Vacant 81 MB91133/MB91F133 15. DMA Controller The DMA controller is the built-in module of the MB91130 series that carrie out direct memory access (DMA) transfers. • • • • • • • • Characteristics of the DMA Controller 8 channels 3 transfer mode types : single/block transfer, burst transfer, continuous transfer Transfer between overall address areas Maximum 65,536 transfers Interruption function when transfer ends Increase/decrease in transfer addresses can be selected using software 3 external transfer request input/output pins and 3 external transfer end output pins • Block Diagram DREQ0 to DREQ2 3 Edge / level detection circuit 3 3 3 Sequencer DACK0 to DACK2 EOP0 to EOP2 8 Interruption request Built-in resource transfer request 5 Data buffer Switcher DACSR DATCR Mode BLK DEC BLK DMACT INC / DEC SADR DADR 82 Data bus DPDP MB91133/MB91F133 • Register List (In DMAC : DMAC internal registers) 31 0 00000200H DPDP 00000204H DACSR 00000208H DATCR (On RAM : DMA descriptors) bit 31 DPDP + 0H DPDP + 0CH DPDP + 54H bit 0 DMA ch0 Descriptor DMA ch1 Descriptor DMA ch7 Descriptor 83 MB91133/MB91F133 16. Bit Search Module The bit search module searches for 0, 1 or change points on data that has been written in the input register, and returns the detected bit position. • Block Diagram D-BUS Input latch Address decoder Detection mode Changing to 1 detection data Bit search circuit Detection results • Register List 31 84 0 Address : 000003F0H BSD0 Data register for 0 detection Address : 000003F4H BSD1 Data register for 1 detection Address : 000003F8H BSDC Data register for change point detection Address : 000003FCH BSRR Detection results register MB91133/MB91F133 17. FLASH Memory The MB91FV130 / MB91F133 have a 254-KB (2 Mbit) capacity and feature a FLASH memory that can write each half-word (16 bits) using the FR-CPU, delete individual sectors sector and delete groups of sectors together using a single 3-V power source. • Outline of FLASH Memory This is a built-in 3-V 254-KB FLASH memory. This FLASH memory is the same as our 2-Mbit (256 K × 8 / 128 K × 16) FLASH memory MBM29LV400C and writing is possible from outside the device using a ROM writer. If used as a built-in ROM of the FR-CPU, as well as having an equivalent function to the MBM29LV400C, instructions / data can be read per word (32 bits) and high-speed operation of the device can be realized. Refer to the MBM29LV400C data sheet as well as this manual. The following functions can be realised in MB91FV130 / MB91F133 by combining the FLASH memory macro and FR-CPU interface circuits. • Functioning as memory for CPU program / data storage Access is possible with 32-bit bus width when used as ROM Reading / writing and erasing (automatic program algorithm *) are possible using CPU • MBM29LV400C-equivalent function of single FLASH memory products Reading / writing and erasing (automatic program algorithm *) are possible using ROM writer A case where this FLASH memory is used from FR-CPU is described in this section. Refer to the ROM writer manual separately for details if this FLASH memory is used from ROM writer. * : Automatic program algorithm = Embedded Algorithm TM Embedded Algorithm TM is the trademark of Advanced Micro Device. • Block Diagram Rising edge detection Control signal generation RDY/BUSY RESET BYTE OE FLASH memory 2 Mbit (254 K × 8/127 K × 16) WE INTE RDYINT RDY WE Bus control signal Interruption request CE FA18 - 0 Address buffer CA18 - 0 DI15 - 0 DO31 - 0 Data buffer CD31 - 0 FR-C bus (instruction / data) 85 MB91133/MB91F133 • Memory Map FLASH memory mode and CPU mode for address mapping of FLASH memory are different. Mapping under each mode is shown as follows. • Memory map in FLASH memory mode 0FFFFFH SA9 SA8 SA7 2 M-FLASH Memory image SA6 SA5 SA4 SA3 0C0000H SA2 SA1 SA0 ( SAn : sector address n ) 010000H 000000H • Memory map in CPU memory mode 0FFFFFH 0FFFFFH SA4 SA9 SA3 SA8 SA2 SA7 SA1 SA6 SA0 SA5 0F8000H 0F4000H FLASH memory area 0F0000H 0E0000H 0C0800H RAM area 2 KByte 0C0000H ( SAn : sector address n ) 0007C0H Status register 0C0800H 000000H 0C0000H 86 CPU mode MB91133/MB91F133 • Sector address table Sector Address Address Area Position of bit handled Sector Capacity SA5 000C0802, 3h to 000DFFFE, Fh (LSB side 16 bit) bit 15 to 0 63 Kbyte SA6 000E0002, 3h to 000EFFFE, Fh (LSB side 16 bit) bit 15 to 0 32 Kbyte SA7 000F0002, 3h to 000F3FFE, Fh (LSB side 16 bit) bit 15 to 0 8 Kbyte SA8 000F4002, 3h to 000F7FFE, Fh (LSB side 16 bit) bit 15 to 0 8 Kbyte SA9 000F8002, 3h to 000FFFFE, Fh (LSB side 16 bit) bit 15 to 0 16 Kbyte SA0 000C0800, 1h to 000DFFFC, Dh (MSB side 16 bit) bit 31 to 16 63 Kbyte SA1 000E0000, 1h to 000EFFFC, Dh (MSB side 16 bit) bit 31 to 16 32 Kbyte SA2 000F0000, 1h to 000F3FFC, Dh (MSB side 16 bit) bit 31 to 16 8 Kbyte SA3 000F4000, 1h to 000F7FFC, Dh (MSB side 16 bit) bit 31 to 16 8 Kbyte SA4 000F8000, 1h to 000FFFFC, Dh (MSB side 16 bit) bit 31 to 16 16 Kbyte • Registers of FLASH Memory There are two types of FLASH memory registers, namely status register (FLCL) and wait register (FWTC). • Status Register (FLCR) (CPU mode) This register indicates the operation status of the FLASH memory. It controls interruption to the CPU and writing to the FLASH memory. Access is possible only in CPU mode. This register must not be accessed under Read / Modify / Write instructions. 0007C0H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 INTE RDYINT WE RDY LPM R/W (0) R/W (0) R/W (0) R (X) (X) (X) (X) R/W (0) • Wait Register ( FWTC) Carries out wait control of the FLASH memory in CPU mode. Also, controls access to high-speed reading (33MHz) of FLASH memory. Configuration of Wait Register (FWTC) is as follows : 0007C4H bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 FACH WTC1 WTC0 () () () () W (0) R/W (0) R/W (0) () Note : FACH bit should be set to 1 or WTC1/0 should be set to 01b to operate machine clocks of CPUs exceeding 25 MHz. 87 MB91133/MB91F133 ■ ELECTRICAL CHARACTERISTICS 1. Absolute Maximum Ratings Parameter (VSS = AVSS = 0.0 V) Symbol Rating Min. Max. Unit Remarks Power voltage VCC5 VSS − 0.3 VSS + 6.5 V Power voltage VCC3 VSS − 0.3 VSS + 3.8 V Analog power voltage AVCC VSS − 0.3 VSS + 6.5 V *1 Standard analog voltage AVRH VSS − 0.3 VSS + 6.5 V *1 Input voltage VI5 VSS − 0.3 VCC5 + 0.3 V Input voltage VI3 VSS − 0.3 VCC3 + 0.3 V Analog pin input voltage VIA VSS − 0.3 AVCC + 0.3 V Output voltage VO VSS − 0.3 VCC5 + 0.3 V Maximum “L” level output current IOL 10 mA *2 Average “L” level output current IOLAV 4 mA *3 Maximum total “L” level output current ΣIOL 100 mA ΣIOLAV 50 mA *4 IOH −10 mA *2 Average “H” level output current IOHAV −4 mA *3 Maximum total “H” level output current ΣIOH −50 mA ΣIOHAV −20 mA PD 500 mW Tstg −55 +150 °C Average “L” level total output current Maximum “H” level output current Average “H” level total output current Electricity consumption Storage temperature X0, X1, X0A, X01A *4 *1 : Care must be taken that this does not exceed VCC5 + 0.3 V when the power is turned on. Also, care must be taken that AVCC does not exceed VCC5 when the power is turned on. AVCC should be set at the same electrical potential as VCC5. *2 : Peak value of the pin concerned is regulated as the maximum output current. *3 : Average current within 100 ms flowing in the pin concerned is regulated as the average output current. *4 : Average current within 100 ms flowing in all pins concerned is regulated as the average total output current. 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. 88 MB91133/MB91F133 2. Recommended Operating Conditions Parameter Power voltage Symbol Common VCC5 EVA FLASH VCC3 MASK ROM VCC3 (VSS = AVSS = 0.0 V) Value Unit Remarks Min. Max. 4.5 5.5 3.0 3.6 3.0 3.6 2.7 3.6 V Under normal operation 2.7 3.6 V RAM status kept in the case of stop V V Under normal operation Under normal operation RAM status kept in the case of stop Analog power voltage AVCC VSS + 4.5 VSS + 5.5 V Standard analog voltage AVRH AVSS − 0.3 AVCC V TA 0 +70 °C In external ROM external bus / internal ROM external bus modes TA −40 +70 °C In single-chip mode Operating temperature 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. 89 MB91133/MB91F133 3. DC Characteristics (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value ReSymPin name Conditions Unit Parameter marks bol Min. Typ. Max. “H” level input voltage “L” level input voltage VIH Input excluding following (*1) 0.7 VCC5 VCC5 + 0.3 V VIHS *1 Hysteresis input pin VCC5 − 0.4 VCC5 + 0.3 V VIL Input excluding following (*1) VSS − 0.3 0.2 VCC5 V VILS *1 Hysteresis input pin VSS − 0.3 VSS + 0.4 V “H” level output voltage VOH VCC5 = 5.0 V, IOH = −4.0 mA 2.6 V “L” level output voltage VOL VCC5 = 5.0 V, IOL = 4.0 mA 0.6 V ILI VCC5 = 5.0 V, VSS < VI < VDD −5 5 µA 50 kΩ Input leak current Pull up RPULL resistance value RST ICC5 VCC5 VCC5 = 5.0 V 15 20 mA ICC3 VCC3 VCC3 = 3.0 V 50 100 mA ICCS5 VCC5 VCC5 = 5.0 V 15 20 mA ICCS3 VCC3 VCC3 = 3.0 V 24 85 mA ICCH5 VCC5 VCC5 = 5.0 V, TA = 25 °C 10 100 µA ICCH3 VCC3 VCC3 = 3.0 V, TA = 25 °C 10 100 µA Power current Power current (FLASH models) ICC3 VCC3 VCC3 = 3.3 V 80 120 mA ICCS3 VCC3 VCC3 = 3.3 V 50 90 mA Input capacity CIN Other than VCC, AVCC, AVSS, AVRH and VSS 10 pF *1 : Refer to “PIN FUNCTION DESCRIPTIONS” *2 : In case of CLK pin output only (CL = 80 pF) *3 : Output pin OPEN 90 *2 *2 *3 MB91133/MB91F133 4. AC Characteristics (1) Clock Timing Standard (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value SymCondiParameter Pin name Unit Remarks bol tions Min. Max. Clock frequency (high-speed, self-oscillation) Self oscillation available area fC X0, X1 Clock frequency (low-speed) fCA X0A, X1A Clock cycle time tC 30.3 31250 ns Frequency fluctuation rate *1 (when PLL locked) ∆f 10 % 0.032 33 0.032 25 0.032 25 Excluding analog area *2 1 25 Analog area *2 30.3 31250 40 31250 40 31250 Excluding analog area *2 40 1000 Analog area *2 Clock frequency (high-speed, PLL usage) Internal operation clock frequency CPU system fCP Bus system fCPB Peripheral system Internal operation clock cycle time fCPP tCP Bus system tCPB 16.5 32 CPU system Peripheral system 9 tCPP MHz kHz PLL usable area by self-oscillation input Self oscillation MHz ns *1 : Frequency fluctuation rate indicates the maximum fluctuation ratio from the setting central frequency during locking in case of doubling. *2 : The targeted analog areas are the A/D and level comparator. 91 MB91133/MB91F133 −α |α| fO ∆f = ×100 (%) Central frequency fO −α tC VCC3 0.8 VCC3 0.2 VCC3 VSS Peripheral system clock setting permitted area (A/D, D/A level comparator : 5 V ± 10%) < MASK ROM model > < FLASH model > VCC3 VCC3 Guaranteed operating range 3.0 fCP fCPP Power voltage (V) Power voltage (V) Guaranteed operating range 3.6 3.6 fCP 2.7 fCPP 32 K 1 M 25 M 33 M Frequency (Hz) 92 32 K 1 M 25 M 33 M Frequency (Hz) MB91133/MB91F133 The relationship between the internal clock set by the CHC/CCK1/CCK0 bit of the Gear Control Register (GCR) and X0 input is as follows. X0 input • Original oscillation × 1 (CHC bit of GCR : 0 setting) (a) Gear × 1 Internal clock CCK1/0 : 00 (b) Gear × 1/2 Internal clock CCK1/0 : 01 tCYC tCYC tCYC (c) Gear × 1/4 Internal clock CCK1/0 : 10 tCYC (d) Gear × 1/8 Internal clock CCK1/0 : 11 • Original oscillation × 1/2 (CHC bit of GCR : 1 setting) (a) Gear × 1 Internal clock CCK1/0 : 00 (b) Gear × 1/2 Internal clock CCK1/0 : 01 (c) Gear × 1/4 Internal clock CCK1/0 : 10 (d) Gear × 1/8 Internal clock CCK1/0 : 11 tCYC tCYC tCYC tCYC 93 MB91133/MB91F133 (2) Reset Input Standards (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value Pin CondiParameter Symbol Unit Remarks name tions Min. Max. Reset input time RST tRSTL tCP × 5 ns tRSTL RST 0.2 VCC (3) Power On Reset (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value SymPin Parameter Conditions Unit Remarks bol name Min. Max. Power startup time fR Power cut time tOFF Waiting time for oscillation stabilization tOSC VCC 20 ms 2 ms 213 tC ns tR VhhR tOFF 0.9 × VCC3 0.2 V If the power voltage is changed rapidly, “Power On Reset” may be initiated. To start up smoothly, controlling any voltage fluctuations that may occur during operation is recommended. VCC Holding RAM data Controling inclination at initiation to 50 mV/ms or less is recommended. VSS VCC tOSC (waiting for oscillation stabilization) RST tRSTL 94 When power is turned on, start while the RST pin is set to “L” level, after which wait for tRSTL minutes and change the level to “H” once the VCC power level is reached. MB91133/MB91F133 (4) Serial I/O (CH0 to 4) (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value Pin Parameter Symbol Conditions Unit Remarks name Min. Max. Serial clock cycle time tSCYC 8 tCPP ns SCK ↓ → SO delay time tSLOV −10 50 ns Valid SI → SCK ↑ tIVSH 50 ns SCK ↑ → Valid SI holding time tSHIX 50 ns Serial clock H pulse width tSHSL 4 tCPP − 10 ns Serial clock L pulse width tSLSH 4 tCPP − 10 ns SCK ↓ → SO delay time tSLOV 0 50 ns Valid SI → SCK ↑ tIVSH 50 ns 50 ns 6 tCPP ns Internal clock External clock SCK ↑ → Valid SI holding time tSHIX Serial busy period tBUSY SCS ↓ → SCK, SO delay time tCLZO 50 ns SCS ↓ → SCK input MASK time tCLSL 3 tCPP ns SCS ↑ → SCK, SO Hi-Z time tCHOZ 50 ns * *: Will be Min. 1 tCPP − 10 if pre-scalar setting is CS2, 1, 0 = 000. Internal shift clock mode tSCYC SCK tSLOV SO SI tSHIX tIVSH External shift clock mode tCLZO tSLSH tSHSL tBUSY tCHOZ SCK tSLOV SO SI tIVSH tSHIX SCS tCLSL 95 MB91133/MB91F133 (5) External Bus Measurement Conditions The following conditions apply to items without specific regulations. • Alternating current standard measurement condition VCC : 5.0 V ± 10% Input Output VCC VIH VOH VIL VOL 0V VIH 2.4 V VOH 2.4V VIL 0.8 V VOL 0.8V (Rise/fall time of input is 10 ns or less) • Load condition Output pin C = 50 pF ( VCC : 5.0 V ± 10% ) • Load capacity − Delay time characteristic (Internally-based output delay) [nS] 35 30 25 5 V Fall 20 15 5 V Rise 10 5 0 0 96 20 40 50 60 80 100 120 C[pF] MB91133/MB91F133 (6) Normal Bus Access Read/Write Operation (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value SymParameter Pin name Conditions Unit Remarks bol Min. Max. Address delay time tCHAV CLK A23 to A00 15 ns Data delay time tCHDV CLK D31 to D16 15 ns RD delay time tCLRL 10 ns RD delay time tCLRH 10 ns WR0 to 1 delay time tCLWL 10 ns WR0 to 1 delay time tCLWH 10 ns Valid address / valid data input time tAVDV 3/2× tCYC − 25 ns *1, *2 RD ↓ → valid data input time tRLDV tCYC − 15 ns *1 15 ns 0 ns Data setup → RD ↑ time tDSRH RD ↑ → Data holding time tRHDX CLK RD CLK WR0 to 1 A23 to A00 D31 to D16 RD D31 to D16 *1 : Time (tCYC × number of cycles extended) needs to be added to this standard if the bus is extended by automatic waiting insertion and RDY input. *2 : Values of this standard are in case of gear cycle × 1. If the gear cycle is set to 1/2, 1/4 or 1/8, calculation should be made using the following formula and replacing n with 1/2, 1/4 or 1/8. • Calculation formula : (2 − n / 2) × tCYC − 25 97 MB91133/MB91F133 tCYC BA1 BA2 VOH VOH VOL CLK VOL tCHAV VOH VOL A24 - A00 VOH VOL tCLRL tCLRH VOH RD VOL tRLDV tRHDX tAVDV tDSRH VIH VIL D31 - D16 tCLWL Read VIH VIL tCLWH VOH WR0 - WR1 VOL tCHDV D31 - D16 98 VOH VOL Write VOH VOL MB91133/MB91F133 (7) Ready Input Timing (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value Pin Parameter Symbol Conditions Unit Remarks name Min. Max. RDY setup time → CLK ↓ CLK ↓ → RDY holding time tRDYS RDY CLK tRDYH RDY CLK 15 ns 0 ns tCYC VOH VOH CLK VOL VOL tRDYS RDY If "wait" is executed VIL RDY If "wait" is not executed VIH tRDYH tRDYS tRDYH VIH VIL 99 MB91133/MB91F133 (8) Holding timing (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value Pin Parameter Symbol Conditions Unit Remarks name Min. Max. BGRNT delay time tCHBGL BGRNT delay time tCHBGH Pin floating → BGRNT ↓ time tXHAL BGRNT ↑ → Pin valid time tHAHV CLK BGRNT BGRNT 6 ns 6 ns tCYC − 10 tCYC + 10 ns tCYC − 10 tCYC + 10 ns Note : It takes at least one cycle from loading the BRQ to when BGRNT is changed. tcyc VOH VOH VOH VOH CLK BRQ tCHBGL tCHBGH VOH BGRNT VOL tHAHV tXHAL Each pin High impedance 100 MB91133/MB91F133 (9) DMA Controller Timing (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value Parameter Symbol Pin name Conditions Unit Remarks Min. Max. DREQ input pulse width tDRWH DREQ0 to DREQ2 DACK delay time (Normal bus) tCLDL CLK DACK0 to DACK2 tCLDH tCLEL EOP delay time (Normal bus) CLK EOP0 to EOP2 tCLEH DACK delay time tCHDL tCHDH ns 6 ns 6 ns 6 ns 6 ns n / 2 × tCYC ns 6 ns n / 2 × tCYC ns 6 ns CLK DACK0 to DACK2 tCHEL EOP delay time 2 tCYC CLK EOP0 to EOP2 tCHEH tcyc VOH VOH CLK VOL VOL tCLDH tCLDL tCLEL DACK0 - 2 EOP0 - 2 (Normal bus) tCLEH VOH VOL tCHDH DACK0 - 2 EOP0 - 2 tCHDL VOH VOL tCHEL tDRWH DREQ0 - 2 VIH VIH 101 MB91133/MB91F133 5. A/D Transition (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value ReSymPin Conditions Unit Parameter marks bol name Min. Typ. Max. Resolution Conversion time Total tolerance Straight-line tolerance Differential straight-line tolerance Zero transition tolerance VOT Full-scale transition tolerance VFST Analog input current IAIN AN0 to AN7 Analog input voltage VAIN AN0 to AN7 Standard voltage AVRH AVRH Power current Standard voltage current supplied When conversion is activated IA When conversion is stopped IAH When conversion is activated IR When conversion is stopped IRH Tolerance between channels AVCC = 5.0 V, AVRH = 5.0 V 5.0 −4.0 4.0 LSB −3.5 3.5 LSB −2.0 2.0 LSB 10 Bit µs AN0 to AVSS−1.5 AVSS+0.5 AVSS+2.5 LSB AN7 AVCC = 5.0 V, AN0 to AVRH = 5.0 V AVRH − 5.5 AVRH − 1.5 AVRH + 0.5 LSB AN7 AVCC AVRH AN0 to AN7 0.1 10 µA AVSS AVRH V AVCC V 3.0 5.0 mA 5.0 µA 2.0 3.0 mA 10 µA 4 LSB AVCC = 5.0 V AVCC = 5.0 V, AVRH = 5.0V Notes : • As the |AVRH| becomes smaller, the tolerance becomes larger. • Output impedance of external circuits other than analog input must be used if output impedance of external circuits < approx. 7 kΩ If the output impedance of the external circuits is too high, the sampling time for the analog voltage may be insufficient. (Sampling time = 1.6 µs at 33 MHz) 102 MB91133/MB91F133 • Definition of A/D Converter Terms • Resolution : Analog changes that can be identified by A/D converter • Straight-line tolerance : Difference between the straight line linking the zero transition point (00 0000 0000 ←→ 00 0000 0001) to the full-scale transition point (11 1111 1110 ←→ 11 1111 1111) and actual conversion characteristics. • Differential straight-line tolerance : Difference compared to the ideal input voltage value required to change the output code 1 LSB • Total tolerance : Indicates the difference between the actual and theoretical values and includes zero transition tolerance, fullscale transition tolerance, and straight-line tolerance. Total tolerance 3FF 3FE Digital output 3FD Actual conversion characteristics {1 LSB ( N − 1 ) + 0.5 LSB} 1.5 LSB 004 VNT (Actual measured value) Actual conversion characteristics 003 002 Ideal characteristics 001 0.5 LSB AVRH AVSS Total tolerance of digital output N = 1 LSB (Ideal value) = VNT − {1 LSB × (N − 1) + 0.5 LSB’} 1 LSB AVRH − AVSS 1024 VOT (Ideal value) = AVSS + 0.5 LSB’ Analog input [V] [V] VFST (Ideal value) = AVRH − 1.5 LSB’ [V] VNT : Voltage of digital output transferred from (N + 1) to N (Continued) 103 MB91133/MB91F133 (Continued) Straight-line tolerance Differential straight-line tolerance 3FF Actual conversion characteristics {1 LSB ( N − 1 ) + VOT} VFST (Actual measured value) Digital output 3FD 004 VNT (Actual measured value) 003 Actual conversion characteristics N+1 Digital output 3FE N Ideal characteristics N−1 VFST (Actual measured VNT value) (Actual measured value) Actual conversion characteristics Ideal characteristics 002 001 N−2 VOT (Actual measured value) AVSS AVSS AVRH Analog input Actual conversion characteristics Straight-line tolerance = VNT − {1 LSB × (N − 1) + VOT} 1 LSB of digital output N Differential straight-line tolerance = of digital output N 1LSB (Ideal value) = V (N + 1) T − VNT 1 LSB VFST − VOT 1022 −1 AVRH Analog input [LSB] [LSB] [V] VOT : Voltage with digital output transferred from (000) H to (001) H VFST : Voltage with digital output transferred from (3FE) H to (3FF) H 6. D/A Transition (MASK Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 2.7 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) (FLASH Model VCC5 = AVCC = DAVC = 5.0 V ± 10%, VCC3 = 3.0 V to 3.6 V, VSS = AVSS = 0 V, TA = −40 °C to +70 °C) Value Pin CondiReParameter Symbol Unit name tions marks Min. Typ. Max. Resolution 8 Bit Differential straight-line tolerance ±0.9 LSB Conversion time 10 20 µs Analog output impedance 28 kΩ *: CL = 20 PF 104 * MB91133/MB91F133 ■ INSTRUCTIONS (165 INSTRUCTIONS) 1. How to Read Instruction Set Summary Mnemonic ADD * ADD ↓ (1) Rj, Ri #s5, Ri , , ↓ (2) Type OP CYC NZVC Operation A C , , A6 A4 , , 1 1 , , CCCC CCCC , , Ri + Rj → Ri Ri + s5 → Ri , , ↓ (3) ↓ (4) ↓ (5) ↓ (6) ↓ (7) Remarks (1) Names of instructions Instructions marked with * are not included in CPU specifications. These are extended instruction codes added/extended at assembly language levels. (2) Addressing modes specified as operands are listed in symbols. Refer to “2. Addressing mode symbols” for further information. (3) Instruction types (4) Hexa-decimal expressions of instructions (5) The number of machine cycles needed for execution a: Memory access cycle and it has possibility of delay by Ready function. b: Memory access cycle and it has possibility of delay by Ready function. If an object register in a LD operation is referenced by an immediately following instruction, the interlock function is activated and number of cycles needed for execution increases. c: If an immediately following instruction operates to an object of R15, SSP or USP in read/write mode or if the instruction belongs to instruction format A group, the interlock function is activated and number of cycles needed for execution increases by 1 to make the total number of 2 cycles needed. d: If an immediately following instruction refers to MDH/MDL, the interlock function is activated and number of cycles needed for execution increases by 1 to make the total number of 2 cycles needed. For a, b, c and d, minimum execution cycle is 1. (6) Change in flag sign • Flag change C : Change – : No change 0 : Clear 1 : Set • Flag meanings N : Negative flag Z : Zero flag V : Over flag C : Carry flag (7) Operation carried out by instruction 105 MB91133/MB91F133 2. Addressing Mode Symbols Ri Rj R13 Ps Rs CRi CRj #i8 : Register direct (R0 to R15, AC, FP, SP) : Register direct (R0 to R15, AC, FP, SP) : Register direct (R13, AC) : Register direct (Program status register) : Register direct (TBR, RP, SSP, USP, MDH, MDL) : Register direct (CR0 to CR15) : Register direct (CR0 to CR15) : Unsigned 8-bit immediate (–128 to 255) Note: –128 to –1 are interpreted as 128 to 255 #i20 : Unsigned 20-bit immediate (–0X80000 to 0XFFFFF) Note: –0X7FFFF to –1 are interpreted as 0X7FFFF to 0XFFFFF #i32 : Unsigned 32-bit immediate (–0X80000000 to 0XFFFFFFFF) Note: –0X80000000 to –1 are interpreted as 0X80000000 to 0XFFFFFFFF #s5 : Signed 5-bit immediate (–16 to 15) #s10 : Signed 10-bit immediate (–512 to 508, multiple of 4 only) #u4 : Unsigned 4-bit immediate (0 to 15) #u5 : Unsigned 5-bit immediate (0 to 31) #u8 : Unsigned 8-bit immediate (0 to 255) #u10 : Unsigned 10-bit immediate (0 to 1020, multiple of 4 only) @dir8 : Unsigned 8-bit direct address (0 to 0XFF) @dir9 : Unsigned 9-bit direct address (0 to 0X1FE, multiple of 2 only) @dir10 : Unsigned 10-bit direct address (0 to 0X3FC, multiple of 4 only) label9 : Signed 9-bit branch address (–0X100 to 0XFC, multiple of 2 only) label12 : Signed 12-bit branch address (–0X800 to 0X7FC, multiple of 2 only) label20 : Signed 20-bit branch address (–0X80000 to 0X7FFFF) label32 : Signed 32-bit branch address (–0X80000000 to 0X7FFFFFFF) @Ri : Register indirect (R0 to R15, AC, FP, SP) @Rj : Register indirect (R0 to R15, AC, FP, SP) @(R13, Rj) : Register relative indirect (Rj: R0 to R15, AC, FP, SP) @(R14, disp10) : Register relative indirect (disp10: –0X200 to 0X1FC, multiple of 4 only) @(R14, disp9) : Register relative indirect (disp9: –0X100 to 0XFE, multiple of 2 only) @(R14, disp8) : Register relative indirect (disp8: –0X80 to 0X7F) @(R15, udisp6) : Register relative (udisp6: 0 to 60, multiple of 4 only) @Ri+ : Register indirect with post-increment (R0 to R15, AC, FP, SP) @R13+ : Register indirect with post-increment (R13, AC) @SP+ : Stack pop @–SP : Stack push (reglist) : Register list 106 MB91133/MB91F133 3. Instruction Types MSB Type A Type B LSB 16 bits OP Rj Ri 8 4 4 OP i8/o8 Ri 4 8 4 Type C OP u4/m4 Ri 8 4 4 ADD, ADDN, CMP, LSL, LSR and ASR instructions only Type *C’ Type D Type E Type F OP s5/u5 Ri 7 5 4 OP u8/rel8/dir/reglist 8 8 OP SUB-OP Ri 8 4 4 OP rel11 5 11 107 MB91133/MB91F133 4. Detailed Description of Instructions • Add/subtract operation instructions (10 instructions) Mnemonic Type OP Cycle N Z V C Operation ADD * ADD Rj, Ri #s5, Ri A C’ A6 A4 1 1 C C C C Ri + Rj → Ri C C C C Ri + s5 → Ri ADD ADD2 #i4, Ri #i4, Ri C C A4 A5 1 1 C C C C Ri + extu (i4) → Ri C C C C Ri + extu (i4) → Ri ADDC Rj, Ri A A7 1 C C C C Ri + Rj + c → Ri ADDN * ADDN Rj, Ri #s5, Ri A C’ A2 A0 1 1 – – – – Ri + Rj → Ri – – – – Ri + s5 → Ri ADDN ADDN2 #i4, Ri #i4, Ri C C A0 A1 1 1 – – – – Ri + extu (i4) → Ri – – – – Ri + extu (i4) → Ri SUB Rj, Ri A AC 1 C C C C Ri – Rj → Ri SUBC Rj, Ri A AD 1 C C C C Ri – Rj – c → Ri SUBN Rj, Ri A AE 1 – – – – Ri – Rj → Ri Remarks MSB is interpreted as a sign in assembly language Zero-extension Sign-extension Add operation with sign MSB is interpreted as a sign in assembly language Zero-extension Sign-extension Subtract operation with carry • Compare operation instructions (3 instructions) Mnemonic Type OP Cycle N Z V C Operation CMP * CMP Rj, Ri #s5, Ri A C’ AA A8 1 1 C C C C Ri – Rj C C C C Ri – s5 CMP CMP2 #i4, Ri #i4, Ri C C A8 A9 1 1 C C C C Ri + extu (i4) C C C C Ri + extu (i4) Remarks MSB is interpreted as a sign in assembly language Zero-extension Sign-extension • Logical operation instructions (12 instructions) 108 Mnemonic Type OP Cycle N Z V C AND AND ANDH ANDB Rj, Ri Rj, @Ri Rj, @Ri Rj, @Ri A A A A 82 84 85 86 1 1 + 2a 1 + 2a 1 + 2a CC CC CC CC – – – – – – – – Ri & (Ri) & (Ri) & (Ri) & = Rj = Rj = Rj = Rj Word Word Half word Byte OR OR ORH ORB Rj, Ri Rj, @Ri Rj, @Ri Rj, @Ri A A A A 92 94 95 96 1 1 + 2a 1 + 2a 1 + 2a CC CC CC CC – – – – – – – – Ri (Ri) (Ri) (Ri) | | | | = Rj = Rj = Rj = Rj Word Word Half word Byte EOR EOR EORH EORB Rj, Ri Rj, @Ri Rj, @Ri Rj, @Ri A A A A 9A 9C 9D 9E 1 1 + 2a 1 + 2a 1 + 2a CC CC CC CC – – – – – – – – Ri ^ (Ri) ^ (Ri) ^ (Ri) ^ = Rj = Rj = Rj = Rj Word Word Half word Byte Operation Remarks MB91133/MB91F133 • Bit manipulation arithmetic instructions (8 instructions) Mnemonic BANDL BANDH * BAND BORL BORH * BOR BEORL BEORH * BEOR BTSTL BTSTH #u4, @Ri (u4: 0 to 0FH) #u4, @Ri (u4: 0 to 0FH) #u8, @Ri #u4, @Ri (u4: 0 to 0FH) #u4, @Ri (u4: 0 to 0FH) #u8, @Ri #u4, @Ri (u4: 0 to 0FH) #u4, @Ri (u4: 0 to 0FH) #u8, @Ri Type OP Cycle N Z V C C 80 1 + 2a – – – – (Ri) & = (F0H + u4) Manipulate lower 4 bits C 81 1 + 2a – – – – (Ri) & = ((u4<<4) + 0FH) Manipulate upper 4 bits – *1 Remarks – – – – (Ri) & = u8 C 90 1 + 2a – – – – (Ri) | = u4 Manipulate lower 4 bits C 91 1 + 2a – – – – (Ri) | = (u4<<4) Manipulate upper 4 bits – *2 – – – – (Ri) | = u8 C 98 1 + 2a – – – – (Ri) ^ = u4 Manipulate lower 4 bits C 99 1 + 2a – – – – (Ri) ^ = (u4<<4) Manipulate upper 4 bits – *3 #u4, @Ri (u4: 0 to 0FH) #u4, @Ri (u4: 0 to 0FH) Operation – – – – (Ri) ^ = u8 C 88 2+a 0 C – – (Ri) & u4 Test lower 4 bits C 89 2+a C C – – (Ri) & (u4<<4) Test upper 4 bits *1: Assembler generates BANDL if result of logical operation “u8&0x0F” leaves an active (set) bit and generates BANDH if “u8&0xF0” leaves an active bit. Depending on the value in the “u8” format, both BANDL and BANDH may be generated. *2: Assembler generates BORL if result of logical operation “u8&0x0F” leaves an active (set) bit and generates BORH if “u8&0xF0” leaves an active bit. *3: Assembler generates BEORL if result of logical operation “u8&0x0F” leaves an active (set) bit and generates BEORH if “u8&0xF0” leaves an active bit. • Add/subtract operation instructions (10 instructions) Mnemonic Type OP Cycle N Z V C MUL MULU MULH MULUH Rj, Ri Rj, Ri Rj, Ri Rj, Ri A A A A AF AB BF BB 5 5 3 3 CCC CCC CC– CC– DIVOS DIVOU DIV1 DIV2 DIV3 DIV4S * DIV Ri Ri Ri Ri E E E E E E 97 – 4 97 – 5 97 – 6 97 – 7 9F – 6 9F – 7 Ri *1 1 1 d 1 1 1 – – – – – – – – * DIVU Ri *2 – – – C C – – C – – – – – – – – – – – Operation Rj × Ri → MDH, MDL Rj × Ri → MDH, MDL Rj × Ri → MDL Rj × Ri → MDL – – C C – – C MDL/Ri → MDL, MDL%Ri → MDH – C – C MDL/Ri → MDL, MDL%Ri → MDH Remarks 32-bit × 32-bit = 64-bit Unsigned 16-bit × 16-bit = 32-bit Unsigned Step calculation 32-bit/32-bit = 32-bit Unsigned *1: DIVOS, DIV1 × 32, DIV2, DIV3 and DIV4S are generated. A total instruction code length of 72 bytes. *2: DIVOU and DIV1 × 32 are generated. A total instruction code length of 66 bytes. 109 MB91133/MB91F133 • Shift arithmetic instructions (9 instructions) Mnemonic Type OP Cycle N Z V C Operation Remarks LSL * LSL LSL LSL2 Rj, Ri #u5, Ri #u4, Ri #u4, Ri A C’ C C B6 B4 B4 B5 1 1 1 1 CC CC CC CC – – – – C C C C Ri<<Rj → Ri Ri<<u5 → Ri Ri<<u4 → Ri Ri<<(u4 + 16) → Ri Logical shift LSR * LSR LSR LSR2 Rj, Ri #u5, Ri #u4, Ri #u4, Ri A C’ C C B2 B0 B0 B1 1 1 1 1 CC CC CC CC – – – – C C C C Ri>>Rj → Ri Ri>>u5 → Ri Ri>>u4 → Ri Ri>>(u4 + 16) → Ri Logical shift ASR * ASR ASR ASR2 Rj, Ri #u5, Ri #u4, Ri #u4, Ri A C’ C C BA B8 B8 B9 1 1 1 1 CC CC CC CC – – – – C C C C Ri>>Rj → Ri Ri>>u5 → Ri Ri>>u4 → Ri Ri>>(u4 + 16) → Ri Logical shift • Immediate value data transfer instruction (immediate value set/16-bit/32-bit immediate value transfer instruction) (3 instructions) Mnemonic Type OP Cycle N Z V C Operation LDI: 32 LDI: 20 #i32, Ri #i20, Ri E C 9F – 8 9B 3 2 – – – – i32 → Ri – – – – i20 → Ri LDI: 8 * LDI #i8, Ri # {i8 | i20 | i32}, Ri *1 B C0 1 – – – – i8 → Ri {i8 | i20 | i32} → Ri Remarks Upper 12 bits are zeroextended Upper 24 bits are zeroextended *1: If an immediate value is given in absolute, assembler automatically makes i8, i20 or i32 selection. If an immediate value contains relative value or external reference, assembler selects i32. • Memory load instructions (13 instructions) Mnemonic Type OP Cycle N Z V C Operation (Rj) → Ri (R13 + Rj) → Ri (R14 + disp10) → Ri (R15 + udisp6) → Ri (R15) → Ri, R15 + = 4 (R15) → Rs, R15 + = 4 Remarks LD LD LD LD LD LD @Rj, Ri @(R13, Rj), Ri @(R14, disp10), Ri @(R15, udisp6), Ri @R15 +, Ri @R15 +, Rs A A B C E E 04 00 20 03 07 – 0 07 – 8 b b b b b b LD @R15 +, PS E 07 – 9 1+a+b LDUH LDUH LDUH @Rj, Ri @(R13, Rj), Ri @(R14, disp9), Ri A A B 05 01 40 b b b – – – – (Rj) → Ri – – – – (R13 + Rj) → Ri – – – – (R14 + disp9) → Ri Zero-extension Zero-extension Zero-extension LDUB LDUB LDUB @Rj, Ri @(R13, Rj), Ri @(R14, disp8), Ri A A B 06 02 60 b b b – – – – (Rj) → Ri – – – – (R13 + Rj) → Ri – – – – (R14 + disp8) → Ri Zero-extension Zero-extension Zero-extension – – – – – – – – – – – – – – – – – – – – – – – – C C C C (R15) → PS, R15 + = 4 Rs: Special-purpose register Note: The relations between o8 field of TYPE-B and u4 field of TYPE-C in the instruction format and assembler description from disp8 to disp10 are as follows: disp8 → o8 = disp8:Each disp is a code extension. disp9 → o8 = disp9>>1:Each disp is a code extension. disp10 → o8 = disp10>>2:Each disp is a code extension. udisp6 → u4 = udisp6>>2:udisp4 is a 0 extension. 110 MB91133/MB91F133 • Memory store instructions (13 instructions) Mnemonic Type OP Cycle N Z V C – – – – – – – – – – – – – – – – – – Operation Ri → (Rj) Ri → (R13 + Rj) Ri → (R14 + disp10) Ri → (R15 + usidp6) R15 – = 4, Ri → (R15) R15 – = 4, Rs → (R15) Remarks ST ST ST ST ST ST Ri, @Rj Ri, @(R13, Rj) Ri, @(R14, disp10) Ri, @(R15, udisp6) Ri, @–R15 Rs, @–R15 A A B C E E 14 10 30 13 17 – 0 17 – 8 a a a a a a – – – – – – Word Word Word ST PS, @–R15 E 17 – 9 a – – – – R15 – = 4, PS → (R15) STH STH STH Ri, @Rj Ri, @(R13, Rj) Ri, @(R14, disp9) A A B 15 11 50 a a a – – – – Ri → (Rj) – – – – Ri → (R13 + Rj) – – – – Ri → (R14 + disp9) Half word Half word Half word STB STB STB Ri, @Rj Ri, @(R13, Rj) Ri, @(R14, disp8) A A B 16 12 70 a a a – – – – Ri → (Rj) – – – – Ri → (R13 + Rj) – – – – Ri → (R14 + disp8) Byte Byte Byte Rs: Special-purpose register Note: The relations between o8 field of TYPE-B and u4 field of TYPE-C in the instruction format and assembler description from disp8 to disp10 are as follows: disp8 → o8 = disp8:Each disp is a code extension. disp9 → o8 = disp9>>1:Each disp is a code extension. disp10 → o8 = disp10>>2:Each disp is a code extension. udisp6 → u4 = udisp6>>2:udisp4 is a 0 extension. • Transfer instructions between registers/special-purpose registers transfer instructions (5 instructions) Mnemonic Type OP Cycle N Z V C Operation MOV Rj, Ri A 8B 1 – – – – Rj → Ri MOV Rs, Ri A B7 1 – – – – Rs → Ri MOV Ri, Rs A B3 1 – – – – Ri → Rs MOV MOV PS, Ri Ri, PS E E 17 – 1 07 – 1 1 c – – – – PS → Ri C C C C Ri → PS Remarks Transfer between general-purpose registers Rs: Special-purpose register Rs: Special-purpose register 111 MB91133/MB91F133 • Non-delay normal branch instructions (23 instructions) Mnemonic Type OP Cycle N Z V C Operation JMP @Ri E 97 – 0 2 – – – – Ri → PC CALL label12 F D0 2 CALL @Ri E 97 – 1 2 – – – – PC + 2 → RP, PC + 2 + rel11 × 2 → PC – – – – PC + 2 → RP, Ri → PC E 97 – 2 2 – – – – RP → PC D 1F 3+3a RET INT #u8 Remarks Return – – – – SSP – = 4, PS → (SSP), SSP – = 4, PC + 2 → (SSP), 0 → I flag, 0 → S flag, (TBR + 3FC – u8 × 4) → PC INTE E 9F – 3 3 + 3a – – – – SSP – = 4, PS → (SSP), For emulator SSP – = 4, PC + 2 → (SSP), 0 → S flag, (TBR + 3D8 – u8 × 4) → PC RETI E 97 – 3 2 + 2a C C C C (R15) → PC, R15 – = 4, (R15) → PS, R15 – = 4 BNO BRA BEQ BNE BC BNC BN BP BV BNV BLT BGE BLE BGT BLS BHI label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 D D D D D D D D D D D D D D D D E1 E0 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF 1 2 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 2/1 – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – Non-branch PC + 2 + rel8 × 2 → PC PCif Z = = 1 PCif Z = = 0 PCif C = = 1 PCif C = = 0 PCif N = = 1 PCif N = = 0 PCif V = = 1 PCif V = = 0 PCif V xor N = = 1 PCif V xor N = = 0 PCif (V xor N) or Z = = 1 PCif (V xor N) or Z = = 0 PCif C or Z = = 1 PCif C or Z = = 0 Notes: • “2/1” in cycle sections indicates that 2 cycles are needed for branch and 1 cycle needed for non-branch. • The relations between rel8 field of TYPE-D and rel11 field of TYPE-F in the instruction format and assembler discription label9 and label12 are as follows. label9 → rel8 = (label9 – PC – 2)/2 label12 → rel11 = (label12 – PC – 2)/2 • RETI must be operated while S flag = 0. 112 MB91133/MB91F133 • Branch instructions with delays (20 instructions) Mnemonic Type OP Cycle N Z V C Operation JMP:D @Ri E 9F – 0 1 – – – – Ri → PC CALL:D label12 F D8 1 CALL:D @Ri E 9F – 1 1 – – – – PC + 4 → RP, PC + 2 + rel11 × 2 → PC – – – – PC + 4 → RP, Ri → PC E 9F – 2 1 – – – – RP → PC D D D D D D D D D D D D D D D D F1 F0 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 – – – – – – – – – – – – – – – – RET:D BNO:D BRA:D BEQ:D BNE:D BC:D BNC:D BN:D BP:D BV:D BNV:D BLT:D BGE:D BLE:D BGT:D BLS:D BHI:D label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 label9 – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – Remarks Return Non-branch PC + 2 + rel8 × 2 → PC PCif Z = = 1 PCif Z = = 0 PCif C = = 1 PCif C = = 0 PCif N = = 1 PCif N = = 0 PCif V = = 1 PCif V = = 0 PCif V xor N = = 1 PCif V xor N = = 0 PCif (V xor N) or Z = = 1 PCif (V xor N) or Z = = 0 PCif C or Z = = 1 PCif C or Z = = 0 Notes: • The relations between rel8 field of TYPE-D and rel11 field of TYPE-F in the instruction format and assembler discription label9 and label12 are as follows. label9 → rel8 = (label9 – PC – 2)/2 label12 → rel11 = (label12 – PC – 2)/2 • Delayed branch operation always executes next instruction (delay slot) before making a branch. • Instructions allowed to be stored in the delay slot must meet one of the following conditions. If the other instruction is stored, this device may operate other operation than defined. The instruction described “1” in the other cycle column than branch instruction. The instruction described “a”, “b”, “c” or “d” in the cycle column. 113 MB91133/MB91F133 • Direct addressing instructions Mnemonic Type OP Cycle N Z V C Operation Remarks DMOV DMOV DMOV DMOV DMOV DMOV @dir10, R13, @dir10, @R13+, @dir10, @R15+, R13 @dir10 @R13+ @dir10 @–R15 @dir10 D D D D D D 08 18 0C 1C 0B 1B b a 2a 2a 2a 2a – – – – – – – – – – – – – – – – – – – – – – – – (dir10) → R13 R13 → (dir10) (dir10) → (R13), R13 + = 4 (R13) → (dir10), R13 + = 4 R15 – = 4, (dir10) → (R15) (R15) → (dir10), R15 + = 4 Word Word Word Word Word Word DMOVH DMOVH DMOVH DMOVH @dir9, R13, @dir9, @R13+, R13 @dir9 @R13+ @dir9 D D D D 09 19 0D 1D b a 2a 2a – – – – – – – – – – – – – – – – (dir9) → R13 R13 → (dir9) (dir9) → (R13), R13 + = 2 (R13) → (dir9), R13 + = 2 Half word Half word Half word Half word DMOVB DMOVB DMOVB DMOVB @dir8, R13, @dir8, @R13+, R13 @dir8 @R13+ @dir8 D D D D 0A 1A 0E 1E b a 2a 2a – – – – – – – – – – – – – – – – (dir8) → R13 R13 → (dir8) (dir8) → (R13), R13 + + (R13) → (dir8), R13 + + Byte Byte Byte Byte Note: The relations between the dir field of TYPE-D in the instruction format and the assembler description from disp8 to disp10 are as follows: disp8 → dir + disp8:Each disp is a code extension disp9 → dir = disp9>>1:Each disp is a code extension disp10 → dir = disp10>>2:Each disp is a code extension • Resource instructions (2 instructions) Mnemonic Type OP Cycle N Z V C Operation Remarks LDRES @Ri+, #u4 C BC a – – – – (Ri) → u4 resource Ri + = 4 u4: Channel number STRES #u4, @Ri+ C BD a – – – – u4 resource → (Ri) Ri + = 4 u4: Channel number • Co-processor instructions (4 instructions) Mnemonic COPOP COPLD COPST COPSV 114 #u4, #CC, CRj, CRi #u4, #CC, Rj, CRi #u4, #CC, CRj, Ri #u4, #CC, CRj, Ri Type OP E E E E 9F – C 9F – D 9F – E 9F – F Cycle N Z V C 2+a 1 + 2a 1 + 2a 1 + 2a – – – – – – – – – – – – – – – – Operation Calculation Rj → CRi CRj → Ri CRj → Ri Remarks No error traps MB91133/MB91F133 • Other instructions (16 instructions) Type OP NOP E 9F – A 1 – – – – No changes ANDCCR #u8 ORCCR #u8 D D 83 93 c c C C C C CCR and u8 → CCR C C C C CCR or u8 → CCR STILM #u8 D 87 1 – – – – i8 → ILM Set ILM immediate value ADDSP #s10 D A3 1 – – – – R15 + = s10 ADD SP instruction EXTSB EXTUB EXTSH EXTUH Ri Ri Ri Ri E E E E 97 – 8 97 – 9 97 – A 97 – B 1 1 1 1 – – – – LDM0 (reglist) D 8C *4 Load-multi R0 to R7 LDM1 (reglist) D 8D *4 * LDM (reglist) – – – – (R15) → reglist, R15 increment – – – – (R15) → reglist, R15 increment – – – – (R15 + +) → reglist, STM0 (reglist) D 8E * Store-multi R0 to R7 STM1 (reglist) D 8F *6 * STM2 (reglist) *5 – – – – R15 decrement, reglist → (R15) – – – – R15 decrement, reglist → (R15) – – – – reglist → (R15 + +) ENTER #u10 *2 Mnemonic LEAVE XCHB @Rj, Ri *1 *3 Cycle N Z V C – 6 – – – – – – – – – – – – – Operation Remarks Sign extension 8 → 32 bits Zero extension 8 → 32 bits Sign extension 16 → 32 bits Zero extension 16 → 32 bits Load-multi R8 to R15 Load-multi R0 to R15 Store-multi R8 to R15 Store-multi R0 to R15 D 0F 1+a – – – – R14 → (R15 – 4), R15 – 4 → R14, R15 – u10 → R15 Entrance processing of function E 9F – 9 b – – – – R14 + 4 → R15, (R15 – 4) → R14 Exit processing of function A 8A 2a – – – – Ri → TEMP, (Rj) → Ri, TEMP → (Rj) For SEMAFO management Byte data *1: In the ADDSP instruction, the reference between u8 of TYPE-D in the instruction format and assembler description s10 is as follows. s10 → s8 = s10>>2 *2: In the ENTER instruction, the reference between i8 of TYPE-C in the instruction format and assembler description u10 is as follows. u10 → u8 = u10>>2 *3: If either of R0 to R7 is specified in reglist, assembler generates LDM0. If either of R8 to R15 is specified, assembler generates LDM1. Both LDM0 and LDM1 may be generated. *4: The number of cycles needed for execution of LDM0 (reglist) and LDM1 (reglist) is given by the following calculation; a × (n – 1) + b + 1 when “n” is number of registers specified. *5: If either of R0 to R7 is specified in reglist, assembler generates STM0. If either of R8 to R15 is specified, assembler generates STM1. Both STM0 and STM1 may be generated. *6: The number of cycles needed for execution of STM0 (reglist) and STM1 (reglist) is given by the following calculation; a × n + 1 when “n” is number of registers specified. 115 MB91133/MB91F133 • 20-bit normal branch macro instructions Mnemonic Operation Remarks * CALL20 label20, Ri Next instruction address → RP, label20 → PC Ri: Temporary register *1 * BRA20 * BEQ20 * BNE20 * BC20 * BNC20 * BN20 * BP20 * BV20 * BNV20 * BLT20 * BGE20 * BLE20 * BGT20 * BLS20 * BHI20 label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20 → PC if (Z = = 1) then label20 → PC ifs/Z = = 0 ifs/C = = 1 ifs/C = = 0 ifs/N = = 1 ifs/N = = 0 ifs/V = = 1 ifs/V = = 0 ifs/V xor N = = 1 ifs/V xor N = = 0 ifs/(V xor N) or Z = = 1 ifs/(V xor N) or Z = = 0 ifs/C or Z = = 1 ifs/C or Z = = 0 Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register *2 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *1: CALL20 (1) If label20 – PC – 2 is between –0x800 and +0x7fe, instruction is generated as follows; CALL label12 (2) If label20 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:20 #label20, Ri CALL @Ri *2: BRA20 (1) If label20 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; BRA label9 (2) If label20 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:20 #label20, Ri JMP @Ri *3: Bcc20 (BEQ20 to BHI20) (1) If label20 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; Bcc label9 (2) If label20 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; Bxcc false xcc is a revolt condition of cc LDI:20 #label20, Ri JMP @Ri false: 116 MB91133/MB91F133 • 20-bit delayed branch macro instructions Mnemonic Operation Remarks * CALL20:D label20, Ri Next instruction address + 2 → RP, label20 → PC Ri: Temporary register *1 * BRA20:D * BEQ20:D * BNE20:D * BC20:D * BNC20:D * BN20:D * BP20:D * BV20:D * BNV20:D * BLT20:D * BGE20:D * BLE20:D * BGT20:D * BLS20:D * BHI20:D label20 → PC if (Z = = 1) then label20 → PC ifs/Z = = 0 ifs/C = = 1 ifs/C = = 0 ifs/N = = 1 ifs/N = = 0 ifs/V = = 1 ifs/V = = 0 ifs/V xor N = = 1 ifs/V xor N = = 0 ifs/(V xor N) or Z = = 1 ifs/(V xor N) or Z = = 0 ifs/C or Z = = 1 ifs/C or Z = = 0 Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register *2 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri label20, Ri *1: CALL20:D (1) If label20 – PC – 2 is between –0x800 and +0x7fe, instruction is generated as follows; CALL:D label12 (2) If label20 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:20 #label20, Ri CALL:D @Ri *2: BRA20:D (1) If label20 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; BRA:D label9 (2) If label20 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:20 #label20, Ri JMP:D @Ri *3: Bcc20:D (BEQ20:D to BHI20:D) (1) If label20 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; Bcc:D label9 (2) If label20 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; Bxcc false xcc is a revolt condition of cc LDI:20 #label20, Ri JMP:D @Ri false: 117 MB91133/MB91F133 • 32-bit normal macro branch instructions Mnemonic Operation Remarks * CALL32 label32, Ri Next instruction address → RP, label32 → PC Ri: Temporary register *1 * BRA32 * BEQ32 * BNE32 * BC32 * BNC32 * BN32 * BP32 * BV32 * BNV32 * BLT32 * BGE32 * BLE32 * BGT32 * BLS32 * BHI32 label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32 → PC if (Z = = 1) then label32 → PC ifs/Z = = 0 ifs/C = = 1 ifs/C = = 0 ifs/N = = 1 ifs/N = = 0 ifs/V = = 1 ifs/V = = 0 ifs/V xor N = = 1 ifs/V xor N = = 0 ifs/(V xor N) or Z = = 1 ifs/(V xor N) or Z = = 0 ifs/C or Z = = 1 ifs/C or Z = = 0 Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register *2 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *1: CALL32 (1) If label32 – PC – 2 is between –0x800 and +0x7fe, instruction is generated as follows; CALL label12 (2) If label32 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:32 #label32, Ri CALL @Ri *2: BRA32 (1) If label32 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; BRA label9 (2) If label32 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:32 #label32, Ri JMP @Ri *3: Bcc32 (BEQ32 to BHI32) (1) If label32 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; Bcc label9 (2) If label32 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; Bxcc false xcc is a revolt condition of cc LDI:32 #label32, Ri JMP @Ri false: 118 MB91133/MB91F133 • 32-bit delayed macro branch instructions Mnemonic Operation Remarks * CALL32:D label32, Ri Next instruction address + 2 → RP, label32 → PC Ri: Temporary register *1 * BRA32:D * BEQ32:D * BNE32:D * BC32:D * BNC32:D * BN32:D * BP32:D * BV32:D * BNV32:D * BLT32:D * BGE32:D * BLE32:D * BGT32:D * BLS32:D * BHI32:D label32 → PC if (Z = = 1) then label32 → PC ifs/Z = = 0 ifs/C = = 1 ifs/C = = 0 ifs/N = = 1 ifs/N = = 0 ifs/V = = 1 ifs/V = = 0 ifs/V xor N = = 1 ifs/V xor N = = 0 ifs/(V xor N) or Z = = 1 ifs/(V xor N) or Z = = 0 ifs/C or Z = = 1 ifs/C or Z = = 0 Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register Ri: Temporary register *2 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 *3 label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri label32, Ri *1: CALL32:D (1) If label32 – PC – 2 is between –0x800 and +0x7fe, instruction is generated as follows; CALL:D label12 (2) If label32 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:32 #label32, Ri CALL:D @Ri *2: BRA32:D (1) If label32 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; BRA:D label9 (2) If label32 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; LDI:32 #label32, Ri JMP:D @Ri *3: Bcc32:D (BEQ32:D to BHI32:D) (1) If label32 – PC – 2 is between –0x100 and +0xfe, instruction is generated as follows; Bcc:D label9 (2) If label32 – PC – 2 is outside of the range given in (1) or includes external reference symbol, instruction is generated as follows; Bxcc false xcc is a revolt condition of cc LDI:32 #label32, Ri JMP:D @Ri false: 119 MB91133/MB91F133 ■ ORDERING INFORMATION Part number 120 Package MB91133PMT2-XXX 144-pin plastic LQFP (FPT-144P-M08) MB91133PBT-XXX 144-pin plastic FBGA (BGA-144P-M01) MB91F133PMT2 144-pin plastic LQFP (FPT-144P-M08) MB91F133PBT 144-pin plastic FBGA (BGA-144P-M01) MB91FV130CR-ES 299-pin ceramic PGA (PGA-299) Remarks MB91133/MB91F133 ■ PACKAGE DIMENSIONS 144-pin plastic FBGA (BGA-144P-M01) 12.00±0.10(.472±.004)SQ Note) Corner shape may differ from the diagram. +0.20 +.008 1.25 –0.10 .049 –.004 (Mounting height) 0.38±0.10(.015±.004) (Stand off) 10.40(.409)REF 0.80(.031)TYP 14 13 12 11 10 9 8 7 6 5 0.10(.004) 4 INDEX 3 2 1 P N M L K J H G F E D C B A C0.80(.031) C 144-Ø0.45±0.10 (144-Ø.018±.004) 0.08(.003) M 1998 FUJITSU LIMITED B144001S-2C-2 Dimensions in mm (inches) 121 MB91133/MB91F133 144-pin plastic LQFP (FPT-144P-M08) 1.70(.67)MAX 22.00±0.30(.866±.012)SQ 20.00±0.10(.787±.004)SQ 108 0(0)MIN (STAND OFF) 73 109 72 17.50 (.686) REF 21.00 (.827) NOM Details of "A" part 0.15(.006) 0.15(.006) INDEX 0.15(.006)MAX 37 144 0.40(.016)MAX "A" LEAD No. 36 1 0.50(.0197)TYP 0.20±0.10 (.008±.004) 0.08(.003) Details of "B" part M 0.15±0.05 (.006±.002) 0 0.10(.004) C 10˚ 0.50±0.20(.020±.008) "B" 1995 FUJITSU LIMITED F144019S-1C-2 Dimensions in mm (inches) 122 MB91133/MB91F133 FUJITSU LIMITED For further information please contact: Japan FUJITSU LIMITED Corporate Global Business Support Division Electronic Devices Shinjuku Dai-Ichi Seimei Bldg. 7-1, Nishishinjuku 2-chome, Shinjuku-ku, Tokyo 163-0721, Japan Tel: +81-3-5322-3347 Fax: +81-3-5322-3386 http://edevice.fujitsu.com/ North and South America FUJITSU MICROELECTRONICS, INC. 3545 North First Street, San Jose, CA 95134-1804, U.S.A. Tel: +1-408-922-9000 Fax: +1-408-922-9179 Customer Response Center Mon. - Fri.: 7 am - 5 pm (PST) Tel: +1-800-866-8608 Fax: +1-408-922-9179 http://www.fujitsumicro.com/ Europe FUJITSU MICROELECTRONICS EUROPE GmbH Am Siebenstein 6-10, D-63303 Dreieich-Buchschlag, Germany Tel: +49-6103-690-0 Fax: +49-6103-690-122 http://www.fujitsu-fme.com/ Asia Pacific FUJITSU MICROELECTRONICS ASIA PTE. LTD. #05-08, 151 Lorong Chuan, New Tech Park, Singapore 556741 Tel: +65-281-0770 Fax: +65-281-0220 http://www.fmap.com.sg/ Korea FUJITSU MICROELECTRONICS KOREA LTD. 1702 KOSMO TOWER, 1002 Daechi-Dong, Kangnam-Gu,Seoul 135-280 Korea Tel: +82-2-3484-7100 Fax: +82-2-3484-7111 F0101 FUJITSU LIMITED Printed in Japan 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 and circuit diagrams in this document are presented as examples of semiconductor device applications, and are not intended to be incorporated in devices for actual use. Also, FUJITSU is unable to assume responsibility for infringement of any patent rights or other rights of third parties arising from the use of this information or circuit diagrams. The contents of this document may not be reproduced or copied without the permission of FUJITSU LIMITED. FUJITSU semiconductor devices are intended for use in standard applications (computers, office automation and other office equipments, industrial, communications, and measurement equipments, personal or household devices, etc.). CAUTION: Customers considering the use of our products in special applications where failure or abnormal operation may directly affect human lives or cause physical injury or property damage, or where extremely high levels of reliability are demanded (such as aerospace systems, atomic energy controls, sea floor repeaters, vehicle operating controls, medical devices for life support, etc.) are requested to consult with FUJITSU sales representatives before such use. The company will not be responsible for damages arising from such use without prior approval. Any semiconductor devices have inherently a certain rate 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 Control Law of Japan, the prior authorization by Japanese government should be required for export of those products from Japan.