Documente Academic
Documente Profesional
Documente Cultură
Notice
1.
2.
3.
4.
5.
6.
7.
All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please
confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to
additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights
of third parties by or arising from the use of Renesas Electronics products or technical information described in this document.
No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights
of Renesas Electronics or others.
You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software,
and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by
you or third parties arising from the use of these circuits, software, or information.
When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas
Electronics products or the technology described in this document for any purpose relating to military applications or use by
the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and
technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited
under any applicable domestic or foreign laws or regulations.
Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages
incurred by you resulting from errors in or omissions from the information included herein.
Renesas Electronics products are classified according to the following three quality grades: Standard, High Quality, and
Specific. The recommended applications for each Renesas Electronics product depends on the products quality grade, as
indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular
application. You may not use any Renesas Electronics product for any application categorized as Specific without the prior
written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for
which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way
liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an
application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written
consent of Renesas Electronics. The quality grade of each Renesas Electronics product is Standard unless otherwise
expressly specified in a Renesas Electronics data sheets or data books, etc.
Standard:
8.
9.
10.
11.
12.
Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots.
High Quality: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anticrime systems; safety equipment; and medical equipment not specifically designed for life support.
Specific:
Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare
intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation
characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or
damages arising out of the use of Renesas Electronics products beyond such specified ranges.
Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further,
Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to
guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a
Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire
control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because
the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system
manufactured by you.
Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable
laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS
Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with
applicable laws and regulations.
This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majorityowned subsidiaries.
(Note 2) Renesas Electronics product(s) means any product developed or manufactured by or for Renesas Electronics.
PM2
Port mode register 2
0: output, 1: input:
0
P
20
P2
Port register 2
P41
P40
15
14
13
12
11
P41
10
Address: FF48h
Read/Write
After reset: 67h
0
1
0
1
0
1
Address: FF49h
Read/Write
After reset: 9Ah
0
0
1
1
WDT
16-bit counter
0
1
0
1
0
WDTE
WDT enable register
on-chip pull-up
resistor can
connected.
P40
0
P
40
78K0S/KY1+
P40
P4
Port register 4
64-KB
Address Space
FFFFh
VSS
H
7
Interrupt enabled
0: Interrupt disabled (DI)
1: Interrupt enabled (EI)
10
PSW
Program status word
IE
15
14
13
12
11
10
CY
0
0
0
0
1
1
1
1
External Event
Counter Function
This function counts the
pulses input to the
TI000 pin. When the
count value matches
the value of compare
register 0 (CR000), this
function generates an
interrupt request. Use
the PRM00 register to
set the valid edge of the
input pulse.
Program Counter
1 4.1 0.2V
4V
2 3.9 0.2V
0: Disables operation
1: Enables operation
4 3.5 0.2V
5 3.3 0.15V
3V
6 3.1 0.15V
7 2.85 0.15V
VDD
P-ch
PU4
Pull-up resistor option
register 4
7
When the P47 pin
PU is used as an input
47 port, an on-chip
9 2.35 0.15V
POC detection 2.1 0.1V
potential
P47
Vss
Vss
External
clock
X1
X2
VDD PU4
Pull-up resistor option
register 4
6
When the P46
pin is used as
PU
an input port, an
46
Address: FFF3h
Read/Write
After reset: 02h
P46
on-chip pull-up
resistor can
connected.
6
PM
46
Can be used
for port functions.
P-ch
1
0
PP PP
CC1 CC0
1
PCC
1
Can be used
for port functions.
5
ES
11
4
ES
10
PPCC
0
0
Address: 0080h
Read/Write
After reset:
Undefined
7
1
DEFO DEFO
STS1 STS0
4
1
0
0
1
1
1/1
0
1
0
1
0: Used as P34,
1: Used as RESET pin
3
PMC
23
PM2
Port mode register 2
0: output, 1: input:
3
P
23
P2
Port register 2
PMC2
Port mode control
Register 2
0: Port, 1: A/D input
P23
1
0
OSTS
Address: FFF4h
OST OST Oscillation
0
0
0
0
0
0
Read/Write
S1 S0 stabilization time
After reset:
selection register
Undefined
The oscillation stabilization time that
elapses after the STOP mode
0
210 clock 0
The specified area is valid only
1
212 clock 0
when crystal/ceramic oscillation
0
215 clock 1
is selected.
1
217 clock 1
ANI3
fxp
LSRCM
Low-speed internal oscillation mode register
Address: FF58h, Read/Write, After reset: 00h
7
6
5
4
3
2
1
0
0
LSR
0 STOP
Not generated
Not generated
Generated on <A>
Generated on <A>
Generated on <A>
Generated on <A>
Generated on <A>
Generated on <A>
fRL
WDT(watchdog timer)
8-bit timer H1
PU4
Pull-up resistor option
register 4
2
PU
42
2
1
0
CRC CRC CRC
002 001 000
3
ES
01
VDD
P42
2
PM
42
PM4
Port mode register 4
0: Output, 1: Input
2
P
42
P4
Port register 4
CRC00
Capture/compare control
register 00
P-ch
15
14
13
6
5
4
3
2
1
0
OSP OSP TOC LVS LVR TOC TOE
T00 E00 004 00 00 001 00
PU4
VDD
Pull-up resistor option
register 4
3
When the P43
pin is used as
PU
an input port, an 43
TOC00
16-bit timer output
control register00
7
6
5
4
ES ES ES ES
110 100 010 000
1
0
PRM PRM
001 000
A/D
P43
PRM00
Prescaler Mode Register 00
PU3 VDD
Pull-up resistor option
register 3
2
When the P32
pin is used as
PU
an input port, an 32
P-ch
on-chip pull-up
resistor can
connected.
INTP1
16-bit
timer0 TMH1
3
PM
43
PM4
Port mode register 4
0: Output, 1: Input
3
P
43
P4
Port register 4
P-ch
on-chip pull-up
resistor can
connected.
P43
LVI
P32
2
ES
00
INTM0
External interrupt
mode register 0
Edge
detector
INTM0
IF0
IE
0
1
Interrupt request
signal
PM3
Port mode register 3
0: Output, 1: Input
2
P
32
P3
Port resistor 3
P32
2
PM
32
7
PSW
Program status word
Interrupt to CPU
MK0
Interrupt mask
flag register 0
MK0
Standby
release signal
Protect
byte
Program area
Option
byte
CALLT27
CALLT26
CALLT25
CALLT24
CALLT23
CALLT22
CALLT21
CALLT17
CALLT16
CALLT14
CALLT13
CALLT20
CALLT19
CALLT instruction jump table
CALLT12
CALLT11
CALLT18
CALLT15
CALLT10
CALLT9
CALLT8
CALLT7
CALLT6
CALLT5
CALLT4
CALLT2
CALLT1
CALLT0
CALLT3
Program area
16-bit timer
INTTM000
8-bit timer H
INTTMH1
External interrupt 0
INTP0
Low-voltage detection
GRJJG
1.44 mm
5.72 mm (225)
0.65 mm
A/D Converter
INTAD
16-bit timer
INTTM010
Reserved
Reset input
Reserved
INTLVI
0
Option byte
Controls of Reset
RM
CE
Reset Source
(1) External reset input via RESET pin
(2) Internal reset by WDT (watchdog timer)
program loop detection
(3) Internal reset by comparison of supply
voltage and detection voltage of POC
(power-on-clear circuit)
(4) Internal reset by comparison of supply
voltage and detection
voltage of LVI (low-voltage detector)
External interrupt 1
INTP1
P34
Reset
1: LVI (Low-voltage
detection) reset
Standby Function
16
5.20.3
9
4.40.2
12
6.20.3
1
HALT mode
STOP mode
(CPU operation is
(CPU operation is
stopped. The oscillation ofstopped.
the
The oscillation
: Operable
: Operation stops. system clock continues.) of the system clock is
also stopped.)
LVI(Low-voltage detector)
System clock
I/O port
16-bit timer
8-bit timer H1
Note 1
WDT (Watchdog)
Note 2
Note 2
A/D converter
CPU
PU4
Pull-up resistor option
register 4
4
When the P44
PU
pin is used as
an input port, an 44
P44
P44
VDD
P-ch
P-ch
on-chip pull-up
resistor can
connected.
PM4
Port mode register 4
0: Output, 1: Input
4
P
44
P4
Port register 4
4
PM
44
11
10
ADCRH
8-bit A/D conversion result register
Read, After reset: Undefined
7
6
5
4
3
2
1
MSB
A/D conversion result
INTAD signal
PU4 VDD
Pull-up resistor option
register 4
5
When the P45
PU
pin is used as
an input port, an 45
(FF1Ah)
ADCR
10-bit A/D conversion result register
Read, After reset: Undefined
15 14 13 12 11 10
9
8
MSB
0
0
0
0
0
0
D/A
converter
Successive approximation
register(SAR)
VDD
P45
VSS
2
0
LSB
Generating a voltage
to be compared.
P45
(FF18h)
7
6
5
4
3
2
1
0
Address: FF81h
ADS ADS
Read/Write
0
0
0
0
0
0
1
0
After reset: 00h
ADS Analog input channel specification register
[0:0] ANI0
[0:1] ANI1
A/D conversion completion
[1:0] ANI2
[1:1] ANI3
Address: FF80h
Read/Write
After reset: 00h
7
AD
CS
0: Stops conversion
operation
1: Enable
6
0
5
FR
2
4
FR
1
3
FR
0
Conversion time
selection
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
36/fxp
48/fxp
72/fxp
112/fxp
72/fxp
96/fxp
144/fxp
224/fxp
0
AD
CE
P-ch
on-chip pull-up
resistor can
connected.
Voltage comparator
(FF19h)
LIO
CP
Interrupt
request generation
No change
No change
<A>
<B>
<A>
<B>
CALLT28
CPU clock
Option
byte
TO00 inversion
timing selection
CALLT29
TO00
16
TMC00
16-bit timer mode
control register 00
CALLT30
fCPU
Low-speed internal
oscillator (typ 240kHz)
Selector
3
2
1
0
TMC TMC TMC OVF
003 002 001 00
CALLT31
Option byte
P21
PM4
Port mode register 4
0: Output, 1: Input
0
P
45
P4
Port register 4
0
PM
45
ANI0
Sample
&
hold
circuit
ANI1
PU2
Pull-up resistor option
register 2
When the P22
2
pin is used as
PU
an input port, an
22
on-chip pull-up
ANI2
ANI3
ADM
A/D converter mode register
VDD
P-ch
resistor can
connected.
X2
2
PMC2
Port mode control PMC
22
Register 2
0: Port, 1: A/D input
P22
P22
PM2
Port mode register 2
0: Output, 1: Input
2
P
22
P2
Port register 2
2
PM
22
P22/X2/ANI2
System clock
Processor
Clock
Control
(PCC)
1/4
PCC Selector
P23
3
PM
23
Selector
PCC
PCC register
1/4
1
PM2
Port mode register 2 PM
0: Output, 1: Input 21
1
P
21
P2
Port resistor 2
Oscillation/Stop setting of
High-Speed internal
oscillator
When the high-speed internal
oscillation clock is not
selected with the option byte,
the clock automatically stops
oscillation to reduce power
consumption.
fx
1/2
Address: FF61h
Read/write
After reset: 00h
fRH
1/1
Selection by the
option byte
Selector
SEL1 SEL0
X2
2
1
Option byte OSC OSC
X1
External interrupt
High-speed internal
oscillator (typ 8MHz)
8MHz(typ.)
Oscillation can be stopped
by the STOP instruction.
P121/X1, P122/X2 pin can be
used for port functions.
PPCC
Pre-PCC register
0: 1/1
1: 1/4
P46
X1
X2
[0:0] 1/1
[0:1] 1/2
[1:0] 1/4
Address: FFFBh
Read/Write
After reset: 02h
PM4
Port mode register 4
0: output, 1: input:
6
P
46
P4
Port register 4
resistor can
connected.
P23/X1/ANI3
Can be used
for port functions.
500KHz to 10MHz
Oscillation can be stopped
by the STOP instruction.
P122/X2 pin can be used for port functions.
P46
PU2
Pull-up resistor option
register 2
When the P23
3
pin is used as
PU
an input port, an
23
on-chip pull-up
VDD
X1
(FF16h)
Address: FF63h
Read/write
After reset: 00h
0.65
P47
500KHz to 10MHz
Oscillation can be stopped
by the STOP instruction
P-ch
Vss
P45
PM4
Port mode register 4
0: output, 1: input:
7
P
47
P4
Port register 4
P44
7
PM
47
0
1
0
1
0
1
0
1
P21
INTP0
P42
Outline dimension
8 2.6 0.15V
2V
INTLVI signal
10
(FF17h)
0
0
1
1
0
0
1
1
Package information
(Only when LVIMD=0)
3 3.7 0.2V
11
fxp/4
TI000
Read/write
After reset: 0000h
2
1
0
1
PMC2
Port mode control PMC
21
Register 2
0: Port, 1: A/D input
TI000
fxp/256
P-ch
P34/RESET
VDD
0 4.3 0.2V
12
In the case of
a capture
In the case of
a compare
(FF12h)
Address: FF62h
Read/write
After reset: 00h
One-shot Pulse
Function
When a trigger is input,
this function outputs an
inactive level until the
level reaches the value
of compare register 1
(CR010). After that, this
function outputs an
active level until the level
reaches the value of
compare register 0
(CR000). Finally, this
function outputs an
inactive level again.
POC/LVI
When VDD is lower than
each voltage below,
low-voltage detection is enabled.
13
ANI1
<A> Match between TM00 and CR000 or match between TM00 and CR010
<B> Match between TM00 and CR000, match between TM00 and CR010, or TI000 pin valid edge
PPG (Programmable
Pulse Generator)
Function
This function outputs
pulses by setting
CR000 as the cycle
value and CR010 as
the duty value.
000xh
5V
TI010
7 6 5 4 3 2 1
AC
Carry flag
0: Non-existent
1: Existent
Zero flag
0: Used to be a value other than 0
1: Used to be 0
11
PU2 VDD
Pull-up resistor option
register 2
1
PU
21
TI000
Read
PRM001
After reset: 0000h
PRM000
2
1
0
In the case of
a capture
Selection of operation
mode and clear mode
7
6
5
4
3
2
1
Address: FFE4h
AD TMM TMM TMM PMK PMK LVI
Read/Write
0 MK
After reset: FFh MK K010 K000 KH1 1
SP Stack pointer
B
6
12
13
INTP0
14
INTLVI
15
14
Read/write
After reset: 0000h
CRC001
2
1
0
INTP1
General-purpose registers
(When two of them are connected, the connected
registers can be used as a 16-bit register.)
3
2
1
0
7
6
5
4
3
In the case of
a compare
10
INTTMH1
Processor Registers
11
INTTM000
0000h
12
7
6
5
4
3
2
1
0
Address: FFE0h
IF0
TMIF TMIF TMIF
Read/Write
ADIF
PIF1 PIF0 LVIIF 0
Interrupt request
010 000 H1
After reset: 00h
flag register 0
0: No interrupt requests are generated.
1: An interrupt request is generated, and the request is being made.
13
INTAD
0400h
03FFh
(FF14h)
Address: FF60h
Read/write
After reset: 00h
Output
controller
Pulse Width
Measuring Function
This function captures
the TM00 counter value
when the edge of the
pulse input to the TI000
or TI010 pin as a trigger
is detected. The pulse
width can be calculated
by the values at the time
of the rising edge and
falling edge.
Address: FFECh
Read/Write
After reset: 00h
0800h
07FFh
(FF13h)
15
CR010
16-bit timer
capture/compare
register 010
Use prohibited
Use prohibited
INTTM010
Use prohibited
1000h
0FFFh
Interrupt Control
FF00h
FE80h
Match
One-page Manual
PM4
Port mode register 4
0: output, 1: input:
14
fRL/128
4
3
2
1
0
WDC WDC WDC WDC WDC WDTM
1
WDT mode register
S4 S3 S2 S1 S0
WDT
Watchdog
Timer
15
INTTM010 signal
fxp/4096
Address: FF70h
Read/Write
After reset: 00h
fxp/64
10
Match
fxp/16
0
0
1
1
0
0
11
(FF15h)
INTTM000 signal
TM00
16-bit timer
Counter 00
12
fxp
Address: FF0Fh
Read/Write
After reset: 00h
13
P32/INTP1
7
6
5
4
3
2
1
0
TMHMD1
TMH CKS CKS CKS TMM TMM TOL TO
8-bit timer H
mode register 1 E1 12 11 10 D11 D10 EV1 EN1
PU4
VDD Pull-up resistor option
register 4
0
When the P40
pin is used as
PU
an input port, an
40
0
PM
40
14
P43
P-ch
INTTMH1 signal
TMH1
8-bit Timer H1
PM4
Port mode register 4
0: output, 1: input:
1
P
41
P4
Port register 4
CR000
15
16-bit timer
capture/compare
register 000
Address: FF0Eh
P42
1
PM
41
Match
P20
resistor can
connected.
fxp/4
CMP11
8-bit timer H
compare register 11
PU4
Pull-up resistor option
register 4
When the P41
1
PU pin is used as
an input port, an
41
on-chip pull-up
P-ch
Output
controller
TOH1
VDD
Selector
Read/Write
TMH1
8-bit timer
counter H1
TI000
P20
0
PM
20
Match
ANI0
PMC2
Port mode control
Register 2
0: Port, 1: A/D input
Selector
0
PMC
20
Selector
chip pull-up
resistor can
connected.
CMP01
8-bit timer H
compare register 01
Selector
P-ch
VDD PU2
Pull-up resistor option
register 2
0
When the P20 pin
PU
is used as an
20
input port, an on-
P21/ANI1/TI010/TO00/INTP0
P20/ANI0/TI000/TOH1