Page 1
Semiconductors, and other Mitsubishi brand names are mentioned in the document, these names have in fact all been changed to Renesas Technology Corp. Thank you for your understanding. Except for our corporate trademark, logo and corporate statement, no changes whatsoever have been made to the contents of the document, and these changes do not constitute any alteration to the contents of the document itself.
Page 2
MITSUBISHI 4-BIT SINGLE-CHIP MICROCOMPUTER 4500 SERIES 4513/4514 Group User’s Manual...
Page 3
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.
Page 4
4-bit microcomputer. After reading this manual, the user should have a through knowledge of the functions and features of the 4513/4514 Group and should be able to fully utilize the product. The manual starts with specifications and ends with application examples.
Be sure to refer to this chapter because this chapter also includes necessary information for systems development. Note: In this manual, the 4514 Group is mainly described. The differences from the 4513 Group are described at the related points.
ROM ORDERING METHOD ... 1-58 LIST OF PRECAUTIONS ... 1-59 SYMBOL ... 1-62 LIST OF INSTRUCTION FUNCTION ... 1-63 INSTRUCTION CODE TABLE... 1-66 MACHINE INSTRUCTIONS ... 1-70 CONTROL REGISTERS ... 1-84 BUILT-IN PROM VERSION ... 1-88 4513/4514 Group User’s Manual Table of contents...
Page 7
2.9.1 RAM back-up mode ... 2-59 2.9.2 Related register ... 2-60 2.9.3 Notes on use ... 2-62 2.10 Oscillation circuit ... 2-63 2.10.1 Oscillation circuit ... 2-63 2.10.2 Oscillation operation ... 2-64 2.10.3 Notes on use ... 2-64 4513/4514 Group User’s Manual Table of contents...
Page 8
3.4.6 Providing of watchdog timer function by software ... 3-28 3.5 Mask ROM order confirmation form ... 3-30 3.6 Mark specification form ... 3-36 3.7 Package outline ... 3-39 –A line and V 4513/4514 Group User’s Manual Table of contents IN7 ... line ... 3-26 3-17...
Page 9
List of figures CHAPTER 1 HARDWARE PIN CONFIGURATION (TOP VIEW) 4513 Group ... 1-4 PIN CONFIGURATION (TOP VIEW) 4514 Group ... 1-5 BLOCK DIAGRAM (4513 Group) ... 1-6 BLOCK DIAGRAM (4514 Group) ... 1-7 PORT BLOCK DIAGRAMS ... 1-12 External interrupt circuit structure ... 1-16 Fig.
Page 10
Fig. 47 Analog input external circuit example-1 ... 1-60 Fig. 48 Analog input external circuit example-2 ... 1-60 Fig. 49 Pin configuration of built-in PROM version of 4513 Group... 1-88 Fig. 50 Pin configuration of built-in PROM version of 4514 Group... 1-88 Fig.
Page 11
Fig. 3.4.11 Watchdog timer by software ... 3-29 pin ... 3-25 pin of the One Time PROM version ... 3-26 line and the V pattern on the underside of an oscillator ... 3-28 4513/4514 Group User’s Manual line ... 3-26...
Page 12
Table 2.3.5 Timer control register W3 ... 2-29 Table 2.3.6 Timer control register W4 ... 2-29 Table 2.4.1 Serial I/O mode register J1 ... 2-41 Table 2.4.2 Recommended operating conditions (serial I/O) ... 2-48 List of tables 4513/4514 Group User’s Manual...
Page 13
Table 3.1.5 A-D converter recommended operating conditions... 3-6 Table 3.1.6 A-D converter characteristics ... 3-6 Table 3.1.7 Voltage drop detection circuit characteristics... 3-6 Table 3.1.8 Voltage comparator recommended operating conditions ... 3-7 Table 3.1.9 Voltage comparator characteristics ... 3-7 viii 4513/4514 Group User’s Manual...
C H A P T E R C H A P T E R 1 HARDWARE DESCRIPTION FEATURES APPLICATION PIN CONFIGURATION BLOCK DIAGRAM PERFORMANCE OVERVIEW PIN DESCRIPTION FUNCTION BLOCK OPERATIONS ROM ORDERING METHOD LIST OF PRECAUTIONS SYMBOL LIST OF INSTRUCTION FUNCTION INSTRUCTION CODE TABLE MACHINE INSTRUCTIONS CONTROL REGISTERS...
Page 16
DESCRIPTION/FEATURES/APPLICATION/PIN CONFIGURATION DESCRIPTION The 4513/4514 Group is a 4-bit single-chip microcomputer de- signed with CMOS technology. Its CPU is that of the 4500 series using a simple, high-speed instruction set. The computer is equipped with serial I/O, four 8-bit timers (each timer has a reload register), and 10-bit A-D conver ter.
Page 21
INT1, respectively. The 4513 Group does not have ports P3 4-bit I/O port; The 4513 Group does not have this port. 4-bit I/O port with a direction register; The 4513 Group does not have this port. 1-bit I/O; CNTR0 pin is also used as port D 1-bit I/O;...
Page 22
Input spectively. 4-bit I/O port (2-bit I/O port for the 4513 Group). For input use, set the latch of the specified bit to “1.” The output structure is N-channel open-drain. Ports P3 are also used as INT0 and INT1, respectively.
, P2 –P2 , CMP0-, CMP0+, CMP1-, CMP1+ and the input/output of P3 , INT0, INT1, and A 3: The 4513 Group does not have P4 CONNECTIONS OF UNUSED PINS Open (when using an external clock). Connect to V VDCE Connect to V –D...
–P4 Port P5 –P5 (Note 2) Notes 1: The 4513 Group does not have P3 2: The 4513 Group does not have these ports. DEFINITION OF CLOCK AND CYCLE System clock The system clock is the basic clock for controlling this product.
Synchronous clock output for serial transfer Key-on wakeup input • • Applied potential to ports P2 • i represents 0, 1, 2, or 3. • The 4513 Group does not have ports P3 IAP2 instruction Register A IAP2 instruction Register A...
Page 27
Decoder CMP1 Decoder IAP4 instruction Decoder • • i represents 0, 1, 2, or 3. • The 4513 Group does not have port P4. 4513/4514 Group User’s Manual /CMP0- /CMP0+ /CMP1- /CMP1+ –P4 This symbol represents a parasitic diode on the port.
Page 28
This symbol represents a parasitic diode on the port. • • Applied potential to ports D • i represents 0, 1, 2, or 3. • The 4513 Group does not have port P5. 4513/4514 Group User’s Manual HARDWARE PIN DESCRIPTION –P5...
Fig. 2 RAR instruction execution example Register E Fig. 3 Registers A, B and register E Specifying address The contents of The contents of register D register A 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS <Carry> (CY) (M(DP)) Addition <Result>...
Returning to the BM instruction execution Note : address with the RT instruction, and the BM instruction becomes the NOP instruction. Fig. 6 Example of operation at subroutine call 4513/4514 Group User’s Manual Executing RT instruction (SP) = 0 (SP) = 1...
SD, RD, or SZD instruction (Figure 9). (bits 6 to 0) which speci- Fig. 7 Program counter (PC) structure Fig. 8 Data pointer (DP) structure Fig. 9 SD instruction execution example 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS Program counter Specifying page...
• Completion of • A-D conversion Completion of serial I/O transfer Activated condition Fig. 15 Interrupt system diagram 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS The address of main routine to be executed when returning EXF0 EXF1 INTE SIOF...
Serial I/O interrupts Notes 1: The 4513/4514 Group operates in the middle-speed mode after system is released from reset. 2: The address is stacked to the last cycle. 3: This interval of cycles depends on the executed instruction at the time when each interrupt activated condition is satisfied.
HARDWARE FUNCTION BLOCK OPERATIONS EXTERNAL INTERRUPTS The 4513/4514 Group has two external interrupts (external 0 and external 1). An external interrupt request occurs when a valid waveform is input to an interrupt input pin (edge detection). The external interrupts can be controlled with the interrupt control registers I1 and I2.
Page 40
Set both the external 1 interrupt enable bit (V1 flag to “1.” The external 1 interrupt is now enabled. Now when a valid wave- form is input to the P3 external 1 interrupt occurs. 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS /INT1 pin. function. However, the /INT1 pin.
Falling waveform (“L” level of INT1 pin is recognized with the SNZI1 instruction)/“L” level Rising waveform (“H” level of INT1 pin is recognized with the SNZI1 instruction)/“H” level One-sided edge detected Both edges detected Disabled Enabled 4513/4514 Group User’s Manual...
TIMERS The 4513/4514 Group has the programmable timers. • Programmable timer The programmable timer has a reload register and enables the frequency dividing ratio to be set. It is decremented from a setting value n. When it underflows (count to n + 1), a timer interrupt re- quest flag is set to “1,”...
Register B Register A 16-bit timer (WDT) Instruction clock 1 - - - - - - - - - - - 15 16 WRST instruction Reset signal 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS ORCLK Timer 1 interrupt T1AB...
Page 45
Timer 1 underflow signal output divided by 2 CNTR0 output control by timer 2 underflow signal divided by 2 (I/O)/CNTR0 input CNTR0 (I/O)/D (input) 4513/4514 Group User’s Manual at RAM back-up : 0000 at RAM back-up : 0000 Count source Count source...
Data can be read from timer 2 with the TAB2 instruction. When reading the data, stop the counter and then execute the TAB2 in- struction. The output from D signal divided by 2 can be controlled. 4513/4514 Group User’s Manual HARDWARE /CNTR0 pin by timer 2 underflow 1-33...
Page 47
P3 and P3 /INT1 pin. Once set, the count start synchronous circuit is cleared by clearing the bit I1 4513/4514 Group User’s Manual /CNTR0, D /CNTR1) /CNTR1 pin function can be...
FFFF 0000 WDF1 flag WDF2 flag WRST instruction executed Fig. 21 Program example to enter the RAM back-up mode 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS BFFF 3FFF WRST System reset instruction executed •...
HARDWARE FUNCTION BLOCK OPERATIONS SERIAL I/O The 4513/4514 Group has a built-in clock synchronous serial I/O which can serially transmit or receive 8-bit data. Serial I/O consists of; • serial I/O register SI • serial I/O mode register J1 • serial I/O transmission/reception completion flag (SIOF) •...
Register J1 controls the synchronous clock, P2 and P2 register A with the TJ1A instruction. The TAJ1 instruction can be used to transfer the contents of register J1 to register A. 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS Serial I/O register (SI) pin function.
Table 13 shows the data transfer sequence. Slave (external clock) signal (Bit 3) OUT, (Bit 3) 4513/4514 Group User’s Manual (Bit 0) Serial I/O mode register J1 External clock selected as a synchronous clock Serial I/O port...
Rising of SCK : serial input Fig. 25 Timing of serial I/O data transfer ’ ’ –S : the contents of slave serial I/O register Falling of SCK : serial output 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS 1-39...
SST instruction • “L” level (reception possible) is output from port D RD instruction [Reception] • Check reception completes. SNZSI instruction • “H” level is output from port D SD instruction [Data processing] 4513/4514 Group User’s Manual ) and outputting...
A-D CONVERTER The 4513/4514 Group has a built-in A-D conversion circuit that performs conversion by 10-bit successive comparison method. Table 14 shows the characteristics of this A-D converter. This A- D converter can also be used as an 8-bit comparator to compare analog voltages input from the analog input pin with preset val- ues.
A-D conversion starts when the ADST instruction is executed. The conversion result is automatically stored in the register AD. (5) A-D control register Q1 Register Q1 is used to select one of analog input pins. The 4513 Group does not have A pins with register Q1.
9: 9th comparison result A: 10th comparison result The 4513/4514 Group repeats this operation to the lowermost bit of the register AD to convert an analog value to a digital value. A-D conversion stops after 62 machine cycles (46.5 s when f(X 4.0 MHz in high-speed mode) from the start, and the conversion re-...
AD is transferred to the high-order 2 bits of register A, si- multaneously, the low-order 2 bits of register A is “0.” 8 machine cycles Comparator operation completed. (The value of ADF is determined) 4513/4514 Group User’s Manual HARDWARE –P4 are set to pins for analog input, –P4 I/O.
Full-scale transition voltage (V b–a [LSB] [LSB] Actual A-D conversion characteristics –V Ideal line of A-D conversion between V –V 1022 4513/4514 Group User’s Manual and V of actual A-D conversion characteristics. 1022 Analog voltage and V and V by 1...
VOLTAGE COMPARATOR The 4513/4514 Group has 2 voltage comparator circuits that perform comparison of voltage between 2 pins. Table 17 shows the characteristics of this voltage comparison. CMP0–/A – CMP0 CMP0+/A – CMP1–/A CMP1 CMP1+/A Note: Bits 0 and 1 of register Q3 can be only read.
• Reading the comparison result of voltage comparator Read the voltage comparator comparison result from register Q3 after the voltage comparator response time (max. 20 passed from the voltage comparator function becomes valid. 4513/4514 Group User’s Manual s) is...
16895 times. is counted 16892 to 16895 times. Note: Keep the value of supply voltage to the minimum value or more of the recommended operating conditions. 4513/4514 Group User’s Manual HARDWARE Software starts (address 0 in page 0) Software starts...
Notes 1: Output latch is set to “1.” 2: Pull-up transistor is turned OFF. 3: After system is released from reset, port P5 is in the input mode. (Direction register FR0 = 0000 4: The 4513 Group does not have these ports. 1-50 Internal reset signal...
Page 64
• Register X ... • Register Y ... • Register Z ... • Stack pointer (SP) ... Fig. 35 Internal state at reset FUNCTION BLOCK OPERATIONS 4513/4514 Group User’s Manual HARDWARE (Interrupt disabled) (Interrupt disabled) (Interrupt disabled) (Prescaler and timer 1 stopped)
V Fig. 37 Voltage drop detection circuit operation waveform 1-52 Voltage drop detection circuit Watchdog timer output (detection voltage). 4513/4514 Group User’s Manual Internal reset signal The microcomputer starts operation after f(X ) is counted 16892 to 16895 times.
RAM BACK-UP MODE The 4513/4514 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 equal to the NOP instruction when the EPOF instruction is not ex- ecuted before the POF instruction.
RAM back-up state. Select the return level (“L” level or “H” level) with the bit 2 of register I2 ac- cording to the external state before going into the RAM back-up state. 4513/4514 Group User’s Manual Remarks...
) oscillation Return input (Stabilizing time a ) ) oscillation is automatically generated by hardware. Fig. 40 Start condition identified example using the SNZP in- struction 4513/4514 Group User’s Manual HARDWARE FUNCTION BLOCK OPERATIONS ) stop (RAM back-up mode) Software start P = “1”...
Falling waveform (“L” level of INT1 pin is recognized with the SNZI1 instruction)/“L” level Rising waveform (“H” level of INT1 pin is recognized with the SNZI1 instruction)/“H” level One-sided edge detected Both edges detected Disabled Enabled 4513/4514 Group User’s Manual...
)/2 (middle-speed mode) 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. 4513/4514 Group User’s Manual HARDWARE System clock Instruction clock Counter...
CMP0+, CMP1-, CMP1+, and I/O of P4 when CNTR0, CNTR1, S and A /INT0 pin, the external 0 4513/4514 Group User’s Manual HARDWARE LIST OF PRECAUTIONS /INT1 pin is changed /INT1 pin is changed with the bit 2 of register I2 (refer /INT1 pin, the external 1 ;...
Program counter Make sure that the PC the built-in ROM. Port P3 In the 4513 Group, when the IAP3 instruction is executed, note that the high-order 2 bits of register A is undefined. 4513/4514 Group User’s Manual About 1k –P4 are set to pins for analog input, –P4...
Page 74
Reading the comparison result of voltage comparator Read the voltage comparator comparison result from register Q3 after the voltage comparator response time (max. 20 s) is passed from the voltage comparator function become valid. 4513/4514 Group User’s Manual HARDWARE LIST OF PRECAUTIONS 1-61...
Timer 4 Note : The 4513/4514 Group just invalidates the next instruction when a skip is performed. The contents of program counter is not increased by 2. Accord- ingly, 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.
Carry (A) + n n = 0 to 15 (A) AND (M(DP)) (A) OR (M(DP)) (CY) (CY) (CY) = 0 ? 4513/4514 Group User’s Manual HARDWARE LIST OF INSTRUCTION FUNCTION Group- Mnemonic Function SB j (Mj(DP)) j = 0 to 3...
Page 77
TAI2 (I2) TI2A (I2) TAW1 (W1) TW1A (W1) TAW2 (W2) TW2A (W2) TAW3 (W3) TW3A (W3) *: The 4513 Group does not have these instructions. 1-64 Group- Mnemonic Function TAW4 (W4) TW4A (W4) TAW6 (W6) TW6A (W6) TAB1 –T1 –T1 T1AB –R1...
Page 78
(J1) TJ1A (J1) (SIOF) Serial I/O starting SNZSI (SIOF) = 1 ? After skipping (SIOF) *: The 4513 Group does not have these instructions. LIST OF INSTRUCTION FUNCTION Group- Mnemonic Function TABAD –AD –AD However, in the com- parator mode, –AD...
3 x y 0 4 8 0 1 3 0 1 7 2 C j 2 D j 2 F j 2 E j 2 B j 4513/4514 Group User’s Manual Function –E –E –E –E –DR –A –A –DR –A...
Page 84
After transferring the contents of register A to M(DP), an exclusive OR operation is performed between reg- ister X and the value j in the immediate field, and stores the result in register X. Datailed description 4513/4514 Group User’s Manual HARDWARE MACHINE INSTRUCTIONS...
Page 85
0 1 C 0 1 D 0 5 C 0 4 C 0 2 j 0 2 6 0 2 5 0 7 n 4513/4514 Group User’s Manual Function n = 0 to 15 (SP) (SP) + 1 (SK(SP)) (PC) –DR –A...
Page 86
– Skips the next instruction when the contents of register A is equal to the value n in the immediate field. Datailed description specified by registers A and D in page p. 4513/4514 Group User’s Manual HARDWARE MACHINE INSTRUCTIONS 1-73...
Page 88
(EXF1) = 1 Skips the next instruction when the contents of EXF1 flag is “1.” After skipping, clears (0) to the EXF1 flag. Datailed description 4513/4514 Group User’s Manual HARDWARE MACHINE INSTRUCTIONS specified by registers D and A in specified by registers D...
Page 90
) of register I2 is “1” : Skips the next instruction when the level of INT1 pin is “H.” ) of register I2 is “0” : Skips the next instruction when the level of INT1 pin is “L.” 4513/4514 Group User’s Manual HARDWARE...
Page 92
After skipping, clears (0) to T3F flag. (T4F) = 1 – Skips the next instruction when the contents of T4F flag is “1.” After skipping, clears (0) to T4F flag. Datailed description 4513/4514 Group User’s Manual HARDWARE MACHINE INSTRUCTIONS 1-79...
Page 93
OP3A IAP4* OP4A* IAP5* OP5A* TK0A TAK0 TPU0A TAPU0 TFR0A* *: The 4513 Group does not have these instructions. 1-80 Instruction code Hexadecimal notation 2 6 0 2 2 0 2 6 1 2 2 1 2 6 2 2 6 3...
Page 94
Transfers the contents of register A to pull-up control register PU0. – – Transfers the contents of pull-up control register PU0 to register A. – – Transfers the contents of register A to direction register FR0. Datailed description 4513/4514 Group User’s Manual HARDWARE MACHINE INSTRUCTIONS 1-81...
Page 95
0 0 0 0 0 2 0 5 B 0 0 3 2 A 0 2 5 2 2 1 6 2 4 6 2 0 6 4513/4514 Group User’s Manual Function –SI –SI –SI –SI (J1) (J1) (SIOF) Serial I/O starting...
Page 96
Transfers the contents of the high-order 2 bits of register A to the high-order 2 bits of voltage comparator control register Q3, and the comparison result of the voltage comparator is transferred to the low-order 2 bits of the register Q3. Datailed description 4513/4514 Group User’s Manual HARDWARE MACHINE INSTRUCTIONS 1-83...
Rising waveform (“H” level of INT1 pin is recognized with the SNZI1 instruction)/“H” level One-sided edge detected Both edges detected Disabled Enabled 4513/4514 Group User’s Manual at RAM back-up : 0000 at RAM back-up : 0000 at RAM back-up : 0000...
Page 98
Timer 1 underflow signal output divided by 2 CNTR0 output control by timer 2 underflow signal divided by 2 (I/O)/CNTR0 input CNTR0 (I/O)/D (input) 4513/4514 Group User’s Manual HARDWARE CONTROL REGISTERS at RAM back-up : 0000 at RAM back-up : 0000...
A-D control register Q2 A-D operation mode selection bit and P4 pin function selec- tion bit (Not used for the 4513 Group) pin function selection bit (Not used for the 4513 Group) pin function selection bit (Not used for the 4513 Group)
Page 100
Port P5 input/output control bit Notes 1: “R” represents read enabled, and “W” represents write enabled. 2: The 4513 Group does not have the direction register FR0. at reset : 0000 at RAM back-up : state retained Key-on wakeup not used...
HARDWARE BUILT-IN PROM VERSION BUILT-IN PROM VERSION In addition to the mask ROM versions, the 4513/4514 Group has programmable ROM version software compatible with mask ROM. The built-in PROM of One Time PROM version can be written to and not be erased.
Since the screening temperature is higher than storage temperature, never expose the microcomputer to 150 °C exceeding 100 hours. Fig. 52 Flow of writing and test of the product shipped in blank 4513/4514 Group User’s Manual HARDWARE BUILT-IN PROM VERSIONS Programming adapter PCA7442SP...
Page 103
HARDWARE BUILT-IN PROM VERSION 1-90 4513/4514 Group User’s Manual...
C H A P T E R 2 C H A P T E R APPLICATION 2.1 I/O pins 2.2 Interrupts 2.3 Timers 2.4 Serial I/O 2.5 A-D converter 2.6 Voltage comparator 2.7 Reset 2.8 Voltage drop detection circuit 2.9 RAM back-up 2.10 Oscillation circuit...
APPLICATION 2.1 I/O pins 2.1 I/O pins The 4513/4514 Group has the twenty-eight I/O pins (eighteen I/O pins for 4513 Group), three input pins. (Ports P2 –P2 , P3 , P3 CNTR0 and CNTR1 pins, respectively). This section describes each port I/O function, related registers, application example using each port function and notes.
Page 106
(4) Port P3 Port P3 is a 4-bit I/O port for the 4514 Group, and a 2-bit I/O port for the 4513 Group. Input/output of port P3 Data input to port P3 Set the output latch of specified port P3i (i=0 to 3) to “1” with the OP3A instruction. If the output latch is set to “0,”...
Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON Pull-up transistor OFF Pull-up transistor ON 4513/4514 Group User’s Manual –D ” or more to register Y. is also used as CNTR1. Accordingly, when ) and bit 2 (W6 ) of timer control register and P1 –P1...
–A with register Q1 after setting register Q2. 3: For the 4513 Group, these bits are not used. 4: For the 4513 Group, only read/write of these bits is enabled. 5: When setting ports, Q2 at reset : 0000 at RAM back-up : state retained...
APPLICATION 2.1 I/O pins (4) Direction register FR0 (The 4513 Group does not have this register.) Register FR0 is used to switch to input/output of P5 Set the contents of this register through register A with the TFR0A instruction. Table 2.1.4 shows the direction register FR0.
Fig. 2.1.2 Key scan input timing Switching key input selection port (D Stabilizing wait time for input Reading port (key input) Key input period IAP0 IAP0 Input to Input to SW5–SW8 SW9–SW12 4513/4514 Group User’s Manual IAP0 IAP0 Input to Input to SW13–SW16 SW1–SW4...
“1.” Also, for the port input, the port input function of the pin functions as analog input is undefined. (7) Notes on port P3 In the 4513 Group, when the IAP3 instruction is executed, the contents of high-order 2 bits of register A are undefined.
V , turn off their pull-up transistors (register while the key-on wakeup functions are left valid, the system fails or V or V at the shortest distance using a thick wire. 4513/4514 Group User’s Manual through a resistor or...
2.2 Interrupts The 4513/4514 Group has eight interrupt sources : external (INT0, INT1), timer 1, timer 2, timer 3, timer 4, A-D, and serial I/O. This section describes individual types of interrupts, related registers, application examples using interrupts and notes.
Page 115
A in page 1. When the interrupt is not used The interrupt is disabled and the SNZT4 instruction is valid when the bit 1 of register V2 is set to “0.” 2-12 4513/4514 Group User’s Manual...
When any interrupt occurs, the INTE flag is automatically cleared to “0,” so that other interrupts are disabled until the EI instruction is executed. Note: The interrupt enabled with the EI instruction is performed after the EI instruction and one more instruction. 4513/4514 Group User’s Manual APPLICATION 2.2 Interrupts 2-13...
Rising waveform (“H” level of INT1 pin is recognized with the SNZI1 instruction)/“H” level One-sided edge detected Both edges detected Disabled Enabled is changed, the external interrupt request flag EXF1 may be set. 4513/4514 Group User’s Manual APPLICATION 2.2 Interrupts 2-15...
3 interrupt occurs every 1 ms. Figure 2.2.7 shows a setting example of the timer 3 constant period interrupt. 2-16 “H”). “H”). 4513/4514 Group User’s Manual “L” or “L” or ) = 4.0 MHz, and the ) = 4.0 MHz, and the...
/INT0 “L” Fig. 2.2.1 INT0 interrupt operation example An interrupt occurs after the valid waveform “falling” is detected. An interrupt occurs after the valid waveform “rising” is detected. 4513/4514 Group User’s Manual APPLICATION 2.2 Interrupts ) = 4.0 MHz, 2-17...
APPLICATION 2.2 Interrupts “H” /INT1 “L” “H” An interrupt occurs after the valid waveform “falling” is detected. /INT1 An interrupt occurs after the valid waveform “rising” is detected. “L” Fig. 2.2.3 INT1 interrupt operation example 4513/4514 Group User’s Manual 2-19...
I2, and execute the SNZ1 instruction to clear the EXF1 flag to “0” after executing at least one instruction. (3) Multiple interrupts Multiple interrupts cannot be used in the 4513/4514 Group. (4) Notes on interrupt processing When the interrupt occurs, at the same time, the interrupt enable flag INTE is cleared to “0” (interrupt disable state).
2.3 Timers 2.3 Timers The 4513/4514 Group has four 8-bit timers (each has a reload register) and a 16-bit fixed dividing frequency timer which has the watchdog timer function. This section describes individual types of timers, related registers, application examples using timers and notes.
Interrupt enabled (SNZT4 instruction is invalid) Interrupt disabled (SNZT3 instruction is valid) Interrupt enabled (SNZT3 instruction is invalid) and V2 are not used. 4513/4514 Group User’s Manual APPLICATION 2.3 Timers at RAM back-up : 0000 at RAM back-up : 0000...
: 0000 at RAM back-up : state retained Stop (state retained) Operating This bit has no function, but read/write is enabled. Timer 1 underflow signal Prescaler output CNTR0 input 16-bit timer (WDT) underflow signal 4513/4514 Group User’s Manual Count source...
RAM back-up : state retained Stop (state retained) Operating This bit has no function, but read/write is enabled. Timer 3 underflow signal Prescaler output CNTR1 input Not available 4513/4514 Group User’s Manual APPLICATION 2.3 Timers Count source Count source 2-29...
Specifications: The low-frequency pulse from external as the timer 2 count source is input to CNTR0 pin, and the timer 2 interrupt request occurs every 100 counts. Figure 2.3.5 shows the setting example of CNTR0 input. 2-30 4513/4514 4513/4514 Group User’s Manual ) = 4.0 MHz, and the CNTR0...
Watchdog timer provides a method to reset the system when a program run-away occurs. In the 4513/4514 Group, bit 15 of 16-bit timer is counted twice for the watchdog timer. Accordingly, when the watchdog timer function is set to be valid, execute the WRST instruction at a certain period which consists of timer 16-bit timers’...
(4) Writing to reload registers R1, R3 When writing data to reload registers R1, R3 while timer 1 and 3 are operating, avoid a timing when timers 1 and 3 underflow. 4513/4514 Group User’s Manual APPLICATION 2.3 Timers 2-39...
APPLICATION 2.4 Serial I/O 2.4 Serial I/O The 4513/4514 Group has a clock-synchronous serial I/O which can be used to transmit and receive 8-bit data. This section describes serial I/O functions, related registers, application examples using serial I/O and notes.
Instruction clock signal divided by 4 Input ports P2 , P2 Serial I/O ports S External clock Internal clock (instruction clock divided by 4 or 8) 4513/4514 Group User’s Manual APPLICATION 2.4 Serial I/O , P2 selected /input ports P2...
Note: The control signal is used to inform the master by the pin level that the slave is in a ready state to receive. The 4513/4514 Group does not have a control pin exclusively used for serial I/O. Accordingly, if a control signal is required, use the normal input/output ports.
: the contents of slave serial I/O register Rising of S : serial input Falling of S : serial output ’–M ’: previous MSB contents of master and slave Fig. 2.4.4 Serial I/O transfer timing ’ ’ 4513/4514 Group User’s Manual APPLICATION 2.4 Serial I/O 2-43...
Page 147
“H” after a transmit operation is started first. 2-44 pin synchronously with the falling edges of the shift pin synchronously with the rising edges of the shift through to transmit or receive multiple data in succession. 4513/4514 Group User’s Manual...
2.4.4 Serial I/O application example (1) Serial I/O Outline: The 4513/4514 Group can communicate with peripheral ICs. Specifications: Figure 2.4.2 Serial I/O connection example. Figure 2.4.5 shows the master serial I/O setting example, and Figure 2.4.6 shows the slave serial I/O setting example.
Execute Receive Data Data received by serial transfer is executed. Register SI register A, register B (TABSI instruction) When serial communication is executed, 4513/4514 Group User’s Manual When interrupt is used Serial I/O interrupt occurrence enabled (TV2A instruction) All interrupts enabled “1”...
Serial I/O interrupt temporarily disabled is enabled. Interrupt control register V2 Interrupt enable flag INTE pin initial level = “H” level register A, register B (TABSI instruction) 4513/4514 Group User’s Manual APPLICATION 2.4 Serial I/O When interrupt is used Serial I/O interrupt occurrence...
= 2.0 V to 5.5 V (Note 2) = 4.0 V to 5.5 V High-speed mode = 2.5 V to 5.5 V = 2.0 V to 5.5 V (Note 2) “L” pulse width “H” pulse width 4513/4514 Group User’s Manual Limits Unit Min. Typ. Max.
2.5 A-D converter The 4513/4514 Group has an A-D converter with the 10-bit successive comparison method: 4 channels for the 4513 Group, 8 channels for the 4514 Group. This A-D converter can also be used as a comparator to compare analog voltages input from the analog input pin with preset values.
–A with register Q1 after setting register Q2. 3: In the 4513 Group, these bits are not used. 4: In the 4513 Group, only read/write of these bits is enabled. 2-50 at reset : 0000 at power down : state retained This bit has no function, but read/write is enabled.
A-D Conversion Interrupt Occur register A and register B (TABAD instruction) high-order 2 bits of register A (TALA instruction) “0” is set to low-order 2 bits of register A 4513/4514 Group User’s Manual APPLICATION 2.5 A-D converter pin for this analog input.
Fig. 2.5.4 Analog input external circuit example-2 • • • Clear bit 2 of register V2 to “0”... performed with the SNZAD instruction • • • 4513/4514 Group User’s Manual About 1 k (Note) Note: i = 0 to 7...
= 2.7 V to 5.5 V (middle-speed mode) = 4.5 V to 5.5 V (high-speed mode) = 4.0 V to 5.5 V (high-speed mode) = 2.7 V to 5.5 V (middle-speed mode) 4513/4514 Group User’s Manual APPLICATION 2.5 A-D converter Limits Min.
APPLICATION 2.6 Voltage comparator 2.6 Voltage comparator The 4513/4514 Group has two voltage comparators; CMP0-, CMP0+, CMP1-, CMP1+. This section describes the voltage comparator function, related registers, and notes. 2.6.1 Voltage comparator function (1) CMP0 Voltage comparison The voltage of CMP0- is compared with that of CMP0+, and the result is stored into bit 0 of the voltage comparator control register Q3.
Bits 0 and 1 of register Q3 can be only read. Note that they cannot be written. Reading the comparison result of voltage comparator Read the voltage comparator comparison result from register Q3 after the voltage comparator response time (max. 20 s) is passed from the voltage comparator function become valid. 4513/4514 Group User’s Manual 2-55...
(f(X shows the oscillation stabilizing time. 2.7.1 Reset circuit The 4513/4514 Group has the power-on reset circuit and voltage drop detection circuit. (1) Power-on reset Reset can be performed automatically at power on (power-on reset) by connecting resistors, a diode, and a capacitor to RESET pin.
Note: Refer to section “3.1 Electrical characteristics” for the reset voltage of the voltage drop detection circuit. 2-58 Internal reset signal Voltage drop detection circuit Watchdog timer output (detection voltage). 4513/4514 Group User’s Manual The microcomputer starts operation after f(X ) is counted 16892 to 16895 times.
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 4513/4514 Group User’s Manual Remarks P = “1” Warm start Cold start –P0 , P1 –P1...
SNZI0 instruction)/“H” level One-sided edge detected Both edges detected Disabled Enabled is changed, the external interrupt request flag EXF0 may be set. 4513/4514 Group User’s Manual APPLICATION 2.9 RAM back-up –P0 , P1 –P1 at RAM back-up : state retained...
SNZI1 instruction)/“L” level Rising waveform (“H” level of INT1 pin is recognized with the SNZI1 instruction)/“H” level One-sided edge detected Both edges detected Disabled Enabled is changed, the external interrupt request flag EXF1 may be set. 4513/4514 Group User’s Manual...
2.10 Oscillation circuit The 4513/4514 Group has an internal oscillation circuit to produce the clock required for microcomputer operation. The clock signal f(X ) is obtained by connecting a ceramic resonator to X 2.10.1 Oscillation circuit (1) f(X ) clock generating circuit The clock signal f(X ) is obtained by connecting a ceramic resonator externally.
2.10.2 Oscillation operation System clock is supplied to CPU and peripheral device as the standard clock for the microcomputer operation. For the 4513/4514 Group, the clock (f(X circuit is selected with the register MR. Figure 2.10.2 shows the structure of the clock control circuit.
C H A P T E R C H A P T E R 3 APPENDIX 3.1 Electrical characteristics 3.2 Typical characteristics 3.3 List of precautions 3.4 Notes on noise 3.5 Mask ROM confirmation form 3.6 Mark specification form 3.7 Package outline...
Tstg Conditions RESET RESET Output transistors in cut-off state Package: 42P2R Ta = 25 °C Package: 32P6B Package: 32P4B 4513/4514 Group User’s Manual Unit Ratings –0.3 to 7.0 –0.3 to V +0.3 –0.3 to 13 –0.3 to V +0.3 –0.3 to V +0.3...
One Time PROM version Middle-speed mode Mask ROM version High-speed mode One Time PROM version High-speed mode 4513/4514 Group User’s Manual Limits Typ. Min. = 2.5 V to 5.5 V = 2.0 V to 5.5 V = 2.5 V to 5.5 V = 4.0 V to 5.5 V...
Page 172
= 5 V = 3 V = 5 V = 3 V = 5 V = 3 V = 5 V = 3 V 4513/4514 Group User’s Manual APPENDIX 3.1 Electrical characteristics Limits Min. Typ. Max. = –10 mA = –5 mA...
Comparator mode = 5.12 V = 3.072 V ) = 4.0 MHz, Middle-speed mode ) = 4.0 MHz, High-speed mode Test conditions Ta = 25 °C = 5.0 V 4513/4514 Group User’s Manual Limits Unit Min. Typ. Max. Limits Unit Min.
(1) CPU operating, middle-speed mode (2) CPU operating, high-speed mode Supply voltage V Supply voltage V 4513/4514 Group User’s Manual ) = 4 MHz ) = 1 MHz ) = 4 MHz ) = 1 MHz Ta = 25 °C...
Page 176
A-D operating, middle-speed mode (4) A-D operating, high-speed mode Supply voltage V Supply voltage V 4513/4514 Group User’s Manual APPENDIX 3.2 Typical characteristics Ta = 25 °C ) = 4 MHz ) = 1 MHz Ta = 25 °C ) = 4 MHz...
Page 177
APPENDIX 3.2 Typical characteristics (5) RAM back-up 3-10 Supply voltage V 4513/4514 Group User’s Manual Ta = 25 °C...
–I characteristics (1) Ports P0, P1, P4, P5, S (2) Port P3, RESET pin Output voltage V Output voltage V 4513/4514 Group User’s Manual APPENDIX 3.2 Typical characteristics = 6 V = 5 V = 4 V = 3 V = 2 V Ta = 25 °C...
Page 179
–D (4) Pins D /CNTR0, D /CNTR1 3-12 Output voltage V Output voltage V 4513/4514 Group User’s Manual Ta = 25 °C = 6 V = 5 V = 4 V = 3 V = 2 V Ta = 25 °C...
3.2.4 V –R characteristics (Ports P0, P1) = 2 V = 3 V Output voltage V Supply voltage V 4513/4514 Group User’s Manual APPENDIX 3.2 Typical characteristics = 5 V = 6 V = 4 V Ta = 25 °C Ta = 25 °C...
“1022” to “1023.” In Figure 3.2.1, this is the value of of actual A-D conversion characteristics. In Figure 3.2.1, this is the value of ERROR in each of 4513/4514 Group User’s Manual +1LSB -1LSB 1022 1023...
) = 2 MHz, middle-speed mode (2) V = 3.0 V, f(X ) = 4 MHz, middle-speed mode -100 –A Analog input voltage V Analog input voltage V 4513/4514 Group User’s Manual APPENDIX 3.2 Typical characteristics Ta = 25 °C Ta = 25 °C 3-17...
Page 185
) = 2 MHz, high-speed mode (4) V = 5.0 V, f(X ) = 4 MHz, high-speed mode -120 -160 -200 3-18 Analog input voltage V Analog input voltage V 4513/4514 Group User’s Manual Ta = 25 °C Ta = 25 °C...
(1) RESET pin (2) Ports P0, P1, P2, P3, P4, P5, D, X Supply voltage V pin, VDCE pin Supply voltage V 4513/4514 Group User’s Manual APPENDIX 3.2 Typical characteristics Ta = 25 °C (rating value) (rating value) Ta = 25 °C...
3.2 Typical characteristics Pins INT0, INT1, CNTR0, CNTR1, S 3.2.8 Detection voltage temperature characteristics of voltage drop detection circuit 3-20 Supply voltage V Storage temperature range Ta (°C) 4513/4514 Group User’s Manual Ta = 25 °C (rating value) (rating value)
CMP0+, CMP1-, CMP1+, and I/O of P4 when CNTR0, CNTR1, S /INT0 pin, the external 0 and A 4513/4514 Group User’s Manual APPENDIX 3.3 List of precautions /INT1 pin is changed /INT1 pin is changed with the bit 2 of register I2 (refer /INT1 pin, the external 1 ;...
Program counter Make sure that the PC the built-in ROM. Port P3 In the 4513 Group, when the IAP3 instruction is executed, note that the high-order 2 bits of register A is undefined. 4513/4514 Group User’s Manual About 1k –P4 are set to pins for analog input, –P4...
Page 190
Reading the comparison result of voltage comparator Read the voltage comparator comparison result from register Q3 after the voltage comparator response time (max. 20 s) is passed from the voltage comparator function become valid. 4513/4514 Group User’s Manual APPENDIX 3.3 List of precautions 3-23...
(2) Wiring for RESET input pin Reset circuit Fig. 3.4.2 Wiring for the RESET input pin 4513/4514 Group User’s Manual Make the length of wiring which is connected to the RESET input pin as short as possible. Especially, connect a capacitor across the RESET input pin and the V shortest possible wiring.
This may cause a microcomputer malfunction or a program runaway. O.K. Fig. 3.4.4 Wiring for CNV level of a level of an 4513/4514 Group User’s Manual APPENDIX 3.4 Notes on noise pin to the V and V Noise O.K.
APPENDIX 3.4 Notes on noise (5) Wiring to V pin of One Time PROM version In the built-in PROM version of the 4513/4514 Group, the CNV pin is also used as the built-in PROM power supply input pin V When the V...
Also, do not cross such signal lines over the clock lines or the signal lines which are sensitive to noise. 4513/4514 Group User’s Manual APPENDIX 3.4 Notes on noise Reason...
This example assumes that interrupt processing is repeated multiple times in a single main routine processing. lines 4513/4514 Group User’s Manual or more to an I/O port software...
27C256 0000 2.00K 07FF 2.00K 4000 47FF 7FFF of low-order and high-order 5-bit data. 4513/4514 Group User’s Manual Mask ROM number Date: Section head signature R e s p o n s i b l e officer M34513M2-XXXFP (hexadecimal notation)
Page 203
Customer’s Parts Number Note : The fonts and size of characters are standard Mitsubishi type. Mitsubishi IC catalog name Mitsubishi lot number (6-digit or 7-digit) 4513/4514 Group User’s Manual (periods), and (commas) are usable. Mitsubishi logo is not required Special logo required...
Page 204
2 : The fonts and size of characters are standard Mitsubishi type. 3 : Customer’s Parts Number can be up to 7 characters : Only 0 ~ 9, A ~ Z, +, –, /, (, ), &, 4513/4514 Group User’s Manual APPENDIX 3.6 Mark specification form (periods), (commas) are usable.
Page 205
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. 4513/4514 Group User’s Manual (periods), (commas) are usable. is not required, check the box below.
JEDEC Code LQFP32-P-77-0.80 Weight(g) Lead Material – Alloy 42/Cu Alloy Weight(g) Lead Material – Alloy 42 Detail F 4513/4514 Group User’s Manual APPENDIX 3.7 Package outline Plastic 32pin 400mil SDIP Dimension in Millimeters Symbol – – 0.51 – – 0.35 0.45...
Page 207
3.7 Package outline 42P2R-A EIAJ Package Code JEDEC Code SSOP42-P-450-0.80 3-40 Weight(g) Lead Material – 0.63 Alloy 42/Cu Alloy 4513/4514 Group User’s Manual Plastic 42pin 450mil SSOP Recommended Mount Pad Dimension in Millimeters Symbol – – – – – –...
Page 208
MITSUBISHI SEMICONDUCTORS USER’S MANUAL 4513/4514 Group Dec. First Edition 1998 Editioned by Committee of editing of Mitsubishi Semiconductor USER’S MANUAL Published by Mitsubishi Electric Corp., Semiconductor Marketing Division This book, or parts thereof, may not be reproduced in any form without permission of Mitsubishi Electric Corporation.
Page 209
REVISION DESCRIPTION LIST 4513/4514 GROUP USER'S MANUAL Rev. Rev. Revision Description date First Edition 981211 (1/1)