Part Number Hot Search : 
1458075 R32C152 CMMR1U M51971E BAS40 ANSR2N7 Q6012LH5 UPD44
Product Description
Full Text Search
 

To Download M34570M4-227FP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 4570 Group is a 4-bit single-chip microcomputer designed with CMOS technology. Its CPU is that of the 4500 series using a simple, high-speed instruction set. The computer is equipped with a carrier wave output circuit for remote control, an 8-bit timer with a reload register, a 10-bit timer with a reload register, and an 8-bit timer with two reload registers. The various microcomputers in the 4570 Group include variations of the built-in memory size. The mask ROM version and One Time PROM version of 4570 Group are produced as shown in the table below. q System clock switch function ............................................................. f(XIN)/4 or not divided q Timers Timer 1... 10-bit timer with a reload register and carrier wave output auto-control function Timer 2 ................................ 8-bit timer with a reload register Timer 3... 8-bit timer with two reload registers and carrier wave generation function q Interrupt ................................................................... 4 sources q Power-on reset circuit q Watchdog timer ............................................................ 16 bits q Key-on wakeup function (Ports P0, P1, and P4, ON/OFF of port P4 can be switched) qPull-up transistor .............. (Ports P0, P1, and P4, ON/OFF of port P4 can be switched) q Voltage drop detection circuit q Clock generating circuit (ceramic resonance)
FEATURES
q Minimum instruction execution time When f(XIN) is selected for system clock ....................... 1.5s (f(XIN)=2.0 MHz, VDD=4.5 V to 5.5 V) When f(XIN)/4 is selected for system clock ................. 2.86s (f(XIN)=4.2 MHz, VDD=2.0 V to 5.5 V) q Supply voltage ............................. 2.5 V to 5.5 V (One Time PROM version) ....................................... 2.0 V to 5.5 V (Mask ROM version) Product M34570M4-XXXFP M34570M8-XXXFP M34570MD-XXXFP M34570E8FP M34570EDFP * *: Under development (Jan. 1999) ROM (PROM) size (! 10 bits) 4096 words 8192 words 16384 words 8192 words 16384 words
APPLICATION
Remote control transmitter RAM size (! 4 bits) 128 words 128 words 128 words 128 words 128 words Package 36P2R-A 36P2R-A 36P2R-A 36P2R-A 36P2R-A ROM type Mask ROM Mask ROM Mask ROM One Time PROM One Time PROM
PIN CONFIGURATION (TOP VIEW)
M34570Mx-XXXFP
D2 D3 D4 D5 D6 D7 D8 D9/TOUT P20 P21/INT RESET CNVSS XOUT XIN VSS VDCE VDD CARR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Outline 36P2R-A
36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19
D1 D0 P13 P12 P11 P10 P03 P02 P01 P00 P43 P42 P41 P40 P33 P32 P31 P30
M34570Mx-XXXFP
2
4 4 10
4 4
2
BLOCK DIAGRAM
I/O port
Port P1 Port P4 Port P2 Port P3 Port D
Port P0
Internal peripheral functions
Clock generating circuit XIN -XOUT Reset (Voltage drop detection circuit)
Timers/Carrier wave generation
Timer 1 (10 bits) Timer 2 (8 bits)
Timer 3 (8 bits) (Carrier wave generation)
Memory 4500 Series CPU core
ALU(4 bits)
Register B (4 bits) Register A (4 bits) Register E (8 bits) Register D (3 bits) Stack registers SKs (8 levels) Interrupt stack register SDP(1 level)
Watchdog timer (16 bits)
ROM (Note)
4096 to 16384 words ! 10 bits
RAM
128 words ! 4 bits
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Note: PROM 16384 words ! 10 bits for the built-in PROM version.
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PERFORMANCE OVERVIEW
Parameter Number of basic instructions 99 Function Minimum instruction execution time 1.5 s (f(XIN) = 2.0 MHz:system clock = f(XIN): VDD = 5.0 V) 2.86 s (f(XIN) = 4.2 MHz:system clock = f(XIN)/4: VDD = 5.0 V) Memory sizes ROM M34570M4 4096 words ! 10 bits M34570M8 8192 words ! 10 bits M34570MD 16384 words ! 10 bits M34570E8 8192 words ! 10 bits M34570ED 16384 words ! 10 bits 128 words ! 4 bits Ten independent output ports; port D9 is also used as the TOUT output pin. 4-bit I/O port; every pin of the ports has a key-on wakeup function and a pull-up function. 4-bit I/O port; every pin of the ports has a key-on wakeup function and a pull-up function. 2-bit input port, port P21 is also used as INT input pin. 4-bit I/O port 4-bit input port; both pull-up function and key-on wakeup function can be switched by software. 1-bit output port (CMOS output) 1-bit output pin; TOUT output pin is also used as port D9. 1-bit input pin with a key-on wakeup function. INT input pin is also used as port P21. 10-bit timer with a reload register and carrier wave output auto-control function 8-bit timer with a reload register 8-bit timer with two reload registers and carrier wave generation function 4 (one for external and three for timer) 1 level 8 levels (however, only 7 levels can be used when an interrupt is used or the TABP p instruction is executed) CMOS silicon gate 36-pin plastic molded SSOP -20 C to 70 C 2.0 V to 5.5 V for mask ROM version (2.5 V to 5.5 V for One Time PROM version) 1.3 mA (f(XIN) = 4.2 MHz: system clock = f(XIN)/4, VDD=5.0 V) 0.5 mA (f(XIN) = 1.0 MHz: system clock = f(XIN), VDD=3.0 V) 0.1 A (Ta=25 C, VDD=5V, typical value)
RAM Input/Output ports D0-D9
Output P00-P03 I/O P10-P13 I/O P20, P21 Input P30-P33 I/O P40-P43 Input Output CARR Output TOUT INT Input
Timers
Timer 1 Timer 2 Timer 3
Interrupt
Sources Nesting Subroutine nesting Device structure Package Operating temperature range Supply voltage Power at active dissipation (typical value) at RAM back-up
DEFINITION OF CLOCK AND CYCLE
q System clock The system clock is the basic clock for controlling this product. The system clock can be selected by bit 3 of the clock control register MR as shown in the table below. Table Selection of system clock System clock MR3 f(XIN) 0 f(XIN)/4 1 Note: f(XIN)/4 is selected immediately after system is released from reset. q Instruction clock The instruction clock is the standard clock for controlling CPU. The instruction clock is a signal derived from dividing the system clock by 3. The one cycle of the instruction clock is equivalent to the one machine cycle. q Machine cycle The machine cycle is the standard cycle required to execute the instruction.
3
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Pin VDD VSS CNVSS
RESET
Name Power supply Ground CNVSS Reset input
Input/Output Function -- Connected to a plus power supply. -- Connected to a 0 V power supply. Input I/O Connect CNVSS to VSS and apply "L" (0V) to CNVSS certainly. An N-channel open-drain I/O pin for a system reset. A pull-up transistor and a capacitor are built-in this pin. When the watchdog timer causes the system to be reset or the low-supply voltage is detected, the RESET pin outputs "L" level.
XIN XOUT D0-D9 P00-P03
Clock input Clock output Output port D I/O port P0
Input Output Output I/O
I/O pins of the clock generating circuit. Connect a ceramic resonator between XIN pin and XOUT pin. A feedback resistor is built-in between them. Each pin of port D has an independent 1-bit wide output function. Port D9 is also used as TOUT output pin. The output structure is N-channel open-drain. 4-bit I/O port. It can be used as an input port when the output latch is set to "1." The output structure is N-channel open-drain. Every pin of the ports has a key-on wakeup function and a pull-up function. 4-bit I/O port. It can be used as an input port when the output latch is set to "1." The output structure is N-channel open-drain. Every pin of the ports has a key-on wakeup function and a pull-up function. 2-bit input port. Port P21 is also used as the INT input pin. 4-bit I/O port. It can be used as an input port when the output latch is set to "1." The output structure is N-channel open-drain. 4-bit input port. Every pin of the ports has a key-on wakeup function and a pull-up function. Both functions can be switched by software. Carrier wave output pin for remote control transmit. The output structure is the CMOS circuit. INT input pin accepts an external interrupt and has a key-on wakeup function. INT input pin is also used as port P21. TOUT output pin has the function to output the timer 2 underflow signal divided by 2. TOUT output pin is also used as port D9. VDCE pin is used to control the operation/stop of the voltage drop detection circuit. The circuit is operating when "H" level is input to the VDCE pin. It is stopped when "L" level is input to this pin.
P10-P13
I/O port P1
I/O
P20, P21 P30-P33 P40-P43 CARR INT TOUT VDCE
Input port P2 I/O port P3 Input port P4 Carrier wave output for remote control Interrupt input Timer output Voltage drop detection circuit enable
I/O I/O Input Output Input Output Input
4
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MULTIFUNCTION
Pin D9 TOUT Multifunction TOUT Pin D9 P21 Multifunction
P21 INT INT Notes 1: Pins except above have just single function. 2: The port D9 is the output port and port P21 is the input port.
CONNECTIONS OF UNUSED PINS
Pin D0-D8 D9/TOUT P00-P03 P10-P13 Connection Connect to VSS, or set the output latch to P30-P33 "0" and open. Set the output latch to "1" and open. P40-P43 CARR Pin Connection Connect to VSS, or set the output latch to "0" and open. Connect to VSS (Note 2) or open (Note 3). Open.
P20, P21/INT Connect to VSS (Note 1). Notes 1: When the P21/INT pin is connected to VSS pin, set the return level to "H" level by software (interrupt control register I12="1"). When the P21/INT pin is connected to VSS pin while the return level is set to "L" level, system returns from RAM back-up state immediately after system enters the RAM back-up state. 2: In order to connect ports P40-P43 to VSS, turn off their pull-up transistors (pull-up control register PU0i="0") by software and also invalidate the key-on wakeup functions (key-on wakeup control register K0i="0"). When these pins are connected to VSS while the key-on wakeup functions are left valid, the system fails to return from RAM back-up state. In order to make these pins open, turn on their pull-up transistors (register PU0i="1") by software (i = 0, 1, 2, 3). Be sure to select the key-on wakeup function and the pull-up function with every one port. 3: In order to make ports P40-P43 open, turn on their pull-up transistors (register PU0i = "1") by software (i = 0, 1, 2, 3). (Note in order to set the output latch to "0" or "1" or make pins open) * After system is released from reset, a port is in a high-impedance state until the output latch of the port is set to "0" by software. Accordingly, the voltage level of pins is undefined and the excess of the supply current may occur. * To set the output latch periodically is recommended because the value of output latch may change by noise or a program run away (caused by noise). (Note in order to connect unused pins to VSS) * To avoid noise, connect the unused pins to VSS at the shortest distance using a thick wire.
PORT FUNCTION
Port Port D Pin D0-D8, D9/TOUT Input/ Output Output (10) Port P0 Port P1 Port P2 P00-P03 P10-P13 P20 P21/INT P30-P33 P40-P43 I/O (4) I/O (4) Input (2) I/O Input (4) N-channel open-drain 2 N-channel open-drain N-channel open-drain 4 4 Output structure N-channel open-drain Control bits 1 Control instructions SD RD CLD OP0A IAP0 OP1A IAP1 IAP2 SNZI0 4 4 (Note) OP3A IAP3 Port P4 IAP4 PU0 K0 Pull-up functions (programmable) Key-on wakeup functions (programmable) Note: Level of the P21/INT pin can be examined with the SNZI0 instruction. Key-on wakeup function Pull-up functions Key-on wakeup functions Pull-up functions Key-on wakeup functions Control registers W22 TOUT pin Remark W22 controls the switch of D9/
Port P3
5
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PORT BLOCK DIAGRAMS
Key-on wakeup input IAP0 instruction Register A
(Note 2)
Pull-up transistor
(Note 1)
P00-P03 IAP2 instruction DQ T Register A Key-on wakeup input External interrupt circuit
(Note 1)
Ai
P20
OP0A instruction
Key-on wakeup input IAP1 instruction Register A
(Note 2)
Pull-up transistor
(Note 1)
IAP2 instruction Register A P21/INT
P10-P13
(Note 1)
Ai
DQ T
OP1A instruction
IAP3 instruction K00 Key-on wakeup input IAP4 instruction Register A P40 Pull-up transistor PU00 Register A
(Note 1) (Note 2)
P30-P33 DQ T
(Note 1)
Ai
OP3A instruction
Register Y Pull-up transistor (Note 1) SD instruction PU01 IAP4 instruction Register A P41 RD instruction
Decoder CLD instruction
K01 Key-on wakeup input
S D0-D8 RQ
(Note 1)
Register Y
Decoder CLD instruction
S W22 RQ 1/2
0 1 (Note 1)
K02 Key-on wakeup input IAP4 instruction Register A
Pull-up transistor (Note 1) PU02
SD instruction RD instruction Timer 2 underflow signal output P42
D9/TOUT
K03 Key-on wakeup input IAP4 instruction Register A
Pull-up transistor PU03
(Note 1)
Notes 1.
This symbol represents a parasitic diode. Applied potential to ports P2 0 and P21 must be VDD or less.
2. i represents 0, 1, 2 or 3. P43
6
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PORT BLOCK DIAGRAMS (continued)
Register B Register A To timer 1
(T3HAB)
CARRY
Reload register R3H (8) C21 Timer 2 underflow signal ORCLK MR3 XIN 1/2
0 1
(Note)
W31,W30
00 01 10 11
Not available
W33
0 1
Reload control circuit Timer 3(8) T R
(T3AB)
Q
Port CARR
W33
(T3AB)
Reload register R3L (8)
(TAB3)
Register B
Register A
(TAB3)
T3F
Timer 3 interrupt
Timer 1 underflow signal
T R C20
Q
W10
Note :
This symbol represents a parasitic diode.
7
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
FUNCTION BLOCK OPERATIONS CPU

(1) Arithmetic logic unit (ALU) The arithmetic logic unit ALU performs 4-bit arithmetic such as 4-bit data addition, comparison, AND operation, OR operation, and bit manipulation. (2) Register A and carry flag (CY) Register A is a 4-bit register used for arithmetic, transfer, exchange, and I/O operation. Carry flag CY is a 1-bit flag that is set to "1" when there is a carry with the AMC instruction (Figure 1). It is unchanged with both A n instruction and AM instruction. The value of A0 is stored in carry flag CY with the RAR instruction (Figure 2). Carry flag CY can be set to "1" with the SC instruction and cleared to "0" with the RC instruction. (3) Registers B and E Register B is a 4-bit register used for temporary storage of 4bit data, and for 8-bit data transfer together with register A. Register E is an 8-bit register. It can be used for 8-bit data transfer with register B used as the high-order 4 bits and register A as the low-order 4 bits (Figure 3). (4) Register D Register D is a 3-bit register. It is used to store a 7-bit ROM address together with register A and is used as a pointer within the specified page when the TABP p, BLA p, or BMLA p instruction is executed (Figure 4).
(CY) (M(DP)) Addition (A)
Fig. 1 AMC instruction execution example
ALU
SC instruction
RC instruction
CY
A3 A2 A1 A0 RAR instruction
A0
CY A3 A2 A1
Fig. 2 RAR instruction execution example
Register B TAB instruction Register A B3 B2 B1 B0 A3 A2 A1 A0 TEAB instruction Register E E7 E6 E5 E4 E3 E2 E1 E0 TABE instruction B3 B2 B1 B0 Register B A3 A2 A1 A0 Register A
TBA instruction
Fig. 3 Registers A, B and register E
TABP p instruction Specifying address
ROM 8 4 0
PCH p6 p5 p4 p3 p2 p1 p0
PCL DR2 DR1 DR0 A3 A2 A1 A0
Low-order 4 bits Register A (4) Middle-order 4 bits Register B (4)
Immediate field value p
The contents of The contents of register D register A
High-order 2 bits Register W5 (2)
Fig. 4 TABP p instruction execution example
8
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(5) Stack registers (SKS) and stack pointer (SP) Stack registers (SKs) are used to temporarily store the contents of program counter (PC) just before branching until returning to the original routine when; * branching to an interrupt service routine (referred to as an interrupt service routine), * performing a subroutine call, or * executing the table reference instruction (TABP p). Stack registers (SKs) are eight identical registers, so that subroutines can be nested up to 8 levels. However, one of stack registers is used when using an interrupt service routine or when executing a table reference instruction. Accordingly, be careful not to stack over when performing these operations together. The contents of registers SKs are destroyed when 8 levels are exceeded. The register SK nesting level is pointed automatically by 3bit stack pointer (SP). The contents of the stack pointer (SP) can be transferred to register A with the TASP instruction. Figure 5 shows the stack registers (SKs) structure. Figure 6 shows the example of operation at subroutine call. (6) Interrupt stack register (SDP) Interrupt stack register (SDP) is a 1-stage register. When an interrupt occurs, this register (SDP) is used to temporarily store the contents of data pointer, carry flag, skip flag, register A, and register B just before an interrupt until returning to the original routine. Unlike the stack registers (SKs), this register (SDP) is not used when executing the subroutine call instruction and the table reference instruction. (7) Skip flag Skip flag controls skip decision for the conditional skip instructions and continuous described skip instructions. When an interrupt occurs, the contents of skip flag is stored automatically in the interrupt stack register (SDP) and the skip condition is retained.
Program counter (PC) Executing the subroutine Executing the return or call or table reference table reference instruction instruction SK0 (SP) = 0 SK1 SK2 SK3 SK4 SK5 SK6 SK7 (SP) = 1 (SP) = 2 (SP) = 3 (SP) = 4 (SP) = 5 (SP) = 6 (SP) = 7
Stack pointer (SP) points "7" at reset or returning from RAM back-up mode. It points "0" by executing the first BM instruction, and the contents of program counter is stored in SK0. When the BM instruction is executed after eight stack registers are used ((SP) = 7), (SP) = 0 and the contents of SK0 is destroyed.
Fig. 5 Stack registers (SKs) structure
(SP) (SK0) (PC)
Main program Address 000016 NOP 000116 BM SUB1 000216 NOP
(PC) (SP)
Note: Returning to the BM instruction execution address with the RT instruction, and the BM instruction is equivalent to the NOP instruction.
Fig. 6 Example of operation at subroutine call


0 000116 SUB1
Subroutine
SUB1 : NOP * * * RT
(SK0) 7
9
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(8) Program counter (PC) Program counter (PC) is used to specify a ROM address (page and address). It determines a sequence in which instructions stored in ROM are read. It is a binary counter that increments the number of instruction bytes each time an instruction is executed. However, the value changes to a specified address when branch instructions, subroutine call instructions, return instructions, or the table reference instruction (TABP p) is executed. Program counter consists of PCH (most significant bit to bit 7) which specifies to a ROM page and PCL (bits 6 to 0) which specifies an address within a page. After it reaches the last address (address 127) of a page, it specifies address 0 of the next page (Figure 7). Make sure that the PCH does not specify after the last page of the built-in ROM. (9) Data pointer (DP) Data pointer (DP) is used to specify a RAM address and consists of registers Z, X, and Y. Register Z specifies a RAM file group, register X specifies a file, and register Y specifies a RAM digit (Figure 8). Register Y is also used to specify the port D bit position. When using port D, set the port D bit position to register Y certainly and execute the SD or RD instruction (Figure 9).
Program counter (PC) p6 p5 p4 p3 p2 p1 p0 a6 a5 a4 a3 a2 a1 a0
PCH Specifying page
PCL Specifying address
Fig. 7 Program counter (PC) structure
Data pointer (DP) Z1 Z0 X3 X2 X1 X0 Y3 Y2 Y1 Y0
Register Y (4) Register X (4)
Specifying RAM digit
Specifying RAM file
Register Z (2)
Specifying RAM file group
Fig. 8 Data pointer (DP) structure
Specifying bit position Set
D9 D6 D5 D4 D0
0
1
0
1
1 Port D output latch
Register Y (4)
Fig. 9 SD instruction execution example
10
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PROGRAM MEMORY (ROM)
1 word of ROM is composed of 10 bits. ROM is separated every 128 words by the unit of page (addresses 0 to 127). Table 1 shows the ROM size and pages. Figure 10 shows the ROM map of M34570M8. Table 1 ROM size and pages Product M34570M4 M34570M8 M34570E8 M34570MD ROM size (! 10 bits) 4096 words 8192 words 8192 words 16384 words Pages 32 (0 to 31) 64 (0 to 63) 64 (0 to 63) 128 (0 to 127)
98 000016 007F16 008016 00FF16 010016 017F16 018016
7
6
5
4
3
2
10 Page 0
Interrupt address page Subroutine special page
Page 1 Page 2 Page 3
0FFF16
Page 31
16384 words M34570ED 128 (0 to 127) Note: When the TABP instruction is executed after executing the SBK instruction, data in pages 64 to 127 can be referred. When the TABP instruction is executed after executing the RBK instruction, data in pages 0 to 63 can be referred. A top part of page 1 (addresses 008016 to 00FF16) is reserved for interrupt addresses (Figure 11). When an interrupt occurs, the address (interrupt address) corresponding to each interrupt is set in the program counter, and the instruction at the interrupt address is executed. When using an interrupt service routine, write the instruction generating the branch to that routine at an interrupt address. Page 2 (addresses 010016 to 017F16) is the special page for subroutine calls. Subroutines written in this page can be called from any page with the 1-word instruction (BM). Subroutines extending from page 2 to another page can also be called with the BM instruction when it starts on page 2. ROM pattern (bits 9 to 0) of all addresses can be used as data areas with the TABP p instruction.
1FFF16
Fig. 10 ROM map of M34570Mx
Page 127
98 008016
7
6
5
4
3
2
10
External 0 interrupt address
008416 008616 008816
Timer 1 interrupt address Timer 2 interrupt address Timer 3 interrupt address
00FF16
Fig. 11 Interrupt address page (addresses 008016 to 00FF16) structure
11
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
DATA MEMORY (RAM)
1 word of RAM is composed of 4 bits, but 1-bit manipulation (with the SB j, RB j, and SZB j instructions) is enabled for the entire memory area. A RAM address is specified by a data pointer. The data pointer consists of registers Z, X, and Y. Set a value to the data pointer certainly when executing an instruction to access RAM. Table 2 shows the RAM size. Figure 12 shows the RAM map.
Table 2 RAM size Product M34570Mx M34570Ex
RAM size 128 words ! 4 bits (512 bits)
RAM 128 words ! 4 bits (512 bits)
Register Z Register X
0 01 2 3 ... 6 7
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 128 words
Fig. 12 RAM map
12
Register Y
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
INTERRUPT FUNCTION
The interrupt type is a vectored interrupt branching to an individual address (interrupt address) according to each interrupt source. An interrupt occurs when the following 3 conditions are satisfied. * Interrupt enable flag (INTE) = "1" (Interrupt enabled) * Interrupt enable bit = "1" (Interrupt request occurrence enabled) * An interrupt activated condition is satisfied (request flag = "1") Table 3 shows interrupt sources. (Refer to each interrupt request flag for details of activated conditions.) (1) Interrupt enable flag (INTE) The interrupt enable flag (INTE) controls whether the every interrupt enable/disable. Interrupts are enabled when INTE flag is set to "1" with the EI instruction and disabled when INTE flag is cleared to "0" with the DI instruction. When any interrupt occurs, the INTE flag is automatically cleared to "0," so that other interrupts are disabled until the EI instruction is executed. (2) Interrupt enable bits (V10-V13, V20-V23) Use an interrupt enable bit of interrupt control registers V1 and V2 to select the corresponding interrupt request or skip instruction. Table 4 shows the interrupt request flag, interrupt enable bit and skip instruction. Table 5 shows the interrupt enable bit function. (3) Interrupt request flag When the activated condition for each interrupt is satisfied, the corresponding interrupt request flag is set to "1." Each interrupt request flag is cleared to "0" when either; * an interrupt occurs, or * the next instruction is skipped with a skip instruction. Each interrupt request flag is set when the activated condition is satisfied even if the interrupt is disabled by the INTE flag or its interrupt enable bit. Once set, the interrupt request flag retains set until a clear condition is satisfied. Accordingly, an interrupt occurs when the interrupt disable state is released while the interrupt request flag is set. If more than one interrupt request flag is set when the interrupt disable state is released, the interrupt priority level is as follows shown in Table 3.
Table 3 Interrupt sources Interrupt Priority Activated condition Interrupt name address level Address 0 1 External 0 interrupt Level change of in page 1 INT pin 2 Timer 1 underflow Address 4 Timer 1 interrupt in page 1 3 4 Timer 2 interrupt Timer 3 interrupt Timer 2 underflow Timer 3 underflow Address 6 in page 1 Address 8 in page 1 Table 4 Interrupt request flag, interrupt enable bit and skip instruction Request flag Enable bit Skip instruction Interrupt name EXF0 SNZ0 V10 External 0 interrupt Timer 1 interrupt Timer 2 interrupt Timer 3 interrupt T1F T2F T3F V12 V13 V20 SNZT1 SNZT2 SNZT3
Table 5 Interrupt enable bit function Interrupt enable bit 1 0 Occurrence of interrupt request Enabled Disabled Skip instruction Invalid Valid
13
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(4) Internal state during an interrupt The internal state of the microcomputer during an interrupt is as follows (Figure 14). * Program counter (PC) An interrupt address is set in program counter. The address to be executed when returning to the main routine is automatically stored in the stack register (SK). * Interrupt enable flag (INTE) INTE flag is cleared to "0" so that interrupts are disabled. * Interrupt request flag Only the request flag for the current interrupt source is cleared to "0." * Data pointer, carry flag, skip flag, registers A and B The contents of these registers and flags are stored automatically in the interrupt stack register (SDP). (5) Interrupt processing When an interrupt occurs, a program at an interrupt address is executed after a branch to a sequence for storing data into stack register is performed. Write the branch instruction to an interrupt service routine at an interrupt address. Use the RTI instruction to return to main routine. Interrupt enabled by executing the EI instruction is performed after executing 1 instruction (just after the next instruction is executed). Accordingly, when the EI instruction is executed just before the RTI instruction, interrupts are enabled after returning to the main routine. (Refer to Figure 13)
*Program counter (PC) ..................................................... Each interrupt address *Stack register (SK) ........... The address of main routine to be executed when returning *Interrupt enable flag (INTE) ........................................................ 0 (Interrupt disabled) *Interrupt request flag (only the flag for the current interrupt source) ........................................................................................ 0 *Data pointer, carry flag, registers A and B, skip flag ............... Stored in the interrupt stack register (SDP) automatically Fig. 14 Internal state when interrupt occurs
INT pin (L H or H L input)
EXF0
V10
Address 0 in page 1 Address 4 in page 1
Timer 1 underflow Timer 2 underflow
T1F
V12
T2F
V13
Address 6 in page 1 Address 8 in page 1
Main routine
Interrupt service routine Interrupt occurs
Timer 3 underflow Activated condition
T3F Request flag (state retained)
V20 Enable bit
INTE Enable flag
Fig. 15 Interrupt system diagram
Interrupt is enabled
EI RTI
: Interrupt enabled state : Interrupt disabled state
Fig. 13 Program example of interrupt processing
14
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(6) Interrupt control register q Interrupt control register V1 Interrupt enable bits of external 0, timer 1 and timer 2 are assigned to register V1. Set the contents of this register through register A with the TV1A instruction. The TAV1 instruction can be used to transfer the contents of register V1 to register A. Table 6 Interrupt control register Interrupt control register V1 V13 V12 V11 V10 Timer 2 interrupt enable bit Timer 1 interrupt enable bit Not used External 0 interrupt enable bit 0 1 0 1 0 1 0 1
q Interrupt control register V2 Interrupt enable bit of timer 3 is assigned to register V2. Set the contents of this register through register A with the TV2A instruction. The TAV2 instruction can be used to transfer the contents of register V2 to register A.
at reset : 00002
RAM back-up : 00002
R/W
Interrupt disabled (SNZT2 instruction is valid) Interrupt enabled (SNZT2 instruction is invalid) Interrupt disabled (SNZT1 instruction is valid) Interrupt enabled (SNZT1 instruction is invalid) This bit has no function, but read/write is enabled. Interrupt disabled (SNZ0 instruction is valid) Interrupt enabled (SNZ0 instruction is invalid)
Interrupt control register V2 V23 V22 V21 V20 Not used Not used Not used Timer 3 interrupt enable bit 0 1 0 1 0 1 0
at reset : 00002
at RAM back-up : 00002
R/W
This bit has no function, but read/write is enabled. This bit has no function, but read/write is enabled. This bit has no function, but read/write is enabled.
Interrupt disabled (SNZT3 instruction is valid) 1 Interrupt enabled (SNZT3 instruction is invalid) Note: "R" represents read enabled, and "W" represents write enabled.
15
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(7) Interrupt sequence Interrupts occur only when the respective INTE flag, interrupt enable bits (V10-V13 and V20-V23), and interrupt request flags (EXF0, T1F, T2F, T3F) are "1." The interrupt actually occurs 2 to 3 machine cycles after the cycle in which all three
conditions are satisfied. The interrupt occurs after 3 machine cycles only when the three interrupt conditions are satisfied on execution of instructions other than one-cycle instructions (Refer to Figure 16).
q When an interrupt request flag is set after its interrupt is enabled (Note 1)
1 machine cycle
T1 f(XIN) System clock=f(X IN)/4 selected
T2
T3
T1
T2
T3
T1
T2
T3
T1
T2
T3
T1
T2
T3
T1 f(XIN) System clock=f(X IN) selected Interrupt enable flag (INTE)
T2
T3
T1
T2
T3
T1
T2
T3
T1
T2
T3
T1
T2
T3
EI instruction execution cycle Interrupt enabled state
Interrupt disabled state
INT pin External interrupt Flag EXF0 Interrupt activated condition satisfied Timer 1, timer 2, timer 3 interrupts Flag T1F, T2F T3F Flag cleared
Retaining level for 4 cycles or more of f(XIN) is necessary.
Software starts from interrupt address.
2 to 3 machine cycles (Notes 2, 3)
Notes 1: The system clock = f(X IN)/4 is selected just after system is released from reset. 2: The address is stacked to the last cycle. 3: This interval of cycles depends on the instruction executed at the time when each interrupt activated condition is satisfied.
Fig. 16 Interrupt sequence
16
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
EXTERNAL INTERRUPTS
An external interrupt request occurs when a valid waveform (= waveform causing the external 0 interrupt) is input to an interrupt input pin (edge detection). The external 0 interrupt can be controlled with the interrupt control register I1. Table 7 External interrupt activated condition Name External 0 interrupt Input pin P21/INT Valid waveform Falling waveform ("H""L") Rising waveform ("L""H") Valid waveform selection bit (I12) 0 1
I12
Falling
0 P21/INT 1
Rising One-sided edge detection circuit
EXF0 Skip
External 0 interrupt
SNZI0 instruction
Fig. 17 External interrupt circuit structure
17
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) External 0 interrupt request flag (EXF0) External 0 interrupt request flag (EXF0) is set to "1" when a valid waveform is input to P21/INT pin. The valid waveforms causing the interrupt must be retained at their level for 4 cycles or more of the system clock (Refer to Figure 16). The state of EXF0 flag can be examined with the skip instruction (SNZ0). Use the interrupt control register V1 to select the interrupt or the skip instruction. The EXF0 flag is cleared to "0" when an interrupt occurs or when the next instruction is skipped with the skip instruction. The P21/INT pin need not be selected the external interrupt input INT function or the normal input port P21 function. However, the EXF0 flag is set to "1" when a valid waveform is input to P21/INT pin even if it is used as an input port P21. q External 0 interrupt activated condition External 0 interrupt activated condition is satisfied when a valid waveform is input to P21/INT pin. The valid waveform can be selected from rising waveform or falling waveform. An example of how to use the external 0 interrupt is as follows. Select the valid waveform with the bit 2 of register I1. Clear the EXF0 flag to "0" with the SNZ0 instruction. Set the NOP instruction for the case when a skip is performed with the SNZ0 instruction. Set both the external 0 interrupt enable bit (V10) and the INTE flag to "1." The external 0 interrupt is now enabled. Now when a valid waveform is input to the P21/INT pin, the EXF0 flag is set to "1" and the external 0 interrupt occurs.
(2) External interrupt control register q Interrupt control register I1 Register I1 controls the valid waveform for the external 0 interrupt, the return level (valid level of wakeup signal) from the RAM back-up and P21/INT pin function. Set the contents of this register through register A with the TI1A instruction. The TAI1 instruction can be used to transfer the contents of register I1 to register A.
Table 8 External interrupt control register Interrupt control register I1 I13 Not used 0 1 0 I12 Interrupt valid waveform for INT pin/return level selection bit (Note 2) 1 0 1 0 at reset : 00002 at RAM back-up : state retained R/W
This bit has no function, but read/write is enabled. Falling waveform ("L" level of INT pin is recognized with the SNZI0 instruction)/"L" level Rising waveform ("H" level of INT pin is recognized with the SNZI0 instruction)/"H" level
I11 I10
Not used Not used
This bit has no function, but read/write is enabled.
This bit has no function, but read/write is enabled. 1 Notes 1: "R" represents read enabled, and "W" represents write enabled. 2: Depending on the input state of P21/INT pin, the external interrupt request flag EXF0 may be set to "1" when the contents of I12 is changed. Accordingly, set a value to bit 2 of register I1 and execute the SNZ0 instruction to clear the EXF0 flag after executing at least one instruction.
18
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
TIMERS
The 4570 Group has the programmable timers and a fixed dividing frequency timer. q Programmable timer The programmable timer has a reload register and enables the frequency dividing ratio to be set. It is decremented from a set value n. When it underflows (count to n + 1), a timer interrupt request flag is set to "1," new data is loaded from the reload register, and count continues (auto-reload function).
q Fixed dividing frequency timer The fixed dividing frequency timer has the fixed frequency dividing ratio (n). An interrupt request flag is set to "1" every n count of a count pulse.
FF16 n : Counter initial value Count starts n Reload Reload
The contents of counter
1st underflow
2nd underflow
0016 Time n+1 count Timer 1 interrupt "1" request flag "0" An interrupt occurs or a skip instruction is executed. n+1 count
Fig. 18 Auto-reload function
19
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
The 4570 Group timer consists of the following circuits. * Prescaler : frequency divider * Timer 1 : 10-bit programmable timer with the interrupt function and the carrier wave output auto-control function * Timer 2 : 8-bit programmable timer with the interrupt function * Timer 3 : 8-bit programmable timer with the interrupt function and the carrier wave generation function * 16-bit timer
Prescaler, timer 1, timer 2 and timer 3 can be controlled with the timer control registers W1, W2 and W3. 16-bit timer is the free-run counter without the control register. Each function is described below.
Table 9 Function related timers Circuit Prescaler Timer 1 Structure Count source Frequency dividing ratio 4, 8 1 to 1024 Use of output signal * Timer 1, 2 and 3 count sources * Timer 1 interrupt * Carrier wave output auto-control 1 to 256 * Timer 2 count source * Timer 2 interrupt * Timer 3 count source * TOUT output 1 to 256 * Timer 3 interrupt * Timer 1 count source * Carrier wave 65536 * Watchdog timer (15-th bit output is counted twice.) * Timer 2 count source (16-bit timer underflow) W3 Control register W1 W1 (W5) W2
* Instruction clock Frequency divider 10-bit programmable * Prescaler output (ORCLK) binary down counter * Carrier wave generating circuit output (CARRY) * Prescaler output (ORCLK) * Timer 1 underflow * Instruction clock * 16-bit timer underflow
Timer 2
8-bit programmable binary down counter
Timer 3
8-bit programmable * Prescaler output (ORCLK) binary down counter * Timer 2 underflow * f(XIN) or f(XIN)/2 * Instruction clock
16-bit timer
16-bit fixed dividing frequency
20
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
System clock
Instruction clock Prescaler W13 (Note 1) W12 1/4 1/8
0 1
MR3 XIN Frequency dividing circuit (divided by 4)
0 1
0
Internal clock generating circuit (divided by 3)
1
W10(Note 1) W11
0 0 1
ORCLK Timer 1(10) T1F Timer 1 interrupt
CARRY
1
Reload register R1 (10)
(TAB1) (T1AB) (Note 2) (TAB1)
Register W5 Register B Register A
W21,W20
00 01 10 11
Timer 1 underflow signal W23(Note 1)
0 1
Timer 2 (8)
T2F
Timer 2 interrupt
Reload register R2 (8)
(TAB2)
T 2 A B
(TR2AB)
T 2 A B
(TAB2)
Register B
Register A Timer 2 underflow signal
Register B
Register A
(T3HAB)
Reload register R3H (8) W31,W30
00 01
W33(Note1)
0 1
Reload control circuit Timer 3(8) T R
(T3AB)
Q
CARRY
(to timer 1/port CARR)
MR3
0
10 11
Not available
1/2
1
W33
(T3AB)
Reload register R3L (8)
(TAB3) (TAB3)
T3F
Timer 3 interrupt
Register B 16-bit timer underflow signal 16-bit timer (WDT) Instruction clock 1 15 16
Register A
System reset
WRST instruction Reset signal
S
WEF
Q
WDF1 WDF2
R
W22 D9/TOUT
0 1
D9 output 1/2
Timer 2 underflow signal
Notes 1: Count source is stopped by setting to "0." 2: When the T1AB instruction is executed after setting W10 to "1," data is only written to reload register R1.
Fig. 19 Timers structure
21
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Table 10 Timer control registers Timer control register W1 W13 W12 W11 W10 Prescaler control bit Prescaler dividing ratio selection bit Timer 1 count source selection bit Timer 1 control bit 0 1 0 1 0 1 0 1 at reset : 00002 at RAM back-up : 00002 R/W
Stop (prescaler state initialized) Operating Instruction clock divided by 4 Instruction clock divided by 8 Prescaler output (ORCLK) Carrier output (CARRY) Stop (state retained) Operating
Timer control register W2 W23 W22 Timer 2 control bit Port D9/TOUT pin function selection bit 0 1 0 1
at reset : 00002 Stop (state retained) Operating Port D9 TOUT pin
at RAM back-up : state retained
R/W
W21 W20
Count source Prescaler output (ORCLK) Timer 1 underflow signal Instruction clock 16-bit timer underflow signal
W21 Timer 2 count source selection bits W20
0 0 1 1
0 1 0 1
Timer control register W3 W33 W32 Timer 3 control bit Not used 0 1 0 1
at reset : 00002 Stop (state retained) Operating
at RAM back-up : state retained
R/W
This bit has no function, but read/write is enabled. Count source Timer 2 underflow signal Prescaler output (ORCLK) f(XIN) or f(XIN)/2 Not available
W31 W30
W31 Timer 3 count source selection bits W30
0 0 1 1
0 1 0 1
Timer count value store register W5
at reset : 002
at RAM back-up : state retained
R/W
2-bit register. The contents of the high-order 2 bits (bits 9 and 8) of the 10-bit ROM pattern at address (D2D1D0A3A2A1A0) in page p specified by registers D and A is stored in this register W5 with the TABP p instruction. In addition, data can be transferred between the low-order 2 bits of register A and this register W5 with the TW5A or TAW5 instruction. Data can be read/written to/from the high-order 2 bits of timer 1 with the T1AB or TAB1 instruction. Note: "R" represents read enabled, and "W" represents write enabled.
22
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) Timer control registers q Timer control register W1 Register W1 controls the count source and count operation of timer 1, the frequency dividing ratio and count operation of prescaler. Set the contents of this register through register A with the TW1A instruction. The TAW1 instruction can be used to transfer the contents of register W1 to register A. q Timer control register W2 Register W2 controls the count operation and count source of timer 2 and D9/TOUT pin function. Set the contents of this register through register A with the TW2A instruction. The TAW2 instruction can be used to transfer the contents of register W2 to register A. q Timer control register W3 Register W3 controls the count operation and count source of timer 3. Set the contents of this register through register A with the TW3A instruction. The TAW3 instruction can be used to transfer the contents of register W3 to register A. q Timer count value store register W5 2-bit register. The contents of the high-order 2 bits (bits 9 and 8) of the 10-bit ROM pattern at address in page p specified by registers D and A is stored in this register W5 with the TABP p instruction. In addition, data can be transferred between the low-order 2 bits of register A and this register W5 with the TW5A or TAW5 instruction. Data can be read/written to/from the high-order 2 bits of timer 1 with the T1AB or TAB1 instruction. (2) Precautions Note the following for the use of timers. q Prescaler Stop the prescaler operation to change its frequency dividing ratio. q Count source Stop timer 1, 2 or 3 counting to change its count source. q Reading the timer count value Stop each of the timers and then execute the TAB1, TAB2 or TAB3 instruction to read timer 1, 2 or 3 data. q Writing to reload register R1 When writing data to reload register R1 while timer 1 is operating, avoid a timing when timer 1 underflows. q Writing to reload register R3H When writing data to reload register R3H while timer 3 is operating, avoid a timing when timer 3 underflows. (3) Prescaler Prescaler is a frequency divider. Its frequency dividing ratio can be selected. The count source of prescaler is the instruction clock. Use the bit 2 of register W1 to select the prescaler dividing ratio and the bit 3 to start and stop its operation. When the bit 3 of register W1 is cleared to "0," prescaler is initialized, and the output signal (ORCLK) stops.
(4) Timer 1 (interrupt function) Timer 1 is a 10-bit binary down counter with the timer 1 reload register (R1). The 10-bit data can be set in timer 1 through registers A, B and W5. Set bits 0 to 3 to register A, bits 4 to 7 to regiser B and bits 8 to 9 to register W5 to set data to timer 1. Also, ROM pattern (bits 0 to 9) can be set to registers A, B and W5 with the TABP p instruction. Execute the T1AB instruction to set data in timer 1. When timer 1 stops, 10-bit data can be set simultaneously in timer 1 and the reload register (R1) with the T1AB instruction. When timer 1 is operating, data can be set only in the reload register (R1) with the T1AB instruction. When setting the next count data to reload register R1 while timer 1 is operating, be sure to set data before timer 1 underflows. Timer 1 starts counting after the following process; set data in timer 1, select the count source with bit 1 of register W1, set the bit 0 of register W1 to "1." Once count is started, when timer 1 underflows (the next count pulse is input after the contents of timer 1 becomes "0"), the timer 1 interrupt request flag (T1F) is set to "1," new data is loaded from reload register R1, and count continues (auto-reload function). When a value set in reload register R1 is n, timer 1 divides the count source signal by n + 1 (n = 0 to 1023). Data can be read from timer 1 to registers A, B and W5. Stop counting and then execute the TAB1 instruction to read its data. (5) Timer 2 (interrupt function) Timer 2 is an 8-bit binary counter with the timer 2 reload register (R2). Data can be set simultaneously in timer 2 and the reload register (R2) with the TAB2 instrucion. Also, data can be set only in the reload register (R2) with the TR2AB instruction. Timer 2 starts counting after following process; set data in timer 2, select the count source with bits 0 and 1 of register W2, set the bit 3 of register W2 to "1." Once count is started, when timer 2 underflows (the next count pulse is input after the contents of timer 2 becomes "0"), the timer 2 interrupt request flag (T2F) is set to "1," new data is loaded from reload register R2, and count continues (auto-reload function). When a value set in reload register R2 is n, timer 2 divides the count source signal by n+1 (n = 0 to 255). Data can be read from timer 2 to registers A and B with the TAB2 instruction. Stop counting and then execute the TAB2 instruction to read its data.
23
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(6) Timer 3 Timer 3 is an 8-bit binary down counter with the timer 3 reload registers (R3H, R3L). Data can be set simultaneously in timer 3 and the reload register (R3L) with the T3AB instruction. Data can be set in reload register R3H with the T3HAB instruction. Timer 3 starts counting after the following process; set data in timer 3, select the count source with the bits 1 and 0 of register W3, set the bit 3 of register W3 to "1." The f(XIN) or f(XIN)/2 is selected as the count source by setting W31 to "1" and W30 to "0." When the f(XIN) is selected as the system clock (bit 3 of clock control register MR= "0"), f(XIN) is selected as the count source. When the f(XIN)/4 is selected as the system clock (bit 3 of clock control register MR= "1"), f(XIN)/2 is selected as the count source. Once count is started, when timer 3 underflows (the next count pulse is input after the contents of timer 3 become "0"), the timer 3 interrupt request flag (T3F) is set to "1," new data is loaded from reload register R3H, and count coutinues (autoreload function). When the timer 3 underflows again after auto-reload is performed, the timer 3 interrupt request flag (T3F) is set to "1" and new data is reloaded from the reload register R3L and count continues. Timer 3 reloads data from reload register R3H or R3L alternately every underflow. When the T3AB instruction is executed while timer 3 is operating, new data is set in timer 3 and reload register R3L, count is started again at the next machine cycle. At the next underflow, data is reloaded from R3H and count continues regardless that auto-reload is performed from reload register R3H or R3L at the previous underflow. Data can be read from timer 3 through registers A and B. Stop counting and then execute the TAB3 instruction to read its data. Timer 3 can be also used as the carrier wave generating circuit. (7) Timer output pin (D9/TOUT) Timer output pin (D9/TOUT) is used to output the timer 2 underflow signal. The D9/TOUT pin function can be selected by the bit 2 of register W2. (8) Timer interrupt request flags (T1F, T2F, T3F) Each timer interrupt request flag is set to "1" when each timer underflows. The state of these flags can be examined with the skip instructions (SNZT1, SNZT2, SNZT3). Use the interrupt control registers V1 and V2 to select an interrupt or a skip instruction. An interrupt request flag is cleared to "0" when an interrupt occurs or when the next instruction is skipped with a skip instruction.
24
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
WATCHDOG TIMER
Watchdog timer provides a method to reset the system when a program runs wild. Watchdog timer consists of 16-bit timer (WDT), watchdog timer enable flag (WEF), and watchdog timer flags (WDF1, WDF2). Timer WDT starts downcounting the instruction clocks as the count source immediately after system is released from reset. The underflow signal is generated when the count value reaches "000016." This underflow signal can be used as the timer 2 count source. When the WRST instruction is executed after system is released from reset, the WEF flag is set to "1." At this time, the watchdog timer starts operating. When the count value of timer WDT reaches "BFFF16" or "3FFF16," WDF1 flag is set to "1." Then, if the WRST instruction is not executed while the timer WDT counts 32767, the WDF2 ______ flag is set to "1" and the RESET pin outputs "L" level to reset the microcomputer. In software using the watchdog timer, make sure that the WRST instruction is executed in 32766 machine cycles or less in order to keep the microcomputer operating normally. To prevent the watchdog timer from stopping in the event of misoperation, the WEF flag is designed not to be initialized once the WRST instruction has been executed. Note also that, if the WRST instruction is never executed, the watchdog timer does not start.
FFFF16
Value of timer WDT
0000 16
Flag WEF
BFFF16 3FFF16
Flag WDF1 Flag WDF2
RESET pin output WRST instruction WRST instruction System reset execution execution
Fig. 20 Watchdog timer function The contents of the WEF flag, the WDF1 and WDF2 flags and the timer WDT are initialized at the RAM back-up mode. However, if the WDF2 flag is set to "1" at the same time that the microcomputer enters the RAM back-up mode, system reset may be performed. When using the watchdog timer and the RAM back-up mode, initialize the WDF1 flag with the WRST instruction just before the microcomputer enters the RAM back-up mode (refer to Figure 21).
* * * * * * WRST EPOF POF
; Clear WDF1 flag ; POF instruction execution enabled
Oscillation stop (RAM back-up mode)
Fig. 21 Program example to enter the RAM back-up mode when using the watchdog timer
25
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CARRIER WAVE GENERATING CIRCUIT
The 4570 Group has a carrier wave generating circuit that generates the transfer waveform for various remote control carrier wave. The carrier wave generating circuit outputs the signal inverted every timer 3 underflow (CARRY) from port CARR. When using the carrier wave generating circuit, select the f(XIN) or f(XIN)/2 for the timer 3 count source (W31="1", W30="0"). When the bit 3 of the clock control register MR is "0" (system clock=f(XIN)), f(XIN) is selected as the count source. When the bit 3 of the clock control register MR is "1" (system clock=f(XIN)/4), f(XIN)/2 is selected as the count source. Set the count value corresponding to "L" interval of carrier wave output to timer 3 reload register R3L. Set the count value corresponding to "H" interval of carrier wave output to timer 3 reload register R3H. Also, timer 1 can auto-control the carrier wave output of port CARR by setting the carrier wave output control register (C2). When timer 3 is stopped, the output level of port CARR is initialized. ("L" level) (1) Carrier wave output control register (C2) Timer 1 can auto-control the output enable interval and the output disable interval of the carrier wave output from port CARR by setting the bit 0 of register C2 to "1." Set the contents of this register through register A with the TC2A instruction. The setting of the output enable/disable interval is described below. Validate the carrier wave output auto-control function (C20="1"). Set the count value ("L" interval of carrier wave output) to timer 3 and reload register R3L. Set the count value ("H" interval of carrier wave output) to timer 3 reload register R3H. Set the count value (the output enable interval of carrier wave from port CARR) to timer 1. Select the carrier wave (W11 = "1") as the timer 1 count source. Operate timer 1 (W10="1"). Operate timer 3 (W33="1"). Set the next count value (the output disable interval of carrier wave from port CARR) to reload register R1 before timer 1 underflow occurs.
The carrier wave is output from port CARR until the first timer 3 underflow occurs. The output of the carrier wave from port CARR is disabled and the next count value is loaded from reload register R1 to timer 1 by the first timer 1 underflow. Then, the output of carrier wave is disabled until the second timer 1 underflow occurs. Also, the next enable interval of the carrier wave output can be set by setting the third count value to timer 1 reload register R1 before the second timer 1 underflow occurs. If the carrier wave output auto-control function is invalidated (C20="0") while the carrier wave output is auto-controlled, the output of port CARR retains the state when the auto-control is invalidated regardless of timer 1 underflow. This state can be terminated by timer 1 stop (W10="0"). When the carrier wave output auto-control function is validated (C20="1") again after it is invalidated (C20="0"), the autocontrol of carrier wave output is started again when the next timer 1 underflow occurs. Stop the timer 3 and invalidate the auto-control function by timer 1 to use the port CARR output contorl bit (C21). (2) Notes when using the carrier wave output auto-control function q Set the timer 1 and register C2 before timer 3 is started to operate (W33="1"). q Stop the timer 1 (W10="0") after stopping the timer 3 (W33="0") while the carrier wave output is disabled in order to stop the carrier wave output auto-control operation. q If the carrier wave output auto-control function is invalidated (C20="0") while the carrier wave output is auto-controlled, the output of port CARR retains the state when the autocontrol is invalidated regardless of timer 1 underflow. When the carrier wave output auto-control function is validated (C20="1") again after it is invalidated (C20="0"), the auto-control by timer 1 is validated again when the next timer 1 underflow occurs. However, when the carrier wave output auto-control bit (C20) is changed during timer 1 underflow, the error-operation may occur. q When the carrier wave output auto-control function is selected, use the carrier wave CARRY as the timer 1 count source. If the ORCLK is used as the count source, a short pulse may occur in port CARR output because ORCLK is not synchronized with the carrier wave. q When the carrier wave output auto-control function is selected and data is set to reload register R1 while timer 1 is operating, avoid the timing that the contents of timer 1 becomes "0" to execute the T1AB instruction.
Table 11 Carrier wave output control register Carrier wave output control register C2 C21 C20 Port CARR output control bit Carrier wave output auto-control bit 0 1 0 1 at reset : 002 at RAM back-up : 002 W
Port CARR "L" level output Port CARR "H" level output Auto-control output by timer 1 is invalid Auto-control output by timer 1 is valid
Note: "W" represents write enabled.
26
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
TW3A instruction
Machine cycle f(XIN) (divided by 3)
"H" "L"
Timer 3 start
w
Timer 3
2
1032102103210210 R3H R3L R3H R3L
Timer 3 reload register R3H Timer 3 reload register R3L
0316 0216
Timer 3 underflow CARRY
"1" "0" "H" "L"
"L" interval "H" interval "L" interval "H" interval
set by R3L
set by R3H set by R3L
set by R3H
CARRY
"H" "L"
Port CARR output
"H" "L"
"a"
"1" "0"
"b"
"c"
"d"
Timer 1 start w
Timer 1 underflow
Interval "a" is set by timer 1
Interval "b" is set by reload register R1
Interval "c" is set by reload register R1
Interval "d" is set by reload register R1
Carrier wave output start
CARRY Port CARR output Timer 1 underflow
"H" "L" "H" "L" "1" "0"
Register C20
"1" "0"
Carrier wave output start
(C20)
0
(C20)
1 (C20)
0 (C20)
Fig. 22 Carrier wave output auto-control by timer 1
w
w
w
w
w
w
w
w
(C20)
1
1
27
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
RESET FUNCTION
____________
System reset is performed by applying "L" level to RESET pin for 1 machine cycle or more when the following condition is satisfied;
* the value of supply voltage is the minimum value or more of the recommended operating conditions. ____________ Then when "H" level is applied to RESET pin, software starts from address 0 in page 0.
f(XIN)
RESET
"H" "L"
(Note) f(XIN) is counted 10757 to 10786 times
Software start (Address 0 in page 0)
Note: The number of clock cycles depends on the internal state of the microcomputer when reset is performed.
Fig. 23 Reset release timing
Reset input 1machine cycle or more
f(XIN) is counted 10757 to 10786 times
=
0.85VDD RESET 0.3VDD (Note)
Software start (Address 0 in page 0)
Note: Keep the value of supply voltage the minimum value or more of the recommended operating conditions.
Fig. 24 RESET pin input waveform and reset operation (1) Power-on reset Reset can be automatically performed at power on (poweron reset) by the built-in power-on reset circuit. When the builtin power-on reset circuit is used, the time for the supply voltage to reach the minimum operating voltage must be set to 100
s or less. If the rising time exceeds 100 s, connect a capacitor between the RESET pin and VSS at the shortest distance, and input "L" level to RESET pin until the value of supply voltage reaches the minimum operating voltage.
VDD
Pull-up transistor
RESET pin
Power-on reset circuit
Internal reset signal
Power-on reset circuit output voltage
Voltage drop detection circuit (Note)
Reset state
Watchdog timer output WEF Internal reset signal
Note:
This symbol represents a parasitic diode. Applied potential to RESET pin must Power-on be VDD or less.
Reset released
Fig. 25 Power-on reset circuit example
28
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(2) Internal state at reset Table 12 shows port state at reset, and Figure 26 shows internal state at reset (they are retained after system is released from reset). Table 12 Port state at reset Name D0-D8, D9/TOUT P00-P03 P10-P13 P20, P21/INT P30-P33 Function D0-D8, D9 P00-P03 P10-P13 P20, P21 P30-P33
The contents of timers, registers, flags and RAM except those shown in Figure 26 are undefined, so set the initial values to them.
State High impedance (Note 1) "H" (VDD) level (Note 1) High impedance High impedance (Note 1) High impedance (Note 2) "L" (VSS) level
P40-P43 P40-P43 CARR CARR Notes 1: Output latch is set to "1." 2: The pull-up transistor is turned off.
* Program counter (PC) ............................................................................................ 0 00000 Address 0 in page 0 is set to program counter. * Interrupt enable flag (INTE) ................................................................................... 0 * Power down flag (P) ...............................................................................................0 * External 0 interrupt request flag (EXF0) ................................................................0 * Interrupt control register V1 ................................................................................... 0 000 * Interrupt control register V2 ................................................................................... 0 000 * Interrupt control register I1 .................................................................................... 0 000 * Timer 1 interrupt request flag (T1F) ...................................................................... 0 * Timer 2 interrupt request flag (T2F) ...................................................................... 0 * Timer 3 interrupt request flag (T3F) ...................................................................... 0 * Watchdog timer flags (WDF1, WDF2) ................................................................... 0 * Watchdog timer enable flag (WEF) ....................................................................... 0 * Timer control register W1 ...................................................................................... 0 000 * Timer control register W2 ...................................................................................... 0 000 * Timer control register W3 ...................................................................................... 0 000 * Timer count value store register W5 ..................................................................... 0 0 * Clock control register MR ...................................................................................... 0 100 * 8-bit general-purpose register SI ........................................................................... 0 0 0000 00 * Carrier wave output control register C2 ................................................................. 0 0 * Key-on wakeup control register K0 ....................................................................... 0 000 * Pull-up control register PU0 ................................................................................... 0 000 * Carry flag (CY) ....................................................................................................... 0 * Register A .............................................................................................................. 0 000 * Register B .............................................................................................................. 0 000 * Register D .............................................................................................................. ! !! * Register E ..............................................................................................................! !!!!!!! * Register X .............................................................................................................. 0 000 * Register Y .............................................................................................................. 0 000 * Register Z ............................................................................................................... ! ! * Stack pointer (SP) ..................................................................................................1 11
0
0
0
0
0
0
0
0
(Interrupt disabled)
(Interrupt disabled) (Interrupt disabled)
(Prescaler and timer 1 stopped) (Timer 2 stopped) (Timer 3 stopped)
"!" represents undefined.
Fig. 26 Internal state at reset
29
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
VOLTAGE DROP DETECTION CIRCUIT
The built-in voltage drop detection circuit is designed to detect a drop in voltage and to reset the microcomputer if the supply voltage drops below a set value. The voltage drop detection circuit is not operated at the RAM back-up mode.
Pull-up transistor
RESET pin
Power-on reset circuit
Internal reset signal
Voltage drop detection circuit
Watchdog timer output
WEF
Fig. 27 Voltage drop detection reset circuit
VDD
Reset voltage The microcomputer starts operation after the f(XIN) is counted 10757 to 10786 times. Internal reset signal Note: Set the VDCE pin to "H" level to operate the voltage drop detection circuit.
Fig. 28 Voltage drop detection circuit operation waveform
30
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
RAM BACK-UP MODE
The 4570 Group has the RAM back-up mode. When the EPOF and POF instructions are executed continuously, system enters the RAM back-up state. The POF instruction is equivalent to the NOP instruction when the EPOF instruction is not executed before the POF instruction. As oscillation is stopped retaining RAM, the function of reset circuit and states at RAM back-up mode, power dissipation can be reduced without losing the contents of RAM. Table 13 shows the function and states retained at RAM backup. Figure 29 shows the state transition. (1) Identification of the start condition Warm start (return from the RAM back-up mode) or cold start (return from the normal reset state) can be identified by examining the state of the power down flag (P) with the SNZP instruction. (2) Warm start condition When the external wakeup signal is input after the system enters the RAM back-up mode by executing the EPOF and POF instructions continuously, the CPU starts executing the software from address 0 in page 0. In this case, the P flag is "1." (3) Cold start condition The CPU starts executing the software from address 0 in page 0 when; * reset pulse is input to RESET pin, or * reset by watchdog timer is performed, or * voltage drop detection circuit detects the voltage drop. In this case, the P flag is "0."
Table 13 Functions and states retained at RAM back-up Function Program counter (PC), registers A, B, carry flag (CY), stack pointer (SP) (Note 2) Contents of RAM Port level Clock control register MR Timer control register W1 Timer control registers W2, W3 Timer count value store register W5 Interrupt control registers V1, V2 Interrupt control register I1 Carrier wave output control register C2 8-bit general-purpose register SI Timer 1 function Timer 2 function Timer 3 function Pull-up control register PU0 Key-on wakeup control register K0 External 0 interrupt request flag (EXF0) Timer 1 interrupt request flag (T1F) Timer 2 interrupt request flag (T2F) Timer 3 interrupt request flag (T3F) Watchdog timer flag 1 (WDF1) Watchdog timer flag 2 (WDF2) Watchdog timer enable flag (WEF) 16-bit timer (WDT) Interrupt enable flag (INTE) RAM back-up ! O O O ! O O ! O ! O ! (Note 3) (Note 3) O O ! ! (Note 3) (Note 3) ! (Note 4) ! (Note 4) ! (Note 4) ! (Note 4) !
Notes 1: "O" represents that the function can be retained, and "!" represents that the function is initialized. Registers and flags other than the above are undefined at RAM back-up, and set an initial value after returning. 2: The stack pointer (SP) points the level of the stack register and is initialized to "1112" at RAM back-up. 3: The state of the timer is undefined. 4: Initialize the watchdog timer with the WRST instruction, and then execute the EPOF and POF instructions.
31
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(4) Return signal An external wakeup signal is used to return from the RAM back-up mode because the oscillation is stopped. Table 14 shows the return condition for each return source. (5) Port P4 control registers * Key-on wakeup control register K0 Register K0 controls the port P4 key-on wakeup function. Set the contents of this register through register A with the TK0A instruction. In addition, the TAK0 instruction can be used to transfer the contents of register K0 to register A. Table 14 Return source and return condition Return source External wakeup signal Ports P0, P1 and P4 Return condition input ("H""L").
* Pull-up control register PU0 Register PU0 controls the ON/OFF of the port P4 pull-up transistor. Set the contents of this register through register A with the TPU0A instruction. In addition, the TAPU0 instruction can be used to transfer the contents of register PU0 to register A.
Remarks Key-on wakeup functions of ports P0 and P1 are always valid. The keyon wakeup function valid/invalid of port P4 can be controlled with register K0. Set the port using the key-on wakeup function selected to "H" level
Return by an external falling edge Port P0 shares the falling edge detection circuit with ports P1 and P4.
P21/INT pin
before going into the RAM back-up mode. Return by an external "H" level or Select the return level ("L" level or "H" level) with the bit 2 of register I1 "L" level input. The EXF0 flag is not set. according to the external state before going into the RAM back-up mode.
32
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
A (Stabilizing time a ) Reset f(XIN) oscillation
POF instruction is executed
B f(XIN) stop
Return input (Stabilizing time a )
(RAM back-up mode)
Stabilizing time a : The time required to stabilize f(XIN) oscillation is automatically generated by hardware.
Fig. 29 State transition
Power down flag P POF instruction Reset input or voltage drop detection circuit output q Set source q Clear source S Q
Software start P = "1" ? No Cold start Yes
R
POF instruction is executed Reset input
Warm start
Fig. 30 Set source and clear source of the P flag
Fig. 31 Start condition identified example using the SNZP instruction
Table 15 Key-on wakeup control register and pull-up control register Key-on wakeup control register K0 K03 K02 K01 K00 Port P43 key-on wakeup control bit Port P42 key-on wakeup control bit Port P41 key-on wakeup control bit Port P40 key-on wakeup control bit 0 1 0 1 0 1 0 1 at reset : 00002 at RAM back-up : state retained R/W
Key-on wakeup not used Key-on wakeup used Key-on wakeup not used Key-on wakeup used Key-on wakeup not used Key-on wakeup used Key-on wakeup not used Key-on wakeup used
Pull-up control register PU0 PU03 PU02 PU01 Port P43 pull-up transistor control bit Port P42 pull-up transistor control bit Port P41 pull-up transistor control bit Port P40 and P01 pull-up transistor 0 1 0 1 0 1
at reset : 00002
at RAM back-up : state retained
R/W
Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON
Pull-up transistor OFF 0 PU00 Pull-up transistor ON control bit 1 Note: "R" represents read enabled, and "W" represents write enabled.
33
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CLOCK CONTROL
The clock control circuit consists of the following circuits. q Clock generating circuit q Control circuit to stop the clock oscillation q System clock selection circuit q Instruction clock generating circuit q Control circuit to return from the RAM back-up mode
System clock
Frequency dividing circuit (divided by 4)
MR3
1 0
XIN XOUT
Oscillation circuit
Internal clock generating circuit (devided by 3)
Insturuction clock Counter
Wait time control circuit (Note)
Software start signal
POF instruction
R S
Q
RESET Key-on wakeup control register K00,K01,K02,K03 Port P40 MultiPort P41 Falling detected plexer Port P42 Port P43 I12 "L" level Ports P0, P1
0
P21/INT
1
"H" level
Note: The wait time control circuit is automatically used to generate the time required to stabilize the f(XIN) oscillation.
Fig. 32 Clock control circuit structure Clock signal f(XIN) is obtained by externally connecting a ceramic resonator. Connect this external circuit to pins XIN and XOUT at the shortest distance. A feedback resistor is built-in between pins XIN and XOUT.
M34570
XIN
ROM ORDERING METHOD
Please submit the information described below when ordering Mask ROM. (1) M34570M4-XXXFP Mask ROM Order Confirmation Form, M34570M8-XXXFP Mask ROM Order Confirmation Form, or M34570MD-XXXFP Mask ROM Order Confirmation Form .............................................................................................. 1 (2) Data to be written into mask ROM .......................... EPROM (three sets containing the identical data) (3) Mark Specification Form .................................................... 1
CIN
Note: Externally connect a damping resistor Rd depending on the XOUT oscillation frequency. (A feedback resistor is built-in.) Rd Use the resonator manufacturer's recommended value COUT because constants such as capacitance depend on the resonator.
Fig. 33 Ceramic resonator external circuit
34
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF PRECAUTIONS
Noise and latch-up prevention
Connect a capacitor on the following condition to prevent noise and latch-up; * connect a capacitor (approx. 0.1 F) between pins VDD and VSS at the shortest distance, * equalize its wiring in width and length, and * use the thickest wire. In the One Time PROM version, CNVSS pin is also used as VPP pin. Accordingly, when using this pin, connect this pin to VSS through a resistor about 5 k (connect this resistor to CNVSS/VPP pin as close as possible).
Notes on timer 1 count source When the carrier wave output auto-control function is selected, use the carrier wave CARRY as the timer 1 count source. If the ORCLK is used as the count source, a short pulse may occur in port CARR output because ORCLK is not synchronized with the carrier wave.
11
Notes on writing to reload register R1 when carrier wave output auto-control operation When the carrier wave output auto-control function is selected and data is set to reload register R1 while timer 1 is operating, avoid the timing that the contents of timer 1 becomes "0" to execute the T1AB instruction. One Time PROM version The operating power voltage of the One Time PROM version is within the range of 2.5 V to 5.5 V. Multifunction Note that the port D9 output function and P21 input function can be used even when TOUT and INT pin function is selected. POF instruction Note that system cannot enter the RAM back-up state when executing only the POF instruction. Execute the POF instruction immediately after executing the EPOF instruction to enter the RAM back-up. Be sure to disable interrupts by executing the DI instruction before executing the EPOF instruction. Program counter Make sure that the PCH does not specify after the last page of the built-in ROM. P21/INT pin When the interrupt valid waveform of P21/INT pin is changed with the bit 2 of register I1 in software, be careful about the following notes. * Clear the bit 0 of register V1 to "0" and then change the interrupt valid waveform of P21/INT pin with the bit 2 of register I1 (refer to Figure 34). * Clear the bit 2 of register I1 to "0" and execute the SNZ0 instruction to clear the EXF0 flag after executing at least one instruction (refer to Figure 34). Depending on the input state of the P21/INT pin, the external 0 interrupt request flag (EXF0) may be set to "1" when the interrupt valid waveform is changed. . . . LA TV1A LA TI1A NOP SNZ0 NOP . . . 4 ; Change of the interrupt valid waveform 4 ; (!!!02) ; The SNZ0 instruction is valid
Prescaler
Stop the prescaler operation to change its frequency dividing ratio.
12
Count source
Stop timer 1, timer 2 or timer 3 counting to change its count source.
13
Reading the timer count value
Stop each of the timers and then execute the TAB1, TAB2 or TAB3 instruction to read timer 1, 2 or 3 data.
14
Writing to reload register R1
When writing the data to reload register R1 while timer 1 is operating, avoid a timing when timer 1 underflows.
Writing to reload register R3H
When writing the data to reload register R3H while timer 3 is operating, avoid a timing when timer 3 underflows. Notes on timer 3 operation start Set the timer 1 and register C2 before timer 3 is started to operate (W33="1"). Notes on carrier wave output auto-control operation stop Stop the timer 1 (W10="0") after stopping the timer 3 (W33="0") while the carrier wave output is disabled in order to stop the carrier wave output auto-control operation. Notes on setting carrier wave output control regiter C2 If the carrier wave output auto-control function is invalidated (C20="0") while the carrier wave output is auto-controlled, the output of port CARR retains the state when the auto-control is invalidated regardless of timer 1 underflow. When the carrier wave output auto-control function is validated (C20="1") again after it is invalidated (C20="0"), the auto-control by timer 1 is validated again when the next timer 1 underflow occurs. However, when the carrier wave output auto-control bit (C20) is changed during timer 1 underflow, the error-operation may occur.
15
16
;The SNZ0 instruction is executed ! : this bit is not related to the setting of INT.
Fig. 34 External 0 interrupt program example
35
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
SYMBOL
The symbols shown below are used in the following list of instruction function and machine instructions. Symbol A B DR E C2 SI V1 V2 I1 W1 W2 W3 W5 K0 PU0 MR X Y Z DP PC PCH PCL SK SP CY R1 R2 R3H R3L T1 T2 T3 T1F T2F T3F Register A (4 bits) Register B (4 bits) Register D (3 bits) Register E (8 bits) Carrier wave output control register C2 (2 bits) 8-bit general-purpose register SI (8 bits) Interrupt control register V1 (4 bits) Interrupt control register V2 (4 bits) Interrupt control register I1 (4 bits) Timer control register W1 (4 bits) Timer control register W2 (4 bits) Timer control register W3 (4 bits) Timer count value store register W5 (2 bits) Key-on wakeup control register K0 (4 bits) Pull-up control register PU0 (4 bits) Clock control register MR (4 bits) Register X (4 bits) Register Y (4 bits) Register Z (2 bits) Data pointer (10 bits) (It consists of registers X, Y, and Z) Program counter (14 bits) High-order 7 bits of program counter Low-order 7 bits of program counter Stack register (14 bits ! 8) Stack pointer (3 bits) Carry flag Timer 1 reload register Timer 2 reload register Timer 3 reload register Timer 3 reload register Timer 1 Timer 2 Timer 3 Timer 1 interrupt request flag Timer 2 interrupt request flag Timer 3 interrupt request flag ? () -- M(DP) a p, a C + x Note : The 4570 Group just invalidates the next instruction when a skip is performed. The contents of program counter is not increased by 2. Accordingly, the number of cycles does not change even if skip is not performed. However, the cycle count becomes "1" if the TABP p, RT, or RTS instruction is skipped. Contents Symbol WDF1 WDF2 WEF INTE EXF0 P D P0 P1 P2 P3 P4 x y z p n i j A3A2A1A0 Contents Watchdog timer flag 1 Watchdog timer flag 2 Watchdog timer enable flag Interrupt enable flag External 0 interrupt request flag Power down flag Port D (10 bits) Port P0 (4 bits) Port P1 (4 bits) Port P2 (2 bits) Port P3 (4 bits) Port P4 (4 bits) Hexadecimal variable Hexadecimal variable Hexadecimal variable Hexadecimal variable Hexadecimal constant which represents the immediate value Hexadecimal constant which represents the immediate value Hexadecimal constant which represents the immediate value Binary notation of hexadecimal variable A (same for others) Direction of data movement Data exchange between a register and memory Decision of state shown before "?" Contents of registers and memories Negate, Flag unchanged after executing instruction RAM address pointed by the data pointer Label indicating address a6 a5 a4 a3 a2 a1 a0 Label indicating address a6 a5 a4 a3 a2 a1 a0 in page p5 p4 p3 p2 p1 p0 Hex. C + Hex. number x (also same for others)
36
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF INSTRUCTION FUNCTION
Grouping
Mnemonic TAB TBA TAY TYA TEAB
Function (A) (B) (B) (A) (A) (Y) (Y) (A) (E7-E4) (B)
Grouping
RAM to register transfer
(Y) (Y) + 1 TMA j (M(DP)) (A) (X) (X)EXOR(j) j = 0 to 15 LA n (A) n n = 0 to 15
Bit operation
Function Mnemonic (A) (M(DP)) XAMI j (X) (X)EXOR(j) j = 0 to 15
Grouping
Mnemonic SB j
Function (Mj(DP)) 1 j = 0 to 3
RB j
(Mj(DP)) 0 j = 0 to 3
SZB j
(Mj(DP)) = 0 ? j = 0 to 3
Register to register transfer
TABE
(B) (E7-E4) (A) (E3-E0) TABP p (SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) (DR2-DR0, A3-A0) (W5) (ROM(PC))9 to 8 (B) (ROM(PC))7 to 4 (A) (ROM(PC))3 to 0 (PC) (SK(SP)) (SP) (SP) - 1
Comparison operation
(E3-E0) (A)
SEAM SEA n
(A) = (M(DP)) ? (A) = n ? n = 0 to 15
TDA TAD
(DR2-DR0) (A2-A0) (A2-A0) (DR2-DR0) (A3) 0 (A1, A0) (Z1, Z0) (A3, A2) 0 (A) (X) (A2-A0) (SP2-SP0) (A3) 0 (X) x, x = 0 to 15 (Y) y, y = 0 to 15 (Z) z, z = 0 to 3 (Y) (Y) + 1 (Y) (Y) - 1 (A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15 AND OR SC RC SZC CMA RAR Arithmetic operation AM AMC
Ba Branch operation BL p, a
(PCL) a6-a0 (PCH) p (PCL) a6-a0 (PCH) p (PCL) (DR2-DR0, A3-A0)
TAZ
BLA p
TAX TASP
(A) (A) + (M(DP)) (A) (A) + (M(DP)) + (CY) Subroutine operation (CY) Carry
BM a
(SP) (SP) + 1 (SK(SP)) (PC) (PCH) 2 (PCL) a6-a0
LXY x, y RAM addresses
An
(A) (A) + n n = 0 to 15 (A) (A)AND(M(DP)) (A) (A)OR(M(DP)) (CY) 1 (CY) 0
BML p, a (SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) a6-a0 BMLA p (SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) (DR2-DR0, A3-A0) RTI (PC) (SK(SP)) (SP) (SP) - 1
LZ z INY DEY TAM j
RAM to register transfer
XAM j
(A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15
(CY) = 0 ? (A) (A) CY A3A2A1A0 Return operation RT
(PC) (SK(SP)) (SP) (SP) - 1
XAMD j
(A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15 (Y) (Y) - 1
RTS
(PC) (SK(SP)) (SP) (SP) - 1
37
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF INSTRUCTION FUNCTION (CONTINUED)
Grouping
Mnemonic DI EI SNZ0
Function (INTE) 0 (INTE) 1 (EXF0) = 1 ? After skipping the next instruction, (EXF0) 0
Grouping
Mnemonic TAW1 TW1A TAW2 TW2A TAW3
Function (A) (W1) (W1) (A)
Grouping Mnemonic
TAB3
Function (B) (T37-T34) (A) (T33-T30)
T3AB (A) (W2) (W2) (A) (A) (W3) (W3) (A) (A) (0, 0, W51, W50) (W51, W50) (A1, A0) (W5) (T19-T18) (B) (T17-T14) TV2A TAI1 TI1A (V2) (A) (A) (I1) Timer operation (I1) (A) T1AB (A) (T13-T10) at timer 1 stop (W10=0) (R19-R18) (W5) (T19-T18) (W5) (R17-R14) (B) (T17-T14) (B) (R13-R10) (A) (T13-T10) (A) At timer 1 operating (W10=1), (R19-R18) (W5) (R17-R14) (B) (R13-R10) (A) TAB2 (B) (T27-T24) (A) (T23-T20) (R27-R24) (B) (T27-T24) (B) (R23-R20) (A) (T23-T20) (A) TR2AB (R27-R24) (B) (R23-R20) (A) SNZT3 T3HAB
(R3L7-R3L4) (B) (T37-T34) (B) (R3L3-R3L0) (A) (T33-T30) (A) (R3H7-R3H4) (B) (R3H3-R3H0) (A) (T1F) = 1 ? After skipping the next instruction, (T1F) 0
Interrupt operation
SNZI0
Timer operation
I12 = 1 : (INT0) = "H" ? I12 = 0 : (INT0) = "L" ? (A) (V1) (V1) (A) (A) (V2)
TW3A TAW5 TW5A TAB1
SNZT1
TAV1 TV1A TAV2
SNZT2
(T2F) = 1 ? After skipping the next instruction, (T2F) 0 (T3F) = 1 ? After skipping the next instruction, (T3F) 0
T2AB
38
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
LIST OF INSTRUCTION FUNCTION (CONTINUED)
Grouping
Mnemonic IAP0 OP0A IAP1 OP1A IAP2
Function (A) (P0) (P0) (A) (A) (P1) (P1) (A)
Grouping
Mnemonic NOP POF EPOF SNZP
Function (PC) (PC) + 1 RAM back-up mode POF instruction valid (P) = 1 ? (WDF1) 0, (WEF) 1 (A) (MR3-MR0) (MR3-MR0) (A) (B) (SI7-SI4) (A) (SI3-SI0)
Other operation
(A1, A0) (P21, P20) (A3, A2) (0)
WRST TAMR TMRA TABSI
IAP3 Input/Output operation OP3A IAP4 CLD RD
(A) (P3) (P3) (A) (A) (P4) (D) 1 (D(Y)) 0 (Y) = 0 to 9
TSIAB
(SI7-SI4) (B) (SI3-SI0) (A) When executing the TABP p instruction, p6 1
SBK
SD
(D(Y)) 1 (Y) = 0 to 9 RBK
When executing the TABP p instruction, p6 0
TK0A TAK0 TPU0A TAPU0
(K0) (A) (A) (K0) (PU0) (A) (A) (PU0) (C21, C20) (A1, A0)
Carrier wave generating operation
TC2A
39
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
INSTRUCTION CODE TABLE
D9--D4 000000 000001000010 000011000100 000101000110 000111001000 001001001010 001011001100 001101001110 001111 D3-- Hex. notation D0 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 2 3 4 5 6 7 8 9 A B C D E F 00 NOP -- POF 01 BLA CLD -- 02 03 04 05 06 A 0 A 1 A 2 A 3 A 4 A 5 A 6 A 7 A 8 A 9 A 10 A 11 A 12 A 13 A 14 A 15 07 LA 0 LA 1 LA 2 LA 3 LA 4 LA 5 LA 6 LA 7 LA 8 LA 9 LA 10 LA 11 LA 12 LA 13 LA 14 LA 15 08 09 0A 0B 0C 0D 0E BL BL BL BL BL BL BL BL BL BL BL BL BL BL BL BL 0F BL BL BL BL BL BL BL BL BL BL BL BL BL BL BL BL
010000 011000 -- 010111 011111 10--17 18--1F --
SZB BMLA RBK TASP 0 SZB 1 SZB 2 SZB 3 -- -- -- -- -- SBK -- -- RT TAD TAX TAZ TAV1
TABP TABP TABP TABP 0* 16* 32** 48** BML BML TABP TABP TABP TABP BML 1* 17* 33** 49** BML TABP TABP TABP TABP 2* 18* 34** 50** BML BML TABP TABP TABP TABP BML BML 3* 19* 35** 51** TABP TABP TABP TABP 4* 20* 36** 52** BML BML TABP TABP TABP TABP 5* 21* 37** 53** BML BML TABP TABP TABP TABP BML 6* 22* 38** 54** BML TABP TABP TABP TABP 7* 23* 39** 55** BML BML TABP TABP TABP TABP 8* 24* 40** 56** BML BML TABP TABP TABP TABP 9* 25* 41** 57** BML BML TABP TABP TABP TABP 10* 26* 42** 58** BML BML TABP TABP TABP TABP 11* 27* 43** 59** BML BML TABP TABP TABP TABP 12* 28* 44** 60** BML BML TABP TABP TABP TABP 13* 29* 45** 61** BML BML TABP TABP TABP TABP BML BML 14* 30* 46** 62** TABP TABP TABP TABP 15* 31* 47** 63** BML BML
BM BM BM BM BM BM BM BM BM BM BM BM BM BM BM BM
B B B B B B B B B B B B B B B B
SNZP INY DI EI RC SC -- -- RD SD -- DEY AND OR
SEAn -- SEAM -- -- -- TDA -- SNZ0 --
RTS TAV2 RTI -- LZ 0 LZ 1 LZ 2 LZ 3 RB 0 RB 1 RB 2 RB 3 -- -- -- -- -- EPOF SB 0 SB 1 SB 2 SB 3
AM TEAB TABE SNZI0 AMC -- -- -- -- -- -- -- -- TV2A
TYA CMA -- TBA -- RAR TAB TAY
SZC TV1A
The above table shows the relationship between machine language codes and machine language instructions. D 3--D0 show the loworder 4 bits of the machine language code, and D 9--D4 show the high-order 6 bits of the machine language code. The hexadecimal representation of the code is also provided. There are one-word instructions and two-word instructions, but only the first word of each instruction is shown. Do not use code marked "--." ** cannot be used at M34570M4. For M34570M4/M8/E8, the SBK and RBK instructions cannot be used. For M34570MD/ED, the pages which is referred with the TABP instruction (*, **) can be switched with the SBK and RBK instructions. After executing the SBK instruction, the pages which can be referred with the TABP instruction are 64 to 127. (ex. TABP 0 TABP 64) After executing the RBK instruction, the pages which can be referred with the TABP instruction are 0 to 63. If the SBK instruction is not executed, the pages which can be referred with the TABP instruction are always 0 to 63. The codes for the second word of a two-word instruction are described below. The second word BL BML BLA BMLA SEA SZD 1p 1p 1p 1p 00 00 paaa paaa pp00 pp00 0111 0010 aaaa aaaa pppp pppp nnnn 1011
40
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
INSTRUCTION CODE TABLE (CONTINUED)
D9--D4 100000 100001100010 100011100100 100101100110 100111101000 101001101010 101011101100 101101101110 101111 D3-- Hex. 20 D0 notation 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 2 3 4 5 6 7 8 9 A B C D E F -- -- -- -- -- -- -- -- -- -- -- -- -- -- TW1A TW2A 21 22 23 24 -- -- -- -- -- -- -- -- -- -- -- TAW1 TAW2 25 -- -- 26 27 28 29 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 2A WRST -- -- -- -- -- -- -- -- TC2A -- -- -- -- -- -- 2B 2C 2D 2E
110000 111111
--
2F 30--3F
TW3A OP0A T1AB -- TW5A -- -- -- TMRA TI1A -- -- -- TK0A -- -- -- -- OP1A T2AB -- OP3A -- -- -- -- -- -- -- -- -- T3AB -- -- -- -- --
TSIAB
IAP0 TAB1 SNZT1 IAP1 TAB2 SNZT2
TMA TAM XAM XAMI XAMD LXY 0 0 0 0 0 TMA TAM XAM XAMI XAMD LXY 1 1 1 1 1 TMA TAM XAM XAMI XAMD LXY 2 2 2 2 2 TMA TAM XAM XAMI XAMD LXY 3 3 3 3 3 TMA TAM XAM XAMI XAMD LXY 4 4 4 4 4 TMA TAM XAM XAMI XAMD LXY 5 5 5 5 5 TMA TAM XAM XAMI XAMD LXY 6 6 6 6 6 TMA TAM XAM XAMI XAMD LXY 7 7 7 7 7 TMA TAM XAM XAMI XAMD LXY 8 8 8 8 8 TMA TAM XAM XAMI XAMD LXY 9 9 9 9 9 TMA TAM XAM XAMI XAMD LXY 10 10 10 10 10 TMA TAM XAM XAMI XAMD LXY 11 11 11 11 11 TMA TAM XAM XAMI XAMD LXY 12 12 12 12 12 TMA TAM XAM XAMI XAMD LXY 13 13 13 13 13 TMA TAM XAM XAMI XAMD LXY 14 14 14 14 14 TMA TAM XAM XAMI XAMD LXY 15 15 15 15 15
TAMR IAP2 TAB3 SNZT3 TAI1 IAP3 -- -- TAK0
TAPU0
-- -- -- -- --
TABSI
-- -- -- -- -- -- -- -- -- -- -- -- --
IAP4 -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- --
--
TR2AB
-- -- -- -- -- -- --
-- --
TPU0A T3HAB TAW3
-- --
-- --
-- TAW5
The above table shows the relationship between machine language codes and machine language instructions. D 3-D0 show the low-order 4 bits of the machine language code, and D 9-D4 show the high-order 6 bits of the machine language code. The hexadecimal representation of the code is also provided. There are one-word instructions and two-word instructions, but only the first word of each instruction is shown. Do not use code marked "-." The codes for the second word of a two-word instruction are described below. The second word BL BML BLA BMLA SEA SZD 1p 1p 1p 1p 00 00 paaa paaa pp00 pp00 0111 0010 aaaa aaaa pppp pppp nnnn 1011
41
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
TAB TBA TAY TYA TEAB Register to register transfer
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
1 0 1 0 1
1 1 1 1 1
1 1 1 1 0
1 1 1 0 1
0 0 1 0 0
0 0 0 0 0
1 0 1 0 1
E E F C A
1 1 1 1 1
1 1 1 1 1
(A) (B) (B) (A) (A) (Y) (Y) (A) (E7-E4) (B) (E3-E0) (A)
- - - - -
- - - - -
Transfers the contents of register B to register A. Transfers the contents of register A to register B. Transfers the contents of register Y to register A. Transfers the contents of register A to register Y. Transfers the contents of registers A and B to register E.
TABE
0
0
0
0
1
0
1
0
1
0
0
2
A
1
1
(B) (E7-E4) (A) (E3-E0)
-
-
Transfers the contents of register E to registers A and B.
TDA TAD
0 0
0 0
0 0
0 1
1 0
0 1
1 0
0 0
0 0
1 1
0 0
2 5
9 1
1 1
1 1
(DR2-DR0) (A2-A0) (A2-A0) (DR2-DR0) (A3) 0
- -
- -
Transfers the contents of register A to register D. Transfers the contents of register D to register A.
TAZ
0
0
0
1
0
1
0
0
1
1
0
5
3
1
1
(A1, A0) (Z1, Z0) (A3, A2) 0
-
-
Transfers the contents of register Z to register A.
TAX TASP
0 0
0 0
0 0
1 1
0 0
1 1
0 0
0 0
1 0
0 0
0 0
5 5
2 0
1 1
1 1
(A) (X) (A2-A0) (SP2-SP0) (A3) 0 (X) x, x = 0 to 15 (Y) y, y = 0 to 15
- -
- -
Transfers the contents of register X to register A. Transfers the contents of stack pointer (SP) to register A.
LXY x, y
1
1
x3 x2 x1 x0 y3 y2 y1 y0
3
x
y
1
1
Continuous description
-
Loads the value x in the immediate field to register X, and the value y in the immediate field to register Y. When the LXY instructions are continuously coded and executed, only the first LXY instruction is executed and other LXY instructions coded continuously are skipped.
RAM addresses
LZ z
0
0
0
1
0
0
1
0
z1 z0
0
4
8 +z
1
1
(Z) z, z = 0 to 3
-
-
Loads the value z in the immediate field to register Z.
INY
0
0
0
0
0
1
0
0
1
1
0
1
3
1
1
(Y) (Y) + 1
(Y) = 0
-
Adds 1 to the contents of register Y. As a result of addition, when the contents of register Y is 0, the next instruction is skipped.
DEY
0
0
0
0
0
1
0
1
1
1
0
1
7
1
1
(Y) (Y) - 1
(Y) = 15
-
Subtracts 1 from the contents of register Y. As a result of subtraction, when the contents of register Y is 15, the next instruction is skipped.
42
43
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
TAM j
1
0
1
1
0
0
j
j
j
j
2C
j
1
1
(A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15
-
-
After transferring the contents of M(DP) to register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X.
XAM j
1
0
1
1
0
1
j
j
j
j
2D
j
1
1
(A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15
-
-
After exchanging the contents of M(DP) with the contents of register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X.
RAM to register transfer
XAMD j
1
0
1
1
1
1
j
j
j
j
2F
j
1
1
(A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15 (Y) (Y) - 1
(Y) = 15
-
After exchanging the contents of M(DP) with the contents of register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X. Subtracts 1 from the contents of register Y. As a result of subtraction, when the contents of register Y is 15, the next instruction is skipped.
XAMI j
1
0
1
1
1
0
j
j
j
j
2E
j
1
1
(A) (M(DP)) (X) (X)EXOR(j) j = 0 to 15 (Y) (Y) + 1
(Y) = 0
-
After exchanging the contents of M(DP) with the contents of register A, an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X. Adds 1 to the contents of register Y. As a result of addition, when the contents of register Y is 0, the next instruction is skipped.
TMA j
1
0
1
0
1
1
j
j
j
j
2B
j
1
1
(M(DP)) (A) (X) (X)EXOR(j) j = 0 to 15
-
-
After transferring the contents of register A to M(DP), an exclusive OR operation is performed between register X and the value j in the immediate field, and stores the result in register X.
LA n
0
0
0
1
1
1
n
n
n
n
07
n
1
1
(A) n n = 0 to 15
Continuous description
-
Loads the value n in the immediate field to register A. When the LA instructions are continuously coded and executed, only the first LA instruction is executed and other LA instructions coded continuously are skipped.
Arithmetic operation
TABP p
0
0
1
0
p5 p4 p3 p2 p1 p0
08 +p
p
1
3
(SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) (DR2-DR0, A3-A0) (W5) (ROM(PC))9 to 8 (B) (ROM(PC))7 to 4 (A) (ROM(PC))3 to 0 (PC) (SK(SP)) (SP) (SP) - 1 (Note)
-
-
Transfers bits 9 and 8 to register W5, bits 7 to 4 to register B and bits 3 to 0 to register A. These bits 9 to 0 are the ROM pattern in address (DR2 DR1 DR0 A3 A2 A1 A0)2 specified by registers A and D in page p. When this instruction is executed, 1 stage of stack register is used. When this instruction is executed after executing the SBK instruction, pages 64 to 127 are specified. When this instruction is executed after executing the RBK instruction, pages 0 to 63 are specified. When this instruction is executed after system is released from reset or returned from RAM back-up, pages 0 to 63 are specified.
Note: p is 0 to 31 for M34570M4 and p is 0 to 63 for M34570E8 and M34570M8. p is 0 to 127 for M34570ED and M34570MD, and p6 is specified with the SBK and RBK instructions.
44
45
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
AM
0
0
0
0
0
0
1
0
1
0
00A
1
1
(A) (A) + (M(DP))
-
-
Adds the contents of M(DP) to register A. Stores the result in register A. The contents of carry flag CY remains unchanged.
AMC
0
0
0
0
0
0
1
0
1
1
00B
1
1
(A) (A) + (M(DP))+ (CY) (CY) Carry
-
0/1 Adds the contents of M(DP) and carry flag CY to register A. Stores the result in register A and carry flag CY.
An
0
0
0
1
1
0
n
n
n
n
06n
1
1
(A) (A) + n n = 0 to 15
Overflow = 0
-
Adds the value n in the immediate field to register A. The contents of carry flag CY remains unchanged. Skips the next instruction when there is no overflow as the result of operation.
Arithmetic operation
AND
0
0
0
0
0
1
1
0
0
0
018
1
1
(A) (A)AND(M(DP))
-
-
Performs the AND operation between the contents of register A and the contents of M(DP), and stores the result in register A.
OR
0
0
0
0
0
1
1
0
0
1
019
1
1
(A) (A)OR(M(DP))
-
-
Performs the OR operation between the contents of register A and the contents of M(DP), and stores the result in register A.
SC RC SZC CMA RAR SB j Bit operation
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 1
0 0 1 0 0 0
0 0 0 1 1 1
0 0 1 1 1 1
1 1 1 1 1 1
1 1 1 0 0 j
1 0 1 0 1 j
007 006 02F 01C 01D 05 C +j C +j j
1 1 1 1 1 1
1 1 1 1 1 1
(CY) 1 (CY) 0 (CY) = 0 ? (A) (A) CY A3A2A1A0 (Mj(DP)) 1 j = 0 to 3 (Mj(DP)) 0 j = 0 to 3 (Mj(DP)) = 0 ? j = 0 to 3 (A) = (M(DP)) ? (A) = n ? n = 0 to 15
- - (CY) = 0 - - -
1 0 - -
Sets carry flag CY to "1." Clears carry flag CY to "0." Skips the next instruction when the contents of carry flag CY is "0." Stores the one's complement for register A's contents in register A.
0/1 Rotates the contents of register A including the contents of carry flag CY to the right by 1 bit. - Sets the contents of bit j (bit specified by the value j in the immediate field) of M(DP) to "1."
RB j
0
0
0
1
0
0
1
1
j
j
04
1
1
-
-
Clears the contents of bit j (bit specified by the value j in the immediate field) of M(DP) to "0."
SZB j
0
0
0
0
1
0
0
0
j
j
02
1
1
(Mj(DP)) = 0 j = 0 to 3 (A) = (M(DP)) (A) = n
-
Skips the next instruction when the contents of bit j (bit specified by the value j in the immediate field) of M(DP) is "0." Skips the next instruction when the contents of register A is equal to the contents of M(DP). Skips the next instruction when the contents of register A is equal to the value n in the immediate field.
Comparison operation
SEAM SEA n
0 0 0
0 0 0
0 0 0
0 0 1
1 1 1
0 0 1
0 0 n
1 1 n
1 0 n
0 1 n
02 02 07
6 5 n
1 2
1 2
- -
46
47
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
Ba
0
1
1
a6 a5 a4 a3 a2 a1 a0
18 a +a 0Ep +p 2p a +a 01 2p 1a 0 p a
1
1
(PCL) a6-a0
-
-
Branch within a page : Branches to address a in the identical page.
Branch operation
BL p, a
0
0
1
1
1
p4 p3 p2 p1 p0
2
2
(PCH) p (PCL) a6-a0 (Note)
-
-
Branch out of a page : Branches to address a in page p.
1
0
p5 a6 a5 a4 a3 a2 a1 a0
BLA p
0 1
0 0 1
0
0
0
1 0
0
0
0
0
2
2
(PCH) p (PCL) (DR2-DR0, A3-A0) (Note)
-
-
Branch out of a page : Branches to address (DR2 DR1 DR0 A3 A2 A1 A0)2 specified by registers D and A in page p.
p5 p4 0 0
p3 p2 p1 p0
BM a
0
a6 a5 a4 a3 a2 a1 a0
1
1
(SP) (SP) + 1 (SK(SP)) (PC) (PCH) 2 (PCL) a6-a0
-
-
Call the subroutine in page 2 : Calls the subroutine at address a in page 2.
Subroutine operation
BML p, a
0
0
1
1
0
p4 p3 p2 p1 p0
0Cp +p 2pa +a 03 2p 0 p
2
2
(SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) a6-a0 (Note)
-
-
Call the subroutine : Calls the subroutine at address a in page p.
1
0
p5 a6 a5 a4 a3 a2 a1 a0
BMLA p
0 1
0 0
0
0
1
1 0
0
0
0
0
2
2
(SP) (SP) + 1 (SK(SP)) (PC) (PCH) p (PCL) (DR2-DR0, A3-A0) (Note)
-
-
Call the subroutine : Calls the subroutine at address (DR2 DR1 DR0 A3 A2 A1 A0)2 specified by registers D and A in page p.
p5 p4 0
p3 p2 p1 p0
RTI Return operation
0
0
0
1
0
0
0
1
1
0
04
6
1
1
(PC) (SK(SP)) (SP) (SP) - 1
-
-
Returns from interrupt service routine to main routine. Returns each value of data pointer (X, Y, Z), carry flag, skip status, NOP mode status by the continuous description of the LA/LXY instruction, register A and register B to the states just before interrupt.
RT
0
0
0
1
0
0
0
1
0
0
04
4
1
2
(PC) (SK(SP)) (SP) (SP) - 1
-
-
Returns from subroutine to the routine called the subroutine.
RTS
0
0
0
1
0
0
0
1
0
1
04
5
1
2
(PC) (SK(SP)) (SP) (SP) - 1
Skip unconditionally
-
Returns from subroutine to the routine called the subroutine, and skips the next instruction unconditionally.
Note: p is 0 to 31 for M34570M4 and p is 0 to 63 for M34570E8 and M34570M8. p is 0 to 127 for M34570ED and M34570MD, and p6 is specified with the SBK and RBK instructions.
48
49
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
DI EI SNZ0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 1
0 0 1
0 0 1
1 1 0
0 0 0
0 1 0
00 00 03
4 5 8
1 1 1
1 1 1
(INTE) 0 (INTE) 1 (EXF0) = 1 ? After skipping the next instruction, (EXF0) 0
- - (EXF0) = 1
- - -
Clears the interrupt enable flag INTE to "0," and disables the interrupt. Sets the interrupt enable flag INTE to "1," and enables the interrupt. Skips the next instruction when the contents of EXF0 flag is "1." After skipping, clears the EXF0 flag to "0."
Interrupt operation
SNZI0
0
0
0
0
1
1
1
0
1
0
03
A
1
1
I12 = 1 : (INT) = "H" ?
(INT) = "H" However, I12 = 1
-
When bit 2 (I12) of register I1 is "1" : Skips the next instruction when the level of INT pin is "H."
I12 = 0 : (INT) = "L" ?
(INT) = "L" However, I12 = 0
-
When bit 2 (I12) of register I1 is "0" : Skips the next instruction when the level of INT pin is "L."
TAV1 TV1A TAV2 TV2A TAI1 TI1A TAW1 TW1A TAW2 TW2A Timer operation TAW3 TW3A TAW5 TW5A
0 0 0 0 1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0
0 1 0 1 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 1 0 1
0 1 0 1 0 0 1 1 1 1 1 0 1 0
1 1 1 1 0 1 0 1 1 1 1 0 1 0
0 1 0 1 1 1 1 1 0 1 0 0 1 1
0 1 1 0 1 1 1 0 0 1 1 0 1 0
054 03F 055 03E 253 217 24B 20E 24C 20F 24D 210 24F 212
1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1
(A) (V1) (V1) (A) (A) (V2) (V2) (A) (A) (I1) (I1) (A) (A) (W1) (W1) (A) (A) (W2) (W2) (A) (A) (W3) (W3) (A) (A) (0, 0, W51, W50) (W51, W50) (A1, A0)
- - - - - - - - - - - - -
- - - - - - - - - - - - -
Transfers the contents of interrupt control register V1 to register A. Transfers the contents of register A to interrupt control register V1. Transfers the contents of interrupt control register V2 to register A. Transfers the contents of register A to interrupt control register V2. Transfers the contents of interrupt control register I1 to register A. Transfers the contents of register A to interrupt control register I1. Transfers the contents of timer control register W1 to register A. Transfers the contents of register A to timer control register W1. Transfers the contents of timer control register W2 to register A. Transfers the contents of register A to timer control register W2. Transfers the contents of timer control register W3 to register A. Transfers the contents of register A to timer control register W3. Transfers the contents of timer count value store register W5 to the low-order 2 bits of register A. The contents of the high-order 2 bits of register A is set to "0."
-
-
Transfers the contents of the low-order 2 bits of register A to timer count value store register W5.
50
51
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
TAB1
1
0
0
1
1
1
0
0
0
0
270
1
1
(W5) (T19, T18) (B) (T17-T14) (A) (T13-T10)
-
-
Transfers the contents of the high-order 2 bits of timer 1 to register W5, and transfers the contents of the low-order 8 bits of timer 1 to registers A and B.
T1AB
1
0
0
0
1
1
0
0
0
0
230
1
1
At timer 1 stop (W10=0), (R19, R18) (W5) (T19, T18) (W5) (R17-R14) (B) (T17-T14) (B) (R13-R10) (A) (T13-T10) (A) At timer 1 operating (W10=1), (R19, R18) (W5) (R17-R14) (B) (R13-R10) (A)
-
-
When stopping (W10=0), transfers the contents of register W5 to the contents of the high-order 2 bits of timer 1 and of the timer 1 reload register, and transfers the contents of registers A and B to the contents of the low-order 8 bits of timer 1 and of the timer 1 reload register. When operating (W10=1), transfers the contents of register W5 to the contents of the high-order 2 bits of the timer 1 reload register, and transfers the contents of registers A and B to the contents of the loworder 8 bits of the timer 1 reload register.
TAB2
1
0
0
1
1
1
0
0
0
1
271
1
1
(B) (T27-T24) (A) (T23-T20) (R27-R24) (B) (T27-T24) (B) (R23-R20) (A) (T23-T20) (A)
-
-
Transfers the contents of timer 2 to registers A and B.
T2AB Timer operation
1
0
0
0
1
1
0
0
0
1
231
1
1
-
-
Transfers the contents of registers A and B to timer 2 and timer 2 reload register.
TR2AB
1
0
0
0
1
1
1
0
1
0
23A
1
1
(R27-R24) (B) (R23-R20) (A)
-
-
Transfers the contents of registers A and B to timer 2 reload register.
TAB3
1
0
0
1
1
1
0
0
1
0
272
1
1
(B) (T37-T34) (A) (T33-T30)
-
-
Transfers the contents of timer 3 to registers A and B.
T3AB
1
0
0
0
1
1
0
0
1
0
232
1
1
(R3L7-R3L4) (B) (T37-T34) (B) (R3L3-R3L0) (A) (T33-T30) (A)
-
-
Transfers the contents of registers A and B to timer 3 and timer 3 reload register R3L.
T3HAB
1
0
0
0
1
1
1
1
0
1
23D
1
1
(R3H7-R3H4) (B) (R3H3-R3H0) (A)
-
-
Transfers the contents of registers A and B to timer 3 reload register R3H.
52
53
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MACHINE INSTRUCTIONS (CONTINUED)
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
SNZT1
1
0
1
0
0
0
0
0
0
0
280
1
1
(T1F) = 1 ? After skipping the next instruction (T1F) 0
(T1F) = 1
-
Skips the next instruction when the contents of T1F flag is "1." After skipping, clears T1F flag.
Timer operation
SNZT2
1
0
1
0
0
0
0
0
0
1
281
1
1
(T2F) = 1 ? After skipping the next instruction (T2F) 0
(T2F) = 1
-
Skips the next instruction when the contents of T2F flag is "1." After skipping, clears T2F flag.
SNZT3
1
0
1
0
0
0
0
0
1
0
282
1
1
(T3F) = 1 ? After skipping the next instruction (T3F) 0
(T3F) = 1
-
Skips the next instruction when the contents of T3F flag is "1." After skipping, clears T3F flag.
IAP0 OP0A IAP1 OP1A IAP2
1 1 1 1 1
0 0 0 0 0
0 0 0 0 0
1 0 1 0 1
1 1 1 1 1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 1
0 0 1 1 0
260 220 261 221 262
1 1 1 1 1
1 1 1 1 1
(A) (P0) (P0) (A) (A) (P1) (P1) (A) (A1, A0) (P21, P20) (A3, A2) 0
- - - - -
- - - - -
Transfers the input of port P0 to register A. Outputs the contents of register A to port P0. Transfers the input of port P1 to register A. Outputs the contents of register A to port P1. Transfers the input of port P2 to register A.
IAP3 Input/Output operation OP3A IAP4 CLD RD
1 1 1 0 0
0 0 0 0 0
0 0 0 0 0
1 0 1 0 0
1 1 1 0 0
0 0 0 1 1
0 0 0 0 0
0 0 1 0 1
1 1 0 0 0
1 1 0 1 0
263 223 264 011 014
1 1 1 1 1
1 1 1 1 1
(A) (P3) (P3) (A) (A) (P4) (D) 1 (D(Y)) 0 (Y) = 0 to 9 (D(Y)) 1 (Y) = 0 to 9 (K0) (A) (A) (K0) (PU0) (A) (A) (PU0)
- - - - -
- - - - -
Transfers the input of port P3 to register A. Outputs the contents of register A to port P3. Transfers the input of port P4 to register A. Sets port D to "1." Clears a bit of port D specified by register Y to "0."
SD
0
0
0
0
0
1
0
1
0
1
015
1
1
-
-
Sets a bit of port D specified by register Y to "1."
TK0A TAK0 TPU0A TAPU0
1 1 1 1
0 0 0 0
0 0 0 0
0 1 0 1
0 0 1 0
1 1 0 1
1 0 1 0
0 1 1 1
1 1 0 1
1 0 1 1
21B 256 22D 257
1 1 1 1
1 1 1 1
- - - -
- - - -
Transfers the contents of register A to key-on wakeup control register K0. Transfers the contents of key-on wakeup control register K0 to register A. Transfers the contents of register A to pull-up control register PU0. Transfers the contents of pull-up control register PU0 to register A.
54
55
MITSUBISHI MICROCOMPUTERS
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Number of words Number of cycles
Parameter
Type of instructions
Instruction code Mnemonic D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Hexadecimal notation
Function
Skip condition
Carry flag CY
Detailed description
Carrier generating circuit operation
TC2A
1
0
1
0
1
0
1
0
0
1
2A9
1
1
(C21, C20) (A1, A0)
-
-
Transfers the contents of register A to carrier wave output control register C2.
NOP POF
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 1
0 0
000 002
1 1
1 1
(PC) (PC) + 1 Transition to RAM back-up mode
- -
- -
No operation Puts the system in RAM back-up mode state by executing the POF instruction after executing the EPOF instruction.
EPOF Other operation
0
0
0
1
0
1
1
0
1
1
05B
1
1
POF instruction valid
-
-
Validates the POF instruction which is executed after the EPOF instruction by executing the EPOF instruction. Skips the next instruction when P flag is "1." After skipping, P flag remains unchanged. Operates the watchdog timer and initializes the watchdog timer flag (WDF1). Transfers the contents of general-purpose register SI to registers A and B.
SNZP
0
0
0
0
0
0
0
0
1
1
003
1
1
(P) = 1 ?
(P) = 1
-
WRST TABSI
1 1
0 0
1 0
0 1
1 1
0 1
0 1
0 0
0 0
0 0
2A0 278
1 1
1 1
(WDF1) 0, (WEF) 1 (B) (SI7-SI4) (A) (SI3-SI0) (SI7-SI4) (B) (SI3-SI0) (A) (A) (MR3-MR0) (MR3-MR0) (A) When executing the TABP p instruction, p6 1
- -
- -
TSIAB
1
0
0
0
1
1
1
0
0
0
238
1
1
-
-
Transfers the contents of registers A and B to general-purpose register SI.
TAMR TMRA SBK
1 1 0
0 0 0
0 0 0
1 0 1
0 0 0
1 1 0
0 0 0
0 1 0
1 1 0
0 0 1
252 216 041
1 1 1
1 1 1
- - -
- - -
Transfers the contents of clock control register MR to register A. Transfers the contents of register A to clock control register MR. Data area which is referred when executing the TABP p instruction is set to pages 64 to 127. This setting is valid only for the TABP p instruction. Data area which is referred when executing the TABP p instruction is set to pages 0 to 63. This setting is valid only for the TABP p instruction. If the SBK instruction is not executed, p6 when executing the TABP p instruction is "0."
RBK
0
0
0
1
0
0
0
0
0
0
040
1
1
When executing the TABP p instruction, p6 0
-
-
56
57
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CONTROL REGISTERS
Interrupt control register V1 V13 V12 V11 V10 Timer 2 interrupt enable bit Timer 1 interrupt enable bit Not used External 0 interrupt enable bit 0 1 0 1 0 1 0 1 at reset : 00002 RAM back-up : 00002 R/W
Interrupt disabled (SNZT2 instruction is valid) Interrupt enabled (SNZT2 instruction is invalid) Interrupt disabled (SNZT1 instruction is valid) Interrupt enabled (SNZT1 instruction is invalid) This bit has no function, but read/write is enabled. Interrupt disabled (SNZ0 instruction is valid) Interrupt enabled (SNZ0 instruction is invalid)
Interrupt control register V2 V23 V22 V21 V20 Not used Not used Not used Timer 3 interrupt enable bit 0 1 0 1 0 1 0 1
at reset : 00002
at RAM back-up : 00002
R/W
This bit has no function, but read/write is enabled. This bit has no function, but read/write is enabled. This bit has no function, but read/write is enabled. Interrupt disabled (SNZT3 instruction is valid) Interrupt enabled (SNZT3 instruction is invalid)
Interrupt control register I1 I13 Not used 0 1 0 I12 Interrupt valid waveform for INT pin /return level selection bit (Note 2) 1 0 1 0
at reset : 00002
at RAM back-up : state retained
R/W
This bit has no function, but read/write is enabled. Falling waveform ("L" level of INT pin is recognized with the SNZI0 instruction)/"L" level Rising waveform ("H" level of INT pin is recognized with the SNZI0 instruction)/"H" level This bit has no function, but read/write is enabled.
I11 I10
Not used Not used
This bit has no function, but read/write is enabled. 1 Notes 1: "R" represents read enabled, and "W" represents write enabled. 2: Depending on the input state of P21/INT pin, the external interrupt request flag EXF0 may be set to "1" when the contents of I12 is changed. Accordingly, set a value to bit 2 of register I1 and execute the SNZ0 instruction to clear the EXF0 flag after executing at least one instruction.
58
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CONTROL REGISTERS (CONTINUED)
Timer control register W1 W13 W12 W11 W10 Prescaler control bit Prescaler dividing ratio selection bit Timer 1 count source selection bit Timer 1 control bit 0 1 0 1 0 1 0 1 at reset : 00002 at RAM back-up : 00002 R/W
Stop (prescaler state initialized) Operating Instruction clock divided by 4 Instruction clock divided by 8 Prescaler output (ORCLK) Carrier output (CARRY) Stop (state retained) Operating
Timer control register W2 W23 W22 Timer 2 control bit Port D9/TOUT pin function selection bit 0 1 0 1
at reset : 00002 Stop (state retained) Operating Port D9 TOUT pin 0 1 0 1
at RAM back-up : state retained
R/W
W21 W20
W21 Timer 2 count source selection bits W20
0 0 1 1
Count source Prescaler output (ORCLK) Timer 1 underflow signal Instruction clock 16-bit timer underflow signal
Timer control register W3 W33 W32 Timer 3 control bit Not used 0 1 0 1
at reset : 00002 Stop (state retained) Operating
at RAM back-up : state retained
R/W
This bit has no function, but read/write is enabled. Count source Timer 2 underflow signal Prescaler output (ORCLK) f(XIN) or f(XIN)/2 Not available
W31 W30
W31 Timer 3 count source selection bits W30
0 0 1 1
0 1 0 1
Timer count value store register W5
at reset : 002
at RAM back-up : state retained
R/W
2-bit register. The contents of the high-order 2 bits (bits 9 and 8) of the 10-bit ROM pattern at address (D2D1D0A3A2A1A0) in page p specified by registers D and A is stored in this register W5 with the TABP p instruction. In addition, data can be transferred between the low-order 2 bits of register A and this register W5 with the TW5A or TAW5 instruction. Data can be read/written to/from the high-order 2 bits of timer 1 with the T1AB or TAB1 instruction. Note: "R" represents read enabled, and "W" represents write enabled.
59
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
CONTROL REGISTERS (CONTINUED)
Carrier wave output control register C2 C21 C20 Port CARR output control bit Carrier wave output auto-control bit 0 1 0 1 at reset : 002 at RAM back-up : 002 W
Port CARR "L" level output Port CARR "H" level output Auto-control output by timer 1 is invalid Auto-control output by timer 1 is valid
Key-on wakeup control register K0 K03 K02 K01 K00 Port P43 key-on wakeup control bit Port P42 key-on wakeup control bit Port P41 key-on wakeup control bit Port P40 key-on wakeup control bit 0 1 0 1 0 1 0 1
at reset : 00002
at RAM back-up : state retained
R/W
Key-on wakeup not used Key-on wakeup used Key-on wakeup not used Key-on wakeup used Key-on wakeup not used Key-on wakeup used Key-on wakeup not used Key-on wakeup used
Pull-up control register PU0 PU03 PU02 PU01 PU00 Port P43 pull-up transistor control bit Port P42 pull-up transistor control bit Port P41 pull-up transistor control bit Port P40 and P01 pull-up transistor control bit 0 1 0 1 0 1 0 1
at reset : 00002
at RAM back-up : state retained
R/W
Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON
Clock control register MR MR3 MR2 MR1 MR0 System clock selection bit Not used Not used Not used 0 1 0 1 0 1 0 1
at reset : 10002 f(XIN) f(XIN)/4
at RAM back-up : state retained
R/W
This bit has no function, but read/write is enabled. This bit has no function, but read/write is enabled. This bit has no function, but read/write is enabled.
8-bit general purpose register PU0 8-bit general purpose register.
at reset : 0016
at RAM back-up : state retained
R/W
8-bit data can be transferred between this register PU0 and registers A and B with the TSIAB instruction and TABSI instruction. Note: "R" represents read enabled, and "W" represents write enabled.
60
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
ABSOLUTE MAXIMUM RATINGS
Symbol VDD VI VO VO Pd Topr Tstg Supply voltage Input voltage P0, P1, P2, P3, P4, RESET, XIN, VDCE Output voltage P0, P1, P3, D Output voltage CARR, XOUT Power dissipation Operating temperature range Storage temperature range Output transistors in cut-off state Parameter Conditions Ratings -0.3 to 7.0 -0.3 to VDD+0.3 -0.3 to VDD+0.3 -0.3 to VDD+0.3 300 -20 to 70 -40 to 125 Unit V V V V mW C C
RECOMMENDED OPERATING CONDITIONS1
(Mask ROM version:Ta = -20 C to 70 C, VDD = 2.0 V to 5.5 V, unless otherwise noted) (One Time PROM version:Ta = -20 C to 70 C, VDD = 2.5 V to 5.5 V, unless otherwise noted) Symbol Parameter Mask ROM version System clock =f(XIN)/4 Mask ROM version System clock VDD Supply voltage =f(XIN) One Time PROM version System clock =f(XIN)/4 f(XIN) 4.2 MHz Ceramic resonator 2.5 4.5 2.5 1.8 2.0 0 4.2 5.5 5.5 5.5 5.5 5.5 V V V f(XIN) 2.0 MHz Ceramic resonator f(XIN) 1.0 MHz Ceramic resonator 4.5 2.0 5.5 5.5 V Conditions f(XIN) 4.2 MHz Ceramic resonator Limits Min. 2.0 Typ. Max. 5.5 Unit
VRAM VSS
One Time PROM version f(XIN) 2.0 MHz Ceramic resonator System clock f(XIN) 1.0 MHz =f(XIN) Ceramic resonator RAM back-up Mask ROM version RAM back-up voltage One Time PROM version Supply voltage Mask ROM version System clock =f(XIN)/4 Mask ROM version O s c i l l a t i o n System clock =f(XIN) frequency VDD=4.5 V to 5.5V VDD=2.0 V to 5.5V VDD=2.0 V to 5.5V
2.0 1.0 MHz 4.2
f(XIN)
( a t c e r a m i c One Time PROM version resonance) VDD=2.5 V to 5.5V System clock =f(XIN)/4 One Time PROM version VDD=4.5 V to 5.5V System clock VDD=2.5 V to 5.5V =f(XIN)
2.0 1.0
61
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
RECOMMENDED OPERATING CONDITIONS 2
(Mask ROM version:Ta = -20 C to 70 C, VDD = 2.0 V to 5.5 V, unless otherwise noted) (One Time PROM version:Ta = -20 C to 70 C, VDD = 2.5 V to 5.5 V, unless otherwise noted) Symbol VIH VIH VIH VIH VIL VIL VIL VIL Parameter "H" level input voltage P0, P1, P2, P3, P4, VDCE "H" level input voltage XIN
______
Conditions
Limits Min. 0.8VDD 0.7VDD 0.85VDD 0.8VDD 0 0 0 0 Typ. Max. VDD VDD VDD VDD 0.3VDD 0.3VDD 0.3VDD 0.2VDD 10 4 30 24 5 2 15 12 -30 -15 -15 -7 30 20
Unit V V V V V V V V mA mA mA mA mA mA mA mA
"H" level input voltage RESET "H" level input voltage INT "L" level input voltage P0, P1, P2, P3, P4, VDCE "L" level input voltage XIN ______ "L" level input voltage RESET VDD=5.0 V VDD=3.0 V VDD=5.0 V VDD=3.0 V VDD=5.0 V
"L" level input voltage INT IOL(peak) "L" level peak output current P0, P1, D0-D9, CARR IOL(peak) "L" level peak output current P3 IOL(avg) IOL(avg) "L" level average output current P0, P1, D0-D9, CARR (Note)
VDD=3.0 V "L" level average output current P3 VDD=5.0 V (Note) VDD=3.0 V VDD=5.0 V VDD=3.0 V VDD=5.0 V VDD=3.0 V
IOH(peak) "H" level peak output current CARR IOH(avg) "H" level average output current CARR (Note) IOL IOL TPON "L" total current P0, P1, P3 "L" total current D
Power reset circuit valid power rising Mask ROM version time VDD = 0 to 2.0 V One Time PROM version
100
s
VDD = 0 to 2.5 V Note: The average output current is the average current value at the 100 ms interval.
62
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
ELECTRICAL CHARACTERISTICS
(Mask ROM version:Ta = -20 C to 70 C, VDD = 2.0 V to 5.5 V, unless otherwise noted) (One Time PROM version:Ta = -20 C to 70 C, VDD = 2.5 V to 5.5 V, unless otherwise noted) Symbol VOL VOL VOH IIH IIL IOZ Parameter "L" level output voltage P0, P1, D0-D9, CARR, RESET "L" level output voltage P3 "H" level output voltage CARR "H" level input current P0, P1, P2, P3, P4,
RESET, VDCE
Test conditions IOL = 5 mA IOL = 2 mA IOL = 15 mA IOL = 12 mA IOH = 15 mA IOH = -7 mA VI = VDD (Note) VI = 0 V (Note) VO = VDD VDD = 5.0 V, f(XIN) = 4.2 MHz System clock = f(XIN)/4 VDD = 5.0 V f(XIN) = 2 MHz System clock = f(XIN) f(XIN) = 1 MHz VDD = 3.0 V, f(XIN) = 4.2 MHz System clock = f(XIN)/4 VDD = 3.0 V System clock = f(XIN) f(XIN) = 1 MHz f(XIN) = 500 kHz f(XIN) = stop, typical value at Ta = 25 C VDD = 5.0 V VDD = 3.0 V VDD = 5.0 V VDD = 3.0 V VDD = 5.0 V VDD = 3.0 V
Limits Min. Typ. Max. 0.9 0.9 1.5 1.5 2.4 1.0 1 -1 1 1.3 1.9 1.3 0.6 0.5 0.4 0.1 50 100 30 60 0.5 0.4 1.5 0.6 2.6 3.8 2.6 1.2 1.0 0.8 10 125 250 70 130
Unit V V V
A A A
"L" level input current P2, P3, P4, RESET, VDCE Output current at off-state D0-D9
IDD
Supply current
at CPU operating mode
mA
at RAM back-up mode Pull-up resistor RPH value P0, P1, P4
RESET
A
k k V V
VDD = 5.0 V, VI = 0 V VDD = 3.0 V, VI = 0 V VDD = 5.0 V, VI = 0 V VDD = 3.0 V, VI = 0 V VDD = 5.0 V VDD = 3.0 V
20 40 12 25
INT VT+ - VT- Hysteresis
RESET
VDD = 5.0 V VDD = 3.0 V Note: In this case, the pull-up transistor of port P4 is turned off by software.
63
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
BASIC TIMING DIAGRAM
Machine cycle
Mi T3 T1
Mi+1 T2 T3
Parameter Clock
Pin name
State
XIN (System clock=f(X IN)) XIN (System clock=f(X IN)/4)
Port D output
D0-D9
Port P0, P1, P3 output P00-P03 P10-P13 P30-P33 Port P0, P1, P2, P3, P4 input P00-P03 P10-P13 P20, P21 P30-P33 P40-P43 INT
Interrupt input
64
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
BUILT-IN PROM VERSION
In addition to the mask ROM version, the 4570 Group has the programmable ROM version software compatible with mask ROM. The One Time PROM version has PROM which can only be written to and not be erased. The built-in PROM version has functions similar to those of the mask ROM version, but it has a PROM mode that enables writing to built-in PROM. Table 16 Product of built-in PROM version Product M34570E8FP M34570EDFP PROM size (! 10 bits) 8192 words 16384 words RAM size (! 4 bits) 128 words 128 words
Table 16 shows the product of built-in PROM version. Figure 35 shows the pin configurations of built-in PROM version. The One Time PROM version has pin-compatibility with the mask ROM version.
Package 36P2R-A 36P2R-A One Time PROM
ROM type
PIN CONFIGURATION (TOP VIEW)
D2 D3 D4 D5 D6 D7 D8 D9/TOUT P20 P21/INT RESET CNVSS XOUT XIN VSS VDCE VDD CARR
1 2 3 4 5 6
36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19
D1 D0 P13 P12 P11 P10 P03 P02 P01 P00 P43 P42 P41 P40 P33 P32 P31 P30
M34570ExFP
7 8 9 10 11 12 13 14 15 16 17 18
Outline 36P2R-A Fig. 35 Pin configuration of built-in PROM version
65
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) PROM mode The built-in PROM version has a PROM mode in addition to a normal operation mode. The PROM mode is used to write to and read from the built-in PROM. In the PROM mode, the programming adapter can be used with a general-purpose PROM programmer to write to or read from the built-in PROM as if it were M5M27C256K. Programming adapter is listed in Table 17. Contact addresses at the end of this book for the appropriate PROM programmer. * Writing and reading of built-in PROM Programming voltage is 12.5 V. Write the program in the PROM of the built-in PROM version as shown in Figure 36. (2) Notes on handling A high-voltage is used for writing. Take care that overvoltage is not applied. Take care especially at turning on the power. For the One Time PROM version Mitsubishi Electric corp. does not perform PROM writing test and screening in the assembly process and following processes. In order to improve reliability after writing, performing writing and test according to the flow shown in Figure 37 before using is recommended.
Table 17 Programming adapter Microcomputer M34570E8FP, M34570EDFP Programming adapter PCA7425
Address 000016 1FFF16
1
1
1
D4 D3
D2
D1
D0
Low-order 5 bits
400016 5FFF16
1
1
1
D4 D3
D2
D1
D0
High-order 5 bits
7FFF16 The shaded area can be used only for M34570ED. Set "FF16" to the shaded area.
Fig. 36 PROM memory map
Writing with PROM programmer
Screening (Leave at 150 C for 40 hours) (Note)
Verify test with PROM programmer
Function test in target device Note: Since the screening temperature is higher than storage temperature, never expose the microcomputer to 150 C exceeding 100 hours.
Fig. 37 Flow of writing and test of the product shipped in blank
66
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
GZZ-SH55-08B <91A0> 4500 SERIES MASK ROM ORDER CONFIRMATION FORM SINGLE-CHIP MICROCOMPUTER M34570M4-XXXFP MITSUBISHI ELECTRIC Please fill in all items marked T.
Mask ROM number Date: Receipt )
Section head S u p e r v i s o r signature signature
Company name T Customer Date issued Date: TEL (
T 1. Confirmation Three sets of EPROMs are required for each pattern if this order is performed by EPROMs. One floppy disk is required for each pattern if this order is performed by floppy disk.
Ordering by the EPROMs Specify the type of EPROMs submitted (check in the approximate box). If at least two of the three sets of EPROMs submitted contain the identical data, we will produce masks based on this data. We shall assume the responsibility for errors only if the mask ROM data on the products we produce differ from this data. Thus, the customer must be especially careful in verifying the data contained in the EPROMs submitted. Checksum code for entire EPROM area (hexadecimal notation)
EPROM Type: 27C256
Low-order 5-bit data
432109876543210987654321 32109876543210987654321 432109876543210987654321 4 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
27C512
Low-order 5-bit data
432109876543210987654321 3210987654321098 1 432109876543210987654321 4 765432 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
000016 4.00K 0FFF16 400016 4.00K 4FFF16 7FFF16
000016 4.00K 0FFF16 400016 4.00K 4FFF16 FFFF16
High-order 5-bit data
432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
High-order 5-bit data
432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
Set "FF16" in the shaded area. Set "1112" in the area of low-order and high-order 5-bit data.
Issuance signature
Responsible Supervisor officer
67
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
GZZ-SH55-08B <91A0> 4500 SERIES MASK ROM ORDER CONFIRMATION FORM SINGLE-CHIP MICROCOMPUTER M34570M4-XXXFP MITSUBISHI ELECTRIC
Mask ROM number
Ordering by floppy disk We will produce masks based on the mask files generated by the mask file generating utility. We shall assume the responsibility for errors only if the mask ROM data on the products we produce differs from this mask file. Thus, extreme care must be taken to verify the mask file in the submitted floppy disk. The submitted floppy disk must be-3.5 inch 2HD type and DOS/V format. And the number of the mask files must be 1 in one floppy disk. File code (hexadecimal notation)
Mask file name
.MSK (equal or less than eight characters)
T 2. Mark Specification Mark specification must be submitted using the correct form for the type of package being ordered. Fill out the approximate Mark Specification Form (36P2R-A for M34570M4-XXXFP) and attach to the Mask ROM Order Confirmation Form. T 3. Comments
68
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
GZZ-SH55-09B <91A0> 4500 SERIES MASK ROM ORDER CONFIRMATION FORM SINGLE-CHIP MICROCOMPUTER M34570M8-XXXFP MITSUBISHI ELECTRIC Please fill in all items marked T.
Mask ROM number Date: Receipt )
Section head S u p e r v i s o r signature signature
Company name T Customer Date issued Date: TEL (
T 1. Confirmation Three sets of EPROMs are required for each pattern if this order is performed by EPROMs. One floppy disk is required for each pattern if this order is performed by floppy disk.
Ordering by the EPROMs Specify the type of EPROMs submitted (check in the approximate box). If at least two of the three sets of EPROMs submitted contain the identical data, we will produce masks based on this data. We shall assume the responsibility for errors only if the mask ROM data on the products we produce differ from this data. Thus, the customer must be especially careful in verifying the data contained in the EPROMs submitted. Checksum code for entire EPROM area (hexadecimal notation)
EPROM Type: 27C256
Low-order 5-bit data
5432109876543210987654321 432109876543210987654321 5432109876543210987654321 5 5432109876543210987654321 5432109876543210987654321 5432109876543210987654321 5432109876543210987654321
27C512
Low-order 5-bit data
432109876543210987654321 3210987654321098 1 432109876543210987654321 4 765432 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
000016 8.00K 1FFF16 400016 8.00K 5FFF16 7FFF16
000016 8.00K 1FFF16 400016 8.00K 5FFF16 FFFF16
High-order 5-bit data
5432109876543210987654321 5432109876543210987654321 5432109876543210987654321 5432109876543210987654321 5432109876543210987654321 5432109876543210987654321 5432109876543210987654321
High-order 5-bit data
432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
Set "FF16" in the shaded area. Set "1112" in the area of low-order and high-order 5-bit data.
Issuance signature
Responsible Supervisor officer
69
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
GZZ-SH55-09B <91A0> 4500 SERIES MASK ROM ORDER CONFIRMATION FORM SINGLE-CHIP MICROCOMPUTER M34570M8-XXXFP MITSUBISHI ELECTRIC
Mask ROM number
Ordering by floppy disk We will produce masks based on the mask files generated by the mask file generating utility. We shall assume the responsibility for errors only if the mask ROM data on the products we produce differs from this mask file. Thus, extreme care must be taken to verify the mask file in the submitted floppy disk. The submitted floppy disk must be-3.5 inch 2HD type and DOS/V format. And the number of the mask files must be 1 in one floppy disk. File code (hexadecimal notation)
Mask file name
.MSK (equal or less than eight characters)
T 2. Mark Specification Mark specification must be submitted using the correct form for the type of package being ordered. Fill out the approximate Mark Specification Form (36P2R-A for M34570M8-XXXFP) and attach to the Mask ROM Order Confirmation Form. T 3. Comments
70
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
GZZ-SH55-10B <91A0> 4500 SERIES MASK ROM ORDER CONFIRMATION FORM SINGLE-CHIP MICROCOMPUTER M34570MD-XXXFP MITSUBISHI ELECTRIC Please fill in all items marked T.
Mask ROM number Date: Receipt )
Section head S u p e r v i s o r signature signature
Company name T Customer Date issued Date: TEL (
T 1. Confirmation Three sets of EPROMs are required for each pattern if this order is performed by EPROMs. One floppy disk is required for each pattern if this order is performed by floppy disk.
Ordering by the EPROMs Specify the type of EPROMs submitted (check in the approximate box). If at least two of the three sets of EPROMs submitted contain the identical data, we will produce masks based on this data. We shall assume the responsibility for errors only if the mask ROM data on the products we produce differ from this data. Thus, the customer must be especially careful in verifying the data contained in the EPROMs submitted. Checksum code for entire EPROM area (hexadecimal notation)
EPROM Type: 27C256 000016
Low-order 5-bit data
27C512 000016 16.00K
Low-order 5-bit data
16.00K 3FFF16 400016 16.00K 7FFF16 FFFF16
3FFF16 400016
High-order 5-bit data
High-order 5-bit data
432109876543210987654321 1 432109876543210987654321 43210987654321098765432 432109876543210987654321 432109876543210987654321 432109876543210987654321 432109876543210987654321
16.00K 7FFF16
Set "FF16" in the shaded area. Set "1112" in the area of low-order and high-order 5-bit data.
Issuance signature
Responsible Supervisor officer
71
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
GZZ-SH55-10B <91A0> 4500 SERIES MASK ROM ORDER CONFIRMATION FORM SINGLE-CHIP MICROCOMPUTER M34570MD-XXXFP MITSUBISHI ELECTRIC
Mask ROM number
Ordering by floppy disk We will produce masks based on the mask files generated by the mask file generating utility. We shall assume the responsibility for errors only if the mask ROM data on the products we produce differs from this mask file. Thus, extreme care must be taken to verify the mask file in the submitted floppy disk. The submitted floppy disk must be-3.5 inch 2HD type and DOS/V format. And the number of the mask files must be 1 in one floppy disk. File code (hexadecimal notation)
Mask file name
.MSK (equal or less than eight characters)
T 2. Mark Specification Mark specification must be submitted using the correct form for the type of package being ordered. Fill out the approximate Mark Specification Form (36P2R-A for M34570MD-XXXFP) and attach to the Mask ROM Order Confirmation Form. T 3. Comments
72
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
MARK SPECIFICATION FORM 36P2R-A (36-PIN SHRINK SOP) MARK SPECIFICATION FORM
Mitsubishi IC catalog name Please choose one of the marking types below (A, B, C), and enter the Mitsubishi catalog name and the special mark (if needed). A. Standard Mitsubishi Mark
36
19
Mitsubishi IC catalog name
Mitsubishi lot number (6-digit or 7-digit)
1 18
B. Customer's Parts Number + Mitsubishi catalog name
36
19
Mitsubishi lot number (6-digit or 7-digit)
1 18
Customer's Parts Number Note : The fonts and size of characters are standard Mitsubishi type. Mitsubishi IC catalog name Note1 : The mark field should be written right aligned. 2 : The fonts and size of characters are standard Mitsubishi type. 3 : Customer's Parts Number can be up to 11 characters : Only 0 ~ 9, A ~ Z, +, -, /, (, ), &, (c), (periods), (commas) are usable. 4 : If the Mitsubishi logo is not required, check the box below. Mitsubishi logo is not required
.
,
C. Special Mark Required
36 19
1
18
Note1 : If the Special Mark is to be Printed, indicate the desired layout of the mark in the left figure. The layout will be duplicated as close as possible. Mitsubishi lot number (6-digit or 7-digit) and Mask ROM number (3-digit) are always marked. 2 : If the customer's trade mark logo must be used in the Special Mark, check the box below. Please submit a clean original of the logo. For the new special character fonts a clean font original (ideally logo drawing) must be submitted. Special logo required
3 : The standard Mitsubishi font is used for all characters except for a logo.
73
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
PACKAGE OUTLINE
36P2R-A
EIAJ Package Code SSOP36-P-450-0.80 JEDEC Code - Weight(g) 0.53 Lead Material Alloy 42
Plastic 36pin 450mil SSOP
e
36 19
b2
HE
E
F
e1
Recommended Mount Pad Symbol Dimension in Millimeters Min Nom Max 2.4 - - - - 0.05 - 2.0 - 0.5 0.4 0.35 0.2 0.15 0.13 15.2 15.0 14.8 8.6 8.4 8.2 - 0.8 - 12.23 11.93 11.63 0.7 0.5 0.3 - 1.765 - 0.15 - - 0 - 10 - 0.5 - - 11.43 - - 1.27 -
1
18
A D A2 A1
L1
e
y
b
A A1 A2 b c D E e HE L L1 y b2 e1 I2
Detail F
74
L
c
I2
MITSUBISHI MICROCOMPUTERS
4570 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
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.
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 or circuit application examples contained in these materials. All information contained in these materials, including product data, diagrams and charts, represent 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. 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.
*
* *
*
(c) 1999 MITSUBISHI ELECTRIC CORP. New publication, effective April. 1999. Specifications subject to change without notice.
REVISION DESCRIPTION LIST
Rev. No. 1.0 2.0 First Edition Main revision points are described below.
4570 GROUP DATA SHEET
Revision Description Rev. date 971022 990331
*M34570MD-XXXFP and M34570EDFP (ROM expansion products [size: 16K 5 10 bits] ) added. * SBK and RBK instructions added and TABP p instruction function is expanded. (TABP p instruction: When this instruction is executed after executing the SBK instruction, pages 64 to 127 are specified. When this instruction is executed after executing the RBK instruction, pages 0 to 63 are specified. When this instruction is executed after system is released from reset and returned from the RAM back-up mode, pages 0 to 63 are specified.) * BL, BML, BLA and BMLA instructions revised. Referred pages are expanded to pages 0 to 127 (p6 can be used for page specification.)
(1/1)


▲Up To Search▲   

 
Price & Availability of M34570M4-227FP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X