REU09B0001-0090Z
16
M16C/26 Group
Hardware Manual
RENESAS 16-BIT CMOS SINGLE-CHIP MICROCOMPUTER
M16C FAMILY / M16C/20 SERIES
Before using this material, please visit the our website to confirm that this is the most
current document available.
Rev. 0.90
Revision date: Sep. 1. 2003
www.renesas.com
Keep safety first in your circuit designs!
•
Renesas Technology Corporation puts the maximum effort into making semiconductor prod-
ucts 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 ap-
propriate 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
Renesas Technology Corporation 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 Renesas Technology Corporation or a third party.
• Renesas Technology Corporation assumes no responsibility for any damage, or infringe-
ment of any third-party's rights, originating in the use of any product data, diagrams, charts,
programs, algorithms, or circuit application examples contained in these materials.
• All information contained in these materials, including product data, diagrams, charts, pro-
grams and algorithms represents information on products at the time of publication of these
materials, and are subject to change by Renesas Technology Corporation without notice
due to product improvements or other reasons. It is therefore recommended that custom-
ers contact Renesas Technology Corporation or an authorized Renesas Technology Cor-
poration product distributor for the latest product information before purchasing a product
listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corporation assumes no responsibility for any damage, liability, or
other loss rising from these inaccuracies or errors.
Please also pay attention to information published by Renesas Technology Corporation by
various means, including the Renesas Technology Corporation Semiconductor home page
(http://www.renesas.com).
• When using any or all of the information contained in these materials, including product
data, diagrams, charts, programs, and algorithms, please be sure to evaluate all informa-
tion as a total system before making a final decision on the applicability of the information
and products. Renesas Technology Corporation assumes no responsibility for any dam-
age, liability or other loss resulting from the information contained herein.
• Renesas Technology Corporation semiconductors are not designed or manufactured for
use in a device or system that is used under circumstances in which human life is poten-
tially at stake. Please contact Renesas Technology Corporation or an authorized Renesas
Technology Corporation product distributor when considering the use of a product con-
tained 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 Renesas Technology 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 im-
ported 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 Renesas Technology Corporation for further details on these materials or t
he products contained therein.
How to Use This Manual
This hardware manual provides detailed information on features in the M16C/26 Group
microcomputer.
Users are expected to have basic knowledge of electric circuits, logical circuits and micro-
computer.
Each register diagram contains bit functions with the following symbols and descriptions.
XXX register
b7
b6
b5
b4
b3
b2
b1
b0
*1
Symbol
XXX
Address
XXX
After reset
00
16
0
Bit symbol
XXX0
Bit name
XXX bit
b1 b0
Function
1 0: XXX
0 1: XXX
1 0: Avoid this setting
1 1: XXX
RW
RW
*2
XXX1
RW
(b2)
Nothing is assigned.
When write, should set to "0". When read, its content is indeterminate.
(b3)
Reserved bit
Should set to "0"
RW
*3
XXX4
XXX bit
Function varies depending on each
operation mode
RW
XXX5
WO
XXX6
0: XXX
1: XXX
RW
XXX7
XXX bit
RO
*1
Blank:Set to "0" or "1" according to your intended use
0:
Set to "0"
1:
Set to "1"
X:
Nothing is assigned
*2
RW:
RO:
WO:
–:
*3
Terms to use here are explained as follows.
• Nothing is assigned
Nothing is assigned to the bit concerned. When write, set to "0" for new function
in future plan.
• Reserved bit
Reserved bit. Set the specified value.
• Avoid this setting
The operation at having selected is not guaranteed.
• Function varies depending on each operation mode
Bit function varies depending on peripheral function mode.
Refer to register diagrams in each mode.
Read and write
Read only
Write only
Nothing is assigned
M16C Family Documents
Document
Short Sheet
Data Sheet
Hardware Manual
Contents
Hardware overview
Hardware overview and electrical characteristics
Hardware specifications (pin assignments,
memory maps, specifications of peripheral func-
tions, electrical characteristics, timing charts)
Detailed description about instructions and mi-
crocomputer performance by each instruction
• Application examples of peripheral functions
• Sample programs
• Introductory description about basic functions in
M16C family
• Programming method with the assembly and C
languages
Software Manual
Application Note
er
nt
Und opme
el
dev
Preliminary Specifications Rev. 0.9
Specifications in this manual are tentative and subject to change.
Table of Contents
M16C/26 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Table of Contents
Description .......................................................................................................................................... 1
Functional Block Operation ............................................................................................................... 8
Memory .......................................................................................................................................... 8
Central Processing Unit (CPU) ..................................................................................................... 9
Reset .................................................................................................................................................. 12
Special Function Registers .............................................................................................................. 20
Processor Mode ................................................................................................................................ 25
Clock Generating Circuit .................................................................................................................. 28
Oscillation Stop Detection Function ......................................................................................... 34
Power Control .............................................................................................................................. 41
Protection .......................................................................................................................................... 43
Interrupts ........................................................................................................................................... 44
Watchdog Timer................................................................................................................................. 64
DMAC .................................................................................................................................................. 66
Timers ................................................................................................................................................ 76
Timer A ......................................................................................................................................... 78
Timer B ......................................................................................................................................... 88
Three-Phase Motor Control Timer Function ............................................................................. 94
Serial I/O ........................................................................................................................................... 108
UARTi (i = 0 to 2) ........................................................................................................................ 108
Clock Synchronous Serial I/O Mode ........................................................................................ 119
Clock Asynchronous Serial I/O (UART) Mode ........................................................................ 128
Clock Asynchronous Serial I/O Mode (used for SIM interface) ............................................. 137
UART2 Special Mode Register ................................................................................................. 141
UART2 Special Mode Register 2 .............................................................................................. 145
UART2 Special Mode Register 3 .............................................................................................. 147
UART2 Special Mode Register 4 .............................................................................................. 148
Serial Interface Special Function ............................................................................................. 150
A-D Converter .................................................................................................................................. 153
Programmable I/O Ports ................................................................................................................. 163
Electrical Characteristics ............................................................................................................... 171
Flash Memory .................................................................................................................................. 184
CPU Rewrite Mode .................................................................................................................... 186
Functions To Inhibit Rewriting Flash Memory Version .......................................................... 202
Appendix Standard Serial I/O Mode (Flash Memory Version) ............................................... 204
Appendix Standard Serial I/O Mode 1 (Flash Memory Version) ............................................ 207
Appendix Standard Serial I/O Mode 2 (Flash Memory Version) ............................................ 220
Renesas Technology Corp.
i