U
s
e
r
’
s
M
a
n
u
a
l
16
RL78/G13
16 位 单片机
用户手册 硬件篇
本资料所记载的内容,均为本资料发行时的信息,瑞萨电子对本资料所记载的产品或者
规格可能会作改动,恕不另行通知。
请通过瑞萨电子的主页确认发布的最新信息。
Rev.2.00 2012.09
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.
Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
“Standard”:
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots etc.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
crime systems; and safety equipment 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)
以下“注意事项”为从英语原稿翻译的中文译文,仅作为参考译文,英文版的“Notice”具有正式效力。
注意事项
1. 本文档中所记载的关于电路、软件和其他相关信息仅用于说明半导体产品的操作和应用实例。用户如在设备设计中应
用本文档中的电路、软件和相关信息,请自行负责。对于用户或第三方因使用上述电路、软件或信息而遭受的任何损
失,瑞萨电子不承担任何责任。
2. 在准备本文档所记载的信息的过程中,瑞萨电子已尽量做到合理注意,但是,瑞萨电子并不保证这些信息都是准确无
误的。用户因本文档中所记载的信息的错误或遗漏而遭受的任何损失,瑞萨电子不承担任何责任。
3. 对于因使用本文档中的瑞萨电子产品或技术信息而造成的侵权行为或因此而侵犯第三方的专利、版权或其他知识产权
的行为,瑞萨电子不承担任何责任。本文档所记载的内容不应视为对瑞萨电子或其他人所有的专利、版权或其他知识
产权作出任何明示、默示或其它方式的许可及授权。
4. 用户不得更改、修改、复制或者以其他方式部分或全部地非法使用瑞萨电子的任何产品。对于用户或第三方因上述更
改、修改、复制或以其他方式非法使用瑞萨电子产品的行为而遭受的任何损失,瑞萨电子不承担任何责任。
5. 瑞萨电子产品根据其质量等级分为两个等级:“标准等级”和“高质量等级”。每种瑞萨电子产品的推荐用途均取决
于产品的质量等级,如下所示:
标准等级: 计算机、办公设备、通讯设备、测试和测量设备、视听设备、家用电器、机械工具、个人电子设备以及
工业机器人等。
高质量等级: 运输设备(汽车、火车、轮船等)、交通控制系统、防灾系统、预防犯罪系统以及安全设备等。
瑞萨电子产品无意用于且未被授权用于可能对人类生命造成直接威胁的产品或系统及可能造成人身伤害的产品或系统
(人工生命维持装置或系统、植埋于体内的装置等)中,或者可能造成重大财产损失的产品或系统(核反应堆控制系
统、军用设备等)中。在将每种瑞萨电子产品用于某种特定应用之前,用户应先确认其质量等级。不得将瑞萨电子产
品用于超出其设计用途之外的任何应用。对于用户或第三方因将瑞萨电子产品用于其设计用途之外而遭受的任何损害
或损失,瑞萨电子不承担任何责任。
6. 使用本文档中记载的瑞萨电子产品时,应在瑞萨电子指定的范围内,特别是在最大额定值、电源工作电压范围、移动
电源电压范围、热辐射特性、安装条件以及其他产品特性的范围内使用。对于在上述指定范围之外使用瑞萨电子产品
而产生的故障或损失,瑞萨电子不承担任何责任。
7. 虽然瑞萨电子一直致力于提高瑞萨电子产品的质量和可靠性,但是,半导体产品有其自身的具体特性,如一定的故障
发生率以及在某些使用条件下会发生故障等。此外,瑞萨电子产品均未进行防辐射设计。所以请采取安全保护措施,
以避免当瑞萨电子产品在发生故障而造成火灾时导致人身事故、伤害或损害的事故。例如进行软硬件安全设计(包括
但不限于冗余设计、防火控制以及故障预防等)、适当的老化处理或其他适当的措施等。由于难于对微机软件单独进
行评估,所以请用户自行对最终产品或系统进行安全评估。
8. 关于环境保护方面的详细内容,例如每种瑞萨电子产品的环境兼容性等,请与瑞萨电子的营业部门联系。使用瑞萨电
子产品时,请遵守对管制物质的使用或含量进行管理的所有相应法律法规(包括但不限于《欧盟 RoHS 指令》)。对
于因用户未遵守相应法律法规而导致的损害或损失,瑞萨电子不承担任何责任。
9. 不可将瑞萨电子产品和技术用于或者嵌入日本国内或海外相应的法律法规所禁止生产、使用及销售的任何产品或系统
中。也不可将本文档中记载的瑞萨电子产品或技术用于与军事应用或者军事用途有关的任何目的(如大规模杀伤性武
器的开发等)。在将本文档中记载的瑞萨电子产品或技术进行出口时,应当遵守相应的出口管制法律法规,并按照上
述法律法规所规定的程序进行。
10. 向第三方分销或处分产品或者以其他方式将产品置于第三方控制之下的瑞萨电子产品买方或分销商,有责任事先向上
述第三方通知本文档规定的内容和条件;对于用户或第三方因非法使用瑞萨电子产品而遭受的任何损失,瑞萨电子不
承担任何责任。
11. 在事先未得到瑞萨电子书面认可的情况下,不得以任何形式部分或全部转载或复制本文档。
12. 如果对本文档所记载的信息或瑞萨电子产品有任何疑问,或者用户有任何其他疑问,请向瑞萨电子的营业部门咨询。
(注 1) 瑞萨电子:在本文档中指瑞萨电子株式会社及其控股子公司。
(注 2) 瑞萨电子产品:指瑞萨电子开发或生产的任何产品。
(2012 年 4 月)
① 输入引脚处的施加电压波形
关于 CMOS 器件的注意事项
输入噪声或由反射波引起的波形失真可能导致故障发生。如果由于噪声等影响,使CMOS器件的输入电压
范围处于在VIL(MAX)和VIH(MIN)之间,器件可能发生故障。在输入电平固定时以及输入电平从VIL
(MAX)到VIH(MIN)的过渡期间,要谨防颤振噪声进入器件。
② 未使用的输入引脚的处理
CMOS器件上未连接的输入端可能是故障源。如果一个输入引脚未被连接,则由于噪声等原因可能会产生
内部输入电平,从而导致故障。CMOS器件的工作方式与双极性或NMOS器件不同。CMOS器件的输入电
平必须借助上拉或下拉电路固定于高电平或低电平。每一个未使用引脚只要有可能成为输出引脚时,都应
该通过附加电阻连接到VDD或GND。对未使用引脚的处理因器件而异,必须遵循与器件相关的规格和说明。
③ ESD防护措施
如果MOS器件周围有强电场,将会击穿氧化栅极,降低器件的工作性能。因此必须采取措施,尽可能防止
静电产生。一旦有静电,必须立即释放。环境必须控制适当。如果空气干燥,应当使用加湿器。建议避免
使用容易产生静电的绝缘体。半导体器件的存放和运输必须使用抗静电容器、静电屏蔽袋或导电材料包装。
所有包括工作台和工作面的测试和测量工具必须良好接地。操作员应当佩戴手腕带以保证良好接地。不能
用手直接接触半导体器件。对装配有半导体器件的PW板也应采取类似的静电防范措施。
④ 初始化之前的状态
上电并不一定定义MOS器件的初始状态。刚接通电源时,具有复位功能的MOS器件并没有被初始化。因此
上电不能保证输出引脚的电平、输入/输出设置和寄存器的内容。器件在收到复位信号后才进行初始化。具
有复位功能的器件在上电后必须立即进行复位操作。
⑤ 电源上电/断电序列
器件内部工作和外部接口使用不同电源的情况下,原则上应先在接通内部电源之后再接通外部电源。当关闭
电源时,原则上先关闭外部电源再关闭内部电源。如果电源开关顺序相反,可能会对器件的内部元件施加
电压,从而由于异常电流的流过而造成故障和降低元件的性能。
须视具体器件和支配器件的相关规格来单独决定正确的上电/断电序列。
⑥ 断电状态期间的信号输入
不要在器件断电时输入信号或输入/输出上拉电源。因为输入信号或提供输入/输出上拉电源将引起电流注
入,从而引起器件的误操作,并且此时流过器件的异常电流引起内部元件性能劣化。
须视具体器件和支配器件的相关规格来单独决定断电状态期间的信号输入。
读者
目的
结构
本手册的使用方法
本手册适用于那些希望了解 RL78/G13 的功能,并设计开发用于这些设备的应用系统的用户
工程师。
20 引脚: R5F1006x (x = A, C, D, E)
24 引脚: R5F1007x (x = A, C, D, E)
25 引脚: R5F1008x (x = A, C, D, E)
30 引脚: R5F100Ax (x = A, C, D, E, F, G)
32 引脚: R5F100Bx (x = A, C, D, E, F, G)
36 引脚: R5F100Cx (x = A, C, D, E, F, G)
40 引脚: R5F100Ex (x = A, C, D, E, F, G, H)
R5F100Fx (x = A, C, D, E, F, G, H, J, K, L)
44 引脚:
R5F100Gx (x = A, C, D, E, F, G, H, J, K, L)
48 引脚:
R5F100Jx (x = C, D, E, F, G, H, J, K, L)
52 引脚:
R5F100Lx (x = C, D, E, F, G, H, J, K, L)
64 引脚:
R5F100Mx (x = F, G, H, J, K, L)
80 引脚:
100 引脚: R5F100Px (x = F, G, H, J, K, L)
128 引脚: R5F100Sx (x = H, J, K, L)
本手册用于帮助用户了解下述结构中所述的功能。
本手册分为两个部分:本手册和指令编辑 (RL78 单片机共通)。
RL78/G13
用户手册
硬件篇
(本手册)
引脚功能
内部模块功能
中断
其他片上外设功能
电特性 (目标)
RL78 族
用户手册
软件篇
CPU 功能
指令组
各指令的说明
如何阅读本手册
假定本手册的读者具备电气工程、逻辑电路以及单片机领域的常识
寄存器格式的说明:
关于尖括(<> )内的位数,其名称在汇编程序中定义为保留字,并在编译器中使用
#pragma sfr 指令定义为 sfr 变量。
要了解 RL78 单片机指令的详细情况:
请参阅单独文件 RL78 族 用户手册 软件篇(R01US0015E)。
数据有效位:
有效低电平表示:
注:
注意事项:
备注:
数字表示法:
高位在左,低位在右 低电平有效表示
(在引脚或信号名称上有上划线)
正文中使用‘注'标记的脚注
需特别注意的信息
补充信息
二进制
十进制
十六进制
... 或 B
...
...H
本手册中的相关文档可能包括初稿版本。但是,初稿版本并未特别标注。
惯例
相关文档
器件相关文档
RL78/G13 用户手册 硬件篇
RL78 族 用户手册 软件篇
闪存编程器相关文档
PG-FP5 闪存编程器 用户手册
文档名称
文档名称
文档编号
本手册
R01US0015E
文档编号
R20UT0008E
注意事项 上述列出的文件随时可能被更改,恕不另行通知。设计时,请确保使用各个文件的最新版本。
文件名称
其他文件
瑞萨微型计算机整体目录
半导体封装安装手册
预防静电放电(ESD)损坏半导体器件
文件编号
R01CS0001E
注
C11892E
(http://www.renesas.com/products/package/manual/index.jsp)
注 请参阅 “半导体封装安装手册”网站
注意事项 上述列出的文件随时可能被更改,恕不另行通知。设计时,请确保使用各个文件的最新版本。
所有商标及注册商标分别归属于其所有者。
本用户手册仅为参考译文,对应的日文版和英文版具有正式效力。
目录
第一章 概述
............................................................................................................................................. 1
1.1 特点................................................................................................................................................... 1
1.2 订购信息 ........................................................................................................................................... 3
1.3 引脚配置 (顶视图)............................................................................................................................. 8
1.3.1 20 引脚产品 ........................................................................................................................................ 8
1.3.2 24 引脚产品 ........................................................................................................................................ 9
1.3.3 25 引脚产品 ...................................................................................................................................... 10
1.3.4 30 引脚产品 ...................................................................................................................................... 11
1.3.5 32 引脚产品 ...................................................................................................................................... 12
1.3.6 36 引脚产品 ...................................................................................................................................... 13
1.3.7 40 引脚产品 ...................................................................................................................................... 14
1.3.8 44 引脚产品 ...................................................................................................................................... 15
1.3.9 48 引脚产品 ...................................................................................................................................... 16
1.3.10 52 引脚产品 .................................................................................................................................... 18
1.3.11 64 引脚产品 .................................................................................................................................... 19
1.3.12 80 引脚产品 .................................................................................................................................... 21
1.3.13 100 引脚产品 .................................................................................................................................. 22
1.3.14 128 引脚产品 .................................................................................................................................. 24
1.4 引脚名称 ......................................................................................................................................... 25
1.5 框图................................................................................................................................................. 26
1.5.1 20 引脚产品 ...................................................................................................................................... 26
1.5.2 24 引脚产品 ...................................................................................................................................... 27
1.5.3 25 引脚产品 ...................................................................................................................................... 28
1.5.4 30 引脚产品 ...................................................................................................................................... 29
1.5.5 32 引脚产品 ...................................................................................................................................... 30
1.5.6 36 引脚产品 ...................................................................................................................................... 31
1.5.7 40 引脚产品 ...................................................................................................................................... 32
1.5.8 44 引脚产品 ...................................................................................................................................... 33
1.5.9 48 引脚产品 ...................................................................................................................................... 34
1.5.10 52 引脚产品 .................................................................................................................................... 35
1.5.11 64 引脚产品 .................................................................................................................................... 36
1.5.12 80 引脚产品 .................................................................................................................................... 37
1.5.13 100 引脚产品 .................................................................................................................................. 38
1.5.14 128 引脚产品 .................................................................................................................................. 39
1.6 功能概述 ......................................................................................................................................... 40
第二章 引脚功能......................................................................................................................................... 46
目录-1