All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).
www.renesas.com
Rev.2.03 Jun 2012
Notice
1. 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.
2. 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.
3. 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.
4. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration,
modification, copy or otherwise misappropriation of Renesas Electronics product.
5. Renesas Electronics products are classified according to the following two quality grades: “Standard” and “High Quality”. The
recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below.
“Standard”: Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots etc.
Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to
human life or bodily injury (artificial life support devices or systems, surgical implantations etc.), or may cause serious property
damages (nuclear reactor control systems, military equipment etc.). 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 for which it is not intended. 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 which the product is not intended by Renesas
Electronics.
6. 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.
7. 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 systems manufactured by
you.
8. 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.
9. 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. You should not use
Renesas Electronics products or 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. When exporting the Renesas
Electronics 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.
10. It is the responsibility of the buyer or distributor of Renesas Electronics products, who distributes, disposes of, or otherwise
places the product with a third party, to notify such third party in advance of the contents and conditions set forth in this
document, Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of
unauthorized use of Renesas Electronics products.
11. This document may not be reproduced or duplicated in any form, in whole or in part, without prior written consent of Renesas
Electronics.
12. 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 majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
(2012.4)
NOTES FOR CMOS DEVICES
(1) VOLTAGE APPLICATION WAVEFORM AT INPUT PIN: Waveform distortion due to input noise or a
reflected wave may cause malfunction. If the input of the CMOS device stays in the area between VIL
(MAX) and VIH (MIN) due to noise, etc., the device may malfunction. Take care to prevent chattering noise
from entering the device when the input level is fixed, and also in the tra nsition period when the input level
passes through the area between VIL (MAX) and VIH (MIN).
(2) HANDLING OF UNUSED INPUT PINS: Unconnected CMOS device inputs can be cause of malfunction. If
an input pin is unconnected, it is possible that an internal input level may be generate d due to noise, etc.,
causing malfunction. CMOS devices behave differently than Bipolar or NMOS devices. Input levels of
CMOS devices must be fixed high or low by using pull-up or pull-do wn circuitry. Each unused pin should be
connected to VDD or GND via a resistor if there is a possibility that it will be an output pin. All handling
related to unused pins must be judged separately for each device and according to related specifications
governing the device.
(3) PRECAUTION AGAINST ESD: A strong electric field, when exposed to a MOS device, can cause
destruction of the gate oxide and ultimately degrade the device operation. Steps must be taken to stop
generation of static electricity as much as possible, and quickly dissipate it when it has occurred.
Environmental control must be adequate. When it is dry, a humidifier should b e used. It is recommended
to avoid using insulators that easily build up static electricity. Semiconductor devices must be stored and
transported in an anti-static container, static shielding bag or conductive material. All test and measurement
tools including work benches and floors should be grounded. The operator should be gr oun ded usin g a wrist
strap. Semiconductor devices must not be touched with bare hands. Similar precautions need to be taken
for PW boards with mounted semiconductor devices.
(4) STATUS BEFORE INITIALIZATION: Power-on does not necessarily define the initial status of a MOS
device. Immediately after the power source is turned ON, devices with reset functions have not yet been
initialized. Hence, power-on does not guarantee output pin levels, I/O settings or contents of registers. A
device is not initialized until the reset signal is received. A reset operation must be executed immediately
after power-on for devices with reset functions.
(5) POWER ON/OFF SEQUENCE: In the case of a device that uses different power supplies for the internal
operation and external interface, as a rule, switch on the e xternal power suppl y after switching on th e internal
power supply. When switching the power supply off, as a rule, switch off the external power supply and then
the internal power supply. Use of the reverse po wer on/off sequences may result in the application of an
overvoltage to the internal elements of the device, causing malfunction and degr adation of internal elements
due to the passage of an abnormal current. The correct po wer on/off sequence must be judged separately
for each device and according to related specifications governing the device.
(6) INPUT OF SIGNAL DURING POWER OFF STATE : Do not input signals or an I/O pull-up power supply
while the device is not powered. The current injection that results from input of such a signal or I/O pull-up
power supply may cause malfunction and the abnormal current that passes in the device at this time may
cause degradation of internal elements. Input of signals during the power off state must be judged
separately for each device and according to related specifications governing the device.
How to Use This Manual
ReadersThis manual is intended for user engineers who wish to understand the functions of the
78K0/Fx2-L microcontrollers and design and develop application system s and programs for
these devices.
The target products are as follows.
• 78K0/FY2-L:
• 78K0/FA2-L:
• 78K0/FB2-L:
Purpose This manual is intended to give users an understanding of the functions described in the
Organization below.
Organization The manual for the 78K0/Fx2-L microcontrollers is separated into two parts: this manual
and the instructions edition (common to the 78K0 microcontrollers).
μ
PD78F0854, 78F0855, 78F0856
μ
PD78F0857, 78F0858, 78F0859
μ
PD78F0864, 78F0865
78K0/Fx2-L
User’s Manual
(This Manual)
78K/0 Series
User’s Manual
Instructions
• Pin functions
• Internal block functions
• Interrupts
• Other on-chip peripheral functions
• Electrical specifications
How to Read This Manual It is assumed that the readers of this manual have general knowledge of electrical
engineering, logic circuits, and microcontrollers.
• To gain a general understanding of functions:
→ Read this manual in the order of the CONTENTS. The mark “<R>” shows major
revised points. The revised points can be easily searched by copying an “<R>” in the
PDF file and specifying it in the “Find what.” field.
• How to interpret the register format:
→ For a bit number enclosed in angle brackets, the bit name is defined as a reserved
word in the RA78K0, and is defined as an sfr variable using the #pragma sfr directive
in the CC78K0.
• To know details of the 78K0 microcontroller instructions:
→ Refer to the separate document 78K/0 Series Instructions User’s Manual
(U12326E).
Conventions Data significance: Higher digits on the left and lower digits on the right
Active low representations: ××× (overscore over pin and signal name) Note: Footnote for item marked with Note in the text
Caution: Information requiring particular attention
Remark: Supplementary information
Numerical representations: Binary
Decimal
Hexadecimal
• CPU functions
• Instruction set
• Explanation of each instruction
...
×××× or ××××B
...
××××
...
××××H
Related DocumentsThe related documents indicated in this publication may include preliminary versions.
However, preliminary versions are not marked as such.
Documents Related to Devices
Document Name Document No.
78K0/Fx2-L User’s Manual U19856E
78K/0 Series Instructions User’s Manual U12326E
78K0 Microcontrollers User’s Manual Self Programming Library Type 01 U18274E
78K0 Microcontrollers Self Programming Library Type 01 Ver. 3.10 Operating Precautions (Notification
Documents Related to Development Tools (Hardware) (User’ s Manual)
Document Name Document No.
QB-78K0FX2L In-Circuit Emulator To be prepared
QB-MINI2 On-Chip Debug Emulator with Programming Function U18371E
QB-Programmer Programming GUI Operation U18527E
Documents Related to Flash Memory Programming (User’s Manual)
Document Name Document No.
PG-FP5 Flash Memory Programmer U18865E
Caution The related documents listed above are subject to change without notice. Be sure to use the latest
version of each document for designing.
Documents Related to Development Tools (Software)
Document Name Document No.
Note 1
Operation U17199E
Language U17198E
Structured Assembly Language U17197E
Note 1
Operation U17201E
Language U17200E
Note 2
Operation U18601E SM+ System Simulator User’s Manual
User Open Interface U18212E
Notes 1. This document is installed into the PC together with the tool when installing RA78K0 Ver. 4.01. For
descriptions not included in “78K0 Assembler Package RA78K0 Ver. 4.01 Operating Prec autions”, refer to the
user’s manual of RA78K0 Ver. 3.80.
2. This document is installed into the PC together with the tool when installing CC78K0 Ver. 4.00. For
descriptions not included in “78K0 C Compiler CC78K0 Ver. 4.00 Operating Precautions”, refer to the user’s
manual of CC78K0 Ver. 3.70.
3. PM plus Ver. 5.20 is the integrated development environment included with RA78K0 Ver. 3.80.
4. PM+ Ver. 6.30 is the integrated development environment included with RA78K0 Ver. 4.01. Software tool (assembler, C compiler, debugger, and simulator) products of different versions can be managed.
Other Documents
Document Name Document No.
SEMICONDUCTOR SELECTION GUIDE − Products and Packages − X13769X
Semiconductor Device Mount Manual Note
Quality Grades on NEC Semiconductor Devices C11531E
NEC Semiconductor Device Reliability/Quality Control System C10983E
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD) C11892E
Note See the “Semiconductor Device Mount Manual” website (http://www2.renesas.com/pkg/en/mount/index.html).
Caution The related documents listed above are subject to change without notice. Be sure to use the latest
version of each document when designing.
All trademarks and registered trademarks are the property of their respective owners.
EEPROM is a trademark of Renesas Electronics Corporation.
Windows is a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries.
SuperFlash is a registered trademark of Silicon Storage Technology, Inc. in several countries including the United States
and Japan.
®
Caution: This product uses SuperFlash
technology licensed from Silicon Storage Technology, Inc.
3.2.1 Control registers ................................................................................................................................ 57
3.4.3 Direct addressing............................................................................................................................... 73
3.4.4 Short direct addressing...................................................................................................................... 74
3.4.5 Special function register (SFR) addressing ....................................................................................... 75
3.4.7 Based addressing.............................................................................................................................. 77
3.4.8 Based indexed addressing ................................................................................................................ 78
CHAPTER 4 PORT FUNCTIONS...........................................................................................................80
4.1 Port Functions..............................................................................................................................80
4.2 Port Configuration........................................................................................................................84
4.2.1 Port 0................................................................................................................................................. 85
4.2.2 Port 2................................................................................................................................................. 88
4.2.3 Port 3................................................................................................................................................. 94
4.2.4 Port 6............................................................................................................................................... 103
4.2.5 Port 7............................................................................................................................................... 106
4.2.6 Port 12............................................................................................................................................. 108
4.3 Registers Controlling Port Function ........................................................................................ 110
4.4 Port Function Operations..........................................................................................................120
4.4.1 Writing to I/O port............................................................................................................................. 120
4.4.2 Reading from I/O port......................................................................................................................120
4.4.3 Operations on I/O port.....................................................................................................................120
4.5 Settings of Port Mode Register and Output Latch When Using Alternate Function...........121
4.6 Cautions on 1-bit Memory Manipulation Instruction for Port Register n (Pn) ..................... 127
18.2 Standby Function Operation................................................................................................... 561
18.2.1 HALT mode.................................................................................................................................... 561
24.4.3 Port pins ........................................................................................................................................ 615
24.4.5 Other signal pins............................................................................................................................ 615
24.4.6 Power supply.................................................................................................................................615
24.4.7 On-board writing when connecting crystal/ceramic resonator ....................................................... 616
• 16-bit timer X … PWM output, operation in conjunction with an external signal, synchronous output
of up to four channels (available only in 78K0/FB2-L), A/D conversion trigger
generation
• 16-bit timer/event counter … PPG output, capture input, external event co unter input
Power-on-clear (POC) circuit
Low-voltage detector (LVI) circuit (An interrupt/reset (selectable) is generated when the detection voltage is
reached))
• Detection voltage: Selectable from sixteen levels between 1.91 and 4.22 V
Single-power-supply flash memory
• Flash self programming enabled
• Software protection function: Protected from outside party copying (no flash reading command)
Safety function
• Watchdog timer operated by clock independent from CPU
… A hang-up can be detected even if the system clock stops
• Supply voltage drop detectable by LVI
… Appropriate processi ng can be executed before the supply voltage drops below the operation voltage
• Equipped with option byte function
… Important system operation settings set in hardware
On-chip debug function …Available to control for the target device, and to reference memory
Assembler and C language supported
Enhanced development environment
• Support for full-function emulator (IECUBE), and simplified emulator (MINICUBE2)
Power supply voltage: V
Operating ambient temperature: • (A) grade products: T
• (A2) grade products: TA = −40 to +125°C
UART6 IICA CSI11
1 ch 1 ch
1 ch
DD = 1.8 to 5.5 V
A = −40 to +85°C
−
R01UH0068EJ0203 Rev.2.03 16
Jun 29, 2012
78K0/Fx2-L CHAPTER 1 OUTLINE
1.2 Ordering Information
[Part Number]
μ
PD78F08xy ΔΔ× - ××× -×
Product Type
F Flash memory version
[Example of Part Number]
μ
PD78F08 54 MA-A-FAA-G
Semiconductor
G
Quality Grade
A Special (TA = −40 to +85°C)
A2 Special (TA = −40 to +125°C)
AV
ANI0/P20
ANI1/P21
ANI2/P22
ANI3/P23/CMP2+
P00/TI000/INTP0
P01/TO00/TI010
P30/TOH1/TI51/INTP1
ANI0 to ANI3: Analog Input RESET: Reset
REF: Analog Reference RxD6: Receive Data
AV
Voltage SCLA0: Serial Clock Input/Output
CMP2+: Comparator Input SDAA0: Serial Data Input/Output
EXCLK: External Clock Input TI000, TI010, TI51: Timer Input
(Main System Clock) TO00, TOH1: Timer Output
INTP0, INTP1: External Interrupt TOOLC0: Clock Input for Tool
Input TOOLD0: Data Input/Output for Tool
P00, P01: Port 0 TxD6: Transmit Data
P20 to P23: Port 2 V
P30: Port 3 V
P60, P61: Port 6 X1, X2: Crystal Oscillator
P121, P122: Port 12 (Main System Clock)
REGC: Regulator Capacitance
DD: Power Supply
SS: Ground
Cautions 1. V
SS functions alternately as the ground potential of the A/D converter. Be sure to connect VSS to
a stabilized GND (= 0 V).
2. Connect the REGC pin to V
SS via a capacitor (0.47 to 1
μ
F).
3. ANI0/P20, ANI1/P21, ANI2/P22, and ANI3/P23/CMP2+ are set in the analog input mode after
release of reset.
R01UH0068EJ0203 Rev.2.03 19
Jun 29, 2012
78K0/Fx2-L CHAPTER 1 OUTLINE
1.3.2 78K0/FA2-L (20 pins)
• 20-pin plastic SSOP (7.62 mm (300))
AV
ANI5/P25/CMP1+
ANI4/P24/CMP0+
P60/SCLA0/TxD6
P61/SDAA0/RxD6
RESET
P122/X2/EXCLK/TOOLD0
P121/X1/TOOLC0
REGC
V
V
1
2
3
4
5
6
7
8
SS
DD
9
10
20
19
18
17
16
15
14
13
12
11
ANI0 to ANI5: Analog Input RESET: Reset
REF: Analog Reference RxD6: Receive Data
AV
Voltage SCLA0: Serial Clock Input/Output
CMP0+ to CMP2+: Comparator Input SDAA0: Serial Data Input/Output
EXCLK: External Clock Input TI000, TI010, TI51: Timer Input
(Main System Clock) TO00, TOH1: Timer Output
INTP0 to INTP3: External Interrupt TOOLC0, TOOLC1: Clock Input for Tool
Input TOOLD0, TOOLD1: Data Input/Output for Tool
P00, P01: Port 0 TOX00, TOX01: Timer Output
P20 to P25: Port 2 TxD6: Transmit Data
P30 to P32: Port 3 V
P60, P61: Port 6 V
P121, P122: Port 12 X1, X2: Crystal Oscillator
REGC: Regulator Capacitance (Main System Clock)
DD: Power Supply
SS: Ground
Cautions 1. V
SS functions alternately as the ground potential of the A/D converter. Be sure to connect VSS to
a stabilized GND (= 0 V).
2. Connect the REGC pin to V
SS via a capacitor (0.47 to 1
μ
3. ANI0/P20, ANI1/P21, ANI2/P22, ANI3/P23/CMP2+, ANI4/P24/CMP0+, and ANI5/P25/CMP1+ are set in
the analog input mode after release of reset.
REF:Analog Reference Voltage SCLA0, SCK11: Serial Clock Input/Output
AV
SS:Analog Ground SDAA0: Serial Data Input/Output
AV
CMP0+ to CMP2+: Comparator Input SI11: Serial Data Input
SO11: Serial Data Output EXCLK: External Clock Input
(Main System Clock) SSI11: Serial Interface Chip
CMPCOM: Comparator Common Input TI000, TI010, TI51: Timer Input
INTP0 to INTP5: External Interrupt Input TO00, TOH1: Timer Output
P00 to P02: Port 0 TOOLC0, TOOLC1: Clock Input for Tool
P20 to P27: Port 2 TOOLD0, TOOLD1: Data Input/Output for Tool
P30 to P37: Port 3 TOX00, TOX01,
P60, P61: Port 6 TOX10, TOX11: Timer Output
P70: Port 7 TxD6: Transmit Data
P121, P122: Port 12 V
REGC: Regulator Capacitance V
RESET: Reset X1, X2: Crystal Oscillator
(Main System Clock)
DD: Power Supply
SS: Ground
Cautions 1. Connect the REGC pin to V
SS via a capacitor (0.47 to 1
μ
F).
2. ANI0/P20, ANI1/P21, ANI2/P22, ANI3/P23/CMP2+, ANI4/P24/CMP0+, ANI5/P25/CMP1+,
ANI6/P26/CMPCOM, ANI7/P27, and ANI8/P70 are set in the analog input mode after release of
reset.
Remark Functions in angle brackets < > can be assigned by setting the input switch control register (MUXSEL).
R01UH0068EJ0203 Rev.2.03 21
Jun 29, 2012
78K0/Fx2-L CHAPTER 1 OUTLINE
1.4 Block Diagram
1.4.1 78K0/FY2-L (16 pins)
TO00/TI010/P01
TI000/P00
RxD6/P61<LINSEL>
TI51/P30
TOH1/P30
RxD6/P61
TxD6/P60
SDAA0/P61
SCLA0/P60
AV
REF
ANI0/P20-ANI3/P23
CMP2+/P23
16-bit TIMER
16-bit TIMER/
EVENT COUNTER 00
8-bit TIMER
8-bit TIMER
INTERNAL
LOW-SPEED
OSCILLATOR
WATCHDOG TIMER
SERIAL
INTERFACE UART6
LINSEL
SERIAL
INTERFACE IICA
A/D CONVERTER
4
COMPARATOR
X0
51
H1
78K/0
CPU
CORE
INTERNAL
HIGH-SPEED
RAM
FLASH
MEMORY
PORT 0
PORT 2
PORT 3
PORT 6
PORT 12
POWER ON CLEAR/
LOW VOLTAGE
INDICATOR
RESET CONTROL
ON-CHIP DEBUG
SYSTEM
CONTROL
INTERNAL
HIGH-SPEED
OSCILLATOR
VOLTAGE
REGULATOR
2
P00, P01
4
P20-P23
P30
2
P60, P61
2
P121, P122
POC/LVI
CONTROL
TOOLC0/X1
TOOLD0/X2
RESET
X1/P121
X2/EXCLK/P122
REGC
RxD6/P61<LINSEL>
INTP0/P00
INTP1/P30
INTERRUPT
CONTROL
V
V
SS
DD
Cautions 1. VSS functions alternately as the ground potential of the A/D converter. Be sure to connect VSS to
a stabilized GND (= 0 V).
2. Connect the REGC pin to V
SS via a capacitor (0.47 to 1
μ
F).
3. ANI0/P20, ANI1/P21, ANI2/P22, and ANI3/P23/CMP2+ are set in the analog input mode after
release of reset.
R01UH0068EJ0203 Rev.2.03 22
Jun 29, 2012
78K0/Fx2-L CHAPTER 1 OUTLINE
1.4.2 78K0/FA2-L (20 pins)
TOX00/P31
TOX01/P32
16-bit TIMER
X0
PORT 0
2
P00, P01
TO00/TI010/P01
RxD6/P61<LINSEL>
INTP1/P30, INTP2/P31, INTP3/P32
TI000/P00
TI51/P30
TOH1/P30
RxD6/P61
TxD6/P60
SDAA0/P61
SCLA0/P60
AV
REF
ANI0/P20-ANI5/P25
CMP+/P24,
CMP1+/P25,
CMP2+/P23
RxD6/P61<LINSEL>
INTP0/P00
6
3
3
16-bit TIMER/
EVENT COUNTER 00
8-bit TIMER
8-bit TIMER
LOW-SPEED
OSCILLATOR
WATCHDOG TIMER
SERIAL
INTERFACE UART6
SERIAL
INTERFACE IICA
A/D CONVERTER
COMPARATOR
INTERRUPT
CONTROL
51
H1
INTERNAL
LINSEL
78K/0
CPU
CORE
INTERNAL
HIGH-SPEED
RAM
V
DD
FLASH
MEMORY
V
SS
PORT 2
PORT 3
PORT 6
PORT 12
POWER ON CLEAR/
LOW VOLTAGE
INDICATOR
RESET CONTROL
ON-CHIP DEBUG
SYSTEM
CONTROL
INTERNAL
HIGH-SPEED
OSCILLATOR
VOLTAGE
REGULATOR
6
P20-P25
3
P30-P32
2
P60, P61
2
P121, P122
POC/LVI
CONTROL
TOOLC0/X1, TOOLC1/P31
TOOLD0/X2, TOOLD1/P32
RESET
X1/P121
X2/EXCLK/P122
REGC
Cautions 1. V
SS functions alternately as the ground potential of the A/D converter. Be sure to connect VSS to
a stabilized GND (= 0 V).
2. Connect the REGC pin to V
SS via a capacitor (0.47 to 1
μ
F).
3. ANI0/P20, ANI1/P21, ANI2/P22, ANI3/P23/CMP2+, ANI4/P24/CMP0+, and ANI5/P25/CMP1+ are set in
the analog input mode after release of reset.
R01UH0068EJ0203 Rev.2.03 23
Jun 29, 2012
78K0/Fx2-L CHAPTER 1 OUTLINE
1.4.3 78K0/FB2-L (30 pins)
TOX00/P31
TOX01/P32
16-bit TIMER
X0
PORT 0
3
P00 to P02
TOX10/P33
TOX11/P34
TO00/TI010/P01
<TI000>/P121
TI000/P00
RxD6/P61 (LINSEL)
TI51/P30
TOH1/P30
RxD6/P61
TxD6/P60
SDAA0/P61
SCLA0/P60
SCK11/P35
SI11/P36
SO11/P37
SSI11/P02
AV
AV
ANI0/P20 to ANI7/P27
ANI8/P70
CMP0+/P24,
CMP1+/P25,
CMP2+/P23
CMPCOM/P26
REF
16-bit TIMER
16-bit TIMER/
EVENT COUNTER 00
8-bit TIMER/
EVENT COUNTER 51
8-bit TIMER
LOW-SPEED
OSCILLATOR
WATCHDOG TIMER
SERIAL
INTERFACE UART6
SERIAL
INTERFACE IICA
SERIAL
INTERFACE CSI11
SS
A/D CONVERTER
8
3
COMPARATOR
INTERNAL
LINSEL
X1
H1
78K/0
CPU
CORE
INTERNAL
HIGH-SPEED
RAM
FLASH
MEMORY
PORT 2
PORT 3
PORT 6
PORT 7
PORT 12
POWER ON CLEAR/
LOW VOLTAGE
INDICATOR
RESET CONTROL
ON-CHIP DEBUG
SYSTEM
CONTROL
INTERNAL
HIGH-SPEED
OSCILLATOR
VOLTAGE
REGULATOR
8
P20 to P27
8
P30 to P37
2
P60, P61
P70
2
P121, P122
POC/LVI
CONTROL
TOOLC0/X1, TOOLC1/P31
TOOLD0/X2, TOOLD1/P32
RESET
X1/P121
X2/EXCLK/P122
REGC
TxD6/P60 (LINSEL)
INTP0/P00
INTP1/P30 to INTP3/P32,
<INTP0>/P121
INTP4/P34, INTP5/P02
5
INTERRUPT
CONTROL
V
SS
V
DD
Cautions 1. Connect the REGC pin to V
SS via a capacitor (0.47 to 1
μ
F).
2. ANI0/P20, ANI1/P21, ANI2/P22, ANI3/P23/CMP2+, ANI4/P24/CMP0+, ANI5/P25/CMP1+,
ANI6/P26/CMPCOM, ANI7/P27, and ANI8/P70 are set in the analog input mode after release of
reset.
Remark Functions in angle brackets < > can be assigned by setting the input switch control register (MUXSEL).
R01UH0068EJ0203 Rev.2.03 24
Jun 29, 2012
78K0/Fx2-L CHAPTER 1 OUTLINE
1.5 Outline of Functions
(1/2)
78K0/FY2-L 78K0/FA2-L 78K0/FB2-L Item
16 pins 20 pins 30 pins
Internal
memory
Memory space
General-purpose registers
Instruction set
I/O ports
Flash memory
4 KB to 16 KB 8 KB and 16 KB
(self-programming
supported)
High-Speed RAM
384 bytes to 768 bytes 512 bytes and 768 bytes
64 KB
High-speed system
(crystal/ceramic
oscillation, external
clock input)
Main
Internal high-
Clock
speed oscillation
Internal low-speed
2 to 20 MHz
2 to 5 MHz: V
4 MHz ±2% (T
to +85°C): V
30 kHz (TYP.): V
Note 1
: VDD = 4.0 to 5.5 V, 2 to 10 MHz: VDD = 2.7 to 5.5 V, or
• Internal reset by low-voltage detector (LVI)
Provided
(A) grade products: TA = –40 to +85°C, (A2) grade products: TA = −40 to +125°C
16-pin plastic SSOP
(5.72 mm (225))
20-pin plastic SSOP
(7.62 mm (300))
30-pin plastic SSOP
(7.62 mm (300))
R01UH0068EJ0203 Rev.2.03 26
Jun 29, 2012
78K0/Fx2-L CHAPTER 2 PIN FUNCTIONS
CHAPTER 2 PIN FUNCTIONS
2.1 Pin Function List
There are two types of pin I/O buffer power supplies: AV
and the pins is shown below.
Table 2-1. Pin I/O Buffer Power Supplies
Power Supply Corresponding Pins
AVREF
VDD
P20 to P27, P70
Pins other than P20 to P27, P70
Note 78K0/FY2-L: P20 to P23
78K0/FA2-L: P20 to P25
78K0/FB2-L: P20 to P27, P70
REF and VDD. The relationship between these power supplies
Note
Note
R01UH0068EJ0203 Rev.2.03 27
Jun 29, 2012
78K0/Fx2-L CHAPTER 2 PIN FUNCTIONS
2.1.1 78K0/FY2-L
(1) Port functions: 78K0/FY2-L
Function Name I/O Function After Reset Alternate Function
P00 TI000/INTP0
P01
P20 ANI0
P21 ANI1
P22 ANI2
P23
P30 I/O
P60 SCLA0/TxD6
P61
P121 X1/TOOLC0
P122
I/O
I/O
I/O
Input
Port 0.
2-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Port 2.
4-bit I/O port.
Input/output can be specified in 1-bit units.
Port 3.
1-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Port 6.
2-bit I/O port.
Input/output can be specified in 1-bit units.
Input can be set to SMBus input buffer in 1-bit units.
Output can be set to N-ch open-drain output (V
tolerance).
Use of an on-chip pull-up resistor can be specified by a
software setting.
Port 12.
2-bit input-only port.
DD
Input port
TO00/TI010
Analog input
ANI3/CMP2+
Input port TOH1/TI51/INTP1
Input port
SDAA0/RxD6
Input port
X2/EXCLK/TOOLD0
R01UH0068EJ0203 Rev.2.03 28
Jun 29, 2012
78K0/Fx2-L CHAPTER 2 PIN FUNCTIONS
(2) Non-port functions: 78K0/FY2-L
Function Name I/O Function After Reset Alternate Function
ANI0 P20
ANI1 P21
RESET Input System reset input Reset Input
RxD6 Input Serial data input to UART6 P61/SDAA0
TxD6 Output
SCLA0 Clock input/output for I2C P60/TxD6
SDAA0
TI000 External count clock input to 16-bit timer/event counter
TI010
TI51 Input External count clock input to 8-bit timer/event counter 51Input port P30/TOH1/INTP1
TO00 Output 16-bit timer/event counter 00 output Input port P01/TI010
TOH1 Output 8-bit timer H1 output Input port P30/TI51/INTP1
X1 P121/TOOLC0
X2
EXCLK Input External clock input for main system clock Input port P122/X2/TOOLD0
VDDPositive power supply for pins other than port 2
AVREF
VSS
TOOLC0 Input Clock input for flash memory programmer/on-chip
TOOLD0 I/O Data I/O for flash memory programmer/on-chip debugger
Input A/D converter analog input Analog input
Input
I/O
Input
External interrupt request input for which the valid edge
(rising edge, falling edge, or both rising and falling
edges) can be specified
Port 0.
2-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Port 2.
6-bit I/O port.
Input/output can be specified in 1-bit units.
Port 3.
3-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Port 6.
2-bit I/O port.
Input/output can be specified in 1-bit units.
Input can be set to SMBus input buffer in 1-bit units.
Output can be set to N-ch open-drain output (V
tolerance).
Use of an on-chip pull-up resistor can be specified by a
software setting.
Port 12.
2-bit input-only port.
DD
Input port
TO00/TI010
Analog input
ANI5/CMP1+
Input port
TOOLC1
TOX01/INTP3/
TOOLD1
Input port
SDAA0/RxD6
Input port
X2/EXCLK/TOOLD0
Function Name I/O Function After Reset Alternate Function
ANI0 P20
ANI1 P21
ANI2 P22
ANI3 P23
ANI4 P24
ANI5
Input A/D converter analog input Analog input
P25
R01UH0068EJ0203 Rev.2.03 30
Jun 29, 2012
Loading...
+ 690 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.