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.2.00
Revision Date: Dec 05, 2007
www.renesas.com
Notes regarding these materials
1. This document is provided for reference purposes only so that Renesas customers may select the appropriate
Renesas products for their use. Renesas neither makes warranties or representations with respect to the
accuracy or completeness of the information contained in this document nor grants any license to any
intellectual property rights or any other rights of Renesas or any third party with respect to the information in
this document.
2. Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising
out of the use of any information in this document, including, but not limited to, product data, diagrams, charts,
programs, algorithms, and application circuit examples.
3. You should not use the products or the technology described in this document for the purpose of military
applications such as the development of weapons of mass destruction or for the purpose of any other military
use. When exporting the products or technology described herein, you should follow the applicable export
control laws and regulations, and procedures required by such laws and regulations.
4. All information included in this document such as product data, diagrams, charts, programs, algorithms, and
application circuit examples, 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 products listed in this
document, please confirm the latest product information with a Renesas sales office. Also, please pay regular
and careful attention to additional and different information to be disclosed by Renesas such as that disclosed
through our website. (http://www.renesas.com )
5. Renesas has used reasonable care in compiling the information included in this document, but Renesas
assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information
included in this document.
6. When using or otherwise relying on the information in this document, you should evaluate the information in
light of the total system before deciding about the applicability of such information to the intended application.
Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any
particular application and specifically disclaims any liability arising out of the application and use of the
information in this document or Renesas products.
7. With the exception of products specified by Renesas as suitable for automobile applications, Renesas
products are not designed, manufactured or tested for applications or otherwise in systems the failure or
malfunction of which may cause a direct threat to human life or create a risk of human injury or which require
especially high quality and reliability such as safety systems, or equipment or systems for transportation and
traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or undersea communication
transmission. If you are considering the use of our products for such purposes, please contact a Renesas
sales office beforehand. Renesas shall have no liability for damages arising out of the uses set forth above.
8. Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below:
(1) artificial life support devices or systems
(2) surgical implantations
(3) healthcare intervention (e.g., excision, administration of medication, etc.)
(4) any other purposes that pose a direct threat to human life
Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who
elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas
Technology Corp., its affiliated companies and their officers, directors, and employees against any and all
damages arising out of such applications.
9. You should use the products described herein within the range specified by Renesas, especially with respect
to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation
characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or
damages arising out of the use of Renesas products beyond such specified ranges.
10. Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific
characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use
conditions. Please be sure to implement safety measures to guard against the possibility of physical injury, and
injury or damage caused by fire in the event of the failure of a Renesas 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 applicable measures. Among others, since the
evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or
system manufactured by you.
11. In case Renesas products listed in this document are detached from the products to which the Renesas
products are attached or affixed, the risk of accident such as swallowing by infants and small children is very
high. You should implement safety measures so that Renesas products may not be easily detached from your
products. Renesas shall have no liability for damages arising out of such detachment.
12. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written
approval from Renesas.
13. Please contact a Renesas sales office if you have any questions regarding the information contained in this
document, Renesas semiconductor products, or if you have any other inquiries.
General Precautions in the Handling of MPU/MCU Products
The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage notes
on the products covered by this manual, refer to the relevant sections of the manual. If the descriptions under
General Precautions in the Handling of MPU/MCU Products and in the body of the manual differ from each
other, the description in the body of the manual takes precedence.
1. Handling of Unused Pins
Handle unused pins in accord with the directions given under Handling of Unused Pins in the
manual.
The input pins of CMOS products are generally in the high-impedance state. In operation
with an unused pin in the open-circuit state, extra electromagnetic noise is induced in the
vicinity of LSI, an associated shoot-through current flows internally, and malfunctions occur
due to the false recognition of the pin state as an input signal become possible. Unused
pins should be handled as described under Handling of Unused Pins in the manual.
2. Processing at Power-on
The state of the product is undefined at the moment when power is supplied.
The states of internal circuits in the LSI are indeterminate and the states of register
settings and pins are undefined at the moment when power is supplied.
In a finished product where the reset signal is applied to the external reset pin, the states
of pins are not guaranteed from the moment when power is supplied until the reset
process is completed.
In a similar way, the states of pins in a product that is reset by an on-chip power-on reset
function are not guaranteed from the moment when power is supplied until the power
reaches the level at which resetting has been specified.
3. Prohibition of Access to Reserved Addresses
Access to reserved addresses is prohibited.
The reserved addresses are provided for the possible future expansion of functions. Do
not access these addresses; the correct operation of LSI is not guaranteed if they are
accessed.
4. Clock Signals
After applying a reset, only release the reset line after the operating clock signal has become
stable. When switching the clock signal during program execution, wait until the target clock
signal has stabilized.
When the clock signal is generated with an external resonator (or from an external
oscillator) during a reset, ensure that the reset line is only released after full stabilization of
the clock signal. Moreover, when switching to a clock signal produced with an external
resonator (or by an external oscillator) while program execution is in progress, wait until
the target clock signal is stable.
5. Differences between Products
Before changing from one product to another, i.e. to one with a different part number, confirm
that the change will not lead to problems.
The characteristics of MPU/MCU in the same group but having different part numbers may
differ because of the differences in internal memory capacity and layout pattern. When
changing to products of different part numbers, implement a system-evaluation test for
each of the products.
How to Use This Manual
1.Purpose and Target Readers
This manual is designed to provide the user with an understanding of the hardware functions and electrical
characteristics of the MCU. It is intended for users designing application systems incorporating the MCU. A basic
knowledge of electric circuits, logical circuits, and MCUs is necessary in order to use this manual.
The manual comprises an overview of the product; descriptions of the CPU, system control functions, peripheral
functions, and electrical characteristics; and usage notes.
Particular attention should be paid to the precautionary notes when using the manual. These notes occur
within the body of the text, at the end of each section, and in the Usage Notes section.
The revision history summarizes the locations of revisions and additions. It does not list all revisions. Refer
to the text of the manual for details.
The following documents apply to the R8C/2C Group, R8C/2D Group. Make sure to refer to the latest versions of
these documents. The newest versions of the documents listed may be obtained from the Renesas Technology Web
site.
memory maps, peripheral function
specifications, electrical characteristics, timing
charts) and operation description
Note: Refer to the application notes for details on
using peripheral functions.
Software manual Description of CPU instruction setR8C/Tiny Series
Application noteInformation on using peripheral functions and
application examples
Sample programs
Information on writing programs in assembly
language and C
Renesas
technical update
Product specifications, updates on documents,
etc.
R8C/2C Group,
R8C/2D Group
Hardware Manual
Software Manual
Available from Renesas
Technology Web site.
REJ03B0183
This hardware
manual
REJ09B0001
2.Notation of Numbers and Symbols
The notation conventions for register names, bit names, numbers, and symbols used in this manual are described
below.
(1)Register Names, Bit Names, and Pin Names
Registers, bits, and pins are referred to in the text by symbols. The symbol is accompanied by the word
“register,” “bit,” or “pin” to distinguish the three categories.
Examples the PM03 bit in the PM0 register
P3_5 pin, VCC pin
(2)Notation of Numbers
The indication “b” is appended to numeric values given in binary format. However, nothing is appended to the
values of single bits. The indication “h” is appended to numeric values given in hexadecimal format. Nothing
is appended to numeric values given in decimal format.
Examples Binary: 11b
Hexadecimal: EFA0h
Decimal: 1234
3.Register Notation
The symbols and terms used in register diagrams are described below.
XXX Register
b7 b6 b5 b4 b3 b2 b1 b0
0
XXX0
XXX1
(b2)
(b3)
XXX4
XXX5
XXX6
XXX7
*1
SymbolAddressAfter Reset
XXXXXX00h
Bit NameBit Symbol
XXX bits
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined.
Reserved bits
XXX bits
XXX bit
b1 b0
1 0: XXX
0 1: XXX
1 0: Do not set.
1 1: XXX
Set to 0.
Function varies according to the operating
mode.
0: XXX
1: XXX
Function
RW
RW
RW
RW
RW
WO
RW
RO
*2
*3
*4
*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. As the bit may be used for future functions, if necessary, set to 0.
• Do not set to a value
Operation is not guaranteed when a value is set.
• Function varies according to the operating mode.
The function of the bit varies with the peripheral function mode. Refer to the register diagram for information
on the individual modes.
4.List of Abbreviations and Acronyms
AbbreviationFull Form
ACIAAsynchronous Communication Interface Adapter
bpsbits per second
CRCCyclic Redundancy Check
DMADirect Memory Access
DMACDirect Memory Access Controller
GSMGlobal System for Mobile Communications
Hi-ZHigh Impedance
IEBusInter Equipment bus
I/OInput/Output
IrDAInfrared Data Association
LSBLeast Significant Bit
MSBMost Significant Bit
NCNon-Connection
PLLPhase Locked Loop
PWMPulse Width Modulation
SFRSpecial Function Registers
SIMSubscriber Identity Module
UARTUniversal Asynchronous Receiver/Transmitter
VCOVoltage Controlled Oscillator
All trademarks and registered trademarks are the property of their respective owners.
Table of Contents
SFR Page Reference ........................................................................................................................... B - 1
1.2Product List ............................................................................................................................................... 6
2.8.1Carry Flag (C) ..................................................................................................................................... 16
2.8.2Debug Flag (D) ................................................................................................................................... 16
2.8.3Zero Flag (Z) ....................................................................................................................................... 16
2.8.4Sign Flag (S) ....................................................................................................................................... 16
2.8.5Register Bank Select Flag (B) ............................................................................................................ 16
2.8.6Overflow Flag (O) .............................................................................................................................. 16
2.8.7Interrupt Enable Flag (I) ................................................................... .................................................. 17
2.8.8Stack Pointer Select Flag (U) .............................................................................................................. 17
3.1R8C/2C Group ......................................................................................................................................... 18
3.2R8C/2D Group ........................................................................................................................................ 19
4.Special Function Registers (SFRs) ............................................................................................... 20
5.1.1When Power Supply is Stable .................................................................... ......................................... 35
5.1.2Power On ............................................................................................................................................ 35
5.2Power-On Reset Function ....................................................................................................................... 37
6.1VCC Input Voltage .................................................................................................................................. 47
10.4.9fC4 and fC32 .................................. .................................. ................................................................. 110
10.5Power Control ........................................................................................................................................ 111
12.1.1Types of Interrupts ............................................................................................................................ 125
12.1.4Peripheral Function Interrupt ............................................................................................................ 127
12.1.5Interrupts and Interrupt Vectors ........................................................................................................ 128
12.1.6Interrupt Control ............................................................................................................................... 130
12.4Address Match Interrupt ........................... ............................................................................................. 145
12.5Timer RC Interrupt, Timer RD Interrupt, Clock Synchronous Serial I/O with Chip Select Interrupts, and
2
I
C bus Interface Interrupt (Interrupts with Multiple Interrupt Request Sources) ................................ 147
12.6Notes on Interrupts ................................................................................................................................ 149
14.1Timer RA ............................................................................................................................................... 161
14.1.5Pulse Period Measurement Mode .......................................... ........................................................... 173
14.1.6Notes on Timer RA ............................................................................................................. .............. 176
14.4.12 Notes on Timer RD ........................................................................................................................... 340
14.5Timer RE ............................................................................................................................................... 346
14.5.3Notes on Timer RE ........................................................................................................................... 361
15.3Notes on Serial Interface ....................................................................................................................... 396
16.Clock Synchronous Serial Interface ............................................................................................ 397
16.2.4Communication Modes and Pin Functions .................................................................................... ... 411
16.2.5Clock Synchronous Communication Mode ...................................................................................... 412
16.2.6Operation in 4-Wire Bus Communication Mode .............................................................................. 419
16.2.7SCS
Pin Control and Arbitration ...................................................................................................... 425
16.2.8Notes on Clock Synchronous Serial I/O with Chip Select ............................................................... 426
16.3I
2
C bus Interface ................................................................................................................................. ... 427
18.1.2Sample and Hold .................................. .................................. ........................................................... 480
20.4.5Full Status Check .............................................................................................................................. 516
A - 5
20.5Standard Serial I/O Mode ...................................................................................................................... 518
20.5.1ID Code Check Function ............................................................................................................... ... 518
22.2Notes on Interrupts ................................................................................................................................ 552
22.2.3External Interrupt and Key Input Interrupt ....................................................................................... 552
22.2.4Changing Int e rrupt Sources .............................................................................................................. 553
22.2.5Changing Interrupt Control Register Contents ................................................................................. 554
22.3Notes on Timers .................................................................................................................................... 555
22.3.1Notes on Timer RA ............................................................................................................. .............. 555
22.3.2Notes on Timer RB ........................................................................................................................... 556
22.3.3Notes on Timer RC ........................................................................................................................... 560
22.3.4Notes on Timer RD ............................................................................................................. .............. 561
22.3.5Notes on Timer RE ........................................................................................................................... 567
22.3.6Notes on Timer RF ........................................................................................................................... 570
22.4Notes on Serial Interface ....................................................................................................................... 571
22.5Notes on Clock Synchronous Serial Interface ....................................................................................... 572
22.5.1Notes on Clock Synchronous Serial I/O with Chip Select ............................................................... 572
22.5.2Notes on I
2
C bus Interface ................................................................................................................ 572
22.6Notes on Hardware LIN ........................................................................................................................ 573
22.7Notes on A/D Converter ........................................................................................................................ 574
22.8Notes on Flash Memory ................................................................................................................ ........ 575
Appendix 2. Connection Examples between Serial Writer and On-Chip Debugging Emulator ............ 582
A - 6
Appendix 3. Example of Oscillation Evaluation Circuit ......................................................................... 583
Index ..................................................................................................................................................... 584
0158h Timer RD General Register A1TRDGRA1263, 279, 295,
0159h
015Ah Timer RD General Register B1TRDGRB1 263, 279, 295,
015Bh
015Ch Timer RD General Register C1TRDGRC1 263, 279, 295,
015Dh
015Eh Timer RD General Register D1TRDGRD1 263, 279, 295,
015Fh
TRCDF207
301, 312, 327
301, 313, 328
302, 314, 329
315, 330
315, 330
TRDDF0257
TRDDF1257
304, 316, 332
305, 317, 333
306, 318, 334
TRDPOCR0294
306, 319, 334
307, 319, 335
307, 319, 335
307, 335
307, 319, 335
316
305, 317, 333
306, 318, 334
TRDPOCR1294
319
307, 319, 335
307, 319, 335
307, 319, 335
307, 319, 335
B - 3
AddressRegisterSymbolPage
0160h UART2 Transmit/Receive Mode RegisterU2MR380
0161h UART2 Bit Rate RegisterU2BRG380
0162h UART2 Transmit Buffer Registe rU2TB381
0163h
0164h UART2 Transmit/Receive Control Register 0U2C0381
0165h UART2 Transmit/Receive Control Register 1U2C1382
0166h UART2 Receive Buffer RegisterU2RB382
0167h
0168h
0169h
016Ah
016Bh
016Ch
016Dh
016Eh
016Fh
0170h
0171h
0172h
0173h
0174h
0175h
0176h
0177h
0178h
0179h
017Ah
017Bh
017Ch
017Dh
017Eh
017Fh
0180h
0181h
0182h
0183h
0184h
0185h
0186h
0187h
0188h
0189h
018Ah
018Bh
018Ch
018Dh
018Eh
018Fh
0190h
0191h
0192h
0193h
0194h
0195h
0196h
0197h
0198h
0199h
019Ah
019Bh
019Ch
019Dh
019Eh
019Fh
NOTE:
1. The blank regions are reserved. Do not access locations in these
regions.
AddressRegisterSymbolPage
01A0h
01A1h
01A2h
01A3h
01A4h
01A5h
01A6h
01A7h
01A8h
01A9h
01AAh
01ABh
01ACh
01ADh
01AEh
01AFh
01B0h
01B1h
01B2h
01B3h Flash Memory Control Register 4FMR4506
01B4h
01B5h Flash Memory Control Register 1FMR1505
01B6h
01B7h Flash Memory Control Register 0FMR0504
01B8h
01B9h
01BAh
01BBh
01BCh
01BDh
01BEh
01C0h
01C1h
01C2h
01C3h
01C4h
01C5h
01C6h
01C7h
01C8h
01C9h
01CAh
01CBh
01CCh
01CDh
01CEh
01CFh
01D0h
01D1h
01D2h
01D3h
01D4h
01D5h
01D6h
01D7h
01D8h
01D9h
01DAh
01DBh
01DCh
01DDh
01DEh
01DFh
B - 4
AddressRegisterSymbolPage
01E0h
01E1h
01E2h
01E3h
01E4h
01E5h
01E6h
01E7h
01E8h
01E9h
01EAh
01EBh
01ECh
01EDh
01EEh
01EFh
01F0h
01F1h
01F2h
01F3h
01F4h
01F5h
01F6h
01F7h
01F8h
01F9h
01FAh
01FBh
01FCh
01FDh
01FEh
01FFh
0200h
0201h
0202h
0203h
0204h
0205h
0206h
0207h
0208h
0209h
020Ah
020Bh
020Ch
020Dh
020Eh
020Fh
0210h
0211h
0212h
0213h
0214h
0215h
0216h
0217h
0218h
0219h
021Ah
021Bh
021Ch
021Dh
021Eh
021Fh
NOTE:
1. The blank regions are reserved. Do not access locations in these
regions.
AddressRegisterSymbolPage
0220h
0221h
0222h
0223h
0224h
0225h
0226h
0227h
0228h
0229h
022Ah
022Bh
022Ch
022Dh
022Eh
022Fh
0230h
0231h
0232h
0233h
0234h
0235h
0236h
0237h
0238h
0239h
023Ah
023Bh
023Ch
023Dh
023Eh
023Fh
0240h
0241h
0242h
0243h
0244h
0245h
0246h
0247h
0248h
0249h
024Ah
024Bh
024Ch
024Dh
024Eh
024Fh
0250h
0251h
0252h
0253h
0254h
0255h
0256h
0257h
0258h
0259h
025Ah
025Bh
025Ch
025Dh
025Eh
025Fh
B - 5
AddressRegisterSymbolPage
0260h
0261h
0262h
0263h
0264h
0265h
0266h
0267h
0268h
0269h
026Ah
026Bh
026Ch
026Dh
026Eh
026Fh
0270h
0271h
0272h
0273h
0274h
0275h
0276h
0277h
0278h
0279h
027Ah
027Bh
027Ch
027Dh
027Eh
027Fh
0280h
0281h
0282h
0283h
0284h
0285h
0286h
0287h
0288h
0289h
028Ah
028Bh
028Ch
028Dh
028Eh
028Fh
0290h Timer RF RegisterTRF366
0291h
0292h
0293h
0294h
0295h
0296h
0297h
0298h
0299h
029Ah Timer RF Control Register 0TRFCR0367
029Bh Timer RF Control Register 1TRFCR1368
029Ch Capture / Compare 0 RegisterTRFM0366
029Dh
029Eh Compare 1 RegisterTRFM1366
029Fh
NOTE:
1. The blank regions are reserved. Do not access locations in these
regions.
AddressRegisterSymbolPage
02A0h
02A1h
02A2h
02A3h
02A4h
02A5h
02A6h
02A7h
02A8h
02A9h
02AAh
02ABh
02ACh
02ADh
02AEh
02AFh
02B0h
02B1h
02B2h
02B3h
02B4h
02B5h
02B6h
02B7h
02B8h
02B9h
02BAh
02BBh
02BCh
02BDh
02BEh
02BFh
02C0h A/D Register 0AD0477
02C1h
02C2h A/D Register 1AD1477
02C3h
02C4h A/D Register 2AD2477
02C5h
02C6h A/D Register 3AD3477
02C7h
02C8h
02C9h
02CAh
02CBh
02CCh
02CDh
02CEh
02CFh
02D0h
02D1h
02D2h
02D3h
02D4h A/D Control Register 2ADCON2477
02D5h
02D6h A/D Control Register 0ADCON0478
02D7h A/D Control Register 1ADCON1479
02D8h
02D9h
02DAh
02DBh
02DCh
02DDh
02DEh
02DFh
B - 6
AddressRegisterSymbolPage
02E0h Port P7 Direction RegisterPD767
02E1h
02E2h Port P7 RegisterP768
02E3h
02E4h Port P8 Direction RegisterPD867
02E5h Port P9 Direction RegisterPD967
02E6h Port P8 RegisterP868
02E7h Port P9 RegisterP968
02E8h
02E9h
02EAh
02EBh
02ECh
02EDh
02EEh
02EFh
02F0h
02F1h
02F2h
02F3h
02F4h
02F5h
02F6h
02F7h
02F8h
02F9h
02FAh
02FBh
02FCh Pull-Up Control Register 2PUR270
02FDh
02FEh
02FFh Timer RF Output Control RegisterTRFOUT368
FFFFh Option Function Select RegisterOFS34, 155, 499
NOTE:
1. The blank regions are reserved. Do not access locations in these
regions.
B - 7
R8C/2C Group, R8C/2D Group
REJ09B0339-0200
RENESAS MCU
1.Overview
1.1Features
The R8C/2C Group and R8C/2D Group of single-chip MCUs incorporates the R8C/ Tiny Series CPU core,
employing sophisticated instructions for a high level of efficiency. With 1 Mbyte of address space, and it is capable
of executing instructions at high speed. In addition, the CPU core boasts a multiplier for high-speed operation
processing.
Power consumption is low, and the supported operating modes allow additional power control. These MCUs also
use an anti-noise configuration to reduce emissions of electromagnetic noise and are designed to withstand EMI.
Integration of many peripheral functions, including multifunction timer and serial interface, reduces the number of
system components.
Furthermore, the R8C/2D Group has on-chip data flash (1 KB × 2 blocks).
The difference between the R8C/2C Group and R8C/2D Group is only the presence or absence of data flash. Their
peripheral functions are the same.
1.1.1Applications
Electronic household appliances, office equipment, audio equipment, consumer equipment, etc.
Rev.2.00
Dec 05, 2007
Rev.2.00Dec 05, 2007Page 1 of 585
REJ09B0339-0200
R8C/2C Group, R8C/2D Group1. Overview
1.1.2Specifications
Tables 1.1 and 1.2 outlines the Specifications for R8C/2C Group and Tables 1.3 and 1.4 outlines the
Specifications for R8C/2D Group.
Table 1.1Specifications for R8C/2C Group (1)
ItemFunctionSpecification
CPUCentral processing
unit
MemoryROM, RAMRefer to Table 1.5 Product List for R8C/2C Group.
Power Supply
Voltage
Detection
I/O PortsProgrammable I/O
Table 1.5 lists Product List for R8C/2C Group, Figure 1.1 shows a Part Number, Memory Size, and Package of
R8C/2C Group, Table 1.6 lists Product List for R8C/2D Group, and Figure 1.2 shows a Part Number, Memory
Size, and Package of R8C/2D Group.
Table 1.5Product List for R8C/2C GroupCurrent of Dec. 2007