REJ09B0019-0120
16
R8C/10 Group
Hardware Manual
RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
M16C FAMILY / R8C /Tiny SERIES
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 Technology Corp. without notice. Please review the latest information published
by Renesas Technology Corp. through various means, including the Renesas Technology
Corp. website (http://www.renesas.com).
Rev. 1.20
Revision date: Jan 27, 2006
www.renesas.com
Keep safety first in your circuit designs!
1.
Renesas Technology Corp. 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 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
1.
2.
3.
4.
5.
6.
7.
8.
These materials are intended as a reference to assist our customers in the selection of the
Renesas Technology Corp. 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 Corp. or a third party.
Renesas Technology Corp. assumes no responsibility for any damage, or infringement of
any third-party's rights, originating in the use of any product data, diagrams, charts, pro-
grams, 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 Corp. without notice due to
product improvements or other reasons. It is therefore recommended that customers con-
tact Renesas Technology Corp. or an authorized Renesas Technology Corp. product dis-
tributor for the latest product information before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corp. 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 Corp. by vari-
ous means, including the Renesas Technology Corp. 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 Corp. assumes no responsibility for any damage, liabil-
ity or other loss resulting from the information contained herein.
Renesas Technology Corp. 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 Renesas Technology Corp. or an authorized Renesas Technology
Corp. 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 Renesas Technology Corp. is necessary to reprint or repro-
duce 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 Corp. for further details on these materials or the
products contained therein.
How to Use This Manual
1.
Introduction
This hardware manual provides detailed information on the R8C/10 Group of microcomputers.
Users are expected to have basic knowledge of electric circuits, logical circuits and microcomputers.
2.
Register Diagram
*1
XXX register
b7
b6
b5
b4
b3
b2
b1
b0
The symbols, and descriptions, used for bit function in each register are shown below.
0
Symbol
XXX
Address
XXX
After reset
00
h
*5
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.
*3
RW
(b3)
Reserved Bit
Must set to “0”
*4
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 the application
0: Set to “0”
1: Set to “1”
X: Nothing is assigned
*2
RW: Read and write
RO: Read only
WO: Write only
−:
Nothing is assigned
*3
•Reserved
bit
Reserved bit. Set to specified value.
*4
•Nothing
is assigned
Nothing is assigned to the bit concerned. As the bit may be use for future functions,
set to “0” when writing to this bit.
•Do
not set to this value
The operation is not guaranteed when a value is set.
•Function
varies depending on mode of operation
Bit function varies depending on peripheral function mode.
Refer to respective register for each mode.
*5
Follow the text in each manual for binary and hexadecimal notations.
3.
M16C Family Documents
The following documents were prepared for the M16C family.
(1)
Document
Short Sheet
Data Sheet
Hardware Manual
Hardware overview
Hardware overview and electrical characteristics
Hardware specifications (pin assignments, memory maps, peripheral
specifications, electrical characteristics, timing charts).
*Refer to the application note for how to use peripheral functions.
Detailed description of assembly instructions and microcomputer
performance of each instruction
• Usage and application examples of peripheral functions
• Sample programs
• Introduction to the basic functions in the M16C family
• Programming method with Assembly and C languages
Preliminary report about the specification of a product, a document,
etc.
Contents
Software Manual
Application Note
RENESAS TECHNICAL UPDATE
NOTES:
1. Before using this material, please visit the our website to verify that this is the most updated
document available.
Table of Contents
SFR Page Reference
Chapter 1. Overview ............................................................. 1
1.1
1.2
1.3
1.4
1.5
1.6
Applications ................................................................................................................... 1
Performance Overview .................................................................................................. 2
Block Diagram ............................................................................................................... 3
Product Information ...................................................................................................... 4
Pin Assignments ............................................................................................................ 5
Pin Description .............................................................................................................. 6
Chapter 2. Central Processing Unit (CPU) ......................... 7
2.1 Data Registers (R0, R1, R2 and R3 ) ............................................................................. 7
2.2 AddressRegisters (A0 and A1) ...................................................................................... 8
2.3 Frame Base Register( FB ) ............................................................................................. 8
2.4 Interrupt Table Register (INTB )..................................................................................... 8
2.5 Program Counter (PC ) ................................................................................................... 8
2.6 User Stack Pointer (USP ) and Interrupt Stack Pointer (ISP )..................................... 8
2.7 Static Base Register (SB ) ............................................................................................. 8
2.8 Flag Register (FLG ) ....................................................................................................... 8
2.8.1 Carry Flag ( C Flag ) ................................................................................................................................ 8
2.8.2 Debug Flag ( D Flag ) .............................................................................................................................. 8
2.8.3 Zero Flag ( Z Flag ) .................................................................................................................................. 8
2.8.4 Sign Flag ( S Flag ) .................................................................................................................................. 8
2.8.5 Register Bank Select Flag ( B Flag ) ..................................................................................................... 8
2.8.6 Overflow Flag ( O Flag) ........................................................................................................................... 8
2.8.7 Interrupt Enable Flag ( I Flag ) ............................................................................................................... 8
2.8.8 Stack Pointer Select Flag ( U Flag ) ....................................................................................................... 8
2.8.9 Processor Interrupt Priority Level ( IPL ) .............................................................................................. 8
2.8.10 Reserved Area ....................................................................................................................................... 8
Chapter 3. Memory ............................................................... 9
Chapter 4. Special Function Registers (SFR) .................. 10
Chapter 5. Reset .................................................................. 14
5.1 Hardware Reset ............................................................................................................ 14
5.2 Software Reset .............................................................................................................. 14
5.3 Watchdog Timer Reset ................................................................................................. 14
Chapter 6. Clock Generation Circuit.................................. 17
6.1 Main Clock ..................................................................................................................... 21
6.2 On-Chip Oscillator Clock ............................................................................................. 22
A-1