Regarding the change of names mentioned in the document, such as Mitsubishi
Electric and Mitsubishi XX, to Renesas Technology Corp.
The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas
Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog
and discrete devices, and memory chips other than DRAMs (flash memory, SRAMs etc.)
Accordingly, although Mitsubishi Electric, Mitsubishi Electric Corporation, Mitsubishi
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.
Note : Mitsubishi Electric will continue the business operations of high frequency & optical devices
and power devices.
Renesas Technology Corp.
Customer Support Dept.
April 1, 2003
MITSUBISHI 4-BIT SINGLE-CHIP MICROCOMPUTER
4500 SERIES
4513/4514
Group
User’s Manual
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.
Preface
This user’s manual describes the hardware and
instructions of Mitsubishi’s 4513/4514 Group CMOS
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.
In this manual, the 4514 Group is mainly described.
The differences from the 4513 Group are described
at the related points.
BEFORE USING THIS USER’S MANUAL
This user’s manual consists of the following three chapters. Refer to the chapter appropriate to your conditions,
such as hardware design or software development.
1. Organization
CHAPTER 1 HARDWARE
This chapter describes features of the microcomputer and operation of each peripheral function.
CHAPTER 2 APPLICATION
This chapter describes usage and application examples of peripheral functions, based mainly on setting
examples of related registers.
CHAPTER 3 APPENDIX
This chapter includes precautions for systems development using the microcomputer, the mask ROM
confirmation forms (mask ROM version), and mark specification forms which are to be submitted when
ordering.
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
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
CHAPTER 1CHAPTER1
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
BUILT-IN PROM VERSION
The 4513/4514 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 serial I/O, four 8-bit timers (each timer has a reload
register), and 10-bit A-D converter.
The various microcomputers in the 4513/4514 Group include variations of the built-in memory type and package as shown in the
table below.
FEATURES
●Minimum instruction execution time ................................ 0.75 µs
(at 4.0 MHz oscillation frequency, in high-speed mode, VDD = 4.0
V to 5.5 V)
●Supply voltage
• Middle-speed mode
...... 2.5 V to 5.5 V (at 4.2 MHz oscillation frequency, for Mask
ROM version and One Time PROM version)
...... 2.0 V to 5.5 V (at 3.0 MHz oscillation frequency, for Mask
ROM version)
(Operation voltage of A-D conversion: 2.7 V to 5.5 V)
• High-speed mode
...... 4.0 V to 5.5 V (at 4.2 MHz oscillation frequency, for Mask
ROM version and One Time PROM version)
...... 2.5 V to 5.5 V (at 2.0 MHz oscillation frequency, for Mask
ROM version and One Time PROM version)
...... 2.0 V to 5.5 V (at 1.5 MHz oscillation frequency, for Mask
ROM version)
(Operation voltage of A-D conversion: 2.7 V to 5.5 V)
●Timers
Timer 1...................................... 8-bit timer with a reload register
Timer 2...................................... 8-bit timer with a reload register
Timer 3...................................... 8-bit timer with a reload register
Timer 4...................................... 8-bit timer with a reload register
0.75 µs (at 4.0 MHz oscillation frequency, in high-speed mode)
2048 words ✕ 10 bits
4096 words ✕ 10 bits
6144 words ✕ 10 bits
8192 words ✕ 10 bits
6144 words ✕ 10 bits
8192 words ✕ 10 bits
128 words ✕ 4 bits
256 words ✕ 4 bits
384 words ✕ 4 bits
384 words ✕ 4 bits
384 words ✕ 4 bits
384 words ✕ 4 bits
Eight independent I/O ports;
ports D6 and D7 are also used as CNTR0 and CNTR1, respectively.
4-bit I/O port; each pin is equipped with a pull-up function and a key-on wakeup function. Both
functions can be switched by software.
4-bit I/O port; each pin is equipped with a pull-up function and a key-on wakeup function. Both
functions can be switched by software.
3-bit input port; ports P20, P21 and P22 are also used as SCK, SOUT and SIN, respectively.
4-bit I/O port (2-bit I/O port for the 4513 Group); ports P30 and P31 are also used as INT0 and
INT1, respectively. The 4513 Group does not have ports P32, P33.
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 D6.
1-bit I/O; CNTR1 pin is also used as port D7.
1-bit input; INT0 pin is also used as port P30 and equipped with a key-on wakeup function.
1-bit input; INT1 pin is also used as port P31 and equipped with a key-on wakeup function.
8-bit programmable timer with a reload register.
8-bit programmable timer with a reload register is also used as an event counter.
8-bit programmable timer with a reload register.
8-bit programmable timer with a reload register is also used as an event counter.
10-bit wide, This is equipped with an 8-bit comparator function.
2 circuits (CMP0, CMP1)
8-bit ✕ 1
8 (two for external, four for timer, one for A-D, and one for serial I/O)
1 level
8 levels
CMOS silicon gate
32-pin plastic molded SDIP (32P4B)/LQFP(32P6B-A)
42-pin plastic molded SSOP (42P2R-A)
–20 °C to 85 °C
2.0 V to 5.5 V for Mask ROM version, 2.5 V to 5.5 V for One Time PROM version (Refer to the
electrical characteristics because the supply voltage depends on the oscillation frequency.)
1.8 mA (at VDD = 5.0 V, 4.0 MHz oscillation frequency, in middle- speed mode, output transis-
3.0 mA (at VDD = 5.0 V, 4.0 MHz oscillation frequency, in high-speed mode, output transistors
0.1 µA (at room temperature, VDD = 5 V, output transistors in the cut-off state)
Function
tors in the cut-off state)
in the cut-off state)
1-8
4513/4514 Group User’s Manual
PIN DESCRIPTION
Pin
VDD
VSS
VDCE
CNVSS
RESET
XIN
XOUT
D0–D7
P00–P03
P10–P13
P20–P22
P30–P33
P40–P43
P50–P53
AIN0–AIN7
CNTR0
CNTR1
INT0, INT1
SIN
SOUT
SCK
CMP0CMP0+
CMP1CMP1+
Name
Power supply
Ground
Voltage drop detec-
tion circuit enable
CNVSS
Reset input
System clock input
System clock output
I/O port D
(Input is examined
by skip decision.)
I/O port P0
I/O port P1
Input port P2
I/O port P3
I/O port P4
I/O port P5
Analog input
Timer input/output
Timer input/output
Interrupt input
Serial data input
Serial data output
Serial I/O clock
input/output
Voltage comparator
input
Voltage comparator
input
Input/Output
—
—
Input
—
I/O
Input
Output
I/O
I/O
I/O
Input
I/O
I/O
I/O
Input
I/O
I/O
Input
Input
Output
I/O
Input
Input
HARDWARE
PIN DESCRIPTION
Function
Connected to a plus power supply.
Connected to a 0 V power supply.
VDCE pin is used to control the operation/stop of the voltage drop detection circuit.
When “H” level is input to this pin, the circuit is operating. When “L” level is inpu to
this pin, the circuit is stopped.
Connect CNVSS to VSS and apply “L” (0V) to CNVSS certainly.
An N-channel open-drain I/O pin for a system reset. When the watchdog timer
causes the system to be reset or system reset is performed by the voltage drop detection circuit, the RESET pin outputs “L” level.
I/O pins of the system clock generating circuit. XIN and XOUT can be connected to
ceramic resonator. A feedback resistor is built-in between them.
Each pin of port D has an independent 1-bit wide I/O function. Each pin has an output latch. For input use, set the latch of the specified bit to “1.” The output structure
is N-channel open-drain.
Ports D6 and D7 are also used as CNTR0 and CNTR1, respectively.
Each of ports P0 and P1 serves as a 4-bit I/O port, and it can be used as inputs
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. Both
functions can be switched by software.
3-bit input port. Ports P20, P21 and P22 are also used as SCK, SOUT and SIN, respectively.
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 P30 and
P31 are also used as INT0 and INT1, respectively.
The 4513 Group does not have ports P32, P33.
4-bit I/O port. For input use, set the latch of the specified bit to “1.” The output
structure is N-channel open-drain. Ports P40–P43 are also used as analog input
pins AIN4–AIN7, respectively.
The 4513 Group does not have port P4.
4-bit I/O port. Each pin has a direction register and an independent 1-bit wide I/O
function. For input use, set the direction register to “0.” For output use, set the direction regiser to “1.” The output structure is CMOS.
The 4513 Group does not have port P5.
Analog input pins for A-D converter. AIN0–AIN3 are also used as voltage comparator input pins and AIN4–AIN7 are also used as port P4.
The 4513 Group does not have AIN4–AIN7.
CNTR0 pin has the function to input the clock for the timer 2 event counter, and to
output the timer 1 underflow signal divided by 2.
CNTR0 pin is also used as port D6.
CNTR1 pin has the function to input the clock for the timer 4 event counter, and to
output the timer 3 underflow signal divided by 2.
CNTR1 pin is also used as port D7.
INT0, INT1 pins accept external interrupts. They also accept the input signal to return the system from the RAM back-up state.
INT0, INT1 pins are also used as ports P3 0 and P31, respectively.
SIN pin is used to input serial data signals by software.
SIN pin is also used as port P22.
SOUT pin is used to output serial data signals by software.
SOUT pin is also used as port P21.
SCK pin is used to input and output synchronous clock signals for serial data transfer by software.
SCK pin is also used as port P20.
CMP0-, CMP0+ pins are used as the voltage comparator input pin when the voltage comparator function is selected by software.
CMP0-, CMP0+ pins are also used as AIN0 and AIN1.
CMP1-, CMP1+ pins are used as the voltage comparator input pin when the voltage comparator function is selected by software.
CMP1-, CMP1+ pins are also used as AIN2 and AIN3.
4513/4514 Group User’s Manual
1-9
HARDWARE
PIN DESCRIPTION
MULTIFUNCTION
Pin
D6
D7
P20
P21
P22
P30
P31
Notes 1: Pins except above have just single function.
2: The input of D
S
3: The 4513 Group does not have P4
CONNECTIONS OF UNUSED PINS
XOUT
VDCE
D0–D5
D6/CNTR0
D7/CNTR1
P20/SCK
P21/SOUT
P22/SIN
P30/INT0
P31/INT1
P32, P33
P40/AIN4–P43/AIN7
P50–P53 (Note 1)
AIN0/CMP0AIN1/CMP0+
AIN2/CMP1AIN3/CMP1+
P00–P03
P10–P13
Multifunction
CNTR0
CNTR1
SCK
SOUT
SIN
INT0
INT1
6, D7, P20–P22, CMP0-, CMP0+, CMP1-, CMP1+ and the input/output of P30, P31, P40–P43 can be used even when CNTR0, CNTR1,
CK, SOUT, SIN, INT0, INT1, and AIN0–AIN7 are selected.
Pin
Pin
CNTR0
CNTR1
SCK
SOUT
SIN
INT0
INT1
0/AIN4–P43/AIN7.
Connection
Open (when using an external clock).
Connect to VSS.
Connect to VSS, or set the output latch to
“0” and open.
Connect to VSS.
Connect to VSS, or set the output latch to
“0” and open.
Connect to VSS, or set the output latch to
“0” and open.
When the input mode is selected by software, pull-up to VDD through a resistor or
pull-down to VDD.
When selecting the output mode, open.
Connect to VSS.
Open or connect to VSS (Note 2)
Open or connect to VSS (Note 2)
Multifunction
D6
D7
P20
P21
P22
P30
P31
Pin
AIN0
AIN1
AIN2
AIN3
P40
P41
P42
P43
Notes 1: After system is released from reset, port P5 is in an input mode (di-
2: When the P0
(Note when the output latch is set to “0” and pins are open)
● After system is released from reset, port is in a high-impedance state un-
til it is set the output latch to “0” by software. Accordingly, the voltage
level of pins is undefined and the excess of the supply current may occur
while the port is in a high-impedance state.
● To set the output latch periodically by software is recommended because
value of output latch may change by noise or a program run away
(caused by noise).
their pull-up transistors (register PU0i=“0”) and also invalidate the
key-on wakeup functions (register K0i=“0”) by software. When
these pins are connected to V
tions are left valid, the system fails to return from RAM back-up
state. When these pins are open, turn on their pull-up transistors
(register PU0i=“1”) by software, or set the output latch to “0.”
Be sure to select the key-on wakeup functions and the pull-up
functions with every two pins. If only one of the two pins for the
key-on wakeup function is used, turn on their pull-up transistors by
software and also disconnect the other pin. (i = 0, 1, 2, or 3.)
SS and VDD)
Pin
CMP0CMP0+
CMP1CMP1+
AIN4
AIN5
AIN6
AIN7
2)
SS while the key-on wakeup func-
SS and VDD using the thickest wire at the
Multifunction
AIN0
AIN1
AIN2
AIN3
P40
P41
P42
P43
1-10
4513/4514 Group User’s Manual
PORT FUNCTION
Port
Port D
Port P0
Port P1
Port P2
Port P3
(Note 1)
Port P4
(Note 2)
Port P5
(Note 2)
Notes 1: The 4513 Group does not have P32 and P33.
Built-in key-on wakeup
function
(P30/INT0, P31/INT1)
DEFINITION OF CLOCK AND CYCLE
● System clock
The system clock is the basic clock for controlling this product.
The system clock is selected by the bit 3 of the clock control register MR.
Table Selection of system clock
Register MR
MR3
0
1
Note: f(XIN)/2 is selected after system is released from reset.
● Instruction clock
The instruction clock is a signal derived by dividing the system
clock by 3. The one instruction clock cycle generates the one
machine cycle.
● Machine cycle
The machine cycle is the standard cycle required to execute the
instruction.
System clock
f(XIN)
f(XIN)/2
4513/4514 Group User’s Manual
1-11
HARDWARE
PIN DESCRIPTION
PORT BLOCK DIAGRAMS
Key-on wakeup input
K0
0
IAP0 instruction
Pull-up
transistor
PU0
0
Register A
Ai
OP0A instruction
Key-on wakeup input
Register A
Ai
OP0A instruction
Key-on wakeup input
D
T
Q
K0
1
IAP0 instruction
D
Q
T
K0
2
IAP1 instruction
Pull-up
transistor
PU0
1
Pull-up
transistor
PU0
2
P00,P01
P02,P03
Register A
Ai
OP1A instruction
Key-on wakeup input
Register A
Ai
OP1A instruction
D
T
Q
K0
3
IAP1 instruction
D
T
Q
Pull-up
transistor
PU0
3
•
i represents 0, 1, 2, or 3.
•
This symbol represents a parasitic diode on the port.
P10,P11
P12,P13
1-12
4513/4514 Group User’s Manual
PORT BLOCK DIAGRAMS (continued)
Synchronous clock input for serial transfer
Synchronous clock output for serial transfer
J1
Register A
0
Register A
IAP2 instruction
J1
1
0
1
IAP2 instruction
HARDWARE
PIN DESCRIPTION
P20/SCK
Serial data output
Register A
Key-on wakeup input
External interrupt circuit
Register A
Ai
OP3A instruction
Register A
Serial data input
IAP2 instruction
IAP3 instruction
D
T
IAP3 instruction
J1
1
0
1
P21/SOUT
P22/SIN
P30/INT0,P31/INT1
Q
P32,P33
Ai
OP3A instruction
•
• Applied potential to ports P2
• i represents 0, 1, 2, or 3.
• The 4513 Group does not have ports P3
This symbol represents a parasitic diode on the port.
D
T
Q
0
—P22 must be VDD.
4513/4514 Group User’s Manual
2
, P33.
1-13
HARDWARE
PIN DESCRIPTION
PORT BLOCK DIAGRAMS (continued)
Q1
Decoder
Analog input
Q3
0
CMP0
Analog input
Analog input
Q3
1
Q3
A
IN0
/CMP0-
-
+
2
Q1
Decoder
A
IN1
/CMP0+
Q1
Decoder
A
IN2
/CMP1-
-
+
Analog input
Register A
Ai
OP4A instruction
Analog input
CMP1
IAP4 instruction
D
T
Q
Q3
3
Q1
Decoder
A
IN3
/CMP1+
P40/A
IN4
–P43/A
IN7
Q1
Decoder
•
• i represents 0, 1, 2, or 3.
• The 4513 Group does not have port P4.
This symbol represents a parasitic diode on the port.
1-14
4513/4514 Group User’s Manual
PORT BLOCK DIAGRAMS (continued)
Direction register FR0i
DTQ
Ai
OP5A instruction
Register A
IAP5 instruction
P50–P5
HARDWARE
PIN DESCRIPTION
3
Register Y
Decoder
CLD instruction
SD instruction
RD instruction
Skip decision
Clock input for timer 2 event count
DecoderRegister Y
CLD instruction
SD instruction
RD instruction
Timer 1 underflow signal divided by 2 or
signal of AND operation between
timer 1 underflow signal divided by 2 and
timer 2 underflow signal divided by 2
Skip decision
Clock input for timer 4 event count
Skip decision
(SZD instruction)
(SZD instruction)
S
R
Q
(SZD instruction)
S
R
W6
D0–D
5
Q
0
0
1
D6/CNTR0
DecoderRegister Y
CLD instruction
SD instruction
RD instruction
Timer 3 underflow signal divided by 2 or
signal of AND operation between
timer 3 underflow signal divided by 2 and
timer 4 underflow signal divided by 2
S
R
W6
2
0
Q
1
•
• Applied potential to ports D
This symbol represents a parasitic diode on the port.
• i represents 0, 1, 2, or 3.
• The 4513 Group does not have port P5.
4513/4514 Group User’s Manual
D7/CNTR1
0–D7
must be 12 V.
1-15
HARDWARE
PIN DESCRIPTION
0
/INT0
P3
I1
2
Falling
Rising
One-sided edge
0
1
detection circuit
Both edges
detection circuit
Wakeup
SNZI0
Skip
I1
1
0
EXF0
1
External 0
interrupt
1
/INT1
P3
External interrupt circuit structure
I2
2
Falling
Rising
0
1
SNZI1
One-sided edge
detection circuit
Both edges
detection circuit
Wakeup
Skip
This symbol represents a parasitic diode on the port.
I2
1
0
EXF1
1
External 1
interrupt
1-16
4513/4514 Group User’s Manual
FUNCTION BLOCK OPERATIONS
CPU
(1) Arithmetic logic unit (ALU)
The arithmetic logic unit ALU performs 4-bit arithmetic such as 4bit data addition, comparison, AND operation, OR operation, and
bit manipulation.
(2) Register A and carry flag
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.
HARDWARE
FUNCTION BLOCK OPERATIONS
<Carry>
(CY)
(M(DP))
Addition
(A)
Fig. 1 AMC instruction execution example
<Set>
SC instruction
RC instruction
CYA3 A2 A1 A0
ALU
<Result>
<Clear>
(3) Registers B and E
Register B is a 4-bit register used for temporary storage of 4-bit
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).
TABP p instruction
Specifying address
RAR instruction
A0CY A3 A2 A1
Fig. 2 RAR instruction execution example
Register BRegister A
Register E
Fig. 3 Registers A, B and register E
E7 E6 E5 E4 E3 E2 E1 E0
B3 B2 B1 B0
Register BRegister A
TAB instruction
A3 A2 A1 A0B3 B2 B1 B0
TEAB instruction
TABE instruction
A3 A2 A1 A0
TBA instruction
ROM
840
<Rotation>
PCH
p6 p5 p4 p3 p2 p1 p0
Immediate field
value p
Fig. 4 TABP p instruction execution example
DR2DR1DR0
The contents of
register D
4513/4514 Group User’s Manual
PCL
A3 A2 A1 A0
The contents of
register A
Low-order 4bits
Register A (4)
Middle-order 4 bits
Register B (4)
1-17
Loading...
+ 180 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.