M37905M4C MITSUBISHI | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 102
Technical content
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS
DESCRIPTION
These are single-chip 16-bit microcomputers designed with high-per- formance CMOS silicon gate technology, being packaged in 64-pin plastic molded QFP or shrink plastic molded SDIP. These microcom- puters support the 7900 Series instruction set, which are enhanced and expanded instruction set and are upper-compatible with the 7700/7751 Series instruction set. The CPU of these microcomputers is a 16-bit parallel processor that can also be switched to perform 8-bit parallel processing. Also, the bus interface unit of these microcomputers enhances the memory access efficiency to execute instructions fast. Therefore, these mi- crocomputers are suitable for office, business, and industrial equip- ment controller that require high-speed processing of large data. Also, they are suitable for motor-control equipment since each of them includes the motor control circuit. DISTINCTIVE FEATURES
- Memory [M37905M4C-XXXFP, M37905M4C-XXXSP] [M37905M6C-XXXFP, M37905M6C-XXXSP] [M37905M8C-XXXFP, M37905M8C-XXXSP]
- Instruction execution time (Three-phase motor drive waveform and Pulse motor drive wave- form output are available.)
- 12-bit watchdog timer
- Programmable input/output (ports P1, P2, P4, P5, P6, P7, P8) .. 50 APPLICATION Control devices for office equipment such as copiers and facsimiles Control devices for industrial equipment such as communication and measuring instruments Control devices for equipment, requiring motor control, such as inverter air conditioners and general-purpose inverters P73/AN3 P72/AN2 P71/AN1 P65/TA2IN/U/RTP11 P64/TA2OUT /V/RTP10 P63/TA1IN/W/RTP0 3 P62/TA1OUT /U/RTP02 P61/TA0IN/V/RTP01 P60/TA0OUT /W/RTP0 0 P57/INT7/TB2IN/IDU P56/INT6/TB1IN/IDV P55/INT5/TB0IN/IDW P6OUT CUT /INT4 P70/AN0 P67/TA3IN/RTP13 P66/TA3OUT /RTP12 MD0 RESET XIN XOUT VCONT VSS P53/INT3/RTPTRG0 P52/INT2/RTPTRG1 P51/INT1 P4OUT CUT /INT0 P47/TA8IN/RTP33 P46/TA8OUT /RTP32 P45/TA7IN/RTP31 P44/TA7OUT /RTP30 P43/TA6IN/RTP23 P42/TA6OUT /RTP22 P23/TA9IN P22/TA9OUT P21/TA4IN P20/TA4OUT P17/TxD1 P16/RxD1 P15/CTS1/CLK1 P14/CTS1/RTS1 P13/TxD0 P83/AN11/TXD 2 P82/AN10/RXD 2 P81/AN9/CTS2/CLK2 VCC AV CC VREF AV SS VSS P77/AN7/DA0 P76/AN6 P75/AN5 P74/AN4 P80/AN8/CTS2/RTS2/DA1 M37905M XC-XXXFP P11/CTS0/CLK0 P10/CTS0/RTS0 P41/TA5IN/RTP21 P40/TA5OUT /RTP20 MD1 P27 P26(/TB2IN) P25(/TB1IN) P24(/TB0IN) P12/RXD 0 Note Note M37905MxC-XXXFP PIN CONFIGURATION (TOP VIEW) Outline 64P6N-A Note : Allocation of pins TB0IN to TB2IN can be switched by software.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS M37905MxC-XXXSP PIN CONFIGURATION (TOP VIEW) Outline 64P4B P75/AN5 P76/AN6 P77/AN7/DA 0 P80/AN8/CTS 2/RTS2/DA 1 P82/AN10/RxD2 P81/AN9/CTS2/CLK2 P10/CTS0/RTS0 P11/CTS0/CLK0 P14/CTS1/RTS1 P20/TA4OUT P21/TA4IN P22/TA9OUT P23/TA9IN P25(/TB1IN) P26(/TB2IN) P27 MD1 VSS P24(/TB0IN) P15/CTS1/CLK1 P16/RxD1 AV CC P12/RxD0 P13/TxD0 P17/TxD1 VREF P65/TA2IN/U/RTP11 P64/TA2OUT /V/RTP10 P63/TA1IN/W/RTP0 3 M37905MXC-XXXSP P62/TA1OUT /U/RTP02 P61/TA0IN/V/RTP01 P60/TA0OUT /W/RTP0 0 P57/INT7/TB2IN/IDU P56/INT6/TB1IN/IDV P55/INT5/TB0IN/IDW MD0 VCONT RESET P6OUT CUT /INT4 VSS P40/TA5OUT /RTP20 P41/TA5IN/RTP21 P42/TA6OUT /RTP22 P44/TA7OUT /RTP30 P45/TA7IN/RTP31 P46/TA8OUT /RTP32 P43/TA6IN/RTP23 P83/AN11/TxD2 P73/AN3 P74/AN4 P71/AN1 P72/AN2 P70/AN0 P67/TA3IN/RTP13 P66/TA3OUT /RTP12 XIN XOUT P53/INT3/RTPTRG0 P52/INT2/RTPTRG1 VCC AV SS P47/TA8IN/RTP33 P4OUT CUT /INT0 P51/INT1 Note Note Note : Allocation of pins TB0IN to TB2IN can be switched by software. Outline 64P4B
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS BLOCK DIAGRAM Central Processing Unit (CPU) Bus Interface Unit(BIU) RESET MD1 V ReferenceVoltage Input Instruction Register (8) REF (0V)AV SS AV CC V CC X Clock input Clock Generating Circuit Reset input Clock output IN X OUT Address Bus Data Bus (Odd) Data Bus (Even) A-D Converter (12) UART1 (9)UART0 (9) Watchdog TimerTimer TB1 (16)Timer TB2 (16)Timer TB0 (16) D-A
1 Converter (8)
Timer TA1 (16)Timer TA2 (16)Timer TA3 (16)Timer TA4 (16)Timer TA0 (16) RAM(Note) P6(8) Input/Output P6 P5(6) Input/Output P5 P7(8) Input/Output P7 P4(8) Input/Output P4 D-A
0 Converter (8)
P8(4) Input/Output P8 MD0 (0V)V SS P4OUT CUT ROM(Note) V CONT Timer TA6 (16)Timer TA7 (16)Timer TA8 (16)Timer TA9 (16)Timer TA5 (16) P6OUT CUT P2(8) Input/Output P2 P1(8) Input/Output P1 UART2 (9) M37905M4C-XXXFP, M37905M4C-XXXSPM37905M6C-XXXFP, M37905M6C-XXXSPM37905M8C-XXXFP, M37905M8C-XXXSP ROM 32 Kbytes 48 Kbytes 60 Kbytes RAM 1 Kbyte 3 Kbytes 3 Kbytes Note: Data Buffer DQ0 (8) Data Buffer DQ1 (8) Data Buffer DQ2 (8) Data Buffer DQ3 (8) Instruction Queue Buffer Q0 (8) Instruction Queue Buffer Q1 (8) Instruction Queue Buffer Q2 (8) Instruction Queue Buffer Q3 (8) Instruction Queue Buffer Q4 (8) Instruction Queue Buffer Q5 (8) Instruction Queue Buffer Q6 (8) Instruction Queue Buffer Q7 (8) Instruction Queue Buffer Q8 (8) Instruction Queue Buffer Q9 (8) Program Address Register PA (24) Data Address Register DA (24) Incrementer (24) Incrementer/Decrementer (24) Input Buffer Register IB (16) Program Counter PC (16) Program Bank Register PG (8) Processor Status Register PS (11) Direct Page Register DPR0 (16) Direct Page Register DPR1 (16) Direct Page Register DPR2 (16) Direct Page Register DPR3 (16) Stack Pointer S (16) Index Register Y (16) Index Register X (16) Accumulator B (16) Accumulator A (16) Arithmetic Logic Unit (16) Data Bank Register DT (8)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Memory expansion Operating ambient temperature range Device structure Package Ports’ input/output characteristics Power supply voltage Power dissipation Number of basic machine instructions Instruction execution time External clock input frequency f(X IN) System clock frequency f(fsys) Memory size Programmable input/output ports Multi-functional timers Serial I/O A-D converter D-A converter Dead-time timer Watchdog timer Interrupts Clock generating circuit PLL frequency multiplier ROM RAM P1, P2, P4, P6, P7 TA0–TA9 TB0–TB2 UART0, UART1, and UART2 FUNCTIONS FunctionsParameter nput/Output withstand voltage utput current Maskable interrups Non-maskable interrups 203 50 ns (the fastest instruction at f(fsys) = 20 MHz) 20 MHz (Max.) 20 MHz (Max.) (Note 1) (Note 1) 8-bit ✕ 5 6-bit ✕ 1 4-bit ✕ 1 16-bit ✕ 10 16-bit ✕ 3 (UART or Clock synchronous serial I/O) ✕ 3 10-bit successive approximation method ✕ 1 (12 channels) 8-bit ✕ 2 8-bit ✕ 3 12-bit ✕ 1 8 external sources, 20 internal sources. Each interrupt can be set to a priority level within the range of 0–7 by software. 3 internal sources Incorporated (externally connected to a ceramic resonator or quartz-crystal resonator). The following multiplication ratios are available: ✕ 2, ✕3, ✕4. 5 V±0.5 V 125 mW (at f(fsys) = 20 MHz, Typ, ; the PLL frequency multiplier is inactive.) 5 V 5 mA Not available (single-chip mode only). –20 to 85 °C CMOS high-performance silicon gate process (Note 2) 2: Packages M37905M4C-XXXFP , M37905M6C-XXXFP, M37905M8C-XXXFP 64-pin plastic molded QFP (64P6N-A) M37905M4C-XXXSP , M37905M6C-XXXSP, M37905M8C-XXXSP 64-pin shrink plastic moldeds DIP (64P4B) M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP ROM RAM
32 Kbytes
48 Kbytes
60 Kbytes
Notes 1:
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Vcc, Vss MD0 MD1 RESET X IN XOUT VCONT AVcc, AVss VREF P10–P17 P20–P27 P40–P47 P51–P53, P55–P57 P60–P67 P70–P77 P80–P83 P4OUT CUT P6OUT CUT Power supply input MD0 MD1 Reset input Clock input Clock output Filter circuit connection Analog power supply input Reference voltage input I/O port P1 I/O port P2 I/O port P4 I/O port P5 I/O port P6 I/O port P7 I/O port P8 P4OUT CUT input P6OUT CUT input Input Input Input Input Output Input I/O I/O I/O I/O I/O I/O I/O Input Input Apply 5 V±0.5 V to Vcc, and 0 V to Vss. Connect this pin to V SS . Connect this pin to Vss. The microcomputer is reset when “L” level is applies to this pin. These are input and output pins of the internal clock generating circuit. Connect a ceramic resonator or quartz-crystal oscillator between pins X IN and XOUT . When an external clock is used, the clock source should be connected to pin XIN, and pin XOUT should be left open. When using the PLL frequency multiplier, connect this pin to the filter circuit. When not using the PLL frequency multiplier, this pin should be left open. Power supply input pins for the A-D and D-A converters. Connect AVcc to Vcc, and AVss to Vss externally. This is the reference voltage input pin for the A-D and D-A converters. Port P1 is an 8-bit I/O port. This port has an I/O direction register, and each pin can be programmed for input or output. These pins enter the input mode ar reset. These pins also function as I/O pins of UART0, 1. In addition to having the same functions as port P1, these pins function as I/O pins for timers A4 and A9. Also, they can be programmed to function as input pins for tim- ers B0 to B2. In addition to having the same functions as port P1, these pins function as I/O pins for timers A5 to A8. Also, they function as output pins for motor drive waveform. In addition to having the same functions as port P1, these pins function as input pins for INT 1 to INT3 and INT5 to INT7. Also, pins P55 to P57 function as input pins for timers B0 to B2 and as input pins for position data in the three-phase waveform mode; and pins P5 2 and P53 function as trigger-input pins in the pulse output port mode. In addition to having the same functions as port P1, these pins function as I/O pins for timers A0 to A3. Also, they function as motor drive waveform output pins. In addition to having the same functions as port P1, these pins function as input pins for the A-D converter. Also, P77 functions as an output pin for the D-A converter. In addition to having the same functions as port P1, these pins function as input pins for the A-D converter. Also, these pins function as I/O pins for UART2,and pin P80 functions as an output pin for the D-A converter. This pin has the function to forcibly place port P4 pins in the input mode. Also, this pin functions as an input pin for INT0; and this pin is used to input a signal, which forcibly cuts off a motor drive waveform output. This pin has the function to forcibly place port P6 pins in the input mode. Also, this pin functions as an input pin for INT4; and this pin is used to input a signal, which forcibly cuts off a motor drive waveform output. PIN DESCRIPTION FunctionsInput/ OutputNamePin
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 1 (1) Memory map of M37905M4C-XXXFP/SP (Single-chip mode) BASIC FUNCTION BLOCKS These microcomputers contain the following devices in the single chip: ROM, RAM, CPU, bus interface unit, and peripheral devices such as the interrupt control circuit, timers, serial I/O, A-D converter, D-A converter, I/O ports, clock generating circuit, etc. MEMORY Figures 1 (1) through (3) show the memory maps. The address space is 64 Kbytes from addresses 0 16 through FFFF16. This ad- dress space is called “bank 016”. The internal ROM and RAM are allocated as shown in Figures 1 (1) through (3). Addresses FFB4 16 through FFFF16 contain the RESET and the in- terrupt vector addresses, and the interrupt vectors are stored there. For details, refer to the section on interrupts. Allocated to addresses 016 through FF16 are peripheral devices such as I/O ports, A-D converter, D-A converter, serial I/O, timers, interrupt control registers, etc. Figures 2 and 3 show the location of SFRs. INT4 A-D conversion Reserved area Reserved area Address matching detect Reserved area INT5 INT6 INT7 Timer A5 UART1 transmit UART1 receive UART0 transmit UART0 receive Timer B2 Timer B1 Timer B0 Interrupt vector table Timer A4 Timer A3 Timer A2 Timer A1 Timer A0 Watchdog timer BRK instruction Zero divide INT3 INT2 INT1 INT0 Received area RESET DBC 00000016 Bank 016 00FFFF 16 00000016 000C00 16 0000FF16 00FFFE 16 00FFB4 16 Internal RAM 1024 bytes Internal ROM Peripheral devices' control registers 000FFF 16 00100016 000BFF 16 Unused area Unused area007FFF 16 00800016 00FFB4 16 00FFFF 16 Timer A6 Timer A7 Timer A8 Timer A9 UART2 receive UART2 transmit 00000016 0000FF16 Peripheral devices' control registers (See Figures 2 and 3.) 00010016
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 1 (2) Memory map of M37905M6C-XXXFP/SP (Single-chip mode) INT4 A-D conversion Reserved area Reserved area Address matching detect Reserved area INT5 INT6 INT7 Timer A5 UART1 transmit UART1 receive UART0 transmit UART0 receive Timer B2 Timer B1 Timer B0 Interrupt vector table Timer A4 Timer A3 Timer A2 Timer A1 Timer A0 Watchdog timer BRK instruction Zero divide INT3 INT2 INT1 INT0 Reserved area RESET DBC 00000016 Bank 016 00FFFF 16 00000016 00040016 0000FF16 00FFFE 16 00FFB4 16 Internal RAM 3072 bytes Internal ROM Peripheral devices' control registers 000FFF 16 00100016 0003FF16 Unused area Unused area003FFF 16 00400016 00FFB4 16 00FFFF 16 Timer A6 Timer A7 Timer A8 Timer A9 UART2 receive UART2 transmit 00000016 0000FF16 Peripheral devices' control registers (See Figures 2 and 3.) 00010016
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 1 (3) Memory map of M37905M8C-XXXFP/SP (Single-chip mode) INT4 A-D conversion Reserved area Reserved area Address matching detect Reserved area INT5 INT6 INT7 Timer A5 UART1 transmit UART1 receive UART0 transmit UART0 receive Timer B2 Timer B1 Timer B0 Interrupt vector table Timer A4 Timer A3 Timer A2 Timer A1 Timer A0 Watchdog timer BRK instruction Zero divide INT3 Reserved area RESET DBC 00000016 Bank 016 00FFFF 16 00000016 00040016 0000FF16 00FFFE 16 00FFB4 16 Internal RAM 3072 bytes Internal ROM Peripheral devices' control registers 000FFF 16 00100016 0003FF16 Unused area 00FFB4 16 00FFFF 16 Timer A6 Timer A7 Timer A8 Timer A9 UART2 receive UART2 transmit 00000016 0000FF16 Peripheral devices' control registers (See Figures 2 and 3.) 00010016 INT2 INT1 INT0
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 2 Location of SFRs (1) 00000016 00000116 00000216 00000316 00000416 00000516 00000616 00000716 00000816 00000916 00000A16 00000B16 00000C 16 00000D 16 00000E16 00000F16 00001016 00001116 00001216 00001316 00001416 00001516 00001616 00001716 00001816 00001916 00001A16 00001B16 00001C 16 00001D 16 00001E16 00001F16 00002016 00002116 00002216 00002316 00002416 00002516 00002616 00002716 00002816 00002916 00002A16 00002B16 00002C 16 00002D 16 00002E16 00002F16 00003016 00003116 00003216 00003316 00003416 00003516 00003616 00003716 00003816 00003916 00003A16 00003B16 00003C 16 00003D 16 00003E16 00003F16 Port P2 register Reserved area (Note) Port P1 direction register Reserved area (Note) Port P1 register Reserved area (Note) Port P2 direction register Reserved area (Note) Port P4 register Port P5 register Port P4 direction register Port P5 direction register Port P6 register Port P7 register Port P6 direction register Port P7 direction register Port P8 register Port P8 direction register Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) A-D control register 0 A-D control register 1 A-D register 0 A-D register 1 A-D register 2 A-D register 3 UART0 transmit/receive mode register UART0 band rate register (BRG0) UART0 transmit buffer register UART0 transmit/receive control register 0 UART0 transmit/receive control register 1 UART0 receive buffer register UART1 transmit/receive mode register UART1 baud rate register (BRG1) UART1 transmit buffer register UART1 transmit/receive control register 0 UART1 transmit/receive control register 1 UART1 receive buffer register Address (Hexadecimel notation) Address (Hexadecimel notation) 000040 00004116 00004216 00004316 00004416 00004516 00004616 00004716 00004816 00004916 00004A16 00004B16 00004C 16 00004D 16 00004E16 00004F16 00005016 00005116 00005216 00005316 00005416 00005516 00005616 00005716 00005816 00005916 00005A16 00005B16 00005C 16 00005D 16 00005E16 00005F16 00006016 00006116 00006216 00006316 00006416 00006516 00006616 00006716 00006816 00006916 00006A16 00006B16 00006C 16 00006D 16 00006E16 00006F16 00007016 00007116 00007216 00007316 00007416 00007516 00007616 00007716 00007816 00007916 00007A16 00007B16 00007C 16 00007D 16 00007E16 00007F16 Count start register 0 One-shot start register 0 Up-down register 0 Timer A clock division select register Timer A0 register Timer A1 register Timer A2 register Timer A3 register Timer A4 register Timer B0 register Timer B1 register Timer B2 register Timer A1 mode register Timer A0 mode register Timer A2 mode register Timer A3 mode register Timer A4 mode register Timer B0 mode register Timer B1 mode register Timer B2 mode register Processor mode register 0 Processor mode register 1 Watchdog timer register Particular function select register 0 Particular function select register 1 Debug control register 0 INT 3 interrupt control register A-D conversion interrupt control register UART0 transmit interrupt control register UART0 receive interrupt control register UART1 receive interrupt control register Timer A0 interrupt control register Timer A1 interrupt control register Timer A3 interrupt control register Timer A4 interrupt control register Timer B0 interrupt control register Timer B2 interrupt control register INT0 interrupt control register INT1 interrupt control register Watchdog timer frequency select register Debug control register 1 INT4 interrupt control register UART1 transmit interrupt control register Timer A2 interrupt control register Timer B1 interrupt control register INT2 interrupt control register Address comparison register 0 Address comparison register 1 Particular function select register 2 Reserved area (Note) Note: Do not write to this address. A-D register 4 A-D register 5 A-D register 6 A-D register 7 Count start register 1 One-shot start register 1 Reserved area (Note) Reserved area (Note)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 3 Location of SFRs (2) Serial I/O pin control register 0000C0 16 0000C1 16 0000C2 16 0000C3 16 0000C4 16 0000C5 16 0000C6 16 0000C7 16 0000C8 16 0000C9 16 0000CA 16 0000CB 16 0000CC 16 0000CD 16 0000CE 16 0000CF 16 0000D0 16 0000D1 16 0000D2 16 0000D3 16 0000D4 16 0000D5 16 0000D6 16 0000D7 16 0000D8 16 0000D9 16 0000DA 16 0000DB 16 0000DC 16 0000DD 16 0000DE 16 0000DF 16 0000E016 0000E116 0000E216 0000E316 0000E416 0000E516 0000E616 0000E716 0000E816 0000E916 0000EA 16 0000EB 16 0000EC 16 0000ED 16 0000EE 16 0000EF 16 0000F016 0000F116 0000F216 0000F316 0000F416 0000F516 0000F616 0000F716 0000F816 0000F916 0000FA 16 0000FB 16 0000FC 16 0000FD 16 0000FE 16 0000FF16 Up-down register 1 Timer A5 register Timer A6 register Timer A7 register Timer A8 register Timer A9 register Timer A01 register Timer A11 register Timer A21 register Timer A5 mode register Timer A7 mode register Timer A8 mode register Timer A9 mode register Comparator function select register 0 Comparator function select register 1 Comparator result register 0 A-D register 8 A-D register 9 A-D register 10 A-D register 11 Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) UART2 transmit interrupt control register UART2 receive interrupt control register Timer A7 interrupt control register Timer A5 interrupt control register Timer A6 interrupt control register Timer A8 interrupt control register Timer A9 interrupt control register INT7 interrupt control register INT5 interrupt control register INT6 interrupt control register 0000A016 0000A116 0000A216 0000A316 0000A416 0000A516 0000A616 0000A716 0000A816 0000A916 0000AA 16 0000AB 16 0000AC 16 0000AD 16 0000AE 16 0000AF 16 0000B016 0000B116 0000B216 0000B316 0000B416 0000B516 0000B616 0000B716 0000B816 0000B916 0000BA 16 0000BB 16 0000BC 16 0000BD 16 0000BE 16 0000BF 16 Pulse output control register Pulse output data register 0 Pulse output data register 1 Waveform output mode register Three-phase output data register 0 Three-phase output data register 1 UART2 transmit/receive mode register UART2 band rate register (BRG2) UART2 transmit buffer register UART2 transmit/receive control register 0 UART2 transmit/receive control register 1 000080 00008116 00008216 00008316 00008416 00008516 00008616 00008716 00008816 00008916 00008A16 00008B16 00008C 16 00008D 16 00008E16 00008F16 00009016 00009116 00009216 00009316 00009416 00009516 00009616 00009716 00009816 00009916 00009A16 00009B16 00009C 16 00009D 16 00009E16 00009F16 Address (Hexadecimel notation) Address (Hexadecimel notation) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Reserved area (Note) Note: Do not write to this address. Reserved area (Note) D-A control register D-A register 0 D-A register 1 Dead-time timer Position-data-retain function control register Port P2 pin function control register UART2 receive buffer register Reserved area (Note) Reserved area (Note) Clock control register 0 Reserved area (Note) Reserved area (Note) Reserved area (Note) Timer A6 mode register A-D control register 2 Comparator result register 1 Reserved area (Note) External interrupt input read-out register Reserved area (Note)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS CENTRAL PROCESSING UNIT (CPU) The CPU has 13 registers and is shown in Figure 4. Each of these registers is described below. ACCUMULATOR A (A) Accumulator A is the main register of the microcomputer. It consists of 16 bits and the low-order 8 bits can be used separately. Data length flag m determines whether the register is used as 16-bit reg- ister or as 8-bit register. It is used as a 16-bit register when flag m is “0” and as an 8-bit register when flag m is “1”. Flag m is a part of the processor status register (PS) which is described later. Data operations such as calculations, data transfer, input/output, etc., are executed mainly through accumulator A. ACCUMULATOR B (B) Accumulator B has the same functions as accumulator A, but the use of accumulator B requires more instruction bytes and execution cycles than accumulator A. ACCUMULATOR E Accumulator E is a 32-bit register and consists of accumulator A (low-order 16 bits) and accumulator B (high-order 16 bits). It is used for 32-bit data processing. INDEX REGISTER X (X) Index register X consists of 16 bits and the low-order 8 bits can be used separately. Index register length flag x determines whether the register is used as 16-bit register or as 8-bit register. It is used as a 16-bit register when flag x is “0” and as an 8-bit register when flag x is “1”. Flag x is a part of the processor status register (PS) which is described later. In index addressing modes in which register X is used as the index register, the contents of this address are added to obtain the real ad- dress. Index register X functions as a pointer register which indicates an address of data table in instructions MVP , MVN, RMPA (Repeat MultiPly and Accumulate). INDEX REGISTER Y (Y) Index register Y consists of 16 bits and the low-order 8 bits can be used separately. The index register length flag x determines whether the register is used as 16-bit register or as 8-bit register. It is used as a 16-bit register when flag x is “0” and as an 8-bit register when flag x is “1”. Flag x is a part of the processor status register (PS) which is described later. In index addressing modes in which register Y is used as the index register, the contents of this address are added to obtain the real ad- dress. Index register Y functions as a pointer register which indicates an address of data table in instructions MVP , MVN, RMPA (Repeat MultiPly and Accumulate). 15 7 0 15 7 0 15 7 0 15 7 0 15 0 15 0 15 0 15 7 0 00000 IPL2 IPL1 IPL0 NVmxD I ZC DPR0 to DPR3 PC S YH YL XH XL BH BL AH AL Accumulator AAccumulator B Index register X Index register Y Stack pointer S Program counter PC Direct page registers DPR0 to DPR3 Processor status register PS Carry flag Zero flag Interrupt disable flag Decimal mode flag Index register length flag Data length flag Overflow flag Negative flag Processor interrupt priority level IPL PG Program bank register PG Data bank register DTDT 15 7 0 15 7 0 AH ALBH BL Accumulator E 31 0 Fig. 4 Register structure
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS STACK POINTER (S) Stack pointer (S) is a 16-bit register. It is used during a subroutine call or interrupts. It is also used during stack, stack pointer relative, or stack pointer relative indirect indexed Y addressing mode. PROGRAM COUNTER (PC) Program counter (PC) is a 16-bit counter that indicates the low-order 16 bits of the next program memory address to be executed. There is a bus interface unit between the program memory and the CPU, so that the program memory is accessed through bus interface unit. This is described later. PROGRAM BANK REGISTER (PG) Program bank register is an 8-bit register that indicates the high-or- der 8 bits of the next program memory address to be executed. When a carry occurs by incrementing the contents of the program counter, the contents of the program bank register (PG) is increased by 1. Also, when a carry or borrow occurs after adding or subtracting the offset value to or from the contents of the program counter (PC) using the branch instruction, the contents of the program bank regis- ter (PG) is increased or decreased by 1, so that programs can be written without worrying about bank boundaries. DATA BANK REGISTER (DT) Data bank register (DT) is an 8-bit register. With some addressing modes, the data bank register (DT) is used to specify a part of the memory address. The contents of data bank register (DT) is used as the high-order 8 bits of a 24-bit address. Addressing modes that use the data bank register (DT) are direct indirect, direct indexed X indi- rect, direct indirect indexed Y , absolute, absolute bit, absolute in- dexed X, absolute indexed Y, absolute bit relative, and stack pointer relative indirect indexed Y. DIRECT PAGE REGISTERS 0 through 3 (DPR0 through DPR3) The direct page register is a 16-bit register. An addressing mode of which name includes ‘direct’ generates an address of data to be ac- cessed, regarding the contents of this register as the base address. The 7900 Series has been expanded direct page registers up to 4 (DPR0 to DPR3), in comparison to the 7700 Series which has the single direct page register. Accordingly, the 7900 Series’s direct ad- dressing method which uses direct page registers differs from that of the 7700 Series. However, the conventional direct addressing method, using only DPR0, is still be selectable, in order to make use of the 7700 Series software property. For more details, refer to the section on the direct page. PROCESSOR STATUS REGISTER (PS) Processor status register (PS) is an 11-bit register. It consists of flags to indicate the result of operation and CPU interrupt levels. Branch operations can be performed by testing the flags C, Z, V, and The details of each bit of the processor status register are described below. 1. Carry flag (C) The carry flag contains the carry or borrow generated by the ALU af- ter an arithmetic operation. This flag is also affected by shift and ro- tate instructions. This flag can be set and reset directly with the SEC and CLC instructions or with the SEP and CLP instructions. 2. Zero flag (Z) The zero flag is set if the result of an arithmetic operation or data transfer is zero and reset if it is not. This flag can be set and reset directly with the SEP and CLP instructions. 3. Interrupt disable flag (I) When the interrupt disable flag is set to “1”, all interrupts except watchdog timer and software interrupts are disabled. This flag is set to “1” automatically when an interrupt is accepted. It can be set and reset directly with the SEI and CLI instructions or SEP and CLP in- structions. 4. Decimal mode flag (D) The decimal mode flag determines whether addition and subtraction are performed as binary or decimal. Binary arithmetic is performed when this flag is “0”. If it is “1”, decimal arithmetic is performed with each word treated as 2- or 4- digit decimal. Arithmetic operation is performed using four digits when data length flag m is “0” and with two digits when it is “1”. Decimal adjust is automatically performed. (Decimal operation is possible only with the ADC and SBC instruc- tions.) This flag can be set and reset with the SEP and CLP instruc- tions.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS 5. Index register length flag (x) The index register length flag determines whether index register X and index register Y are used as 16-bit registers or as 8-bit registers. The registers are used as 16-bit registers when flag x is “0” and as 8- bit registers when it is “1”. This flag can be set and reset with the SEP and CLP instructions. 6. Data length flag (m) The data length flag determines whether the data length is 16-bit or 8-bit. The data length is 16 bits when flag m is “0” and 8 bits when it is “1”. This flag can be set and reset with the SEM and CLM instruc- tions or with the SEP and CLP instructions. 7. Overflow flag (V) The overflow flag is valid when addition or subtraction is performed with a word treated as a signed binary number. If data length flag m is “0”, the overflow flag is set when the result of addition or subtrac- tion is outside the range between –32768 and +32767. If data length flag m is “1”, the overflow flag is set when the result of addition or subtraction is outside the range between –128 and +127. It is reset in all other cases. The overflow flag can also be set and reset directly with the SEP, and CLV or CLP instructions. Additionally, the overflow flag is set when a result of unsigned/signed division exceeds the length of the register where the result is to be stored; the flag is also set when the addition result is outside range of –2147483648 to +2147483647 in the RMPA operation. 8. Negative flag (N) The negative flag is set when the result of arithmetic operation or data transfer is negative (If data length flag m is “0”, data’s bit 15 is “1”. If data length flag m is “1”, data’s bit 7 is “1”.) It is reset in all other cases. It can also be set and reset with the SEP and CLP instruc- tions. 9. Processor interrupt priority level (IPL) The processor interrupt priority level (IPL) consists of 3 bits and de- termines the priority of processor interrupts from level 0 to level 7. Interrupt is enabled when the interrupt priority of the device request- ing interrupt (set using the interrupt control register) is higher than the processor interrupt priority. When an interrupt is enabled, the cur- rent processor interrupt priority level is saved in a stack and the pro- cessor interrupt priority level is replaced by the interrupt priority level of the device requesting the interrupt. Refer to the section on inter- rupts for more details. Note: Fix bits 11 to 15 of the processor status register (PS) to “0”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS BANK In order to effectively use the integrated hardware on the chip, this CPU core uses an address generating method with a 24-bit address split into high-order 8 bits and low-order 16 bits. In other words, the
64 Kbytes specified by the low-order 16 bits are one unit (referred to
as “bank”), and the address space is divided into 256 banks (0 16 to FF16) specified by the high-order 8 bits. In the program area on the address space, the bank is specified by the program bank register (PG), and the address in the bank is specified by the program counter (PC). As for each bank boundary, when an overflow has occurred in PC, the contents of PG are incremented by 1. When a borrow has oc- curred in PC, the contents of PG are decremented by 1. Under the normal conditions, therefore, programming without concern for the bank boundaries is possible. Furthermore, as for the data area on the address space, the bank is specified by the data bank register (DT), and the address in the bank is specified by the operation result by using the various addressing modes (Note). Note: Some addressing modes directly specify a bank. DIRECT PAGE The internal memory and control registers for internal peripheral de- vices, etc. are assigned to bank 016 (addresses 016 to FFFF16). The direct page and direct addressing modes have been provided for the effective access to bank 016. In the 7900 Series, two types of direct addressing modes are available: the conventional direct addressing mode which uses only DPR0, as in the 7700 Series, and the ex- panded direct addressing mode, which uses up to 4 direct page reg- isters as selected by the user. The addressing mode is selected according to the contents of bit 1 of the processor mode register 1. This bit 1 is cleared to “0” at reset. (In other words, the conventional direct addressing mode is selected.) However, once this bit 1 has been set to “1” by software, this bit cannot be cleared to “0” again, except by reset. That is to say, when one of these two direct address- ing modes has been selected just after reset, the selected address- ing mode cannot be switched to another one while the program is running. I Conventional direct addressing mode The direct page area consists of 256-byte space. Its bank address is “00 16”, and the base address of its low-order 16-bit address is speci- fied by the contents of the direct page register 0 (DPR0). In this con- ventional direct addressing modes, a value (1 byte) just after an instruction code is regarded as an offset value for the DPR0 con- tents, and the CPU accesses each address in the direct page area. I Expanded direct addressing mode The direct page area consists of four 64-byte spaces. Their bank address is “00 16”, and the four base addresses of their low-order 16- bit addresses are respectively specified by the contents of four direct page registers. In this expanded direct addressing mode, a value (1 byte) just after an instruction code is regarded as follows:
- High-order 2 bits: regarded as a selection field for DPR0 to DPR3.
- Low-order 6 bits: regarded as an offset value for the selected direct page register. Then, the CPU accesses each address in each direct page area: Refer to “7900 Series Software Manual” for details concerning the various addressing modes which use the direct page area. Instruction Set The CPU core of the 7900 Series has an expanded instruction set based on the existing 7700/7751 Series’ CPU core. In addition, its source code (mnemonic) has the complete upper compatibility with the 7700 Series instruction set. For details concerning addressing modes and instruction set, refer to “7900 Series Software Manual”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS BUS INTERFACE UNIT Data transfer between the central processing unit (CPU) and inter- nal memory, internal peripheral devices is always performed via the bus interface unit (BIU), which is located between the CPU and the internal buses. Figure 5 shows the BIU and the bus structure. The CPU and BIU are connected by a dedicated bus, and any transfer between the CPU and BIU is controlled by this dedicated bus. On the other hand, data transfer between the BIU and internal pe- Fig. 5 BIU and bus structure Internal code bus (CB0 to CB31) Central Processing Unit (CPU) SFR : Special Function Register ❈ The CPU bus and internal bus separate out independently. CPU bus Internal buses Internal data bus (DB0 to DB15) Internal memory Internal peripheral devices (SFR) Internal address bus (AD0 to AD23) M37905 Bus Interface Unit (BIU) Internal control signal ripheral devices uses the following internal common buses: 32-bit code bus, 16-bit data bus, 24-bit address bus, and control signals. The bus control method where the code bus and the data bus sepa- rate out (hereafter, this method is referred to as the separate code/ data bus method) is employed in order to improve data transfer ca- pabilities. As a result, the internal memory is connected to both the code bus and the data bus, and registers of all other internal periph- eral devices are connected only to the data bus.
Notice: This is not a final specification. Table 1. Functions of each register Indicates a storage address for an instruction to be next taken into an instruction queue buffer. Temporarily stores an instruction which has been taken from a memory. Consists of 10 bytes. Indicates an address where data will be next read from or written to. by the CPU. Consists of 32 bits.
Notice: This is not a final specification. the branch destination address. for instructions to be prefetched are categorized as listed in Table 2. passes it to the data buffer, and then, transfers it to the CPU. then, writes it into the specified address. between the BIU and internal memory or internal peripheral devices. Table 2. Store addresses for instructions to be prefetched tion prefetch and data access.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Access to internal area 8-bit data read 8-bit data written 16-bit data read 16-bit data written Access starting from even address Access starting from odd address φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 D 0 to D7 Address φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 D 0 to D7 Address φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 Address φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 D 0 to D7 Address A0 to A23 D 0 to D7 D 8 to D15 D 0 to D7 Address D 8 to D15 φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 D 8 to D15 D 0 to D7 D 8 to D15 D 8 to D15 A0 to A23 D 0 to D7 D 8 to D15 Address Address + 1 D 8 to D15 D 0 to D7 D 8 to D15 Invalid Invalid Invalid Invalid Address Address + 1 Address 32-bit data read 32-bit data written φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 Address Address + 2 D 8 to D15 D 0 to D7D 0 to D7 D 8 to D15 φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 Address Address + 1 Address + 3 D 8 to D15 D 0 to D7 D 8 to D15 D 0 to D7 φBIU Internal data bus DB 0 to DB7 DB 8 to DB15 D 8 to D15 D 0 to D7 D 8 to D15 D 0 to D7 φBIU Internal address bus Internal data bus DB 0 to DB7 DB 8 to DB15 D 8 to D15 D 0 to D7D 0 to D7 D 8 to D15 Invalid Invalid Address Address + 2 Address Address + 1 Address + 3Internal address bus Fig. 8 Bus cycle waveform example for data access (access to internal area)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 9 Bus cycle waveform at access to internal area 1 bus cycle = 3φ (Note) (Internal ROM bus cycle select bit = 0) ROM RAM SFR Internal address bus Internal data bus, Internal code bus φBIU Address 1 bus cycle = 2φ φBIU Internal address bus Internal data bus Internal code bus Address 1 bus cycle = 2φ 1 bus cycle = 2φ (Internal ROM bus cycle select bit = 1) φBIU Internal address bus Internal data bus, Internal code bus Address Data 1 bus cycle = 3φ Data Data Note: When reprogramming the internal flash memory in the CPU reprogramming mode, select the bus cycle = 3φ. G Number of bus cycles Figure 9 shows the bus cycle waveform at access to the internal area. Bit 7 of the processor mode register 1 (address 5F16), which is shown in Figure 10, selects the number of bus cycles for the internal ROM: 3φ or 2φ. (This bit 7 is the internal ROM bus cycle select bit.) The internal RAM, SFRs (internal peripheral devices’ control regis- ters) are always accessed with 1 bus cycle = 2φ. Fig. 10 Bit configuration of processor mode register 1 76543210 Processor mode register 1 Fix these bits to “00000002”. Address 5F16 Internal ROM bus cycle select bit 0 : 1 bus cycle = 3φ 1 : 1 bus cycle = 2φ 0000000
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS PROCESSOR MODES This microcomputer is dedicated to the single-chip mode. Therefore, be sure to connect pin MD0 to Vss, and be sure to fix the processor mode bits (bits 1 and 0 of the processor mode register 0, address 16), which is shown in Figure 11, to “002”. Fig. 11 Bit configuration of processor mode register 0 76543210 Processor mode register 0 Processor mode bits 0 0 : Single-chip mode 0 1 : Do not select. 1 0 : Do not select. 1 1 : Do not select. Interrupt priority detection time select bits 0 0 : 7 cycles of f sys 0 1 : 4 cycles of fsys 1 0 : 2 cycles of fsys 1 1 : Do not select. Software reset bit By a write of “1” to this bit, the microcomputer will be reset, and then, restarted. Fix these bits to “002”. Fix this bit to “0”. Address 5E16000 00
Notice: This is not a final specification. DBC and BRK instruction are interrupts used only for debugging. Therefore, do not use these interrupts. the bit configuration of the interrupt control register. rupt input can be selected with the polarity select bit. Timer and UART interrupts are described in the respective section. justed by software as shown in Figure 14. Table 3. Interrupt sources and interrupt vector addresses
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 13 Bit configuration of interrupt control register 76543210 Interrupt priority level select bits (Note 1) Interrupt request bit 0 : No interrupt requested 1 : Interrupt requested 76543210 Interrupt priority level select bits (Note 1) Interrupt request bit (Note 2) 0 : No interrupt requested 1 : Interrupt requested Polarity select bit 0 : Interrupt request bit is set to “1” at “H ” level when level sense is selected; this bit is set to “1” at falling edge when edge sense is selected. 1 : Interrupt request bit is set to “1” at “L” level when level sense is selected; this bit is set to “1” at rising edge when edge sense is selected. Level/Edge select bit 0 : Edge sense 1 : Level sense Interrupt control register bit configuration for A-D converter, UART0, UART1, UART2, timer A0 to timer A9, and timer B0 to timer B2. Interrupt control register bit configuration for INT 0– INT7 Notes 1: Use the MOVM (MOVMB) instruction or the STA (STAB, STAD) instruction for writing to this bit. 2: Interrupt request bits of INT0 to INT7 are invalid when the level sense is selected.
Notice: This is not a final specification. Other interrupts previously mentioned are A-D converter, UART, etc. Figure 15 shows a diagram of the interrupt priority detection circuit. orities are the same, the one above has priority. Table 4. Addresses of interrupt control registers Priority can be changed by software inside ➂ .
Notice: This is not a final specification. interrupt disable flag I to “0” and enable further interrupts. sor interrupt level (IPL) is set as shown in Table 5. Table 6. Relationship between interrupt priority detection time select Note: This pulse resides when 2 cycles of fsys is selected.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 17 Bit configuration of port P2 pin function control register 76543210 Port P2 pin function control register Pin TB0IN select bit 0: Allocate pin TB0IN to P55. 1: Allocate pin TB0IN to P24. Pin TB2IN select bit 0: Allocate pin TB2IN to P57. 1: Allocate pin TB2IN to P26. Address AE 16 Pin TB1IN select bit 0: Allocate pin TB1IN to P56. 1: Allocate pin TB1IN to P25.
Notice: This is not a final specification. start bit is “0”, “L” is output from TAiOUT pin. 4 is “0”, TAiIN can be used as a normal port pin. can be used to measure the pulse width of the TAiIN input signal. more cycles of the timer count source. same data is also written to the reload register and the counter. 1 0 : Count only while TAiIN input is “L”. 1 1 : Count only while TAiIN input is “H ”. 0 : Always “0” in timer mode. Table 7. Relationship between timer A clock division select bits, timer A clock division select bits.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 21 Bit configuration of count start register Fig. 22 Count waveform when gate function is available 76543210 Timer A0 count start bit Timer A1 count start bit Timer A2 count start bit Timer A3 count start bit Timer A4 count start bit Timer B0 count start bit Timer B1 count start bit Timer B2 count start bit Count start register 0 (Stopped at “0”, Started at “1”) Address 76543210 Timer A5 count start bit Timer A6 count start bit Timer A7 count start bit Timer A8 count start bit Timer A9 count start bit Count start register 1 (Stopped at “0”, Started at “1”) Address Selected clock source fi TAiIN Bit 4 Bit 3 Timer mode register Bit 4 Bit 3 Timer mode register
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS (2) Event counter mode [01] Figure 23 shows the bit configuration of the timer Ai mode register in the event counter mode. In event counter mode, bit 0 of the timer Ai mode register must be “1” and bits 1 and 5 must be “0”. The input signal from the TAi IN pin is counted when the count start bit shown in Figure 21 is “1” and counting is stopped when it is “0”. Count is performed at the fall of the input signal when bit 3 is “0” and at the rise of the signal when it is “1”. In event counter mode, whether to increment or decrement the count can be selected with the up-down bit or the input signal from the TAi OUT pin. When bit 4 of the timer Ai mode register is “0”, the up-down bit is used to determine whether to increment or decrement the count (decrement when the bit is “0” and increment when it is “1”). Figure 24 shows the bit configuration of the up-down register. When bit 4 of the timer Ai mode register is “1”, the input signal from the TAi OUT pin is used to determine whether to increment or decre- ment the count. However, note that bit 2 must be “0” if bit 4 is “1”. It is because if bit 2 is “1”, TAiOUT pin becomes an output pin to output pulses. The count is decremented when the input signal from the TAi OUT pin is “L” and incremented when it is “H ”. Determine the level of the input signal from the TAiOUT pin before a valid edge is input to the TAiIN pin. An interrupt request signal is generated and the interrupt request bit in the timer Ai interrupt control register is set when the counter reaches 0000 16 (decrement count) or FFFF16 (increment count). At the same time, the contents of the reload register is transferred to the counter and the count is continued. When bit 2 is “1”, each time the counter reaches 000016 (decrement Fig. 23 Bit configuration of timer Ai mode register in event counter mode 76543210 10×× 0 0 1 : Always “01” in event counter mode 0 : No pulse output 1 : Pulse output 0 : Count at the falling edge of input signal 1 : Count at the rising edge of input signal 0 : Increment or decrement according to up/down bit 1 : Increment or decrement according to TAiOUT pin input signal level 0 : Always “0” in event counter mode × × : Not used in event counter mode Timer A0 mode register Timer A1 mode register Timer A2 mode register Timer A3 mode register Timer A4 mode register Addresses 5716 5816 5916 5A16 Timer A5 mode register Timer A6 mode register Timer A7 mode register Timer A8 mode register Timer A9 mode register Addresses D7 16 D8 16 D9 16 DA 16 count) or FFFF16 (increment count), the waveform’s polarity is re- versed and is output from TAiOUT pin. If bit 2 is “0”, TAiOUT pin can be used as a normal port pin. However, if bit 4 is “1” and the TAiOUT pin is used as an output pin, the output from the pin changes the count direction. Therefore, bit 4 must be “0” unless the output from the TAiOUT pin is to be used to se- lect the count direction. Data write and data read are performed in the same way as for timer mode. That is, when data is written to timer Ai halted, it is also writ- ten to the reload register and the counter. When data is written to timer Ai which is busy, the data is written to the reload register, but not to the counter. The counter is reloaded with new data from the reload register at the next reload time. The counter can be read at any time. In event counter mode, whether to increment or decrement the counter can also be determined by supplying two kinds of pulses of which phases differ by 90° to timer A2, A3, A4, A7, A8 or A9. There are two types of two-phase pulse processing operations. One uses timers A2, A3, A7, and A8 and the other uses timers A4 and A9. In both processing operations, two pulses described above are input to the TA jOUT (j = 2 to 4, 7 to 9) pin and TAjIN pin respectively. When timers A2, A3, A7, and A8 are used, as shown in Figure 25, the count is incremented when a rising edge is input to the TAk IN (k=2, 3, 7, 8) pin after the level of TAkOUT pin changes from “L” to “H ”, and when the falling edge is input, the count is decremented. For timers A4 and A9, as shown in Figure 26, when a phase-related pulse with a rising edge input to the TAl IN (l = 4, 9) pin is input after the level of TAlOUT pin changes from “L” to “H ”, the count is incremented at the respective rising edge and falling edge of the TAlOUT pin and TAlIN pin.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS When a phase-related pulse with a falling edge input to the TAkOUT pin is input after the level of TAlIN pin changes from “H ” to “L”, the count is decremented at the respective rising edge and falling edge of the TAl IN pin and TAlOUT pin. When performing this two-phase pulse signal processing, bits 0 and 4 of timer Aj mode register must be set to “1” and bits 1, 2, 3, and 5 must be “0”. Bits 6 and 7 are ig- nored. (See Figure 27.) Note that bits 5, 6, and 7 of the up-down reg- ister 0 (address 44 16) are the two-phase pulse signal processing select bits for timers A2, A3, and A4, respectively. Also, bits 5, 6, and 7 of the up-down register 1 (address C4 16) are the two-phase pulse signal processing select bits for timers A7, A8, and A9, respectively. Each timer operates in normal event counter mode when the corre- sponding bit is “0” and performs two-phase pulse signal processing when it is “1”. Count is started by setting the count start bit to “1”. Data write and read are performed in the same way as for normal event counter mode. Note that the direction register of the input port must be set to input mode because two kinds of pulse signals, described above, are input. Also, there can be no pulse output in this mode. Fig. 27 Bit configuration of timer Aj mode register when performing two-phase pulse signal processing in event counter mode Fig. 25 Two-phase pulse processing operation of timer A2, A3, A7, Fig. 26 Two-phase pulse processing operation of timers A4 and A9 TAkOUT Decre- ment- count Decre- ment- count Decre- ment- count Incre- ment- count Incre- ment- count Incre- ment- count TAkIN (k = 2, 3, 7, 8) Fig. 24 Bit configuration of up-down register Timer A0 up-down bit Timer A1 up-down bit Timer A2 up-down bit Timer A3 up-down bit Timer A4 up-down bit Timer A2 two-phase pulse signal processing select bit 0 : Two-phase pulse signal processing disabled 1 : Two-phase pulse signal processing mode Timer A3 two-phase pulse signal processing select bit 0 : Two-phase pulse signal processing disabled 1 : Two-phase pulse signal processing mode Timer A4 two-phase pulse signal processing select bit 0 : Two-phase pulse signal processing disabled 1 : Two-phase pulse signal processing mode Up-down register 0 Address 76543210 Timer A5 up-down bit Timer A6 up-down bit Timer A7 up-down bit Timer A8 up-down bit Timer A9 up-down bit Timer A7 two-phase pulse signal processing select bit 0 : Two-phase pulse signal processing disabled 1 : Two-phase pulse signal processing mode Timer A8 two-phase pulse signal processing select bit 0 : Two-phase pulse signal processing disabled 1 : Two-phase pulse signal processing mode Timer A9 two-phase pulse signal processing select bit 0 : Two-phase pulse signal processing disabled 1 : Two-phase pulse signal processing mode Up-down register 1 Address 76543210 TAlOUT TAlIN (l = 4, 9) Decrement-count at each edgeIncrement-count at each edge Decrement-count at each edgeIncrement-count at each edge 76543210 10×× 0100 0 1 : Always “01” in event counter mode 0 1 0 0 : Always “0100” when processing two-phase pulse signal × × : Not used in event counter mode Timer A2 mode register Timer A3 mode register Timer A4 mode register Timer A7 mode register Timer A8 mode register Timer A9 mode register Addresses 5916 5A16 C8 16 C9 16 CA 16
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 30 Pulse output example when external rising edge is selected Fig. 31 Example when trigger is re-issued during pulse output Selected clock source fi TAiIN (rising edge) TAiOUT Example when the contents of the reload register is 000316 Selected clock source fi TAiIN (rising edge) TAiOUT Example when the contents of the reload register is 000416 Fig. 29 Bit configuration of one-shot start register Timer A0 one-shot start bit Timer A1 one-shot start bit Timer A2 one-shot start bit Timer A3 one-shot start bit Timer A4 one-shot start bit Fix this bit to “0”. One-shot start register 0 Address 7 6543210 Timer A5 one-shot start bit Timer A6 one-shot start bit Timer A7 one-shot start bit Timer A8 one-shot start bit Timer A9 one-shot start bit Fix this bit to “0”. One-shot start register 1 Address 7 6543210
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS The width of the output pulse is changed by updating timer data. The update can be performed at any time. The output pulse width is changed at the rise of the pulse after data is written to the timer. The contents of the reload register are transferred to the counter just before the rise of the next pulse so that the pulse width is changed from the next output pulse. Undefined data is read when timer Ai is read. The 8-bit length pulse width modulator is described next. The 8-bit length pulse width modulator is selected when the timer Ai mode register bit 5 is “1”. The reload register and the counter are both divided into 8-bit halves. The low-order 8 bits function as a prescaler and the high-order 8 bits function as the 8-bit length pulse width modulator. The prescaler counts the clock selected by bits 6, 7, and the contents of the timer A clock division select register. (See Table 7.) A pulse is generated when the counter reaches 0000 16 as shown in Figure 34. At the same time, the contents of the reload register is transferred to the counter and count is continued. Therefore, if the low-order 8 bits of the reload register are n, the pe- riod of the generated pulse is × (n + 1). The high-order 8 bits function as an 8-bit length pulse width modula- tor using this pulse as input. The operation is the same as for 16-bit length pulse width modulator except that the length is 8 bits. If the high-order 8 bits of the reload register are m, the duration “H ” of pulse is And the output pulse period is (4) Pulse width modulation mode [11] Figure 32 shows the bit configuration of the timer Ai mode register in the pulse width modulation mode. In pulse width modulation mode, bits 0, 1, and 2 must be set to “1”. Bit 5 is used to determine whether to perform 16-bit length pulse width modulator or 8-bit length pulse width modulator. 16-bit length pulse width modulator is selected when bit 5 is “0” and 8-bit length pulse width modulator is selected when it is “1”. The 16-bit length pulse width modulator is described first. The pulse width modulator can be started with a software trigger or with an input signal from a TAi IN pin (external trigger). The software trigger mode is selected when bit 4 is “0”. Pulse width modulator is started and a pulse is output from TAiOUT when the count start bit is set to “1”. The external trigger mode is selected when bit 4 is “1”. Pulse width modulation starts when a trigger signal is input from the TAi IN pin when the count start bit is “1”. Whether to trigger at the fall or rise of the trigger signal is determined by bit 3. The trigger is at the fall of the trigger signal when bit 3 is “0” and at the rise when it is “1”. When data is written to timer Ai with the pulse width modulator halted, it is written to the reload register and the counter. Then when the count start bit is set to “1” and a software trigger or an external trigger is issued to start modulation, the waveform shown in Figure 33 is output continuously. Once modulation is started, triggers are not accepted. If the value in the reload register is m, the duration “H ” of pulse is × m and the output pulse period is × (2 16 – 1). An interrupt request signal is generated and the interrupt request bit in the timer Ai interrupt control register is set at each fall of the output pulse. selected clock frequency selected clock frequency Fig. 32 Bit configuration of timer Ai mode register in pulse width modulation mode 765 4321 0 1 1 : Always “11” in pulse width modulation mode 1 : Always “1” in pulse width modulation mode 0 × : Software trigger 1 0 : Trigger at the falling of TAiIN input 1 1 : Trigger at the rising of TAiIN input 0 : 16-bit pulse width modulator 1 : 8-bit pulse width modulator Clock source select bits (See Table 7.) Timer A0 mode register Timer A1 mode register Timer A2 mode register Timer A3 mode register Timer A4 mode register Address 5716 5816 5916 5A16111 Timer A5 mode register Timer A6 mode register Timer A7 mode register Timer A8 mode register Timer A9 mode register Address D7 16 D8 16 D9 16 DA 16 selected clock frequency selected clock frequency selected clock frequency × (n + 1) × m.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 33 16-bit length pulse width modulator output pulse example Fig. 34 8-bit length pulse width modulator output pulse example Selected clock source fi TAiIN (rising edge) TAiOUT 1/fi × (216 – 1) 1/fi × (m) This trigger is not accepted Example when the contents of the reload register is 000316 Selected clock source fi TAiIN (falling edge) Prescaler output (when n = 2) 8-bit length pulse width modulator output (when m = 2) 8 – 1) 1/fi × (n + 1)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS When timer Bi is read, the contents of the reload register is read. Note that in this mode, the interval between the fall of the TBiIN pin input signal to the next rise or from the rise to the next fall must be at least two cycles of the timer count source. Timer Bi overflow flag which is bit 5 of timer Bi mode register is set to “1” when the timer Bi counter reaches 0000 16, which indicates that a pulse width or pulse period is longer than that which can be mea- sured by a 16-bit length. Fig. 39 Pulse period measurement mode operation (example of measuring the interval between the falling edge to next falling one) Fig. 40 Pulse width measurement mode operation Selected clock source fi TBiIN Reload register ← Counter Counter ← 0 Count start bit Interrupt request signal Selected clock source fi TBiIN Reload register ← Counter Counter ← 0 Count start bit Interrupt request signal This flag is cleared by writing data to the corresponding timer Bi mode register. This flag is set to “1”at reset. In these modes, the count type can be selected by the count-type select bit (bit 4 of the timer Bi mode register). When this bit = “1”, the free-run type is selected; in this case, even when a valid edge is in- put to pin TBi IN, the contents of the counter will not be cleared to “000016”, and counting will continue. However, when a valid edge is input, an interrupt-requesting signal will be generated.
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS TIMER FUNCTION FOR MOTOR CONTROL Three-phase motor drive waveform or pulse motor drive waveform can be output by using plural internal timers As. These modes are explained bellow. Three-phase motor drive waveform output mode (three-phase waveform mode) Three-phase waveform mode using timers A0, A1, A2 and A3 is se- lected by setting the waveform output select bits of the waveform output mode register (bits 2 through 0 at address A6 16, Figure 41) to “1002”. There are two types of the three-phase waveform mode: three- phase mode 0 and three-phase mode 1. Bit 4 of the waveform out- put mode register selects either mode. In the three-phase waveform mode, set the corresponding timer mode registers of timers A0, A1, and A2 to select the one-shot pulse mode with the rising edge of an external trigger valid; set the timer mode register of timer A3 to se- lect the timer mode. Figure 43 shows the block diagram in the three-phase waveform mode. The three-phase waveform mode outputs six waveforms, positive waveforms (U, V, W phases) and negative waveforms (U, V, W phases), from the respective ports with “L” level active. Timer A2 controls U and U phases; timer A1 does V and V phases and timer A0 does W and W phases. Timer A3 controls these one- shot pulses’ periods of timers A2, A1 and A0. In the waveform output, a short circuit prevention time can be set to prevent “L” level of positive waveform outputs (U, V, W phases) from overlapping with “L” level of their negative waveform outputs (U, V, W phases). The short circuit prevention time can be set with three 8- bit dead-time timers, sharing one reload register. The dead-time timer operates as a one-shot timer. It’s start trigger is selected from the following two types: both the rising and falling edges of timers A0 to A2’s one-shot pulses or their falling edges. Additionally, bit 6 of the waveform output mode register (address A6 16) controls this selec- tion. When that bit is “0”, both the rising and falling edges are se- lected; when that bit is “1”, the falling edges are selected. Timer A0 mode register 5616 Timer A1 mode register 5716 Timer A2 mode register 5816 76543210 01110 Address Timer A3 mode register 5916 76543210 Address Fix to “10” in three-phase waveform mode Fix to “0110” in three-phase waveform mode Clock source select bits (See Table 7.) Fix to “000000” in three-phase waveform mode Clock source select bits (See Table 7.) 0000 Fig. 42 Bit configuration of timer A0, A1, A2, mode register and timer A3 mode register in three-phase waveform mode Waveform output mode register A616 76543210 001× Address Waveform output select bits 100 : Fix to “100” in three-phase waveform mode (Valid in three-phase mode 1) Three-phase output polarity set buffer 0 : “H ” output 1 : “L” output Three-phase mode select bit 0 : Three-phase mode 0 1 : Three-phase mode 1 Not used in three-phase waveform mode Dead-time timer trigger select bit 0 : Both edge of one-shot pulse with timers A2 to A0 1 : Only the falling edge of one-shot pulse with timers A2 to A0 Waveform output control bit 0 : Waveform output disabled 1 : Waveform output enabled Fig. 41 Bit configuration of waveform output mode register in three- phase waveform mode
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 43 Block diagram in three-phase waveform mode DQT D Q Output polarity set toggleflip-flop 2 “0” “1” D Q T R Timer A3 (16)(Timer mode) Timer A2 Reload Timer A2 Timer A2 counter (16) U-phase output polarity set buffer (bit 5 at address A9 T Interval control D Q R D Q R Timer A1 Reload Timer A1 Timer A1 counter (16) V-phase output polarity set buffer (bit 4 at address A9 T Timer A0 Reload Timer A0 Timer A0 counter (16) W-phase output polarity set buffer (bit 3 at address A8 T Three-phase output polarity set buffer (bit 3 at address A6 Interrupt validity output select bit (bit 5 at address A9 Three-phase modeselect bit(bit 4 at address A6 D Q Output polarity set toggleflip-flop 0 “0” “1” D Q Output polarity set toggleflip-flop 1 “0” “1” Reset Interrupt request interval set bit(bit 4 at address A9 “1” “0” Reset Q D R Reset Timer A3 interrupt request signal (One-shot pulse mode) (One-shot pulse mode) (One-shot pulse mode) Reload register Dead-timetimer (8) T Dead-time timer (8) T f4 f8 Clock-source-of-dead-time-timerselect bits(bits 7, 6 at address A8 D Q T Dead-timetimer (8) T D Q R Reset P6OUT CUT U V WU V W Waveform output control bit(bit 7 at address A6 U-phase output fix bit(bit 2 at address A8 DQ Trigger generating circuit S RQ T Q V-phase output fix bit(bit 1 at address A8 DQDQT Trigger generating circuit S RQ T Q W-phase output fix bit(bit 0 at address A8 DQDQT Trigger generating circuit S RQ T Q U-phase output control circuit V-phase output control circuit W-phase output control circuit D Q T D Q T D Q T D Q T D Q T U-phase output fix polarity set bit(bit 2 at address A9 W-phase output fix polarity set bit(bit 0 at address A9 V-phase output fix polarity set bit(bit 1 at address A9 IDU T Q D T Q D T Q D IDV IDW b1 b0 Data bus (even-numbered) Bits 2 through 0 of position- data-retain function controlregister (address AA circuit
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS When writing data to the dead-time timer (address A716), the data is written to the reload register shared by three dead-time timers. When the dead-time timers catch the start trigger from the respec- tive timers, the reload register contents are transferred to its counter and the dead-time timer decrements with the clock source selected by bits 6 and 7 of three-phase output data register 0 (address A8 16). Additionally, this timer can accept another trigger before completion of the preceding trigger operation. In this case, after transferring the reload register contents to the dead-time timer at acceptance of the trigger, the value is decremented. The dead-time timer operates as a one-shot pulse timer. Accordingly, this timer starts pulse output when the trigger is caught, and finishes pulse output and stops operation when its contents become “00 16”, and waits next trigger. Three-phase output data register 0 A816 76543210 Address W-phase output fix bit 0 : Released from output fixation 1 : Output fixed V-phase output fix bit 0 : Released from output fixation 1 : Output fixed U-phase output fix bit 0 : Released from output fixation 1 : Output fixed When three-phase mode 0 is selected: W-phase output polarity set buffer 0 : “H ” output 1 : “L” output When three-phase mode 1 is selected: It may be either “0” or “1”. In three-phase waveform mode, these bits are invalid. Any of them may be either “0” or “1”. Clock-source-of-dead-time-timer select bits 0 0 : f 0 1 : f4 1 0 : f8 1 1 : Do not select. W-phase fixed output’s polarity set bit 0 : “H ” output fixed 1 : “L” output fixed V-phase fixed output’s polarity set bit 0 : “H ” output fixed 1 : “L” output fixed U-phase fixed output’s polarity set bit 0 : “H ” output fixed 1 : “L” output fixed In three-phase waveform mode, this bit is invalid. It may be either “0” or “1”. When three-phase mode 0 is selected: V-phase output polarity set buffer 0 : “H ” output 1 : “L” output When three-phase mode 1 is selected: Interrupt request interval set bit 0 : Every second time 1 : Every fourth time When three-phase mode 0 is selected: U-phase output polarity set buffer 0 : “H ” output 1 : “L” output When three-phase mode 1 is selected: Interrupt validity output select bit 0 : An interrupt request occurs at each even-numbered underflow of timer A3. 1 : An interrupt request occurs at each odd-numbered underflow of timer A3. In three-phase waveform mode, these bits are invalid. Any of them may be either “0” or “1”. Three-phase output data register 1 A9 76543210 Address × × Fig. 44 Bit configuration of three-phase output data registers 1 and 0 in three-phase waveform mode In the three-phase waveform mode, setting bit 7 of the waveform output mode register (address A616) to “1” makes positive wave- forms (U, V, W phases) and their negative waveforms (U, V, W phases) output from the respective ports. When this bit is “0”, their ports are floating. This bit is cleared to “0” by inputting a falling edge to pin P6OUT CUT , by reset, or by executing instructions. Additionally, setting bits 2 through 0 of the three-phase output data register 0 (address A8 16) to “1” makes the corresponding waveform outputs fixed. Whether the outputs are fixed to “H” or “L” is selected by bits 2 through 0 of the three-phase output data register 1 (address 16). Clearing these bits to “0” makes the corresponding waveform outputs fixed to “H”; setting these bits to “1” makes the outputs fixed to “L”.
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Three-phase mode 0 In selecting three-phase waveform mode, three-phase mode 0 is se- lected by setting bit 4 of the waveform output mode register (address 16) to “0”. The output polarity of three-phase waveform depends on the output polarity set toggle flip-flop. The positive waveform of the three-phase waveform is “H” output when the toggle flip-flop is “0”; it is “L” output when the toggle flip-flop is “1”. (Three-phase waveform is output as a negative waveform.) Each output polarity set toggle flip-flop has the output polarity set buffer shown in Figure 44. When the timer A3’s counter contents be- come 0000 16, the contents of output polarity set buffer are set into the output polarity set toggle flip-flop. After that, the polarity of the contents of output polarity set toggle flip-flop are reversed each time completion of one-shot pulse of timer (timers A2 to A0) correspond- ing to each phase. Figure 45 shows an example of U-phase waveform and the output operation is explained. Three-phase mode 0 becomes valid when writing “0” to the U-phase output polarity set buffer (bit 5 at address 16) and actuating the timer A3. When the counter of timer A3 be- comes 000016, the timer A3 interrupt request signal occurs and the timer A2 simultaneously starts one-shot pulse output. At this time, the contents of U-phase output polarity set buffer, “0” in this case, are set into the output polarity set toggle flip-flop 2. When the one-shot pulse output of timer A2 is completed, the con- tents of output polarity set toggle flip-flop 2 is reversed from “0” to “1”. Simultaneously, the one-shot pulse of the 8-bit dead-time timer is output for ensuring time not to overlap “L” levels of U phase wave- form and its negative U phase waveform. The U-phase waveform output keeps “H” level from the start until the one-shot pulse output of the dead-time timer is completed, even if the contents of output polarity set toggle flip-flop 2 are reversed from “0” to “1” owing to the timer A2’s one-shot pulse output. When the one-shot pulse output of the dead-time timer is completed, “1” of output polarity set toggle flip-flop 2 which has been reversed be- comes valid and the U phase waveform changes to “L” level. Signal output each time Timer A3 becomes 000016 One-shot pulse output with timer A2 Contents of output polarity set toggle flip-flop 2 Reversed pulse output signal with dead-time timer U-phase waveform output U-phase waveform output Then, write “1” to the U-phase output polarity set buffer (bit 5 at ad- dress A916) before the counter of timer A3 becomes 000016. After that, when the counter of timer A3 becomes 000016, the timer A2 starts one-shot pulse output. Simultaneously, the contents of U- phase output polarity set buffer, “1” in this case, are set into the out- put polarity set toggle flip-flop 2 and the U phase waveform remains “L” level. When the one-shot pulse output of timer A2 is completed, the con- tents of output polarity set toggle flip-flop 2 is reversed from “1” to “0”. Simultaneously, the one-shot pulse output of the dead-time timer starts. When the contents of output polarity set toggle flip-flop 2 are re- versed from “1” to “0”, the U-phase waveform changes its output level from “L” to “H” without waiting for completion of the one-shot pulse output of the dead-time timer. U-phase waveform is generated by repeating the operation above. The way to generate U-phase waveform, which is the negative phase of U-phase, is the same as that for U-phase waveform except that the contents of output polarity set toggle flip-flop 2 are treated as the reversed signal from the case of U-phase waveform. In this way, U-phase waveform and U-phase waveform, having the negative phase of U-phase, are output from the pins so that their “L” levels do not overlap each other. The width of “L” level can be also modified by changing the value of timer A2 or A3. V-, W-phase waveform and V-, W-phase waveform, having their negative phase, are similarly output according to the corresponding timer operation. The explanation above is an example of three-phase waveform gen- erating due to an triangular wave modulation. Three-phase wave- form due to a saw-tooth-wave modulation can also be generated by fixing each beginning level of phases. Fig. 45 U-phase waveform output example in three-phase mode 0 (triangular wave modulation)
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Three-phase mode 1 In selecting three-phase waveform mode, three-phase mode 1 is selected by setting bit 4 of the waveform output mode register (ad- dress A6 16) to “1”. In this mode, each of timers A0 to A2 can have two timer registers and the contents of those registers are alternately reloaded into the counter each time the counter of timer A3 becomes 000016. The interrupt request normally occurs when the counter of timer A3 becomes 0000 16. However, this occurrence interval can be switched between “every second time” and “every fourth time.” Bit 4 of the pulse output data register 1 (address A9 16) selects that. Additionally, an even-numbered or odd-numbered timer A3’s under- flow can be used as the occurrence factor of timer A3 interrupt re- quest. Bit 5 of the three-phase output data register 1 (address A9 16) selects that. When the timer A3’s counter contents become 0000 16, the contents of three-phase output polarity set buffer are set into the output polar- ity set toggle flip-flop on which the output polarity of three-phase waveform depends. The contents of three-phase output polarity set buffer are reversed after that operation. The polarity of the contents of output polarity set toggle flip-flop is re- versed each time completion of one-shot pulse of timer (timers A2 to A0) corresponding to each phase. Figure 46 shows an example of U-phase waveform and the output operation is explained. Write “0” to the three-phase-output-polarity set buffer (bit 3 at ad- dress A6 16). Clear the interrupt request interval set bit (bit 4 at ad- dress A916) to “0” so that the timer A3 interrupt request occurs at every second time. Additionally, clear the interrupt validity output se- lect bit (bit 5 at address A916) so that the timer A3 interrupt request occurs at an each even-numbered underflow of timer A3. After the procedure above, three-phase mode 1 starts operation when actuating timer A3. When the counter of timer A3 becomes 0000 16, the timer A3 interrupt request occurs and timer A2 simultaneously starts one-shot pulse output. At this time, the contents of three-phase output polarity set buffer, “0” in this case, are set into the output polarity set toggle flip- flop 2. The contents of three-phase output polarity set buffer are re- versed from “0” to “1” after that operation. When the timer A2 counter counts the value written into the timer A2 and the one-shot pulse output of timer A2 is completed, the contents of output polarity set toggle flip-flop 2 are reversed from “0” to “1”. Si- multaneously, the one-shot pulse of the 8-bit dead-time timer is out- put for ensuring time, so that “L” levels of U- and U-phase waveforms do not overlap. The U-phase waveform output keeps “H” level from the start until the one-shot pulse output of the dead-time timer is completed, even if the contents of output polarity set toggle flip-flop 2 are reversed from “0” to “1” owing to the timer A2’s one-shot pulse output. When the one-shot pulse output of the dead-time timer is completed, “1” of output polarity set toggle flip-flop 2 which has been reversed becomes valid and the U-phase waveform changes to “L” level. Then, when the counter of timer A3 becomes 0000 16, the timer A2 counter counts the value written into timer A2 and timer A2 starts one-shot pulse output. Simultaneously, the contents of three-phase output polarity set buffer are set into the output polarity set toggle flip-flop 2. However, the U-phase waveform remains “L” level, be- cause the value is the same (“1”). The contents of three-phase output polarity set buffer are reversed from “1” to “0” after that operation. When the one-shot pulse output of timer A2 is completed, the con- tents of output polarity set toggle flip-flop 2 is reversed from “1” to “0”. Simultaneously, the one-shot pulse output of the dead-time timer starts. When the contents of output polarity set toggle flip-flop 2 is reversed from “1” to “0”, the U-phase waveform changes its output level from “L” to “H” without waiting for completion of the one-shot pulse output of the dead-time timer. U-phase waveform is generated by repeating the operation above. The way to generate U-phase waveform, which is the negative phase of U-phase, is the same as that for U-phase waveform except that the contents of output polarity set toggle flip-flop 2 is treated as the reversed signal from the case of U-phase waveform. In this way, U-phase waveform and U-phase waveform, having the negative phase of U-phase, are output from the pins so that their “L” levels do not overlap each other. The width of “L” level can be also modified by changing the value of timers A2, A2 1, or A3. V-, W-phase waveform and V-, W-phase waveform, having their negative phase, are similarly output according to the corresponding timer operation.
Y Notice: This is not a final specification. Som e param etric lim its are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Timer A3 interrupt request signal Signal output each time Timer A3 becomes 0000 One-shot pulse output with timer A2 Timer A2 Timer A2 Contents of output polarity set toggle flip-flop 2 Reversed pulse output signal with dead-time timer U-phase waveform output U-phase waveform output n1 n3 n5 n7 n2 n4 n6 n8 n2 n3 n4 n5 n6 Fig. 46 U-phase waveform output example in three-phase mode 1 (triangular wave modulation) Position-data-retain function The three-phase waveform mode has the function to retain the input data of the corresponding pin (IDU, IDV, IDW) at an edge of a posi- tive waveform (U, V, or W phase). Whether to retain the data at a fall- ing edge or rising one is selected by bit 3 of the position-data-retain function control register (address AA 16). Retain data can be read out by bits 2 through 0 of the position-data- retain function control register (address AA 16). Fig. 47 Bit configuration of position-data-retain function control register AddressPosition-data-retain function control register 76543210 W-phase position data retain bit (pin IDW) V-phase position data retain bit (pin IDV) U-phase position data retain bit (pin IDU) Retain-trigger polarity select bit 0 : Falling edge of each phase’s positive waveform 1 : Rising edge of each phase’s positive waveform AA
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS PULSE OUTPUT PORT MODE 0 Figure 48 shows the block diagram in the pulse output port mode 0. This mode has an 8-bit pulse output port. The waveform output se- lect bits (bits 0 to 2) of waveform output mode register (address 16) select use of pulse output port. The 8-bit pulse output port can also be divided into “4 bits and 4 bits” or “6 bits and 2 bits”, with the pulse output mode select bit (bit 3) of waveform output mode regis- ter (address A6 16); each of them can be individually controlled. Set timers A3 and A0 to the timer mode because they are used in the pulse output port mode 0. Figure 50 shows the bit configuration of timer A3 and A0 mode registers in the pulse output port mode 0. Timers A3 and A0 start count when setting the corresponding timer count start bit to “1”, and they stop it when clearing that bit to “0”. Fig. 48 Block diagram in pulse output port mode 0 Each bit using timer A0 as a trigger can also be controlled by an in- put trigger from pin RTP TRG0 . This control is selected by the pulse output trigger select bits of the three-phase output data register 0 (bits 7 and 6 at address A8 16). Also, this externally-input trigger can be selected from the following three types: falling edges, rising edges, and falling and rising edges. The reversed content of the pulse output data bit can be output to each pulse output port by the pulse output polarity select bit of the three-phase output data register 1 (bit 3 at address A9 16). When the pulse output polarity select bit = “0”, the content of the pulse output data bit is output as it is; when the pulse output polarity select bit = “1”, the reversed content is output. RTP1 0 RTP1 1 RTP0 3 D Q D Q D Q D Q D Q T D Q RTP0 1 RTP0 2 D Q R T D Q D Q D Q R RTP0 0 T D Q D Q D Q T RTP1 2 RTP1 3 P6OUT CUT Pulse output polarity select bit (bit 3 at address A916) Waveform output control bit 0 (bit 6 at address A616) Reset Pulse width modulation circuit Pulse output trigger select bits (bits 7, 6 at address A816) Pulse width modulation output of timer A1 Pulse width modulation timer select bits (bits 5, 4 at address A616) Pulse width modulation output of timer A2 Pulse width modulation output of timer A4 Timer A3 Pulse width modulation enable bits 0 through 2 (bits 0 through 2 at address A916) Timer A0 RTP TRG1 Bits 0 through 3 of three- phase output data register 0 (address A8 16) Bits 4, 5 of three-phase output data register 0 (address A8 or 16) Bits 4, 5 of three-phase output data register 1 (address A916) Bits 6, 7 of three-phase output data register 1 (address A916) Data bus (even-numbered) Pulse output mode select bit (bit 3 at address A6 16) Data bus (odd-numbered) Waveform output control bit 1 (bit 7 at address A616) Reset
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 49 Bit configuration of waveform output mode register in pulse output port mode 0 Timer A0 mode register 5616 Timer A3 mode register 5916 Fix these bits to 000000 in pulse output port mode. Clock source select bits (See Table 7.) 76543210 000000 Address Fig. 50 Bit configuration of timer A3 and A0 mode registers in pulse output port mode 0 Waveform output select bits 000 : Parallel ports 001 : When pulse mode 0 is selected, RTP0 is selected. When pulse mode 1 is selected, RTP0, RTP1 1, RTP10 are selected. 010 : When pulse mode 0 is selected, RTP1 is selected. When pulse mode 1 is selected, RTP1 3 and RTP12 are selected. 011 : When pulse mode 0 is selected, RTP0 and RTP1 are selected. When pulse mode 1 is selected, RTP0, RTP11, RTP10 and RTP13, RTP12 are selected. Pulse output mode select bit 0 : Pulse mode 0 1 : Pulse mode 1 Pulse width modulation timer select bits 0 0 : When pulse mode 0 is selected (valid only for RTP0), Pulse width modulation by timer A1 When pulse mode 1 is selected (valid only for RTP0, RTP1 1, RTP10), Pulse width modulation by timer A1 0 1 : When pulse mode 0 is selected, Do not set. When pulse mode 1 is selected (valid only for RTP0, RTP11, RTP10), Pulse width modulation by timer A1 ; RTP02, RTP01, RTP00 Pulse width modulation by timer A2 ; RTP03, RTP11, RTP10 1 0 : When pulse mode 0 is selected, Do not set. When pulse mode 1 is selected (valid only for RTP0, RTP11, RTP10), Pulse width modulation by timer A1 ; RTP01, RTP00 Pulse width modulation by timer A2 ; RTP03, RTP02 Pulse width modulation by timer A4 ; RTP11, RTP10 1 1 : Do not select. Waveform output control bit 0 When pulse mode 0 is selected, 0 : RTP1 waveform outputs is disabled. 1 : RTP1 waveform outputs is enabled. When pulse mode 1 is selected, 0 : RTP1 3, RTP12 waveform outputs are disabled. 1 : RTP13, RTP12 waveform outputs are enabled. Waveform output control bit 1 When pulse mode 0 is selected, 0 : RTP0 waveform output is disabled. 1 : RTP0 waveform output is enabled. When pulse mode 1 is selected, 0 : RTP0, RTP1 1, RTP10 waveform outputs are disabled. 1 : RTP0, RTP11, RTP10 waveform outputs are enabled.
76543210 Address
Waveform output mode register A616
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS RTP0 0 pulse output data bit RTP0 1 pulse output data bit RTP0 2 pulse output data bit RTP0 3 pulse output data bit RTP1 0 pulse output data bit; Valid when pulse mode 1 is selected. RTP1 1 pulse output data bit; Valid when pulse mode 1 is selected. Pulse output trigger select bits 0 0 : Underflow of timer A0 0 1 : Falling edge of input signal to pin RTP TRG0 1 0 : Rising edge of input signal to pin RTP TRG0 1 1 : Falling and rising edges of input signal to pin RTPTRG0 Three-phase output data register 1 A916 Three-phase output data register 0 A816 Pulse width modulation enable bit 0 0 : No pulse width modulation by timer A1 1 : Pulse width modulation by timer A1 Pulse width modulation enable bit 1 0 : No pulse width modulation by timer A2 1 : Pulse width modulation by timer A2 Pulse width modulation enable bit 2 0 : No pulse width modulation by timer A4 1 : Pulse width modulation by timer A4 Pulse output polarity select bit 0 : Positive 1 : Negative RTP1 0 pulse output data bit; Valid when pulse mode 0 is selected. RTP1 1 pulse output data bit; Valid when pulse mode 0 is selected. RTP1 2 pulse output data bit RTP1 3 pulse output data bit Fig. 51 Bit configuration of three-phase output data registers 1 and 0 in pulse output port mode 0 Pulse mode 0 This mode divides a pulse output port into 4 bits and 4 bits and indi- vidually controls them. When setting the pulse output mode select bit to “0”, and setting bits 2 and 1 to “0” and bit 0 to “1” of the waveform output select bits, four of RTP0 3, RTP02, RTP01, and RTP00 become the pulse output ports (RTP0 selected). When setting the pulse output mode select bit to “0”, and setting bits 2 and 0 to “0” and bit 1 to “1” of the waveform output select bits, four of RTP1 3, RTP1 2, RTP1 1, RTP10 become the pulse output ports (RTP1 selected). When setting the pulse output mode select bit to “0”, and setting bit 2 to “0” and bits 1 and 0 to “1” of the waveform output select bits, the following two groups become the pulse output ports:
- Four of RTP1 3, RTP12, RTP11, RTP10
- Four of RTP03, RTP02, RTP01, RTP00. Each time the contents of timer A3 counter become 000016, the con- tents of three-phase output data register 1 (address A916)’s high or- der 4 bits, (bits 7 to 4), which corresponding to RTP13, RTP12, RTP1 1, RTP10, are output from ports. Each time the contents of timer A0 counter become 000016, the con- tents of three-phase output data register 0 (address A816)’s low or- der 4 bits (bits 3 to 0), which corresponding to RTP03, RTP02, RTP0 1, RTP00, are output from ports. When writing “0” to the specified one of the pulse output data bits, “L” level is output from the pulse output port when the contents of the corresponding timer counter become 0000 16; when writing “1” to it, “H ” level is output from the pulse output port. In the case that an input trigger of pin RTPTRG0 is selected, the data written to the pulse output data bit is output from the corresponding pulse output port by this selected trigger. Additionally, pulse width modulation can be applied for RTP0 RTP0 2, RTP01, and RTP00. Because timer A1 is used for pulse width modulation, actuate timer A1 in the pulse width modulation mode. When any of pulse output data bits is “1”, the pulse to which pulse width modulation has been applied is output from the pulse output port when the contents of timer A0 counter become 0000 16. The pulse width modulation using timer A1 can be applied by setting the pulse width modulation enable bit 0 of the three-phase output data register 1 (bit 0 at address A9 16) to “1” and the pulse width modulation timer select bits of the waveform output mode register (bits 5 and 4 at address A616) to “00”. Figure 52 shows example waveforms in pulse mode 0. In ports selecting pulse mode 0, output of RTP1 3, RTP12, of RTP11 and RTP10 is controlled by the waveform output control bit 0 (bit 6) of waveform output mode register; output of RTP03, RTP02, RTP01 and RTP00 is done by the waveform output control bit 1 (bit 7). When setting the waveform output control bit to “1”, waveform is out- put from the corresponding port. When clearing that bit to “0”, wave- form output from the corresponding port stops, and the port becomes floating. The waveform output control bits are cleared to “0” by reset or by executing instructions. Also, the waveform output control bit 1 can be cleared to “0” by in- putting a falling edge to pin P6OUT CUT .
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Pulse mode 1 This mode divides a pules output port into 6 bits and 2bits and indi- vidually control them. When setting the pulse output mode select bit to “1”, and setting bits 2 and 1 to “0” and bit 0 to “1” of the waveform output select bits, the following become the pulse output ports:
- Six of RTP1 1, RTP10, RTP03, RTP02, RTP01, RTP00 When setting the pulse output mode select bit to “1”, and setting bits 2 and 0 to “0” and bit 1 to “1” of the waveform output select bits, two of RTP13, RTP1 2 become the pulse output ports. When setting the pulse output mode select bit to “1”, and setting bit 2 to “0” and bits 1 and 0 to “1” of the waveform output select bits, the following two groups become the pulse output ports:
- Two of RTP1 3, RTP12
- Six of RTP11, RTP10, RTP03, RTP02, RTP01, RTP00. Each time the contents of timer A3 counter become 000016, the con- tents of three-phase output data register 1 (address A916)’s bits 7 and 6, which corresponding to RTP13 and RTP12, are output from ports. Each time the contents of timer A0 counter become 0000 16, the con- tents of three-phase output data register 0 (address A816)s’ low or- der 6 bits (bits 5 to 0), which corresponding to RTP11, RTP10, RTP0 3, RTP0 2, RTP0 1, RTP0 0, are output from ports. Whether to control these pulse output ports by an underflow of timer A0 or an input edge to pin RTP TRG0 is selected by the pulse output trigger select bits of the three-phase output data register 0 (bits 7 and 6 at address A8 16). Additionally, pulse width modulation can be applied to RTP11, RTP1 0, RTP0 3, RTP0 2, RTP0 1, and RTP00. The pulse width modula- tion timer select bits of the waveform output mode register (bits 5 and 4 at address A6 16) select the type of pulse width modulation from the following: (1) When the pulse width modulation timer select bits = “00”, the common modulation to six of RTP1 1, RTP10, RTP03, RTP02, RTP0 1, RTP00 is selected. For this modulation, since timer A1 is necessary, be sure to actuate this timer in the pulse width modu- lation mode. (2) When the pulse width modulation timer select bits = “01”, the modulation to the following two groups is selected; one consists of RTP1 1, RTP10, RTP03, and the other consists of RTP02, RTP0 1, RTP00. For this modulation, since timers A1 and A2 are necessary, be sure to actuate these timers in the pulse width modulation mode. (3) When the pulse width modulation timer select bits = “10”, the modulation to the following three groups is selected; one consists of RTP1 1, RTP10, and another consists of RTP03, RTP02, and the other consists of RTP01, RTP00. For this modulation, since timers A1, A2, and A4 are necessary, be sure to actuate these timers in the pulse width modulation mode. Additionally, at this time, be sure to set the corresponding pulse width modulation enable bit of the three-phase output data register 1 (bits 2 through 0 at address A9 16) to “1” in order to enable the pulse width modulation. The other operations are the same as that of pulse mode 0. Figure 53 shows example waveforms in pulse mode 1. In ports selecting pulse mode 1, output of RTP1 3 and RTP12 is con- trolled by the waveform output control bit 0 (bit 6) of the waveform output mode register; output of RTP11, RTP1 0, RTP03, RTP02, RTP0 1 and RTP00 is done by the waveform output control bit 1 (bit 7). When setting the waveform output control bit to “1”, waveform is out- put from the corresponding port. When clearing that bit to “0”, wave- form output from the corresponding port stops, and the port becomes floating. These waveform output control bits 0, 1 are cleared to “0” by reset, by inputting a falling edge to pin P6OUT CUT , or by executing instructions.
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 52 Example waveforms in pulse mode 0 Fig. 53 Example waveforms in pulse mode 1 Pulse output port example Pulse output port example in the case of pulse output polarity select bit = “1” Example of pulse width modulation for above pulse output port using timer A1 Signal output each time timer A0 becames 000016 RTP0 3 RTP0 2 RTP0 0 RTP0 1 Signal output each time timer A0 becames 0000 RTP0 3 RTP0 2 RTP0 0 RTP0 1 Signal output each time timer A3 becames 0000 RTP1 0 RTP1 1 Pulse output port example Example of pulse width modulation for above pulse output port using timer A1 Signal output each time timer A0 becames 000016 RTP1 1 RTP0 1 RTP1 0 RTP0 0 RTP0 2 RTP0 3 Signal output each time timer A0 becames 0000 RTP1 1 RTP0 1 RTP1 0 RTP0 0 RTP0 2 RTP0 3
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS PULSE OUTPUT PORT MODE 1 Figure 54 shows the block diagram in the pulse output port mode 1. This mode has an 8-bit pulse output port. The waveform output se- lect bits (bits 0 to 2) of the pulse output control register (address 16) select use of pulse output the port. The 8-bit pulse output port can also be divided into “4 bits and 4 bits” or “6 bits and 2 bits”, with the pulse output mode select bit (bit 3) of the pulse output control register (address A0 16); each of them can be individually controlled. Set timers A8 and A5 to the timer mode because they are used in the pulse output port mode 1. Figure 56 shows the bit configuration of timer A8 and A5 mode registers in the pulse output port mode 1. Timers A8 and A5 start count when setting the corresponding timer count start bit to “1”, and they stop it when clearing that bit to “0”. Fig. 54 Block diagram in pulse output port mode 1 Each bit using timer A5 as a trigger can also be controlled by an in- put trigger from pin RTP TRG1 . This control is selected by the pulse output trigger select bits of the pulse output data register 0 (bits 7 and 6 at address A2 16). Also, this externally-input trigger can be se- lected from the following three types: falling edges, rising edges, and falling and rising edges. The reversed content of the pulse output data bit can be output to each pulse output port by the pulse output polarity select bit of the pulse output data register 1 (bit 3 at address A4 16). When the pulse output polarity select bit = “0”, the content of the pulse output data bit is output as it is; when the pulse output polarity select bit = “1”, the reversed content is output. RTP3 0 RTP3 1 RTP2 3 D Q D Q D Q D Q D Q T D Q RTP2 1 RTP2 2 D Q R T D Q D Q D Q R RTP2 0 T D Q D Q D Q T RTP3 2 RTP3 3 P4OUT CUT Pulse output polarity select bit (bit 3 at address A416) Waveform output control bit 0 (bit 6 at address A016) Reset Pulse width modulation circuit Pulse output trigger select bits (bits 7, 6 at address A216) Pulse width modulation output of timer A6 Pulse width modulation timer select bits (bits 5, 4 at address A016) Pulse width modulation output of timer A7 Pulse width modulation output of timer A9 Timer A8 Pulse width modulation enable bits 0 through 2 (bits 0 through 2 at address A4 16) Timer A5 RTP TRG1 Bits 0 through 3 of pulse output data register 0 (address A2 16) Bits 4, 5 of three-phase output data register 0 (address A2 or 16) Bits 4, 5 of three-phase output data register 1 (address A416) Bits 6, 7 of pulse output data register 1 (address A416) Data bus (even-numbered) Pulse output mode select bit (bit 3 at address A0 16) Waveform output control bit 1 (bit 7 at address A016) Reset
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 55 Bit configuration of pulse output control register in pulse output port mode 1 Fig. 56 Bit configuration of timer A8 and A5 mode registers in pulse output port mode 1 Waveform output select bits 000 : Parallel ports 001 : When pulse mode 0 is selected, RTP2 is selected. When pulse mode 1 is selected, RTP2, RTP3 1, RTP30 are selected. 010 : When pulse mode 0 is selected, RTP3 is selected. When pulse mode 1 is selected, RTP3 3 and RTP32 are selected. 011 : When pulse mode 0 is selected, RTP2 and RTP3 are selected. When pulse mode 1 is selected, RTP2, RTP31, RTP30 and RTP33, RTP32 are selected. Pulse output mode select bit 0 : Pulse mode 0 1 : Pulse mode 1 Pulse width modulation timer select bits 0 0 : When pulse mode 0 is selected (valid only for RTP2), Pulse width modulation by timer A6 When pulse mode 1 is selected (valid only for RTP2, RTP3 1, RTP30), Pulse width modulation by timer A6 0 1 : When pulse mode 0 is selected, Do not set. When pulse mode 1 is selected (valid only for RTP2, RTP31, RTP30), Pulse width modulation by timer A6 ; RTP22, RTP21, RTP20 Pulse width modulation by timer A7 ; RTP23, RTP31, RTP30 1 0 : When pulse mode 0 is selected, Do not set. When pulse mode 1 is selected (valid only for RTP2, RTP31, RTP30), Pulse width modulation by timer A6 ; RTP21, RTP20 Pulse width modulation by timer A7 ; RTP23, RTP22 Pulse width modulation by timer A9 ; RTP31, RTP30 1 1 : Do not select. Waveform output control bit 0 When pulse mode 0 is selected, 0 : RTP3 waveform outputs is disabled. 1 : RTP3 waveform outputs is enabled. When pulse mode 1 is selected, 0 : RTP3 3, RTP32 waveform outputs are disabled. 1 : RTP33, RTP32 waveform outputs are enabled. Waveform output control bit 1 When pulse mode 0 is selected, 0 : RTP2 waveform output is disabled. 1 : RTP2 waveform output is enabled. When pulse mode 1 is selected, 0 : RTP2, RTP3 1, RTP30 waveform outputs are disabled. 1 : RTP2, RTP31, RTP30 waveform outputs are enabled. Pulse output control register A016 Timer A5 mode register D616 Timer A8 mode register D916 Fix these bits to “000000” in pulse output port mode. Clock source select bits (See Table 7.) 76543210 000000 Address
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 57 Bit configuration of pulse output data registers 1 and 0 in pulse output port mode 1 Pulse mode 0 This mode divides a pulse output port into 4 bits and 4 bits and indi- vidually controls them. When setting the pulse output mode select bit to “0”, and setting bits 2 and 1 to “0” and bit 0 to “1” of the waveform output select bits, four of RTP2 3, RTP22, RTP21, and RTP20 become the pulse output ports (RTP2 selected). When setting the pulse output mode select bit to “0”, and setting bits 2 and 0 to “0” and bit 1 to “1” of the waveform output select bits, four of RTP3 3, RTP3 2, RTP3 1, RTP30 become the pulse output ports (RTP3 selected). When setting the pulse output mode select bit to “0”, and setting bit 2 to “0” and bits 1 and 0 to “1” of the waveform output select bits, the following two groups become the pulse output ports:
- Four of RTP3 3, RTP32, RTP31, RTP30
- Four of RTP23, RTP22, RTP21, RTP20. Each time the contents of timer A8 counter become 000016, the con- tents of the pulse output data register 1 (address A416)’s high-order 4 bits (bits 7 to 4), which corresponding to RTP33, RTP32, RTP3 1, RTP3 0, are output from ports. Each time the contents of timer A5 counter become 000016, the con- tents of pulse output data register 0 (address A216)’s low-order 4 bits (bits 3 to 0), which corresponding to RTP23, RTP22, RTP21, RTP20, are output from ports. When writing “0” to the specified one of the pulse output data bits, “L” level is output from the pulse output port when the contents of the corresponding timer counter become 0000 16; when writing “1” to it, “H ” level is output from the pulse output port. In the case that an input trigger of pin RTPTRG1 is selected, the data written to the pulse output data bit is output from the corresponding pulse output port by this selected trigger. Additionally, pulse width modulation can be applied for RTP2 RTP2 2, RTP21, and RTP20. Because timer A6 is used for pulse width modulation, actuate timer A6 in the pulse width modulation mode. When any of pulse output data bits is “1”, the pulse to which pulse width modulation has been applied is output from the pulse output port when the contents of timer A5 counter become 0000 16. The pulse width modulation using timer A6 can be applied by setting the pulse width modulation enable bit 0 of the pulse output data reg- ister 1 (bit 0 at address A4 16) to “1” and the pulse width modulation timer select bits of the pulse output control register (bits 5 and 4 at address A016) to “00”. Figure 58 shows example waveforms in pulse mode 0. In ports selecting pulse mode 0, output of RTP3 3, RTP32, RTP31 and RTP30 is controlled by the waveform output control bit 0 (bit 6) of pulse output control register; output of RTP23, RTP22, RTP21 and RTP2 0 is done by the waveform output control bit 1 (bit 7). When setting the waveform output control bit to “1”, waveform is out- put from the corresponding port. When clearing that bit to “0”, wave- form output from the corresponding port stops, and the port becomes floating. The waveform output control bits are cleared to “0” by reset or by executing instructions. Also, the waveform output control bit 1 can be cleared to “0” by in- putting a falling edge to pin P4OUT CUT . RTP2 0 pulse output data bit RTP2 1 pulse output data bit RTP2 2 pulse output data bit RTP2 3 pulse output data bit RTP3 0 pulse output data bit; Valid when pulse mode 1 is selected. RTP3 1 pulse output data bit; Valid when pulse mode 1 is selected. Pulse output trigger select bits 0 0 : Underflow of timer A5 0 1 : Falling edge of input signal to pin RTP TRG1 1 0 : Rising edge of input signal to pin RTP TRG1 1 1 : Falling and rising edges of input signal to pin RTPTRG1
Pulse output data register 1 Pulse output data register 0 A416 A216 Pulse width modulation enable bit 0 0 : No pulse width modulation by timer A6 1 : Pulse width modulation by timer A6 Pulse width modulation enable bit 1 0 : No pulse width modulation by timer A7 1 : Pulse width modulation by timer A7 Pulse width modulation enable bit 2 0 : No pulse width modulation by timer A9 1 : Pulse width modulation by timer A9 Pulse output polarity select bit 0 : Positive 1 : Negative RTP3 0 pulse output data bit; Valid when pulse mode 0 is selected. RTP3 1 pulse output data bit; Valid when pulse mode 0 is selected. RTP3 2 pulse output data bit RTP3 3 pulse output data bit
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Pulse mode 1 This mode divides a pules output port into 6 bits and 2 bits and indi- vidually control them. When setting the pulse output mode select bit to “1”, and setting bits 2 and 1 to “0” and bit 0 to “1” of the waveform output select bits, the following become the pulse output ports:
- Six of RTP3 1, RTP30, RTP23, RTP22, RTP21, RTP20 When setting the pulse output mode select bit to “1”, and setting bits 2 and 0 to “0” and bits 1 to “1” of the waveform output select bits, two of RTP33, RTP3 2 become the pulse output ports. When setting the pulse output mode select bit to “1”, and setting bit 2 to “0” and bits 1 and 0 to “1” of the waveform output select bits, the following two groups become the pulse output ports:
- Two of RTP3 3, RTP32
- Six of RTP31, RTP30, RTP23, RTP22, RTP21, RTP20 Each time the contents of timer A8 counter become 000016, the con- tents of pulse output data register 1 (address A416)’s bits 7 and 6, which corresponding to RTP33 and RTP32, are output from ports. Each time the contents of timer A5 counter become 000016, the con- tents of pulse output data register 0 (address A216)’s low-order 6 bits (bits 5 to 0), which corresponding to RTP31, RTP30, RTP23, RTP2 2, RTP2 1, RTP2 0, are output from ports. Whether to control these pulse output ports by an underflow of timer A5 or an input edge to pin RTPTRG1 is selected by the pulse output trigger select bit of the pulse output data register 0 (bits 7 and 6 at address A2 16). Additionally, pulse width modulation can be applied to RTP31, RTP3 0, RTP2 3, RTP2 2, RTP2 1, and RTP20. The pulse width modula- tion timer select bits of the pulse output control register (bits 5 and 4 at address A016) select the type of pulse width modulation from the following: (1) When the pulse width modulation timer select bits = “00”, the common modulation to six of RTP3 1, RTP30, RTP23, RTP22, RTP2 1, RTP20 is selected. For this modulation, since timer A6 is necessary, be sure to actuate this timer in the pulse width modu- lation mode. (2) When the pulse width modulation timer select bits = “01”, the modulation to the following two groups is selected; one consists of RTP3 1, RTP30, RTP23, and the other consists of RTP22, RTP2 1, RTP20. For this modulation, since timers A6 and A7 are necessary, be sure to actuate these timers in the pulse width modulation mode. (3) When the pulse width modulation timer select bits = “10”, the modulation to the following three groups is selected; one consists of RTP3 1, RTP30, and another consists of RTP23, RTP22, and the other consists of RTP21, RTP20. For this modulation, since timers A6, A7, and A9 are necessary, be sure to actuate these timers in the pulse width modulation mode. Additionally, at this time, be sure to set the corresponding pulse width modulation enable bit of the pulse output data register 1 (bits 2 through 0 at address A4 16) to “1” in order to enable the pulse width modulation. The other operations are the same as that of pulse mode 0. Figure 59 shows example waveforms in pulse mode 1. In ports selecting pulse mode 1, output of RTP3 3 and RTP32 is con- trolled by the waveform output control bit 0 (bit 6) of the pulse output control register; output of RTP31, RTP3 0, RTP23, RTP22, RTP21, and RTP20 is done by the waveform output control bit 1 (bit 7). When setting the waveform output control bit to “1”, waveform is out- put from the corresponding port. When clearing that bit to “0”, wave- form output from the corresponding port stops, and the port becomes floating. These waveform output control bits 0, 1 are cleared to “0” by reset, by inputting a falling edge to pin P4OUTCUT , or by executing instructions.
Y Notice: This is not a final specification. Some parametric limits are subject to change. M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 58 Example waveforms in pulse mode 0 Fig. 59 Example waveforms in pulse mode 1 Pulse output port example Pulse output port example in the case of pulse output polarity select bit = “1” Example of pulse width modulation for above pulse output port using timer A6 Signal output each time timer A5 becames 000016 RTP2 3 RTP2 2 RTP2 0 RTP2 1 Signal output each time timer A5 becames 0000 RTP2 3 RTP2 2 RTP2 0 RTP2 1 Signal output each time timer A8 becames 0000 RTP3 0 RTP3 1 Pulse output port example Example of pulse width modulation for above pulse output port using timer A6 Signal output each time timer A5 becames 000016 RTP3 1 RTP2 1 RTP3 0 RTP2 0 RTP2 2 RTP2 3 Signal output each time timer A5 becames 0000 RTP3 1 RTP2 1 RTP3 0 RTP2 0 RTP2 2 RTP2 3
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS SERIAL I/O PORTS Two independent serial I/O ports are provided. Figure 60 shows a block diagram of the serial I/O ports. Bits 0 through 2 of the UARTi(i = 0, 1, 2) transmit/receive mode reg- ister shown in Figure 61 are used to determine whether to use ports P1 and P8 as programmable I/O ports, clock synchronous serial I/O ports, or asynchronous (UART) serial I/O ports which use start and stop bits. Figures 62 and 63 show the block diagrams of the receiver/transmit- ter. Figure 64 shows the bit configuration of the UARTi transmit/receive control register. Each communication method is described below. Fig. 61 Bit configuration of UARTi transmit/receive mode register Fig. 60 Block diagram of serial I/O port UARTi receive register TXD i R XD i Receive control circuit Transmit control circuit UARTi transmit register 1/16 divider 1/2 divider 1/(n + 1) divider 1/16 divider Transfer clock Transfer clock UARTi transmit buffer register UART Clock synchronous Clock synchronous Clock synchronous (when internal clock selected) BRG count source select bits f16 f64 f512 Clock synchronous (Internal clock) UART D 7 D 6 D 5 D 4 D 3 D 2 D 1 UARTi receive buffer registerD 0 D 7D 8 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0D 8000000 BRGi UART0 (Addresses 3316, 3216) UART1 (Addresses 3B16, 3A16) UART2 (Addresses B316, B216) UART0 (Addresses 3716, 3616) UART1 (Addresses 3F16, 3E16) UART2 (Addresses B716, B616) CTS i/RTSi Clock synchronous (External clock) n = a value set into the UARTi baud rate register (BRGi) CLK i CTS i CTS i/CLKi Data bus (even) Data bus (odd) Bit converter Data bus (odd) Data bus (even) Bit converter Serial I/O mode select bits 0 0 0 : Serial I/O is invalid. (Ports P1 and P8 function as programmable I/O ports.) 0 0 1 : Clock synchronous 1 0 0 : 7-bit UART 1 0 1 : 8-bit UART 1 1 0 : 9-bit UART Internal/External clock select bit 0 : Internal clock 1 : External clock Stop bit length select bit (Valid in UART mode.) 0 : 1 stop bit 1 : 2 stop bits Odd/Even parity select bit (Valid in UART mode with the parity enable bit = “1”.) (Note) 0 : Odd parity 1 : Even parity Parity enable bit (Valid in UART mode) (Note) 0 : No parity 1 : With parity Sleep select bit (Valid in UART mode) (Note) 0 : No sleep 1 : Sleep
76543210 UART 0 Transmit/Receive mode register
UART 1 Transmit/Receive mode register UART 2 Transmit/Receive mode register Addresses 3016 3816 B016 Note: In the clock synchronous serial I/O mode, bits 4 to 6 are invalid. (Each of them may be “0” or “1”.) Furthermore, fix bit 7 to “0”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Data bus (odd) Data bus (even) D 0D 1D 2D 3D 4D 5D 6D 7D 8 SP SP PAR No parity UARTi receive register R XD i UARTi receive buffer register 9-bit UART 7-bit UART7-bit UART 8-bit UART Synchronous UART 8-bit UART 9-bit UART Synchronous Synchronous Parity2SP 1SP 0000000 SP : Stop bit PAR : Parity bit Fig. 62 Block diagram of receiver Fig. 63 Block diagram of transmitter D 0D 1D 2D 3D 4D 5D 6D 7D 8 SP PAR TXD i 2SP SP 1SP UART “0” Data bus (odd) Data bus (even) No parity 7-bit UART 9-bit UART Synchronous 7-bit UART 8-bit UART 9-bit UART Synchronous 8-bit UART Synchronous Parity SP : Stop bit PAR : Parity bit UARTi transmit register UARTi receive transmit register
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 64 Bit configuration of UARTi transmit/receive control register /LSB MSB TX EPTY 76543210 R/C CS 1 CS 0 BRG count source select bits 00 : f2 01 : f16 10 : f64 11 : f512 CTS/RTS function select bit (Note 1) 0 : CTS function is selected. 1 : RTS function is selected. Transmit register empty flag 0 : Data is present in the transmit register. (Transmission is in progress.) 1 : No data is present in the transmit register. (Transmission is completed.) CTS/RTS enable bit 0 : CTS, RTS function is enabled. 1 : CTS, RTS function is disabled. UARTi receive interrupt mode select bit 0 : Reception interrupt 1 : Reception error interrupt CLK polarity select bit (This bit is used in the clock synchronous serial I/O mode.) (Note 2) 0 : At the falling edge of a transfer clock, transmit data is output; at the rising edge, receive data is input. When not in transfer, pin CLK’s level is “H”. 1 : At the rising edge of a transfer clock, transmit data is output; at the falling edge, receive data is input. When not in transfer, pin CLK’s level is “L”. Transfer format select bit (This bit is used in the clock synchronous serial I/O mode.) (Note 2) 0 : LSB (Least Significant Bit) first 1 : MSB (Most Significant Bit) first 76543210 RERIOERFERPERSUM TI TE Transmit enable bit Transmit buffer empty flag Receive enable bit Receive complete flag Overrun error flag Framing error flag (Note 3) Parity error flag (Note 3) Error sum flag (Note 3) UART0 transmit/receive control register 0 UART1 transmit/receive control register 0 UART2 transmit/receive control register 0 Address 3C 16 B416 UART0 transmit/receive control register 1 UART1 transmit/receive control register 1 UART2 transmit/receive control register 1 Address 3D 16 B516 CPL Notes 1: Valid when the CTS/RTS enable bit (bit 4) = “0”. 2: Fix these bits to “0” in UART mode or when serial I/O is invalid. 3: Valid in UART mode.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS CLOCK SYNCHRONOUS SERIAL COMMUNI- CATION A case where communication is performed between two clock syn- chronous serial I/O ports as shown in Figure 65 will be described. (The transmission side will be denoted by subscript j and the receiv- ing side will be denoted by subscript k.) Bit 0 of the UARTj transmit/receive mode register and UARTk trans- mit/receive mode register must be set to “1” and bits 1 and 2 must be “0”. The length of the transmission data is fixed at 8 bits. Bit 3 of the UARTj transmit/receive mode register of the clock send- ing side is cleared to “0” to select the internal clock. Bit 3 of the UARTk transmit/receive mode register of the clock receiving side is set to “1” to select the external clock. Bits 4, 5 and 6 are ignored in clock synchronous mode. Bit 7 must always be “0”. The clock source is selected by bit 0 (CS 0) and bit 1 (CS1) of the clock-sending-side UARTj transmit/receive control register 0. As shown in Figure 60, the selected clock is divided by (n + 1), then by 2, is passed through a transmission control circuit, and is output as transmission clock CLK j. Therefore, when the selected clock is fi, Bit Rate = fi/ {(n + 1) × 2} On the clock receiving side, the CS0 and CS1 bits of the UARTk transmit/receive control register 0 are ignored because an external clock is selected. Both of UART0 and UART1 can use CTS and RTS functions. Bit 4 of the UARTi transmit/receive control register 0 is used to de- termine whether to use CTS or RTS signal. Bit 4 must be “0” when CTS or RTS signal is used. Bit 4 must be “1” when CTS and RTS sig- nals are not used. When CTS and RTS signals are not used, CTS/ RTS pin can be used as a normal port pin. When using pin CTS/RTS, :
- If bit 2 of the UARTi transmit/receive control register 0 is cleared to “0”, CTS input is selected.
- If bit 2 is set to “1”, RTS output is selected. The case using CTS and RTS signals are explained below. As shown in Figure 72, bits 2, 3 and 5 of the serial I/O pin control regis- ter can determine whether port pins P1 3, P17 and P83 are used as pins TxD i or as port pins. When bits 2, 3 and 5 are “0”, P13, P17 and P83 function as pins TxD i; when bits 2, 3 and 5 are “1”, P13, P17 and P83 function as port pins. Therefore, in the input-only system where pins TxD i are not used, pins TxD i can function as port pins. Fig. 65 Clock synchronous serial communication UARTj transmit register TxD j R xD j CLK j CTS j UARTj transmit buffer register UARTj receive buffer register UARTj receive register UARTj Transmit/Receive mode register UARTj Transmit/Receive control register 0 UARTj Transmit/Receive control register 1 00 0 0TX EPTY CS 1 CS 0 RERIOERFERPER CPL CPL SUM TI TE UARTk transmit register UARTk transmit buffer register UARTk receive buffer register UARTk receive register UARTk Transmit/Receive mode register UARTk Transmit/Receive control register 0 UARTk Transmit/Receive control register 1 01 1 0 1TX EPTY MSB /LSB RERIOERFERPERSUM TI TE TxD k R xD k CLK k RTS k MSB /LSB
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Transmission Transmission is started when bit 0 (TEj flag: transmit enable bit) of UARTj transmit/receive control register 1 is “1”, bit 1 (TIj flag) of one is “0”, and CTSj input is “L”. The TIj flag indicates whether the trans- mit buffer register is empty or not. It is cleared to “0” when data is written in the transmit buffer register; it is set to “1” when the contents of the transmit buffer register is transferred to the transmit register and the transmit buffer register becomes empty. When all of the transmit conditions are satisfied, the transmit data in the transmit buffer register are transferred to the transmit register, and transmission starts. As shown in Figure 66, data is output from T xD j pin each time when transmission clock CLKj changes from “H ” to “L”. (In the clock synchronous serial I/O mode, the polarity of a transfer clock can be changed. For details, refer to the section on the selection of the transfer clock polarity.) The data is output from the least significant bit. When the transmit register becomes empty after the contents has been transmitted, data is transferred automatically from the transmit buffer register to the transmit register if the next transmission start condition is satisfied. The next transmission is performed succeedingly. Once transmission has started, the TEj flag, TIj flag, and CTS j signals are ignored until data transmission completes. Therefore, transmission is not interrupted when CTSj input is changed to “H ” during transmission. The transmission start condition indicated by TEj flag, TIj flag, and CTS j is checked while the TEND j signal (shown in Figure 66) is “H ”. Therefore, data can be transmitted continuously if the next transmis- sion data is written in the transmit buffer register and TIj flag is cleared to “0” before theT END j signal goes “H ”. Bit 3 (TXEPTYj flag) of UARTj transmit/receive control register 0 changes to “1” at the next cycle just after the TEND j signal goes “H ” and changes to “0” when transmission starts. Therefore, this flag can be used to determine whether data transmission has completed. When the TIj flag changes from “0” to “1”, the interrupt request bit in the UARTj transmit interrupt control register is set to “1”. Receive When bit 2 (REk flag) of the UARTk transmit/receive control register 1 is set to “1”, reception becomes enabled. In this case, when the CLKk signal is input, the receive operation starts simultaneously with this signal. The RTS k output is “H ” when the REk flag is “0”. When the REk flag is set to “1”, the RTSk output becomes “L”. This informs the transmit- ter side that reception becomes enabled. When the receive opera- tion starts, the RTS k output automatically becomes “H ”. When the receive operation starts, the receiver takes data from pin RxDk each time when the transmit clock (CLK j) turns from “L” to “H ”. Simultaneously with reception, the contents of the receiver register is shifted bit by bit. (Note that, in the clock synchronous serial communication, the polar- ity of a transfer clock can be inverted. For details, refer to the section on the polarity of the transfer clock.) When an 8-bit data is received, the contents of the receive register is transferred to the receive buffer register and bit 3 (RIk flag) of UARTk transmit/receive control regis- ter 1 is set to “1”. In other words, the setting “1” to the RIk flag indi- cates that the receive buffer register contains the received data. At this time, if the low-order byte of the UARTk receive buffer register is read out, the RTS k output turns back to “L”. This indicates that the next data reception becomes enabled. Bit 4 (OERk flag) of UARTk transmit/receive control register 1 is set to “1” when the next data is transferred from the receive register to the receive buffer register while RIk flag is “1”, and indicates that the next data was transferred to the receive register before the contents of the receive buffer regis- ter was read. (In other words, this indicates that an overrun error has occurred.) RIk flag is automatically cleared to “0” when the low-order byte of the receive buffer register is read or when the REk flag is cleared to “0”. The OERk flag is cleared when the REk flag is cleared. Bit 5 (FERk flag), bit 6 (PERk flag), and bit 7 (SUMk flag) are ignored in clock synchronous mode. As shown in Figure 60, with clock synchronous serial communica- tion, data cannot be received unless the transmitter is operating be- cause the receive clock is created from the transmission clock. Therefore, the transmitter must be operating even when there is no need to sent data from UARTk to UARTj.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 66 Clock synchronous serial I/O timing Interrupt request at completion of reception When the RIk flag changes from “0” to “1”, in other words, when the receive operation is completed, the interrupt request bit of the UARTk receive interrupt control register can be set to “1”. The timing when this interrupt request bit is to be set to “1” can be selected from the following:
- Each reception
- When an error occurs at reception If bit 5 of the UARTk transmit/receive control register 0 (UART re- ceive interrupt mode select bit) is cleared to “0”, the interrupt request bit is set to “1” at each reception. If bit 5 is set to “1”, the interrupt re- quest bit is set to “1” only when an error occurs. (In the clock syn- chronous serial communication, only when an overrun error occurs, the interrupt request bit is set to “1”.) Polarity of transfer clock In the clock synchronous serial communication, by bit 6 of the UARTj transmit/receive control register 0 (CPL), the polarity of a transfer clock can be selected. As shown in Figure 67, when bit 6 = “0”, the polarity is as follows:
- In transmission, transmit data is output at the falling edge of CLK
- In reception, receive data is input at the rising edge of CLKk.
- When not in transfer, CLKi is at “H ” level. When bit 6 = “1”, the polarity is as follows:
- In transmission, transmit data is output at the rising edge of CLKj.
- In reception, receive data is input at the rising edge of CLKk.
- When not in transfer, CLKi is at “L” level. Transmission clock TE j 1/fi × (n + 1) × 2 1/fi × (n + 1) × 2 TIj CTS j Write in transmit buffer register D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 D 1 D 2 D 3 D 4 D 5 D 6 D 7 D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7D 0 Transmit register ← Transmit buffer register Stopped because TEj = “0” CLK j TENDj TXD j TXEPTY j
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 67 Polarity of transfer clock I CLK polarity select bit = 0 CLK i TxD i RxD i D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 ❇ Transmit data is output to pin TxD i at the falling edge of transfer clock, and receive data is input from pin R xD i at the rising edge of transfer clock. When not in transfer, pin CLKi’s level is “H ”. I CLK polarity select bit = 1 CLK i TxD i RxD i D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 ❇ Transmit data is output to pin TxD i at the rising edge of transfer clock, and receive data is input from pin R xD i at the falling edge of transfer clock. When not in transfer, pin CLKi’s level is “L”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Selection of transfer format In clock synchronous serial communication, transfer format can be selected by bit 7 of the transmit/receive control register 0. When bit 7 is “0”, transfer format is LSB first. When bit 7 is “1”, transfer format is MSB first. This function is realized by changing connection relation between the transmit buffer register and the receive buffer register when writ- ing transmit data to the transmit buffer register or reading receive data from the receive buffer register. Accordingly, the transmitter’s operation is the same in both transfer formats. Figure 68 shows the connection relation. Fig. 68 Connection relation between transmit buffer register, receive buffer register, and data bus Bit 7 in transmit/receive control register 0 Write to transmit buffer register Read from receive buffer register (LSB first) (MSB first) Transmit buffer register DB 7 Data bus D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 DB 6 DB 5 DB 4 DB 3 DB 2 DB 1 DB 0 Transmit buffer register DB 7 Data bus D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 DB 6 DB 5 DB 4 DB 3 DB 2 DB 1 DB 0 Receive buffer register DB 7 Data bus D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 DB 6 DB 5 DB 4 DB 3 DB 2 DB 1 DB 0 Receive buffer register DB 7 Data bus D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 DB 6 DB 5 DB 4 DB 3 DB 2 DB 1 DB 0 Precautions for clock synchronous serial communication In the clock synchronous serial communication, the separate func- tion for CTSi/RTSi cannot be selected. Furthermore, when an inter- nal clock is selected, RTS output is undefined. Therefore, do not use the RTS function. Before transmit operation is performed, be sure to clear bits 2, 3 and 5 of the serial I/O pin control register (address AC 16) to “00”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 69 Transmit timing example when 8-bit asynchronous communication with parity and 1 stop bit selected Fig. 70 Transmit timing example when 9-bit asynchronous communication with no parity and 2 stop bits selected ASYNCHRONOUS SERIAL COMMUNICATION Asynchronous serial communication can be performed using 7-, 8-, or 9-bit length data. The operation is the same for all data lengths. The following is the description for 8-bit asynchronous communication. With 8-bit asynchronous communication, bit 0 of UARTi transmit/re- ceive mode register is “1”, bit 1 is “0”, and bit 2 is “1”. Bit 3 is used to select an internal clock or an external clock. If bit 3 is “0”, an internal clock is selected and if bit 3 is “1”, then external clock is selected. If an internal clock is selected, bit 0 (CS 0) and bit 1 (CS1) of UARTi transmit/receive control register 0 are used to select the clock source. When an internal clock is selected for asynchronous serial communication, the CLKi pin can be used as a normal I/O pin. The selected internal or external clock is divided by (n + 1), then by 16, and is passed through a control circuit to create the UART trans- mission clock or UART receive clock. Therefore, the transmission speed can be changed by changing the contents (n) of the bit rate generator. If the selected clock is an inter- nal clock Pfi or an external clock f EXT , Bit Rate = (fi or fEXT ) / {(n+1)×16} Bit 4 is the stop bit length select bit to select 1 stop bit or 2 stop bits. Bit 5 is a select bit of odd parity or even parity. In the odd parity mode, the parity bit is adjusted so that the sum of 1s in the data and parity bit is always odd. In the even parity mode, the parity bit is adjusted so that the sum of the 1s in the data and parity bit is always even. Bit 6 is the parity bit select bit which indicates whether to add parity bit or not. Bits 4 to 6 must be set or reset according to the data format used in the communicating devices. Bit 7 is the sleep select bit. The sleep mode is described later. Figure 72 shows the bit configuration of the serial I/O pin control reg- ister. By bits 0, 1 and 4 of the serial I/O pin control register (CTSi/ RTSi separate select bits), the function of the CTS/RTS pin can be separated into two functions, and each function can be assigned to two different pins. When each of bits 0, 1 and 4 = “1”, the above separation is performed. When each of bits 0, 1 and 4 = “0”, no sepa- ration is performed. Table 8 lists the selection methods of the CTS/RTS function. (1/fi or 1/fEXT ) × (n + 1) × 16 Written in transmit buffer register Transmission clock TE i TIi CTS i TENDi TXD i TXEPTY i D 0 D 1ST Start bit Parity bit Stop bit D 2 D 3 D 4 D 5 D 6 D 7 PS P S T D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 PS P S T D 0 D 1 Transmit register ← Transmit buffer register Stopped because TEi = “0” (1/fi or 1/fEXT ) × (n + 1) × 16 Written in transmit buffer register Transmission clock TE i TIi TENDi TXD i TXEPTY i D 0 D 1ST D 2 D 3 D 4 D 5 D 6 D 7 D 8 SPSP ST D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 D 8 SP SP ST D 0 D 2D 1 Transmit register ← Transmit buffer register Stopped because TEi = “0”Start bit Stop bit Stop bit
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS succeedingly. Once transmission has started, the TEi flag, TIi flag, and CTSi signal are ignored until data transmission is completed. Therefore, transmission does not stop until it completes event if, dur- ing transmission, the TEi flag is cleared to “0” or CTSi input is set to “1”. The transmission start condition indicated by TEi flag, TIi flag, and CTSi is checked while the T END i signal shown in Figure 69 is “H ”. Therefore, data can be transmitted continuously if the next transmis- sion data is written in the transmit buffer register and TIi flag is cleared to “0” before the T END i signal goes “H ”. Bit 3 (TXEPTYi flag) of UARTi transmit/receive control register 0 changes to “1” at the next cycle just after the TEND i signal goes “H ” and changes to “0” when transmission starts. Therefore, this flag can be used to determine whether data transmission is completed. When the TIi flag changes from “0” to “1”, the interrupt request bit of the UARTi transmit interrupt control register is set to “1”. Transmission Transmission is started when bit 0 (TEi flag transmit enable flag) of UARTi transmit/receive control register 1 is “1”, bit 1 (TIi flag) is “0”, and CTSi input (in other words, transmit enable signal input from re- ceiver) is “L”. The TIi flag indicates whether the transmit buffer is empty or not. It is cleared to “0” when data is written in the transmit buffer; it is set to “1” when the contents of the transmit buffer register is transferred to the transmit register. When all of the transmission conditions are satisfied, transmit data is transferred to the transmit register, and transmit operation starts. As shown in Figures 69 and 70, data is output from the T XDi pin with the stop bit or parity bit specified by bits 4 through 6 of UARTi trans- mit/receive mode register. The data is output from the least signifi- cant bit. When the transmit register becomes empty after the contents has been transmitted, data is transferred automatically from the transmit buffer register to the transmit register if the next transmit start condi- tion is satisfied. Then, the next transmission is performed Fig. 71 Receive timing example when 8-bit asynchronous communication with no parity and 1 stop bit selected Start bit Stop bit Start bit D 0 D 1 D 7 Check to be “L” level Starting at the falling edge of start bit Data fetched fi or fEXT RE i R XD i Receive clock RIi RTS i
Notice: This is not a final specification. Table 8. Selection methods of CTS/RTS function Notes 1: When using the CTS function, be sure to clear the corresponding bit of the port P1 and port P8 direction registers to “0”. cannot be separated. Also, when CTSi and RTSi are separated in UART mode, be sure to select an internal clock. bit arrives and the data is received. receive operation starts, the RTSi output automatically becomes “H ”. the contents of the receive buffer register has been read. Bit 6 (PERi flag) is set to “1” when a parity error occurs. determine whether there is an error. the receive buffer register. 0 : CTS0/RTS0 are used together. 1 : CTS0/RTS0 are separated. 0 : CTS1/RTS1 are used together. 1 : CTS1/RTS1 are separated. 0 : CTS2/RTS2 are used together. 1 : CTS2/RTS2 are separated.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS The FERi, PERi, and SUMi flags are cleared to “0” when reading the low-order byte of the receive buffer register or when writing “0” to the REi flag. The OERi flag is cleared to “0” when writing “0” to the REi flag. Interrupt request at completion of reception When the RIk flag changes from “0” to “1”, in other words, when the receive operation is completed, the interrupt request bit of the UARTk receive interrupt control register can be set to “1”. The timing when this interrupt request bit is to be set to “1” can be selected from the following:
- Each reception
- When an error occurs at reception If bit 5 of the UARTk transmit/receive control register 0 (UART re- ceive interrupt mode select bit) is cleared to “0”, the interrupt request bit is set to “1” at each reception. If bit 5 is set to “1”, the interrupt request bit is set to “1” only when an error occurs. (In the clock asyn- chronous serial communication, when an overrun error, framing er- ror, or parity error occurs, the interrupt request bit is set to “1”.) Sleep mode The sleep mode is used to communicate only between certain micro- computers when multiple microcomputers are connected through serial I/O. The microcomputer enters the sleep mode when bit 7 of UARTi transmit/receive mode register is set to “1”. The operation of the sleep mode for an 8-bit asynchronous commu- nication is described below. When sleep mode is selected, the contents of the receive register is not transferred to the receive buffer register if bit 7 (bit 6 if 7-bit asyn- chronous communication and bit 8 if 9-bit asynchronous communi- cation) of the received data is “0”. Also the RIi, OERi, FERi, PERi, and the SUMi flags are unchanged. Therefore, the interrupt request bit of the UARTi receive interrupt control register is also unchanged. Normal receive operation takes place when bit 7 of the received data is “1”. The following is an example of how the sleep mode can be used. The main microcomputer first sends data: bit 7 is “1” and bits 0 to 6 are set to the address of the subordinate microcomputer to be com- municated with. Then all subordinate microcomputers receive this data. Each subordinate microcomputer checks the received data, clears the sleep bit to “0” if bits 0 through 6 are its own address and sets the sleep bit to “1” if not. Next, the main microcomputer sends data with bit 7 cleared. Then the microcomputer which cleared the sleep bit will receive the data, but the microcomputers which set the sleep bit to “1” will not. In this way, the main microcomputer is able to communicate only with the designated microcomputer. Precautions for clock asynchronous (UART) serial communication When CTSi and RTSi are separated, pin CLKi cannot be used. Therefore, when CTSi and RTSi are separated in UART mode, be sure to select an internal clock. Before transmit operation is performed, be sure to clear bits 2, 3 and 5 of the serial I/O pin control register (address AC 16) to “00”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS A-D CONVERTER The A-D converter is a 10-bit successive approximation converter. The use of A-D converter or the use of comparator can be selected for each A-D input pin. The contents of the comparator function se- lect register specify it. Figure 73 shows a block diagram of the A-D converter. Fig. 73 Block diagram of A-D converter φAD (1,1) (1,0) (0,1) (0,0) AV SS AN 0 AN 1 AN 2 AN 3 AN 4 AN 5 AN 6 AN 7 AN 8 AN 9 VREF Vref AN 10 AN 11 Resistor ladder network VREF connection select bit Compa- rator A-D conversion frequency (φAD ) select bits 1, 0 Selection of A-D conversion frequency V Comparator function select register 1 Comparator function select register 0 Selector Selector Comparator result register 0Comparator result register 1 A-D control register 2 A-D control register 1 A-D control register 0 Control circuit Successive approximation register A-D register 0 A-D register 1 A-D register 2 A-D register 3 A-D register 4 A-D register 5 A-D register 6 A-D register 7 A-D register 8 A-D register 9 A-D register 10 A-D register 11 Data bus (even) Data bus (odd) Selector Decoder
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 76 Bit configuration of comparator result register 0 Fig. 77 Bit configuration of comparator result register 1 Fig. 74 Bit configuration of comparator function select register 0 Fig. 75 Bit configuration of comparator function select register 1 76543210 0 : A-D converter is selected. 1 : Comparator is selected. Comparator function select register 0 AN 0 pin comparator function select bit AN 1 pin comparator function select bit AN 2 pin comparator function select bit AN 3 pin comparator function select bit AN 4 pin comparator function select bit AN 5 pin comparator function select bit AN 6 pin comparator function select bit AN 7 pin comparator function select bit Address DC 16 76543210
0000 Comparator function select
AN 8 pin comparator function select bit AN 9 pin comparator function select bit AN 10 pin comparator function select bit AN 11 pin comparator function select bit Fix these bits to “0000”. Address DC 16 “0” : A-D converter is selected. “1” : Comparator is selected. 76543210 Comparator result register 0 AN 0 pin comparator result bit AN 1 pin comparator result bit AN 2 pin comparator result bit AN 3 pin comparator result bit AN 4 pin comparator result bit AN 5 pin comparator result bit AN 6 pin comparator result bit AN 7 pin comparator result bit Address DE 16 Note: Do not access with the ORAM(ORAMB) or ANDM(ANDMB) instruction. 0 : ANi input level is lower than set digital value 1 : ANi input level is higher than set digital value 76543210 Comparator result register 1 AN 8 pin comparator result bit AN 9 pin comparator result bit AN 10 pin comparator result bit AN 11 pin comparator result bit Address DE 16 Note: Do not access with the ORAM(ORAMB) or ANDM(ANDMB) instruction. 0 : ANi input level is lower than set digital value 1 : ANi input level is higher than set digital value
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Operation mode The operation mode is selected by bits 3 and 4 of A-D control regis- ter 0 and bit 2 of A-D control register 1. The available operation modes are one-shot, repeat, single sweep, repeat sweep 0, and re- peat sweap 1. Note that, as for pins AN 8 through AN11, only one-shot and repeat modes can be selected. Either an A-D converter or a comparator can be selected respectively for each pin in the following 5 modes. The following description applies to the case where the bit of the comparator function select register 0/1 is “0” and an A-D con- verter is selected. It also applies to a comparator’s operation except that an A-D conversion is changed to a comparator operation and the result of the comparison is stored into the comparator result reg- ister 0/1. (1) One-shot mode One-shot mode is selected when bits 3 and 4 of A-D control register 0 are “0”. The A-D conversion pins are selected with bits 0 to 2 of A-D control register 0 and bits 0 to 3 of A-D control register 2. A-D conversion or comparator operation is started when bit 6 of A-D con- trol register 0 (A-D conversion start bit) is set to “1”. When the ANi (i = 11 through 0) comparator function select bit of the comparator function select register 0/1 = “0” and bit 3 of the A-D con- trol register 1 = “1”, A-D conversion ends 59 φ AD cycles after, and the interrupt request bit of the A-D conversion interrupt control register is set to “1”. At the same time, bit 6 of the A-D control register 0 (A-D conversion start bit) is cleared to “0” and this A-D conversion stops. The result of A-D conversion is stored into the A-D register corre- sponding to the selected pin. When the ANi (i = 11 through 0) comparator function select bit of the comparator function select register 0/1 = “1”, a comparator operation ends 14 φ AD cycles after, and the interrupt request bit of the A-D con- version interrupt control register is set to “1”. At the same time, bit 6 of the A-D control register 0 (A-D conversion start bit) is cleared to “0” and the comparator operation stops. The result of the compari- son is stored into the bits of the comparator result register corre- sponding to the selected pin. Fig. 78 Bit configuration of A-D control register 0 A-D control register 0 Address 1E16 76543210 Analog input select bits (Note 1) (Valid in the one-shot mode and repeat mode.) 0 0 0 : AN 0 0 1 : AN1 0 1 0 : AN2 0 1 1 : AN3 1 0 0 : AN4 1 0 1 : AN5 1 1 0 : AN6 1 1 1 : AN7 (Note 2) A-D operation mode select bit 0 0 0 : One-shot mode 0 1 : Repeat mode 1 0 : Single sweep mode 1 1 : Repeat sweep mode 0 or Repeat sweep mode 1 Fix this bit to “0”. A-D conversion start bit (Note 3) 0 : A-D conversion stopped. 1 : A-D conversion started. A-D conversion frequency (φ AD ) select bit 0 Notes 1: Invalid in the single sweep mode and repeat sweep mode 0. (Each of these bits may be “0” or “1”.) 2: When using pin AN7, make sure that the D-A0 output enable bit (bit 0 at address 9616) = “0” (output disabled). 3: Use the MOVM (MOVMB) or STA (STAB or STAD) instruction for rewriting to this bit. 4: Rewriting to each bit of the A-D control register 0 (except for bit 6) must be performed while A-D conversion is stopped.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 79 Bit configuration of A-D control register 1 Fig. 80 Bit configuration of A-D control register 2 Notes 1: Invalid in the one-shot mode and repeat mode. (Each of these bits may be “0” or “1”.) 2: When using pin AN7, make sure that the D-A0 output enable bit (bit 0 at address 9616) = “0” (output disabled). 3: Once this bit is cleared from “1” to “0”, it is necessary to wait for 1 µs or more before the A-D conversion starts. 4: Rewriting to each bit of the A-D control register 1 must be performed while A-D conversion is stopped. A-D sweep pin select bits (Note 1) (Valid in the single sweep mode and repeat sweep mode.) 0 0 : AN 0, AN1 (2 pins) 0 1 : AN0–AN 3 (4 pins) 1 0 : AN0–AN 4 (5 pins) 1 1 : AN0–AN 7 (8 pins) (Note 2) A-D operation mode select bit 1 0: Modes other than repeat sweep mode 1 1: Repeat sweep mode 1 Resolution select bit 0: 8-bit resolution mode 1: 10-bit resolution mode A-D conversion frequency (φ AD ) select bit 1 Fix this bit to “0”. VREF connection select bit (Note 3) 0 : VREF is connected. 1 : VREF is disconnected. “0” at read. 76543210 A-D control register 1 Address 1F16 A-D conversion frequency (φAD ) select bit Bit 1 Bit 0 φAD f2/4 f2/2 11 f1 (Selectable only in 8-bit resolution mode) 76543210 Analog input select bits (Note 1) (Valid in the one-shot mode and repeat mode) 0xxx : AN0–AN 7 1000 : AN8 (Note 2) 1001 : AN9 1010 : AN10 1011 : AN11 1100 : Do not select. 1101 : Do not select. 1110 : Do not select. 1111 : Do not select. 0 000 Notes 1: Invalid in the single sweep mode and repeat sweep mode 0 (Each of these bits may be “0” or “1”.) 2: When using pin AN8, make sure that the D-A1 output enable bit (bit 1 at address 9616) = “0” (output disabled). 3: Rewriting to each bit of the A-D control register 2 must be performed while A-D conversion is stopped. A-D control register 2 Address DB 16
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS (2) Repeat mode Repeat mode is selected when bit 3 of the A-D control register 0 = “1” and bit 4 = “0”. The operation of this mode is the same as the operation of one-shot mode except that when A-D conversion for the selected pin is com- plete and the result is stored in the A-D register, conversion does not stop, but is repeated. No interrupt request is generated in this mode. Furthermore, the A-D conversion start bit is not cleared. The contents of the A-D register can be read at any time. Be sure not to write to the A-D register corresponding to the pins se- lected for a comparator during operation. (3) Single sweep mode Single sweep mode is selected when bit 3 of the A-D control register 0 = “0” and bit 4 = “1”. In the single sweep mode, the number of analog input pins to be swept can be selected. Analog input pins are selected by bits 1 and 0 of the A-D control register 1 (address 1F16). Two pins, four pins, or five pins can be selected as analog input pins, depending on the contents of these bits. A-D conversion is performed only for selected input pins. After A-D conversion is performed for input of AN 0 pin, the conversion result is stored in A-D register 0, and in the same way, A-D conversion is per- formed for selected pins one after another. After A-D conversion is performed for all selected pins, the sweep is stopped. A-D conversion is started when bit 6 of the A-D control register 0 (A-D conversion start bit) is set to “1”. When A-D conversion for all selected pins end, the interrupt request bit of the A-D conversion in- terrupt control register is set to “1”. At the same time, A-D conversion start bit is cleared to “0” and A-D conversion stops. (4) Repeat sweep mode 0 Repeat sweep mode 0 is selected when bit 3 of the A-D control reg- ister 0 = “1” and bit 4 = “1”. The difference from the single sweep mode is that A-D conversion does not stop after conversion for all selected pins, but repeats again from the AN 0 pin. The repeat is performed among the selected pins. Also, no interrupt request is generated. Furthermore, the A-D convension start bit is not cleared. The contents of the A-D register can be read at any time. Be sure not to write to the A-D register corresponding to the pins se- lected for a comparator during operation. (5) Repeat sweep mode 1 Repeat sweep mode 1 is selected when bit 3 of the A-D control reg- ister 0 = “1” and bit 4 = “1”, and bit 2 of the A-D control register 1 =“1”. The differences from the repeat sweap mode 0 are as follows:
- the A-D conversion for one unselected pin is performed each time when A-D conversion for selected pins is completed, and the A-D conversion is repeated once again from AN 0 pin.
- the number of analog input pins to be swept. The analog input pins to be repeatedly swept are selected with bits 1 and 0 of the A-D control register 1. The contents of these pins are used to select one pin, two pins, three pins or four pins. The unselected pins are converted starting from the pin next to the pins selected as repeat sweep pins. No interrupt request is gener- ated. Furthermore, the A-D conversion start bit is not cleared. The contents of the A-D register can be read at any time. Be sure not to write to the A-D register, corresponding to the pins se- lected for a comparator, during operation. Precaution for A-D conversion interrupts Clear the interrupt request bit of the A-D conversion interrupt control register (bit 3 at address 70 16) before using an A-D conversion inter- rupt. It is because this interrupt request bit is undefined just after re- set.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS D-A CONVERTER Two independent D-A converters are included in this microcomputer, and each D-A converter adopts an 8-bit R-2R method. Figure 81 shows the block diagram of the D-A converter, and Figure 82 shows the bit configuration of the D-A control register (address 96 16). D-A conversion is performed by writing a value to the corresponding D-A register i. Whether to output the analog voltage or not is deter- mined by bits 0 and 1 of the D-A control register. When any of bits 0 and 1 = “1”, the corresponding pin (D-A 0 or D-A1) outputs the analog voltage. This analog voltage (V) is determined according to value n. (“n” = decimal number. This has been set in the D-A register.) V = V REF ✕ n/256 (n = 0 to 255) VREF : Reference voltage The contents of the corresponding D-A output enable bit and D-A register are cleared to “0” at reset. An external buffer is necessary when connecting a low impedance load with the D-A converter. It is because that a D-A output pin does not include a buffer. Pin D-Ai (i = 0, 1) is multiplexed with I/O port pins, analog input pins, and external interrupt input pins. When a D-A i output enable bit = “1” (in other words, output is enabled.), however, the corresponding pin cannot function as another I/O pin, which is multiplexed with pin D- Ai. Also, when not using the D-A converter, be sure to clear the contents of the corresponding D-A output enable bit and D-A register to “0”. Fig. 81 Block diagram of D-A converter AV SS VREF R-2R ladder resistor network D-A register i (i = 0, 1) (Addresses 98 16, 9916) Pin D-Ai D-Ai output enable bit Data bus Fig. 82 Bit configuration of D-A control register D-A0 output enable bit (Note) 0: Output is disabled. 1: Output is enabled. D-A 1 output enable bit (Note) 0: Output is disabled. 1: Output is enabled. 76543210 D-A control register Address Note: Pin D-Ai is multiplexed with I/O port pins, analog input pins, and external interrupt input pins. When a D-Ai output enable bit = “1” (in other words, output is enabled.), however, the corresponding pin cannot function as another I/O pin, which is multiplexed with pin D-Ai.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Watchdog timer frequency select bit “FFF16” is set. Writing to watchdog timer register STP instruction Watchdog timer interrupt request Wf32 Wf512 Watchdog timer Wait mode
- Watchdog timer register: address 6016
- Watchdog timer frequency select register: bit 0 at address 6116
- Watchdog timer clock source select bits at STP state termination: bits 6, 7 at address 6116 ❈ When the most significant bit of the watchdog timer becomes “0”, this signal will be generated. Note: During the stop mode and until the stop mode is terminated, setting for disabling the watchdog timer is ignored. RESET Disables watchdog timer (Note). fX16 fX32 fX64 fX128 Watchdog timer clock source select bits at STP state termination Stop mode Divided f(XIN) WATCHDOG TIMER The watchdog timer is used to detect unexpected execution se- quence caused by software runaway and others. Figure 83 shows the block diagram of the watchdog timer. The watchdog timer consists of a 12-bit binary counter. The watchdog timer counts clock Wf 32, which is obtained by dividing the peripheral devices’ clock f2 by 16; or clock Wf512, which is ob- tained by doing it by 256. Bit 0 of the watchdog timer frequency se- lect register (watchdog timer frequency select bit) shown in Figure 84 selects which clock is to be counted. Wf 512 is selected when this bit 0 is “0”, and Wf32 is selected when bit 0 is “1”. Bit 0 is cleared to “0” after reset. FFF 16 is set in the watchdog timer when “L” level voltage is applied to pin RESET, STP instruction is executed, data is written to the watchdog timer register (address 60 16), or the most significant bit of the watchdog timer becomes “0”. After FFF16 is set in the watchdog timer, when the watchdog timer counts Wf32 or Wf512 by 2048 counts, the most significant bit of the watchdog timer becomes “0”, the watchdog timer interrupt request bit is set to “1”, and FFF16 is set again in the watchdog timer. In program coding, make sure that data is written in the watchdog timer before the most significant bit of the watchdog timer becomes “0”. If this routine is not executed owing to unexpected program ex- ecution or others, the most significant bit of the watchdog timer be- Fig. 83 Block diagram of watchdog timer Fig. 84 Bit configuration of watchdog timer frequency select register 76543210 Watchdog timer frequency select register Watchdog timer frequency select bit 0 : Wf512 1 : Wf32 Watchdog timer clock source select bits at STP state termination 0 0 : fX 0 1 : fX16 1 0 : fX128 1 1 : fX64
comes “0” and an interrupt is generated. The microcomputer can generate a reset pulse by writing “1” to bit 6 (software reset bit) of processor mode register 0 in an interrupt rou- tine and can be restarted. The watchdog timer can also be used to return from the STP state, where a clock has stopped its operation owing to the STP instruction execution. For details, refer to the sections on the clock generating circuit and standby function. The watchdog timer stops its operation in the following cases, and at this time, input to the watchdog timer is disabled:
- When the external area is accessed in the hold state
- In the wait mode
- In the stop mode
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS How to disable watchdog timer When not using the watchdog timer, it can be disabled. When the watchdog timer is disabled, it’s operation stops and no watchdog timer interrupt has been generated. Setting for disabling the watchdog timer is possible by writing “79 16” and “5016” to the particular function select register 2 (address 6416) sequentially with the following instructions:
- MOVMB/STAB instruction, or
- MOVM/STA instruction (m = 1) If any method other than above has been adopted in order to access (in other words, read/write) the particular function select register 2, the watchdog timer will not be disabled until reset operation is per- formed. (Also, reset is the only one method to remove the setting for disabling the watchdog timer.) Moreover, this setting for disabling the watchdog timer is ignored at return from the STP mode, and the watchdog timer operates. (For details, refer to the section on the standby function.)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS INPUT/OUTPUT PINS Ports P1, P2, and P4 through P8 all have the direction register, and each bit can be programmed for input or output. A pin becomes an output pin when the corresponding bit of direction register is “1”, and an input pin when it is “0”. Also, each bit of the port P6 direction register can be cleared to “0” by inputting a falling edge to pin P6OUT CUT or by executing instruc- tions. Each bit of the port P4 direction register can be cleared to “0” by inputting a falling edge to pin P4OUTCUT or by executing instruc- tions. When a pin is programmed for output, the data is written to its port latch and it is output to the output pin. When a pin is programmed for output, the contents of the port latch is read instead of the value of the pin. Accordingly, a previously output value can be read correctly even when the output “H ” voltage is lowered or the output “L” voltage is raised owing to an external load, etc. A pin programmed as an input pin is in the flooting state, and the value input to the pin can be read. When a pin is programmed as an input pin, the data is written only in the port latch and the pin remains floating. Each of Figures 85 and 86 shows the block diagram for each port pin. When using a port pin as an internal peripheral device’s input pin, clear the corresponding port direction register’s bit to “0”. When us- ing a port pin as an internal peripheral device’s output pin, the port direction register’s bit may be “0” or “1”.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 85 Block diagram for each port pin (1) P13/TXD 0, P17/TXD 1 P20/TA4OUT , P22/TA9OUT P6 0/TA0OUT /W/RTP0 0, P6 1/TA0IN/V/RTP01, P6 2/TA1OUT /U/RTP02, P6 3/TA1IN/W/RTP0 3, P6 4/TA2OUT /V/RTP10, P6 5/TA2IN/U/RTP11, P70/AN0, P71/AN1, P72/AN2, P73/AN3, P12/RXD 0, P16/RXD 1, P21/TA4IN, P23/TA9IN, P24(/TB0IN), P25(/TB1IN), P26(/TB2IN), P51/INT1, P55/INT5/TB0IN/IDW, P56/INT6/TB1IN/IDV, P57/INT7/TB2IN/IDU R P6OUT CUT P27 P52/INT2/RTPTRG1 , P53/INT3/RTPTRG0 , P6 6/TA3OUT /RTP12, P6 7/TA3IN/RTP13 P74/AN4, P75/AN5, P76/AN6 P82/AN10/RxD0 P40/TA5OUT /RTP20, P41/TA5IN/RTP21, P42/TA6OUT /RTP22, P43/TA6IN/RTP23, P44/TA7OUT /RTP30, P45/TA7IN/RTP31, R P4OUT CUT P46/TA8OUT /RTP32, P47/TA8IN/RTP33, [Inside dotted-line not included] [Inside dotted-line included] [Inside dotted-line not included] [Inside dotted-line not included] [Inside dotted-line included] [Inside dotted-line included] Data bus Data bus Data bus Data bus Data bus Port latch Port latch Port latch Port latch Port latch Direction register Direction register Direction register Direction register Direction register Analog input Output(Internal peripheral devices) Output(Internal peripheral devices) Output(Internal peripheral devices) Reset Reset
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 86 Block diagram for each port pin (2) P77/AN7/DA0 P10/CTS0/RTS0 P11/CTS0/CLK0 P14/CTS1/RTS1 P15/CTS1/CLK1 P81/AN9/CTS2/CLK2 P80/AN8/CTS2/RTS2/DA1 P83/AN11/TXD 2 P4OUT CUT /INT0, P6OUT CUT /INT4 Analog input Analog output Enable D-A output Analog input Analog input Analog output Enable D-A output [Inside dotted-line not included] [Inside dotted-line included] Analog input Data bus Data bus Port latch Direction register Port latch Direction register Data bus Data bus Port latch Direction register Port latch Direction register Output (Internal peripheral devices) Output (Internal peripheral devices) Output (Internal peripheral devices)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 88 Microcomputer internal register’s status at reset (2) RESET CIRCUIT While the power source voltage satisfies the recommended operat- ing condition, reset state is removed if pin RESET’s level returns from the stabilized “L” level to the “H” level. As a result, program ex- ecution starts from the reset vector address. This reset vector ad- dress is expressed as shown below:
- A 23 to A16 = 0016
- A15 to A8 = Contents at address FFFF16
- A7 to A0 = Contents at address FFFE16 Figures 87 and 88 show the microcomputer internal register’s status at reset, and Figure 89 shows an operation example of the reset cir- cuit. Apply “L” level voltage to pin RESET for a period (10 µs or more) under the following conditions:
- Pin Vcc’s level satisfies the recommended operating condition.
- Oscillator’s operation has been stabilized. Fig. 89 Operation example of reset circuit (Note that proper evalua- tion is necessary in the system development stage.) (DB 16)··· (A616)··· (A816)··· (A916)··· (AA 16)··· (D7 16)··· (AC 16)··· (AE 16)··· (C4 16)··· (D6 16)··· (D8 16)··· (D9 16)··· (DA 16)··· 00 0 0016 0016 000016 FFF 16 1??000? ?00 0 0000 0000 0000 0000 0000 (F516)··· (F616)··· (F716)··· 000 000 (F916)··· 000 (FE 16)··· 000 000 (FD 16)··· (F816)··· (FF16)··· 000 0016 0016 0016 0016 0016 0016 000 0 000 0 0016 0016 0016 (A016)··· (A216)··· (A416)··· 0016 0016 0016 0 0 1000 0 0(B416)··· (B016)··· 0016 0 0 000101 1 1(BC 16)··· 00 0 (DD 16)··· (DE 16)··· 0016 0016 (DC 16)··· 0016 (DF 16)··· 0016 0000 0000 (F116)··· (F216)··· Waveform output mode register Three-phase output data register 0 Three-phase output data register 1 Pulse output control register Pulse output data register 0 Pulse output data register 1 UART2 transmit/receive mode register UART2 transmit/receive control register 0 UART2 transmit/receive control register 1 UART2 transmit interrupt control register UART2 receuve interrupt control register Position-data-retain function control register Serial I/O pin control register Port P2 pin function control register Note: The contents of the other registers and RAM are undefined at reset and must be initialized by software. Timer A6 mode register Clock control register 0 A-D control register 2 Up-down register 1 Timer A5 mode register Timer A7 mode register Timer A8 mode register Timer A9 mode register Address Address Contents at address FFFF16 Contents at address FFFE16 Program bank register PG Program counter PCH Program counter PCL Direct page registers DPR0 to DPR3 Data bank register DT Stack pointer Processor status register PS INT7 interrupt control register Timer A5 interrupt control register Timer A6 interrupt control register Timer A7 interrupt control register Timer A9 interrupt control register INT6 interrupt control register INT5 interrupt control register Timer A8 interrupt control register Comparator function select register 0 Comparator function select register 1 Comparator result register 0 Comparator result register 1 VCC RESET Power on VCC level 0.2VCC level Oscillation stabilized 10 µs XIN
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 87 Microcomputer internal register’s status at reset (1) 0 0 (0516)··· (0816)··· 0016 (0D 16)··· (1016)··· (1116)··· (5616)··· 0016 (5716)··· 0016 (5816)··· 0016 (5916)··· 0016 (5A16)··· 0016 00000(1E16)··· 100 000(3416)··· 100 000(3C 16)··· 00000 010(3516)··· 00 000(4216)··· 00(4516)··· (3016)··· 0016 (3816)··· 0016 (4416)··· (4016)··· 0016 00?0 000(5B16)··· 1000 0 0(5E16)··· (5F16)··· (6016)··· 000 0 0000 FFF 16 (6116)··· (6216)··· (6316)··· (6616)··· (6716)··· (6E16)··· (6F16)··· 0000 ?000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 (72 16)··· (7316)··· (7416)··· (7716)··· (7816)··· (7916)··· (7A16)··· (7C 16)··· (9816)··· (7016)··· (7116)··· (7516)··· (7616)··· (9616)··· (7B16)··· (9916)··· 0016 0016 ?? ? 00000 000000 000 (4316)··· 00 0000 (4116)··· 00000 0000 0 1 00 0016 001600?0 000(5C 16)··· 0 (0C 16)··· 0016 000 (1416)··· 000 0 000 00 0 000 (7E16)··· 000 000 (7D 16)··· (7F16)··· 000 Address Port P1 direction register Port P2 direction register Port P4 direction register Port P5 direction register Port P6 direction register Port P7 direction register Port P8 direction register Timer A0 mode register Timer A1 mode register Timer A2 mode register Timer A3 mode register Timer A4 mode register Notes 1: The contents of the other registers and RAM are undefined at reset and must be initialized by software. 2: At power-on reset, these bits are clear to “0”. At hardware or software reset, on the other hand, these bits retain the value just before reset. A-D control register 0 A-D control register 1 UART 0 transmit/receive control register 0 UART 1 transmit/receive control register 0 UART 0 transmit/receive control register 1 UART 1 transmit/receive control register 1 One-shot start register 0 Timer A clock frequency select register UART 0 transmit/receive mode register UART 1 transmit/receive mode register Up-down register 0 Count start register 0 Timer B0 mode register Processor mode register 0 Processor mode register 1 Address Watchdog timer Watchdog timer frequency select register Particular function select register 0 Particular function select register 1 Debug control register 0 Debug control register 1 D-A register 1 INT3 interrupt control register INT4 interrupt control register UART 0 receive interrupt control register UART 1 transmit interrupt control register UART 1 receive interrupt control register Timer A2 interrupt control register Timer A3 interrupt control register Timer A4 interrupt control register Timer B0 interrupt control register Timer B2 interrupt control register D-A register 0 A-D conversion interrupt control register UART 0 transmit interrupt control register Timer A0 interrupt control register Timer A1 interrupt control register D-A control register Timer B1 interrupt control register INT0 interrupt control register INT1 interrupt control register INT2 interrupt control register (Note 2) (Note 2) (Note 2) One-shot start register 1 Count start register 1 Timer B1 mode register Timer B2 mode register
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS OSCILLATION CIRCUIT An oscillation circuit locates between pins XIN and XOUT , and Figure 90 shows a circuit example with an external ceramic resonator or quartz crystal oscillator. The constants such as capacitance etc. de- pend on a resonator/oscillator. Therefore, for these constants, adopt the resonator/oscillator manufacturer’s recommended values. Figure 91 shows a circuit example with an external clock source. When an external clock is input, be sure to leave pin X OUT open. Also, in this case, when the external clock input select bit (bit 1 of the particular function select register 0; See Figure 95.) is set to “1”, the oscillation circuit stops it’s operation and resumes the current dissi- pation. Moreover, this bit has another function, which selects the re- turn condition from the stop mode. For details, refer to the section on the standby function. On the other hand, the PLL (Phase Locked Loop) frequency multi- plier (hereafter, referred to as PLL circuit.) is included, also. This PLL circuit uses a clock input from pin X IN and generates a multiplicated clock. When using the PLL circuit, be sure to connect pin VCONT with an external filter circuit. (See Figure 92.) When not using the PLL cir- cuit, be sure to leave pin V CONT open. When not using the PLL circuit, be sure to clear the PLL circuit op- eration enable bit (bit 1 of the clock control register 0; See Figure 94.), so that the PLL circuit will stop its operation. Fig. 90 Circuit example with external ceramic resonator or quartz-crystal oscillator Fig. 91 Circuit example with external clock source Fig. 92 Circuit example of connection with pin VCONT when PLL cir- cuit used XIN R f XOUT R d C IN C OUT M37905 M37905 XIN XOUT Left open. External clock source Vcc Vss M37905 VCONT 1 kΩ 0.1 µF 220 pF Note: Make the wiring length as short as possible, and shield it with the GND line which surrounds this circuit. Also, for the clock supply to pin X IN, see Figures 90 and 91.
Notice: This is not a final specification. Figure 93 shows the block diagram of the clock generating circuit. be sure to clear the PLL circuit operation enable bit to “0” (inactive). VCONT is invalid, regardless of this bit 1’s status. be performed while input clock fXIN is selected as the system clock. are allowed to be changed only once. circuit operation enable bit =“0”. quency. At reset, these bits become “0, 0”. Table 9. fsys selection Table 10. Internal peripheral devices’ operation clock frequency Note: The PLL multiplication ratio must be set so that the frequency of fPLL must be in the range from 10 MHz to 20 MHz. Note: When selecting the peripheral devices’ clock select bits 1, 0 = “012”, be sure that system clock fsys does not exceed 10 MHz.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 93 Block diagram of clock generating circuit f2 f64 f512 f4096 Q RS STP instruction φ BIU (Clock for BIU)φ CPU (Clock for CPU) CPU wait request Reset
- Watchdog timer frequency select bit : bit 0 at address 61
- Watchdog timer clock source select bits at stop state termination : bits 6, 7 at address 61
- External clock input select bit : bit 1 at address 62
- System clock stop select bit at WIT : bit 3 at address 63
- PLL circuit operation enable bit : bit 1 at address BC
- PLL multiplication ratio select bits : bits 2, 3 at address BC
- System clock select bit : bit 5 at address BC
- Peripheral device ’s clock select bits 0, 1 : bits 6, 7 at address BC Watchdog timer Wf 32 Wf 512 f16f1 Peripheral device ’s clocks Watchdog timer frequency select bit X IN X OUT System clock stop select bit at WIT Watchdog timer clock source select bit at stop state termination Wait mode Wait mode System clock select bit PLL frequency multiplier fPLL V CONT Wait mode External clock input select bit Q RS STP instructionInterrupt request Q RS WIT instructionInterrupt request Wait mode PLL circuit operation enable bit PLL multiplication ratio select bits fX IN f/n fX fX fX fX 128 fX fX fX fX 128 Peripheral device ’s clock select bit 0 Peripheral device ’s clock select bit 1 BIU : Bus Interface UnitCPU : Central Processing Unit❈ : Signal generated when the watchdog timer ’s most significant bit becomes “0” fsys System clock frequency select bit Operating clock for serial I/O, timer BA-D conversion frequency (φAD ) clock source Operating clock for timer A External clock input select bit Interrupt request
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 95 Bit configuration of particular function select register 0 Fig. 94 Bit configuration of clock control register 0 76543210 Particular function select register 0 External clock input select bit (Note) 0: Oscillation circuit is active. (The oscillator is connected.) Watchdog timer is used at stop mode termination. 1: Oscillation circuit is inactive. (The externally-generated clock is input.) When the system clock select bit = “0”, watchdog timer is not used at stop mode termination. When the system clock select bit = “1”, watchdog timer is used at stop mode termination. Fix this bit to “0”. STP instruction invalidity select bit (Note) 0: STP instruction is valid. 1: STP instruction is invalid. Note: Address 1600 0 Writing to these bits requires the following procedure:
- Write “5516” to this register. (The bit status does not change only by this writing.)
- Succeedingly, write “0” or “1” to each bit. Also, use the MOVM (MOVMB) instruction or STA (STAB, STAD) instruction 76543210 Clock control register 0 Fix this bit to “1”. PLL circuit operation enable bit (Note 1) 0: PLL frequency multiplier is inactive, and pin VCONT is invalid (floating state). 1: PLL frequency multiplier is active, and pin VCONT is valid. PLL multiplication ratio select bits (Note 2) 00: Do not select. 01: Double 10: Triple 11: Quadruple Fix this bit to “1”. System clock select bit (Note 3) 0: fX IN 1: f PLL Peripheral device’s clock select bits 1, 0 See Table 10. Address BC 1611 Notes 1: When not using the PLL frequency multiplier, be sure to clear this bit to “0”. In the stop mode, the PLL circuit is inactive regardless of this bit’s content; at this time, pin VCONT is invalid. 2: When rewriting this bit, be sure to clear bit 5 to “0” simultaneously. Also, after this bit is rewritten, insert a waiting time of 2 ms, and then set bit 5 to “1”. 3: When the PLL circuit operation enable bit (bit 1) has been cleared to “0”, this bit will also be cleared to “0”. When bit 1 = “0”, nothing can be written to this bit. (Fixed to be “0”.)
Notice: This is not a final specification. clock inactive in the case that the CPU needs not be active. of an interrupt request or reset. or WIT instruction will be executed. moved, however, the STP instruction is valid. cleared to “0” by software at termination of the STP or the WIT mode. select register), becomes the watchdog timer’s clock source. clocks f1 to f4096, Wf32 and Wf512 are also supplied. the operation-stabilizing time for these circuits has passed. eration restart of the oscillation circuit and PLL circuit. Timers A, B, Serial I/O, A-D converter: Operation is enabled. Notes 1: When the external clock input select bit = “1”, the oscillation circuit is inactive. Also, clock input from pin XIN is allowed. 2: When the PLL circuit operation enable bit = “0”, the PLL circuit is inactive. Table 11. Microcomputer’s operation in STP and WIT modes
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 96 Bit configuration of particular function select register 1 Fig. 97 Bit configuration of watchdog timer frequency select register 76543210 Watchdog timer frequency select register Watchdog timer frequency select bit 0 : Select Wf512 1 : Select Wf32 Watchdog timer clock source select bits at STP termination 0 0 : fX32 0 1 : fX16 1 0 : fX128 1 1 : fX64 When the external clock input select bit (bit 1 of the particular func- tion select register 0) = “0” or the system clock select bit (bit 5 of the clock control register 0) = “1”, the watchdog timer will start counting down with one of the above divide clocks, fX16 to fX128, after the os- cillation circuit and PLL circuit have been restarted their operations owing to an interrupt. The most significant bit of the watchdog timer reaching “0”, supply of φBIU and φCPU restarts. On the other hand, when the external clock input select bit = “1 ” and the system clock select bit = “0”, supply of φBIU and φCPU will restart immediately after the oscillation circuit and PLL circuit have been re- started their operations owing to an interrupt. (In actual fact, after the selected one of the above divide clocks, fX 16 to fX128, has been changed from “H ” to “L”, this supply will restart.) 76543210 Particular function select register 1 STP-instruction-execution status bit (Note 1) 0: Normal operation. 1: STP instruction is under execution. WIT-instruction-execution status bit (Note 1) 0: Normal operation. 1: WIT instruction is under execution. Fix this bit to “0”. System clock stop select bit at WIT (Note 2) 0: In wait mode, system clock f sys is active. 1: In wait mode, system clock fsys is inactive. Fix this bit to “0”. Timer B2 clock source select bit Valid in event counter mode: 0: Clock input from pin TB2 IN is counted. 1: fX32 (f(XIN)/32) is counted. Address 6316 Notes 1: At power-on reset, this bit becomes “0”. At hardware reset or software reset, this bit retains the value just before reset. Even when “1” is try to be written, the bit status will not change. 2: Setting this bit to “1” must be performed just before execution of the WIT instruction. Also, after the wait state is terminated, this bit must be cleared to “0” immediately.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS WIT mode When the WIT instruction is executed with the system clock stop se- lect bit at WIT (bit 3 of the particular function select register 1 in Fig- ure 93) being “0”, φBIU, φCPU , and divide clocks Wf32 and Wf512 are inactive with the “L“ state. However, the oscillation circuit, PLL circuit, input clock fXIN, system clock fsys, φ1, and peripheral devices’ clocks f1 to f4096 remain active. Therefore, BIU and CPU are inactive, where as timers A and B, serial I/O, and the A-D converter, which use the peripheral devices’ clocks f 1 to f4096, are still active. Note that the watchdog timer is inactive. On the other hand, when the WIT instruction is executed with the system clock stop select bit at WIT being “1”, the oscillation circuit, PLL circuit, and input clock fX IN are active, while system clock fsys, φBIU, φCPU , and peripheral devices’ clocks are inactive. As a result, the A-D converter and watchdog timer, which use peripheral devices’ clocks f1 to f4096, Wf32 and Wf512, become inactive. At this time, tim- ers A and B are active only in the event counter mode, and serial I/O communication is active only while an external clock is selected. If the internal peripheral devices are not used in the WIT mode, the lat- ter is better because the current dissipation is more saved. Note that the system clock stop select bit at WIT needs to be set to “1” immedi- ately before execution of the WIT instruction and cleared to “0” im- mediately after the WIT mode is terminated. The WIT state is terminated by acceptance of an interrupt request, and then, supply of φBIU and φCPU will restart. Since the oscillation circuit, PLL circuit, and clock input fXIN are active in the WIT mode, an interrupt processing can be executed just after the WIT mode ter- mination.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS POWER SAVING FUNCTION The following functions can save the power dissipation of the whole system. (1) Inactive system clock in wait mode In the wait mode, if the internal peripheral devices need not to oper- ate, when the system clock stop select bit at WIT (bit 3 of the particu- lar function select register 1) = “1”, both of system clock f sys and peripheral devices’ clock are inactive, and the power dissipation can be saved. For details, refer to the section on the standby function. (2) Inactive oscillation circuit When an externally-generated stable clock is input to pin XIN, the power dissipation can be saved if both of the following conditions are met:
- the external clock input select bit (bit 1 of the particular function select register 0) = “1”.
- the oscillation driver circuit between pins X IN and XOUT is inactive. At this time, the output level at pin XOUT is fixed to “H ”. When not using fPLL, also, the supply of φBIU and φCPU restarts just after the microcomputer returns from the stop mode, owing to an interrupt re- quest occurrence. Therefore, an instruction can be executed just af- ter the termination of the stop mode. For details, refer to the section on the clock generating circuit and standby function. (3) Disconnection from pin VREF When not using the A-D converter, by setting the VREF connection select bit (bit 6 of the A-D control register 1) to “1”, the resistor ladder network of the A-D converter will be disconnected from the reference voltage input pin (V REF ). In this case, no current flows from pin VREF to the resistor ladder network, and the power dissipation can be saved. Note that, after the V REF connection select bit changes from “1” (VREF disconnected) to “0” (VREF connected), be sure that a wait- ing time of 1 µs or more has passed before the A-D conversion starts. For details, refer to the section on the A-D converter.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 98 Block diagram of debug function Address compare register 0 Address compare register 1 Debug control register 0 Matching • Compare register Matching • Compare register Address matching detect circuit Debug control register 1 Internal data bus (DB0 to DB 15) CPU bus (Address) Address matching detection interrupt DEBUG FUNCTION When the CPU fetches an instruction code, an interrupt request will be generated if a selected condition is satisfied, as a resultant of comparison between a specified address and the start address where the instruction code is stored (the contents of PG and PC). The decision whether this condition is satisfied or not is called ad- dress matching detection, and the interrupt generated by this detec- tion is called an address matching detection interrupt. (For interrupt vector addresses, refer to the section on interrupts.) In the address matching detection, a non-maskable interrupt routine is proceeded without execution of the original instruction which has been allocated to the target address. The debug function provides the following two modes:
- the address matching detection mode, which is used to avoid the area where program exists or modify a program.
- the out-of-address-area detection mode, which is used to detect a program runaway. Figure 98 shows the block diagram of the debug function. Figures 99 and 100 show the bit configurations of the debug control registers 0, 1, and address compare registers 0,1, respectively. The detect condition select bits of the debug control register 0 can select one condition between the following 4 conditions. When the selected address condition is satisfied, an address matching detec- tion interrupt request will be generated: (1) Address matching detection 0 The contents of PG and PC match with the address which has been set in the address compare register 0. (2) Address matching detection 1 The contents of PG and PC match with the address which has been set in the address compare register 1. (3) Address matching detection 2 The contents of PG and PC match with the address which has been set in either of the address compare register 0 or address compare register 1. (4) Out-of-address-area detection The contents of PG and PC are less than the address which has been set in the address compare register 0 or larger than the ad- dress which has been set in the address compare register 1. By setting the detect enable bit of the debug control register 0 to “1”, an address matching detection interrupt request will be generated if any one of the above address conditions is satisfied. Clearing the detect enable bit to “0” generates no interrupt request even if any of the above address conditions is satisfied. The address compare register access enable bit of the debug con- trol register 1 must be set to “1” by the instruction just before the ac- cess operation (read/write). Then, this bit must be cleared to “0” (disabled) by the next instruction. While this bit = “0”, the address compare registers 0, 1 cannot be accessed. The address-matching-detection 2 decision bit of the debug control register 1 decides, whether the address which has been set in the address compare register 0 or 1 matches with the contents of PG, PC, when the address matching detection 2 is selected. The con- tents of this bit is invalid when address matching detection 0 or 1 is selected. In order to use the debug function to avoid the area where program exists or modify a program, perform the necessary processing within an address matching interrupt routine. As a result, the contents of PG, PC, PS at acceptance of an address matching detection inter- rupt request (i.e. the address at which an address matching detec- tion condition is satisfied) have been pushed onto the stack. If a return destination address after the interrupt processing is to be al- tered, rewrite the contents of the stack, and then return by the RTI instruction. To use the debug function to detect a program runaway, set an ad- dress area where no program exists into the address compare regis- ters 0 and 1 by using the out-of-address-area detection. When the CPU fetches instruction codes from this address area and executes them, an address matching detection interrupt request will be gener- ated. The above debug function cannot be evaluated by a debugger, so that the debug function must not be used while a debugger is run- ning.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 99 Bit configuration of debug control register 0, 1 Fig. 100 Bit configuration of address compare register 0, 1 76543210 Debug control register 0 Detect condition select bits (Note 1) 000: Do not select. 001: Address matching detection 0 010: Address matching detection 1 011: Address matching detection 2 100: Do not select. 101: Out-of-address-area detection 110: Do not select. 111: Do not select. Fix this bit to “0” (Note 1). Detect enable bit (Note 1) 0: Detection disabled. 1: Detection enabled. Fix this bit to “0” (Note 1). “1” at read. Address 76543210 Debug control register 1 Fix this bit to “0” (Note 1). “0” at read (Note 1). Address compare register access enable bit (Note 2) 0: Disabled 1: Enabled Fix this bit to “1” when using the debug function. While debugger is not used, “0” at read. While debugger is used, “1” at read. Address-matching-detection 2 decision bit ❈ Valid when address matching detection 2 is selected. 0: Matches with the contents of the address compare register 0. 1: Matches with the contents of the address compare register 1. “0” at read. Address 000 Notes 1: At power-on reset, these bits = “0”; at hardware reset or software reset, these bits retain the value just before reset. 2: Set this bit to “1” with the instruction just before the address compare register 0, 1 (addresses 6816 to 6D16) is accessed. And then, clear this bit to “0” with the instruction just after the access.
0 Address compare register 0
Address compare register 1 The address to be detected (in other words, the start address of instruction) is set here. Address 6816, 6916, 6A16 6B16, 6C16, 6D16 (23) (8)(15)(16) 0707
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Unit V V V V V V mA mA mA mA mA mA MHz MHz Max. 5.5 Vcc 0.2 V CC –10 Parameter Power source voltage Analog power source voltage Power source voltage Analog power source voltage High-level Input voltageP10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83, P4OUTCUT , P6OUTCUT , XIN, RESET, MD0, MD1 Low-level Input voltageP10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83, P4OUTCUT , P6OUTCUT , XIN, RESET, MD0, MD1 High-level peak output current P10–P17, P20–P27, P55–P57, P60–P67, P70–P77 High-level average output current P10–P17, P20–P27, P55–P57, P60–P67, P70–P77 Low-level peak output current P10–P17, P20–P27, P51–P53, P55–P57, P70–P77 Low-level peak output current P40–P47, P60–P67 Low-level average output current P10–P17, P20–P27, P51–P53, P55–P57, P70–P77 Low-level average output current P40–P47, P60–P67 External clock input frequency (Note 1) System clock frequency Symbol VCC AV CC VSS AV SS VIH VIL IOH(peak) IOH(avg) IOL(peak) IOL(peak) IOL(avg) IOL(avg) f(XIN) f(fsys) Parameter Power source voltage Analog power source voltage Input voltage P1 0–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83, P4OUTCUT , P6OUTCUT , VCONT , VREF , XIN, RESET, MD0, MD1 Output voltage P10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83, XOUT Power dissipation Operating ambient temperature Storage temperature Symbol VCC AV CC VI VO Pd Topr Tstg ABSOLUTE MAXIMUM RATINGS RECOMMENDED OPERATING CONDITIONS (Vcc = 5 V, Ta = –20 to 85 °C, unless otherwise noted) Notes 1: When using the PLL frequency multiplier, be sure that f(fsys) = 20 MHz or less. 2: The average output current is the average value of an interval of 100 ms. 3: The sum of IOL(peak) must be 110 mA or less, the sum of IOH(peak) must be 80 mA or less. Unit V V V V mW Ratings –0.3 to 6.5 –0.3 to 6.5 –0.3 to V CC +0.3 –0.3 to VCC +0.3 300 –20 to 85 –40 to 150 Limits Min. 4.5
0.8 Vcc
Typ. 5.0 VCC
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Unit V V V V V µA µA V mA µA f(fsys) = 20 MHz. CPU is active. Ta = 25 °C when clock is inactive. Ta = 85 °C when clock is inactive. Test conditions IOH = –10 mA IOL = 10 mA VI = 5.0 V VI = 0 V When clock is inactive. Parameter High-level output voltageP10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83 Low-level output voltageP10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83 Hysteresis TA0 IN–TA9IN, TA0OUT –TA9OUT , TB0 IN–TB2 IN, INT0–INT7, CTS0, CTS1, CTS 2, CLK0, CLK1, CLK2, RxD0, RxD1, RxD 2, RTPTRG0 , RTPTRG1 , P4OUTCUT , P6OUT CUT Hysteresis RESET Hysteresis XIN High-level input currentP10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83, P4OUTCUT , P6OUT CUT , XIN, RESET, MD0, MD1 Low-level input currentP10–P17, P20–P27, P40–P47, P51–P53, P55–P57, P60–P67, P70–P77, P80–P83, P4OUTCUT , P6OUT CUT , XIN, RESET, MD0, MD1 RAM hold voltage Power source current Symbol VOH VOL VT+ — VT – VT+ — VT – VT+ — VT – IIH IIL VRAM ICC DC ELECTRICAL CHARACTERISTICS (Vcc = 5 V, Vss = 0 V, Ta = –20 to 85 °C, f(fsys) = 20 MHz, unless otherwise noted) Min. 0.4 0.5 0.1 Limits Typ. Max. 1.5 0.3 Output-only pins are open, and the other pins are con- nected to Vss or Vcc. An external square-waveform clock is input. (Pin X OUT is open.) The PLL frequency multiplier is inac- tive.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Resolution Absolute accuracy Ladder resistance Conversion time Reference voltage Analog input voltage R LADDER tCONV VREF VIA VREF = VCC VREF = VCC VREF = VCC f(fsys) ≤ 20 MHz Max. A-D CONVERTER CHARACTERISTICS (VCC = AVCC = 5 V ± 0.5 V, VSS = AVSS = 0 V, Ta = –20 to 85 °C, unless otherwise noted) UnitParameterSymbol Test conditions Limits Min. 10-bit resolution mode 8-bit resolution mode Comparater 10-bit resolution mode 8-bit resolution mode Comparater 5.9 2.45 (Note) 0.7 (Note) 2.7 ± 3 ± 2 ± 40 VCC VREF Bits V LSB LSB mV kΩ µs V V Note: This is applied when A-D conversion freguency (φAD ) = f1 (φ). D-A CONVERTER CHARACTERISTICS (VCC = 5 V, VSS = AVSS = 0 V, VREF = 5 V, Ta = –20 to 85 °C, unless otherwise noted) UnitParameterSymbol Limits Typ.Min. Max.Test conditions Resolution Absolute accuracy Set time Output resistance Reference power source input current t su R O IVREF (Note) 2 3.5 ± 1.0 4.5 3.2 Bits µs kΩ mA Note: The test conditions are as follows:
- One D-A converter is used.
- The D-A register value of the unused D-A converter is “00 16.”
- The reference power source input current for the ladder resistance of the A-D converter is excluded. µsRESET input low-level pulse widthtw(RESETL) Symbol Parameter Min. Limits Unit RESET INPUT Reset input timing requirements (VCC = 5 V ± 0.5 V, VSS = 0V, Ta = –20 to 85 °C, unless otherwise noted) Max.Typ. RESET input tw(RESETL) A-D converter Comparator 256
1 VREF
Typ.
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS tc(TA) tw(TAH) tw(TAL) f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz PERIPHERAL DEVICE INPUT/OUTPUT TIMING (VCC = 5 V±0.5 V, VSS = 0 V, Ta = –20 to 85 °C, f(fsys) = 20 MHz unless otherwise noted) ∗ For limits depending on f(fsys), their calculation formulas are shown below. Also, the values at f(fsys) = 20 MHz are shown in ( ). Timer A input (Up-down input and Count input in event counter mode) tc(UP) tw(UPH) tw(UPL) tsu(UP-TIN) th(TIN-UP) Symbol TAiOUT input cycle time TAiOUT input high-level pulse width TAiOUT input low-level pulse width TAiOUT input setup time TAiOUT input hold time Parameter Limits Min. 2000 1000 1000 400 400 Max. ns ns ns ns ns Unit Timer A input (External trigger input in pulse width modulation mode) tw(TAH) tw(TAL) Symbol TAiIN input high-level pulse width TAiIN input low-level pulse width Parameter Min. Limits Max. ns ns Unit Limits Symbol Parameter Min. Max. Unit 8 × 109 f(fsys) (400)TAiIN input cycle time TAiIN input high-level pulse width TAiIN input low-level pulse width ns ns ns Timer A input (External trigger input in one-shot pulse mode) Limits Symbol Parameter Min. Max. Unit 16 × 109 f(fsys) 8 × 109 f(fsys) 8 × 109 f(fsys) (800) (400) (400) t c(TA) tw(TAH) tw(TAL) TAiIN input cycle time TAiIN input high-level pulse width TAiIN input low-level pulse width ns ns ns Timer A input (Gating input in timer mode) Note :The TAiIN input cycle time requires 4 or more cycles of a count source. The TAiIN input high-level pulse width and the TAiIN input low-level pulse width respectively require 2 or more cycles of a count source. The limits in this table are applied when the count source = f2 at f(fsys) ≤ 20 MHz. Timer A input (Count input in event counter mode) tc(TA) tw(TAH) tw(TAL) Symbol TAiIN input cycle time TAiIN input high-level pulse width TAiIN input low-level pulse width Parameter Min. Limits Max. ns ns ns Unit f(f sys) ≤ 20 MHz
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS tc(TA) tsu(TAjIN-TAjOUT) tsu(TAjOUT-TAjIN) Symbol Parameter Min. 800 200 200 Limits Max. ns ns ns Unit Timer A input (Two-phase pulse input in event counter mode) TAjIN input cycle time TAjIN input setup time TAjOUT input setup time tc(TA) tw(TAH) tw(TAL) tc(UP) tw(UPH) tw(UPL) th(TIN-UP) tsu(UP-TIN) tsu(TAjIN-TAjOUT ) tsu(TAjOUT -TAjIN) tsu(TAjIN-TAjOUT ) tsu(TAjOUT -TAjIN) tc(TA)
- Gating input in timer mode
- Count input in event counter mode
- External trigger input in one-shot pulse mode
- External trigger input in pulse width modulation mode TAiIN input TAiOUT input (Up-down input) TAiOUT input (Up-down input)
- Up-down and Count input in event counter mode TAiIN input (When count by falling) TAiIN input (When count by rising) TAjIN input TAjOUT input
- Two-phase pulse input in event counter mode Test conditions
- VCC = 5 V ± 0.5 V, Ta = –20 to 85 °C
- Input timing voltage : VIL = 1.0 V, VIH = 4.0 V
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz f(fsys) ≤ 20 MHz tc(TB) tw(TBH) tw(TBL) tc(TB) tw(TBH) tw(TBL) Timer B input (Count input in event counter mode) Symbol TBiIN input cycle time (one edge count) TBiIN input high-level pulse width (one edge count) TBiIN input low-level pulse width (one edge count) TBiIN input cycle time (both edge count) TBiIN input high-level pulse width (both edge count) TBiIN input low-level pulse width (both edge count) Parameter Limits Min. 160 Max. ns ns ns ns ns ns Unit Limits Symbol Parameter Min. Max. Unit 16 × 109 f(fsys) 8 × 109 f(fsys) 8 × 109 f(fsys) (800) (400) (400) t c(TB) tw(TBH) tw(TBL) TBiIN input cycle time TBiIN input high-level pulse width TBiIN input low-level pulse width ns ns ns Timer B input (Pulse period measurement mode) Note: The TBiIN input cycle time requires 4 or more cycles of a count source. The TBiIN input high-level pulse width and the TBiIN input low-level pulse width respectively require 2 or more cycles of a count source. The limits in this table are applied when the count source = f2 at f(fsys) ≤ 20 MHz. Limits Symbol Parameter Min. Max. Unit 16 × 109 f(fsys) 8 × 109 f(fsys) 8 × 109 f(fsys) (800) (400) (400) t c(TB) tw(TBH) tw(TBL) TBiIN input cycle time TBiIN input high-level pulse width TBiIN input low-level pulse width ns ns ns Timer B input (Pulse width measurement mode) Note: The TBiIN input cycle time requires 4 or more cycles of a count source. The TBiIN input high-level pulse width and the TBiIN input low-level pulse width respectively require 2 or more cycles of a count source. The limits in this table are applied when the count source = f2 at f(fsys) ≤ 20 MHz. tc(CK) tw(CKH) tw(CKL) td(C-Q) th(C-Q) tsu(D-C) th(C-D) Serial I/O Symbol CLK i input cycle time CLK i input high-level pulse width CLK i input low-level pulse width TXD i output delay time TXD i hold time R XD i input setup time R XD i input hold time Parameter Limits Min. 200 100 100 Max. ns ns ns ns ns ns ns Unit
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS tw(INH) tw(INL) Symbol INTi input high-level pulse width INTi input low-level pulse width Parameter Min. 250 250 Limits Max. ns ns Unit External interrupt (INTi) input tc(TB) tw(TBH) tw(TBL) tsu(D-C) tc(CK) tw(CKH) tw(CKL) tw(INL) tw(INH) td(C-Q) th(C-D) th(C-Q) TBiIN input INTi input CLK i input TxD i output RxD i input Test conditions
- Vcc = 5 V ± 0.5 V, Ta = –20 to 85 °C
- Input timing voltage : VIL = 1.0 V, VIH = 4.0 V
- Output timing voltage : VOL = 0.8 V, VOH = 2.0 V, CL = 50 pF
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS tc tw(half) tw(H) tw(L) tr tf Max. 0.55 tc Min. 0.45 tc 0.5 tc – 8 0.5 tc – 8 External clock input cycle time External clock input pulse width with half input-voltage External clock input high-level pulse width External clock input low-level pulse width External clock input rise time External clock input fall time Limits External clock input Symbol Parameter ns ns ns ns ns ns Unit External clock input tr tf tw(L) tw(H) tw(half) XIN tc Test conditions
- Vcc = 5 V ± 0.5 V, Ta = –20 to 85 °C
- Input timing voltage : VIL = 1.0 V, VIH = 4.0 V (tw(H), tw(L), tr, tf)
- Output timing voltage : 2.5 V (tc, tw(half)) Timing Requirements (VCC = 5 V±0.5 V, VSS = 0 V, Ta = –20 to 85 °C, f(XIN) = 20 MHz, unless otherwise noted)
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSPPRELIMINAR Y Notice: This is not a final specification. Some parametric limits are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS PACKAGE OUTLINE QFP64-P-1414-0.80 1.11 Weight(g) JEDEC CodeEIAJ Package Code Lead Material Alloy 42 64P6N-A Plastic 64pin 14✕ 14mm body QFP Symbol Min Nom Max A b c D E H E L y Dimension in Millimeters H D A1 0.20.1 0.5 ––I2 1.3 ––M D 14.6 ––M E 14.6 10°0° 0.1 1.4 0.80.60.4 17.116.816.5 17.116.816.5 0.8 14.214.013.8 14.214.013.8 0.20.150.13 0.450.350.3 2.8 3.05 e e e E c H E 64 49 H D D M D M E A F A1 A2 L y Recommended Mount Pad Detail F x –– 0.2 b x M 64 33 321 E ce1 A2A1 bb1 b2e L A SEATING PLANE D SDIP64-P-750-1.78 Weight(g) – 7.9 JEDEC CodeEIAJ Package Code Lead Material Alloy 42/Cu Alloy 64P4B Plastic 64pin 750mil SDIP Symbol Min Nom Max A b c E D L Dimension in Millimeters A1 0.38 –– – 3.8 – 0.4 0.5 0.59 0.9 1.0 1.3 0.65 0.75 1.05 0.2 0.25 0.32 56.2 56.4 56.6 16.85 17.0 17.15 – 1.778 – – 19.05 – 2.8 –– 0° – 15° –– 5.08 e MMP
M37905M4C-XXXFP, M37905M4C-XXXSP M37905M6C-XXXFP, M37905M6C-XXXSP M37905M8C-XXXFP, M37905M8C-XXXSP PRELIMINAR Y Notice: This is not a final specification. Som e param etric lim its are subject to change. 16-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Notes regarding these materials
- These materials are intended as a reference to assist our customers in the selection of the Mitsubishi semiconductor product best suited to the customer’s application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Mitsubishi Electric Corporation or a third party.
- Mitsubishi Electric Corporation assumes no responsibility for any damage, or infringement of any third-party’s rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials.
- All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Mitsubishi Electric Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Mitsubishi Electric Corporation assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Mitsubishi Electric Corporation by various means, including the Mitsubishi Semiconductor home page (http://www.mitsubishichips.com).
- When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Mitsubishi Electric Corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein.
- Mitsubishi Electric Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
- The prior written approval of Mitsubishi Electric Corporation is necessary to reprint or reproduce in whole or in part these materials.
- If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited.
- Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for further details on these materials or the products contained therein. © 2001 MITSUBISHI ELECTRIC CORP. New publication, effective Jul., 2001. Specifications subject to change without notice. Keep safety first in your circuit designs!
- Mitsubishi Electric Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap.
2.0 1. Revised Points 010301 Refer to “Corrections and Supplementary Explanation for M37905MxC-XXXFP/SP Datasheet (Rev.A)”. 2. Added Sections BLOCK DIAGRAM, BASIC FUNCTION BLOCKS, MEMORY, CENTRAL PROCESSING UNIT (CPU), BUS INTERFACE UNIT, PROCESSOR MODES, INTERRUPTS, TIMER, TIMER FUN- CTION FOR MOTOR CONTROL, PULSE OUTPUT PORT MODE 0/1, SERIAL I/O PORTS, A-D CONVERTER, D-A CONVERTER, WATCHDOG TIMER, INPUT/OUTPUT PINS, RESET CIRCUIT, OSCILLATION CIRCUIT, CLOCK GENERATING CIRCUIT, STANDBY FUNCTION, POWER SAVING FUNCTION, DEBUG FUNCTION, ELECTRICAL CHARACTERISTICS, PA- CKAGE OUTLINE 3.0 Refer to “Corrections and Explanation for M37905MxC-XXXFP/SP Datasheet (Rev.B)”. 010702 Note : # represents the new information added in Rev.3.0. Rev. Rev. No. date 1.0 First Edition. The following are released. 000630
- DESCRIPTION Revision History M37905MxC-XXXFP/SP Datasheet (1/1) Revision Description
Corrections and Supplementary Explanation for M37905MxC-XXXFP/SP Datasheet (Rev.B) No.1 Page Page 1, DISTINCTIVE
FEATURES
Page 1, APPLICATION Page 1, M37905MxC-XXXFP PIN CONFIGURA- TION (TOP VIEW) Page 2, M37905MxC-XXXSP PIN CONFIGURA- TION (TOP VIEW) Page 4, Item 1 Item 2 Item 3: Clock gen- erating circuit Item 4: Power dis- sipation Error 8-bit A-D converter Control devices for equipment required for motor control such as inverter ••••• G Pin No.23; P5 3/INT3/RTPTRG0 /XCOUT G Pin No.24; P52/INT2/RTPTRG1 /XCIN G Pin No.50; P11/CTS0/CLK0 G Pin No.28; XONT G Pin No.31; P53/INT3/RTPTRG0 /XCOUT G Pin No.32; P52/INT2/RTPTRG1 /XCIN External main-clock input frequency f(XIN) System clock input frequency f(fsys) 2 circuits incorporated Correction 8-bit D-A converter Control devices for equipment, requiring motor control, such as inverter ••••• G Pin No.23; P53/INT3/RTPTRG0 G Pin No.24; P52/INT2/RTPTRG1 G Pin No.50; P11/CTS0/CLK0 G Pin No.28; XOUT G Pin No.31; P53/INT3/RTPTRG0 G Pin No.32; P52/INT2/RTPTRG1 External clock input frequency f(XIN) ❈ “External sub-clock input frequency f(XCIN)” is deleted. System clock frequency f(fsys) Incorporated (1/2) Page 43, Figure 43 Position-data-retain function control register Retained trigger’s polarity select bit 0134
- ••• Position-data-retain function control register Retain-trigger polarity select bit 0134
- ••• Page 70, Figure 79 3: ••••, it is necessary to wait for 1 s or more before •••• 3: ••••, it is necessary to wait for 1 µs or more before •••• Page 78, Figure 88 Comparison result register 0 (DE16)••• Comparison result register 1 (DF16)••• Comparator result register 0 (DE16)••• Comparator result register 1 (DF16)••• Page 81,
- Left column Line 7
- Right column Lines 5, 10, 21 Page 90, RECOMMENDED OPERATING CONDITIONS Min. Limits Max.Symbol Parameter UnitTyp. 0VIL Low-level input voltage
- •••
0.2 VCC VmA
Min. Limits Max.Symbol Parameter UnitTyp. 0VIL Low-level input voltage
- •••
0.2 VCC V
Page 91, DC ELECTRICAL CHARACTERISTICS (VCC = 5V, ••••, f(fsys) = 20 MHz) (VCC = 5V, ••••, f(fsys) = 20 MHz, unless otherwise noted)
Corrections and Supplementary Explanation for M37905MxC-XXXFP/SP Datasheet (Rev.B) No.2 Page Error Correction (2/2) Min. Limits Max.Symbol Parameter UnitTyp. 2VOL VP10-P17, •••• P70–P74, ••• Low-level output voltage Min. Limits Max.Symbol Parameter UnitTyp. 2VOL VP10-P17, •••• P70–P77, ••• Low-level output voltage Min. Limits Max.Symbol Parameter UnitTyp. 2VOL VROM hold voltage Test conditions Min. Limits Max.Symbol Parameter UnitTyp. 2VOL VROM hold voltage Test conditions Min. Limits Max.Symbol Parameter UnitTyp. 25ICC mAPower source current Test conditions 50f(fsys) = 20 MHz.
- ••• Min. Limits Max.Symbol Parameter UnitTyp. 25ICC mAPower source current Test conditions f(fsys) = 20 MHz.
- ••• Output- only pins Output- only pins Page 91, DC ELECTRICAL CHARACTERISTICS