Renesas Answering Machine g1a User manual

Type
User manual

This manual is also suitable for

User’s Manual
RL78/G1
A
Users Manual: Hardware
16
16-Bit Single-Chip Microcontrollers
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.00 Jul 2013
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.
“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)
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 transition 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 generated 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-down 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 be 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 grounded using 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 external power supply after switching on the 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 power on/off sequences may result in the application of an
overvoltage to the internal elements of the device, causing malfunction and degradation of internal elements
due to the passage of an abnormal current. The correct power 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
Readers This manual is intended for user engineers who wish to understand the functions of the
RL78/G1A and design and develop application systems and programs for these devices.
The target products are as follows.
25-pin: R5F10E8x (x = A, C, D, E)
32-pin: R5F10EBx (x = A, C, D, E)
48-pin: R5F10EGx (x = A, C, D, E)
64-pin: R5F10ELx (x = C, D, E)
Purpose This manual is intended to give users an understanding of the functions described in the
Organization below.
Organization The RL78/G1A manual is separated into two parts: this manual and the instructions edition
(common to the RL78 Microcontroller).
RL78/G1A
User’s Manual
(This Manual)
RL78 Microcontroller
User’s Manual
Instructions
Pin functions
Internal block functions
Interrupts
Other on-chip peripheral functions
Electrical specifications
CPU functions
Instruction set
Explanation of each instruction
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 assembler, and is defined as an sfr variable using the #pragma sfr
directive in the compiler.
To know details of the RL78G1A Microcontroller instructions:
Refer to the separate document RL78 Microcontroller Instructions User’s Manual
(R01US0015E).
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
...
×××× or ××××B
Decimal
...
××××
Hexadecimal
...
××××H
Related Documents The 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.
RL78/G1A User’s Manual Hardware This manual
RL78 family User’s Manual: Software R01US0015E
Documents Related to Flash Memory Programming
Document Name Document No.
PG-FP5 Flash Memory Programmer User’s Manual R20UT0008E
Caution The related documents listed above are subject to change without notice. Be sure to use the latest
version of each document when designing.
Other Documents
Document Name Document No.
Renesas MPUs & MCUs RL78 Family R01CP0003E
Semiconductor Package Mount Manual Note
Quality Grades on NEC Semiconductor Devices C11531E
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD) C11892E
Semiconductor Reliability Handbook R51ZZ0001E
Note See the “Semiconductor Package Mount Manual” website (http://www.renesas.com/products/package/manual/index.jsp).
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.
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.
CONTENTS
CHAPTER 1 OUTLINE............................................................................................................................... 1
1.1 Features ....................................................................................................................................... 1
1.2 List of Part Numbers................................................................................................................... 4
1.3 Pin Configuration (Top View)..................................................................................................... 6
1.3.1 25-pin products ............................................................................................................................... 6
1.3.2 32-pin products ............................................................................................................................... 7
1.3.3 48-pin products ............................................................................................................................... 8
1.3.4 64-pin products ............................................................................................................................. 10
1.4 Pin Identification ....................................................................................................................... 12
1.5 Block Diagram ........................................................................................................................... 13
1.5.1 25-pin products ............................................................................................................................. 13
1.5.2 32-pin products ............................................................................................................................. 14
1.5.3 48-pin products ............................................................................................................................. 15
1.5.4 64-pin products ............................................................................................................................. 16
1.6 Outline of Functions ................................................................................................................. 17
CHAPTER 2 PIN FUNCTIONS ............................................................................................................... 19
2.1 Port Function............................................................................................................................. 19
2.1.1 25-pin products ............................................................................................................................. 20
2.1.2 32-pin products ............................................................................................................................. 22
2.1.3 48-pin products ............................................................................................................................. 24
2.1.4 64-pin products ............................................................................................................................. 26
2.2 Functions Other than Port Pins ............................................................................................... 29
2.2.1 With functions for each product .................................................................................................... 29
2.2.2 Explanation of function.................................................................................................................. 33
2.3 Pin I/O Circuits and Recommended Connection of Unused Pins........................................ 35
2.4 Block Diagrams of Pins ............................................................................................................ 36
CHAPTER 3 CPU ARCHITECTURE ...................................................................................................... 47
3.1 Memory Space........................................................................................................................... 47
3.1.1 Internal program memory space ................................................................................................... 54
3.1.2 Mirror area .................................................................................................................................... 57
3.1.3 Internal data memory space ......................................................................................................... 59
3.1.4 Special function register (SFR) area............................................................................................. 60
3.1.5 Extended special function register (2nd SFR: 2nd Special Function Register) area..................... 60
3.1.6 Data memory addressing.............................................................................................................. 61
3.2 Processor Registers ................................................................................................................. 62
3.2.1 Control registers ........................................................................................................................... 62
3.2.2 General-purpose registers ............................................................................................................ 64
3.2.3 ES and CS registers ..................................................................................................................... 65
3.2.4 Special function registers (SFRs) ................................................................................................. 66
3.2.5 Extended special function registers (2nd SFRs) ........................................................................... 72
Index-1
3.3 Instruction Address Addressing ............................................................................................. 79
3.3.1 Relative addressing ...................................................................................................................... 79
3.3.2 Immediate addressing................................................................................................................... 79
3.3.3 Table indirect addressing.............................................................................................................. 80
3.3.4 Register direct addressing ............................................................................................................ 81
3.4 Addressing for Processing Data Addresses.......................................................................... 82
3.4.1 Implied addressing........................................................................................................................ 82
3.4.2 Register addressing...................................................................................................................... 82
3.4.3 Direct addressing.......................................................................................................................... 83
3.4.4 Short direct addressing................................................................................................................. 84
3.4.5 SFR addressing ............................................................................................................................ 85
3.4.6 Register indirect addressing ......................................................................................................... 86
3.4.7 Based addressing ......................................................................................................................... 87
3.4.8 Based indexed addressing............................................................................................................ 91
3.4.9 Stack addressing .......................................................................................................................... 92
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 96
4.1 Port Functions........................................................................................................................... 96
4.2 Port Configuration..................................................................................................................... 97
4.2.1 Port 0 ............................................................................................................................................ 98
4.2.2 Port 1 ............................................................................................................................................ 98
4.2.3 Port 2 ............................................................................................................................................ 99
4.2.4 Port 3 ............................................................................................................................................ 99
4.2.5 Port 4 .......................................................................................................................................... 100
4.2.6 Port 5 .......................................................................................................................................... 100
4.2.7 Port 6 .......................................................................................................................................... 100
4.2.8 Port 7 .......................................................................................................................................... 101
4.2.9 Port 12 ........................................................................................................................................ 101
4.2.10 Port 13 ........................................................................................................................................ 101
4.2.11 Port 14 ........................................................................................................................................ 102
4.2.12 Port 15 ........................................................................................................................................ 102
4.3 Registers Controlling Port Function ..................................................................................... 103
4.3.1 Port mode registers (PMxx) ........................................................................................................ 105
4.3.2 Port registers (Pxx) ..................................................................................................................... 106
4.3.3 Pull-up resistor option registers (PUxx)....................................................................................... 107
4.3.4 Port input mode registers (PIMxx) .............................................................................................. 108
4.3.5 Port output mode registers (POMxx) .......................................................................................... 109
4.3.6 Port mode control registers (PMCxx).......................................................................................... 110
4.3.7 A/D port configuration register (ADPC) ....................................................................................... 111
4.3.8 Peripheral I/O redirection register (PIOR)................................................................................... 112
4.3.9 Global digital input disable register (GDIDIS) ............................................................................. 113
4.3.10 Global analog input disable register (GAIDIS) ............................................................................ 114
4.4 Port Function Operations....................................................................................................... 115
4.4.1 Writing to I/O port........................................................................................................................ 115
4.4.2 Reading from I/O port ................................................................................................................. 115
4.4.3 Operations on I/O port ................................................................................................................ 115
Index-2
4.4.4 Handling different potential (1.8 V or 2.5 V) by using EV
DD VDD............................................... 116
4.4.5 Handling different potential (1.8 V or 2.5 V) by using I/O buffers ................................................ 116
4.5 Register Settings When Using Alternate Function.............................................................. 118
4.5.1 Basic concept when using alternate function .............................................................................. 118
4.5.2 Register settings for alternate function whose output function is not used ................................. 119
4.5.3 Register setting examples for used port and alternate functions ................................................ 120
4.6 Cautions When Using Port Function..................................................................................... 137
4.6.1 Cautions on 1-bit manipulation instruction for port register n (Pn) .............................................. 137
4.6.2 Notes on specifying the pin settings ........................................................................................... 138
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 139
5.1 Functions of Clock Generator................................................................................................ 139
5.2 Configuration of Clock Generator ......................................................................................... 141
5.3 Registers Controlling Clock Generator................................................................................. 143
5.3.1 Clock operation mode control register (CMC)............................................................................. 143
5.3.2 System clock control register (CKC) ........................................................................................... 146
5.3.3 Clock operation status control register (CSC)............................................................................. 147
5.3.4 Oscillation stabilization time counter status register (OSTC) ...................................................... 148
5.3.5 Oscillation stabilization time select register (OSTS) ................................................................... 150
5.3.6 Peripheral enable register 0 (PER0) ........................................................................................... 152
5.3.7 Subsystem clock supply mode control register (OSMC)............................................................. 155
5.3.8 High-speed on-chip oscillator frequency select register (HOCODIV).......................................... 156
5.3.9 High-speed on-chip oscillator trimming register (HIOTRM)......................................................... 157
5.4 System Clock Oscillator ......................................................................................................... 158
5.4.1 X1 oscillator ................................................................................................................................ 158
5.4.2 XT1 oscillator .............................................................................................................................. 158
5.4.3 High-speed on-chip oscillator...................................................................................................... 162
5.4.4 Low-speed on-chip oscillator ...................................................................................................... 162
5.5 Clock Generator Operation .................................................................................................... 163
5.6 Controlling Clock .................................................................................................................... 165
5.6.1 Example of setting high-speed on-chip oscillator........................................................................ 165
5.6.2 Example of setting X1 oscillation clock ....................................................................................... 166
5.6.3 Example of setting XT1 oscillation clock ..................................................................................... 167
5.6.4 CPU clock status transition diagram ........................................................................................... 168
5.6.5 Condition before changing CPU clock and processing after changing CPU clock...................... 174
5.6.6 Time required for switchover of CPU clock and system clock..................................................... 176
5.6.7 Conditions before clock oscillation is stopped............................................................................. 177
5.7 Resonator and Oscillator Constants..................................................................................... 178
CHAPTER 6 TIMER ARRAY UNIT...................................................................................................... 182
6.1 Functions of Timer Array Unit ............................................................................................... 184
6.1.1 Independent channel operation function..................................................................................... 184
6.1.2 Simultaneous channel operation function ................................................................................... 185
6.1.3 8-bit timer operation function (channels 1 and 3 only) ................................................................ 186
6.1.4 LIN-bus supporting function (channel 7 of unit 0 only)................................................................ 187
6.2 Configuration of Timer Array Unit ......................................................................................... 188
Index-3
6.2.1 Timer count register mn (TCRmn) .............................................................................................. 193
6.2.2 Timer data register mn (TDRmn) ................................................................................................ 195
6.3 Registers Controlling Timer Array Unit ................................................................................ 196
6.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 197
6.3.2 Timer clock select register m (TPSm)......................................................................................... 198
6.3.3 Timer mode register mn (TMRmn).............................................................................................. 201
6.3.4 Timer status register mn (TSRmn).............................................................................................. 206
6.3.5 Timer channel enable status register m (TEm)........................................................................... 207
6.3.6 Timer channel start register m (TSm) ......................................................................................... 208
6.3.7 Timer channel stop register m (TTm).......................................................................................... 209
6.3.8 Timer input select register 0 (TIS0)............................................................................................. 210
6.3.9 Timer output enable register m (TOEm) ..................................................................................... 211
6.3.10 Timer output register m (TOm) ................................................................................................... 212
6.3.11 Timer output level register m (TOLm) ......................................................................................... 213
6.3.12 Timer output mode register m (TOMm)....................................................................................... 214
6.3.13 Input switch control register (ISC)............................................................................................... 215
6.3.14 Noise filter enable register 1 (NFEN1) ........................................................................................ 216
6.3.15 Registers controlling port functions of pins to be used for timer I/O............................................ 218
6.4 Basic Rules of Timer Array Unit ............................................................................................ 219
6.4.1 Basic rules of simultaneous channel operation function ............................................................. 219
6.4.2 Basic rules of 8-bit timer operation function (channels 1 and 3 only).......................................... 221
6.5 Operation of Counter .............................................................................................................. 222
6.5.1 Count clock (fTCLK)....................................................................................................................... 222
6.5.2 Start timing of counter................................................................................................................. 224
6.5.3 Operation of counter ................................................................................................................... 225
6.6 Channel Output (TOmn Pin) Control ..................................................................................... 230
6.6.1 TOmn pin output circuit configuration ......................................................................................... 230
6.6.2 TOmn pin output setting.............................................................................................................. 231
6.6.3 Cautions on channel output operation ........................................................................................ 232
6.6.4 Collective manipulation of TOmn bit ........................................................................................... 237
6.6.5 Timer Interrupt and TOmn pin output at operation start .............................................................. 238
6.7 Timer Input (TImn) Control..................................................................................................... 239
6.7.1 TImn pin input circuit configuration ............................................................................................. 239
6.7.2 Noise filter................................................................................................................................... 239
6.7.3 Cautions on channel input .......................................................................................................... 240
6.8 Independent Channel Operation Function of Timer Array Unit ......................................... 241
6.8.1 Operation as interval timer/square wave output.......................................................................... 241
6.8.2 Operation as external event counter ........................................................................................... 247
6.8.3 Operation as frequency divider (channel 0 of unit 0 only) ........................................................... 252
6.8.4 Operation as input pulse interval measurement.......................................................................... 256
6.8.5 Operation as input signal high-/low-level width measurement .................................................... 260
6.8.6 Operation as delay counter......................................................................................................... 264
6.9 Simultaneous Channel Operation Function of Timer Array Unit ....................................... 269
6.9.1 Operation as one-shot pulse output function .............................................................................. 269
6.9.2 Operation as PWM function ........................................................................................................ 276
6.9.3 Operation as multiple PWM output function................................................................................ 283
6.10 Cautions When Using Timer Array Unit................................................................................ 291
Index-4
6.10.1 Cautions when using timer output............................................................................................... 291
CHAPTER 7 REAL-TIME CLOCK........................................................................................................ 292
7.1 Functions of Real-time Clock................................................................................................. 292
7.2 Configuration of Real-time Clock .......................................................................................... 293
7.3 Registers Controlling Real-time Clock.................................................................................. 295
7.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 296
7.3.2 Subsystem clock supply mode control register (OSMC)............................................................. 297
7.3.3 Real-time clock control register 0 (RTCC0) ................................................................................ 298
7.3.4 Real-time clock control register 1 (RTCC1) ................................................................................ 299
7.3.5 Second count register (SEC) ...................................................................................................... 301
7.3.6 Minute count register (MIN) ........................................................................................................ 301
7.3.7 Hour count register (HOUR) ....................................................................................................... 302
7.3.8 Day count register (DAY)............................................................................................................ 304
7.3.9 Week count register (WEEK) ...................................................................................................... 305
7.3.10 Month count register (MONTH)................................................................................................... 306
7.3.11 Year count register (YEAR) ........................................................................................................ 306
7.3.12 Watch error correction register (SUBCUD) ................................................................................. 307
7.3.13 Alarm minute register (ALARMWM)............................................................................................ 308
7.3.14 Alarm hour register (ALARMWH)................................................................................................ 308
7.3.15 Alarm week register (ALARMWW).............................................................................................. 308
7.3.16 Port mode register 3 (PM3)......................................................................................................... 309
7.3.17 Port register 3 (P3) ..................................................................................................................... 309
7.4 Real-time Clock Operation ..................................................................................................... 310
7.4.1 Starting operation of real-time clock ........................................................................................... 310
7.4.2 Shifting to HALT/STOP mode after starting operation ................................................................ 311
7.4.3 Reading/writing real-time clock ................................................................................................... 312
7.4.4 Setting alarm of real-time clock................................................................................................... 314
7.4.5 1 Hz output of real-time clock ..................................................................................................... 315
7.4.6 Example of watch error correction of real-time clock .................................................................. 316
CHAPTER 8 12-BIT INTERVAL TIMER .............................................................................................. 321
8.1 Functions of 12-bit Interval Timer ......................................................................................... 321
8.2 Configuration of 12-bit Interval Timer ................................................................................... 321
8.3 Registers Controlling 12-bit Interval Timer .......................................................................... 322
8.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 322
8.3.2 Subsystem clock supply mode control register (OSMC)............................................................. 323
8.3.3 Interval timer control register (ITMC) .......................................................................................... 324
8.4 12-bit Interval Timer Operation.............................................................................................. 325
8.4.1 12-bit interval timer operation timing........................................................................................... 325
8.4.2 Starting counter operation after returning from HALT or STOP mode and then shifting to
HALT or STOP mode again ........................................................................................................ 326
CHAPTER 9 CLOCK OUTPUT/BUZZER OUTPUT CONTROLLER................................................. 327
9.1 Functions of Clock Output/Buzzer Output Controller ......................................................... 327
Index-5
9.2 Configuration of Clock Output/Buzzer Output Controller................................................... 329
9.3 Registers Controlling Clock Output/Buzzer Output Controller.......................................... 329
9.3.1 Clock output select registers n (CKSn) ....................................................................................... 329
9.3.2 Registers controlling port functions of pins to be used for clock or buzzer output....................... 331
9.4 Operations of Clock Output/Buzzer Output Controller ....................................................... 332
9.4.1 Operation as output pin............................................................................................................... 332
9.5 Cautions of Clock Output/Buzzer Output Controller........................................................... 332
CHAPTER 10 WATCHDOG TIMER ..................................................................................................... 333
10.1 Functions of Watchdog Timer ............................................................................................... 333
10.2 Configuration of Watchdog Timer ......................................................................................... 334
10.3 Register Controlling Watchdog Timer .................................................................................. 335
10.3.1 Watchdog timer enable register (WDTE) .................................................................................... 335
10.4 Operation of Watchdog Timer................................................................................................ 336
10.4.1 Controlling operation of watchdog timer...................................................................................... 336
10.4.2 Setting overflow time of watchdog timer ..................................................................................... 337
10.4.3 Setting window open period of watchdog timer........................................................................... 338
10.4.4 Setting watchdog timer interval interrupt..................................................................................... 339
CHAPTER 11 A/D CONVERTER ......................................................................................................... 340
11.1 Function of A/D Converter ..................................................................................................... 340
11.2 Configuration of A/D Converter ............................................................................................. 343
11.3 Registers Used in A/D Converter........................................................................................... 345
11.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 346
11.3.2 A/D converter mode register 0 (ADM0)....................................................................................... 347
11.3.3 A/D converter mode register 1 (ADM1)....................................................................................... 359
11.3.4 A/D converter mode register 2 (ADM2)....................................................................................... 360
11.3.5 12-bit A/D conversion result register (ADCR) ............................................................................. 362
11.3.6 8-bit A/D conversion result register (ADCRH)............................................................................. 363
11.3.7 Analog input channel specification register (ADS) ...................................................................... 364
11.3.8 Conversion result comparison upper limit setting register (ADUL).............................................. 366
11.3.9 Conversion result comparison lower limit setting register (ADLL)............................................... 366
11.3.10 A/D test register (ADTES)........................................................................................................... 367
11.3.11 Registers controlling port function of analog input pins............................................................... 368
11.4 A/D Converter Conversion Operations ................................................................................. 369
11.5 Input Voltage and Conversion Results ................................................................................. 371
11.6 A/D Converter Operation Modes............................................................................................ 372
11.6.1 Software trigger mode (select mode, sequential conversion mode) ........................................... 372
11.6.2 Software trigger mode (select mode, one-shot conversion mode).............................................. 373
11.6.3 Software trigger mode (scan mode, sequential conversion mode) ............................................. 374
11.6.4 Software trigger mode (scan mode, one-shot conversion mode)................................................ 375
11.6.5 Hardware trigger no-wait mode (select mode, sequential conversion mode).............................. 376
11.6.6 Hardware trigger no-wait mode (select mode, one-shot conversion mode)................................ 377
11.6.7 Hardware trigger no-wait mode (scan mode, sequential conversion mode) ............................... 378
11.6.8 Hardware trigger no-wait mode (scan mode, one-shot conversion mode).................................. 379
11.6.9 Hardware trigger wait mode (select mode, sequential conversion mode)................................... 380
Index-6
11.6.10 Hardware trigger wait mode (select mode, one-shot conversion mode) ..................................... 381
11.6.11 Hardware trigger wait mode (scan mode, sequential conversion mode)..................................... 382
11.6.12 Hardware trigger wait mode (scan mode, one-shot conversion mode)....................................... 383
11.7 A/D Converter Setup Flowchart ............................................................................................. 384
11.7.1 Setting up software trigger mode ................................................................................................ 385
11.7.2 Setting up hardware trigger no-wait mode .................................................................................. 386
11.7.3 Setting up hardware trigger wait mode ....................................................................................... 387
11.7.4 Setup when temperature sensor output voltage/internal reference voltage is selected
(example for software trigger mode and one-shot conversion mode) ......................................... 388
11.7.5 Setting up test mode................................................................................................................... 389
11.8 SNOOZE Mode Function ........................................................................................................ 390
11.9 How to Read A/D Converter Characteristics Table.............................................................. 394
11.10 Cautions for A/D Converter.................................................................................................... 396
CHAPTER 12 SERIAL ARRAY UNIT.................................................................................................. 400
12.1 Functions of Serial Array Unit ............................................................................................... 401
12.1.1 3-wire serial I/O (CSI00, CSI01, CSI10, CSI11, CSI20, CSI21).................................................. 401
12.1.2 UART (UART0 to UART2) .......................................................................................................... 402
12.1.3 Simplified I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21) .............................................................. 403
12.2 Configuration of Serial Array Unit ......................................................................................... 404
12.2.1 Shift register................................................................................................................................ 407
12.2.2 Lower 8/9 bits of the serial data register mn (SDRmn) ............................................................... 407
12.3 Registers Controlling Serial Array Unit ................................................................................ 409
12.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 410
12.3.2 Serial clock select register m (SPSm)......................................................................................... 411
12.3.3 Serial mode register mn (SMRmn) ............................................................................................. 412
12.3.4 Serial communication operation setting register mn (SCRmn) ................................................... 413
12.3.5 Higher 7 bits of the serial data register mn (SDRmn) ................................................................. 416
12.3.6 Serial flag clear trigger register mn (SIRmn)............................................................................... 418
12.3.7 Serial status register mn (SSRmn) ............................................................................................. 419
12.3.8 Serial channel start register m (SSm) ......................................................................................... 421
12.3.9 Serial channel stop register m (STm) ......................................................................................... 422
12.3.10 Serial channel enable status register m (SEm)........................................................................... 423
12.3.11 Serial output enable register m (SOEm) ..................................................................................... 424
12.3.12 Serial output register m (SOm) ................................................................................................... 425
12.3.13 Serial output level register m (SOLm) ......................................................................................... 426
12.3.14 Serial standby control register 0 (SSC0)..................................................................................... 428
12.3.15 Input switch control register (ISC)............................................................................................... 429
12.3.16 Noise filter enable register 0 (NFEN0) ........................................................................................ 430
12.3.17 Registers controlling port functions of serial input/output pins .................................................... 431
12.4 Operation Stop Mode.............................................................................................................. 432
12.4.1 Stopping the operation by units .................................................................................................. 432
12.4.2 Stopping the operation by channels............................................................................................ 433
12.5 Operation of 3-Wire Serial I/O (CSI00, CSI01, CSI10, CSI11, CSI20, CSI21)
Communication ....................................................................................................................... 434
12.5.1 Master transmission.................................................................................................................... 437
Index-7
12.5.2 Master reception ......................................................................................................................... 447
12.5.3 Master transmission/reception .................................................................................................... 457
12.5.4 Slave transmission...................................................................................................................... 467
12.5.5 Slave reception ........................................................................................................................... 477
12.5.6 Slave transmission/reception ...................................................................................................... 485
12.5.7 SNOOZE mode function ............................................................................................................. 495
12.5.8 Calculating transfer clock frequency ........................................................................................... 499
12.5.9 Procedure for processing errors that occurred during 3-wire serial I/O (CSI00, CSI01, CSI10,
CSI11, CSI20, CSI21) communication........................................................................................ 501
12.6 Operation of UART (UART0 to UART2) Communication..................................................... 502
12.6.1 UART transmission..................................................................................................................... 505
12.6.2 UART reception .......................................................................................................................... 515
12.6.3 SNOOZE mode function ............................................................................................................. 522
12.6.4 Calculating baud rate.................................................................................................................. 530
12.6.5 Procedure for processing errors that occurred during UART (UART0 to UART2)
communication............................................................................................................................ 534
12.7 LIN Communication Operation .............................................................................................. 535
12.7.1 LIN transmission ......................................................................................................................... 535
12.7.2 LIN reception .............................................................................................................................. 538
12.8 Operation of Simplified I
2
C (IIC00, IIC01, IIC10, IIC11, IIC20, IIC21) Communication ....... 544
12.8.1 Address field transmission .......................................................................................................... 547
12.8.2 Data transmission ....................................................................................................................... 553
12.8.3 Data reception ............................................................................................................................ 557
12.8.4 Stop condition generation ........................................................................................................... 562
12.8.5 Calculating transfer rate.............................................................................................................. 563
12.8.6 Procedure for processing errors that occurred during simplified I
2
C (IIC00, IIC01, IIC10, IIC11,
IIC20, IIC21) communication ...................................................................................................... 565
CHAPTER 13 SERIAL INTERFACE IICA ........................................................................................... 566
13.1 Functions of Serial Interface IICA.......................................................................................... 566
13.2 Configuration of Serial Interface IICA ................................................................................... 569
13.3 Registers Controlling Serial Interface IICA .......................................................................... 572
13.3.1 Peripheral enable register 0 (PER0) ........................................................................................... 572
13.3.2 IICA control register 00 (IICCTL00) ............................................................................................ 573
13.3.3 IICA status register 0 (IICS0) ...................................................................................................... 578
13.3.4 IICA flag register 0 (IICF0).......................................................................................................... 581
13.3.5 IICA control register 01 (IICCTL01) ............................................................................................ 583
13.3.6 IICA low-level width setting register 0 (IICWL0).......................................................................... 585
13.3.7 IICA high-level width setting register 0 (IICWH0)........................................................................ 585
13.3.8 Port mode register 6 (PM6)......................................................................................................... 586
13.4 I
2
C Bus Mode Functions ......................................................................................................... 587
13.4.1 Pin configuration ......................................................................................................................... 587
13.4.2 Setting transfer clock by using IICWL0 and IICWH0 registers .................................................... 588
13.5 I
2
C Bus Definitions and Control Methods ............................................................................. 590
13.5.1 Start conditions ........................................................................................................................... 590
13.5.2 Addresses................................................................................................................................... 591
Index-8
13.5.3 Transfer direction specification ................................................................................................... 591
13.5.4 Acknowledge (ACK).................................................................................................................... 592
13.5.5 Stop condition ............................................................................................................................. 593
13.5.6 Wait ............................................................................................................................................ 594
13.5.7 Canceling wait ............................................................................................................................ 596
13.5.8 Interrupt request (INTIICA0) generation timing and wait control ................................................. 597
13.5.9 Address match detection method ............................................................................................... 598
13.5.10 Error detection ............................................................................................................................ 598
13.5.11 Extension code ........................................................................................................................... 598
13.5.12 Arbitration ................................................................................................................................... 599
13.5.13 Wakeup function ......................................................................................................................... 601
13.5.14 Communication reservation ........................................................................................................ 604
13.5.15 Cautions...................................................................................................................................... 608
13.5.16 Communication operations ......................................................................................................... 609
13.5.17 Timing of I
2
C interrupt request (INTIICA0) occurrence................................................................ 616
13.6 Timing Charts .......................................................................................................................... 637
CHAPTER 14 MULTIPLIER AND DIVIDER/MULTIPLY-ACCUMULATOR ....................................... 652
14.1 Functions of Multiplier and Divider/Multiply-Accumulator................................................. 652
14.2 Configuration of Multiplier and Divider/Multiply-Accumulator .......................................... 652
14.2.1 Multiplication/division data register A (MDAH, MDAL) ................................................................ 654
14.2.2 Multiplication/division data register B (MDBL, MDBH) ................................................................ 655
14.2.3 Multiplication/division data register C (MDCL, MDCH) ............................................................... 656
14.3 Register Controlling Multiplier and Divider/Multiply-Accumulator.................................... 658
14.3.1 Multiplication/division control register (MDUC) ........................................................................... 658
14.4 Operations of Multiplier and Divider/Multiply-Accumulator ............................................... 660
14.4.1 Multiplication (unsigned) operation ............................................................................................. 660
14.4.2 Multiplication (signed) operation ................................................................................................. 661
14.4.3 Multiply-accumulation (unsigned) operation................................................................................ 662
14.4.4 Multiply-accumulation (signed) operation.................................................................................... 664
14.4.5 Division operation ....................................................................................................................... 666
CHAPTER 15 DMA CONTROLLER ..................................................................................................... 668
15.1 Functions of DMA Controller ................................................................................................. 668
15.2 Configuration of DMA Controller........................................................................................... 669
15.2.1 DMA SFR address register n (DSAn) ......................................................................................... 669
15.2.2 DMA RAM address register n (DRAn) ........................................................................................ 670
15.2.3 DMA byte count register n (DBCn) ............................................................................................. 671
15.3 Registers Controlling DMA Controller .................................................................................. 672
15.3.1 DMA mode control register n (DMCn)......................................................................................... 672
15.3.2 DMA operation control register n (DRCn) ................................................................................... 674
15.4 Operation of DMA Controller ................................................................................................. 675
15.4.1 Operation procedure ................................................................................................................... 675
15.4.2 Transfer mode ............................................................................................................................ 676
15.4.3 Termination of DMA transfer....................................................................................................... 676
15.5 Example of Setting of DMA Controller.................................................................................. 677
Index-9
15.5.1 CSI consecutive transmission..................................................................................................... 677
15.5.2 Consecutive capturing of A/D conversion results........................................................................ 679
15.5.3 UART consecutive reception + ACK transmission...................................................................... 681
15.5.4 Holding DMA transfer pending by DWAITn bit............................................................................ 682
15.5.5 Forced termination by software................................................................................................... 683
15.6 Cautions on Using DMA Controller ....................................................................................... 685
CHAPTER 16 INTERRUPT FUNCTIONS............................................................................................. 688
16.1 Interrupt Function Types........................................................................................................ 688
16.2 Interrupt Sources and Configuration .................................................................................... 688
16.3 Registers Controlling Interrupt Functions............................................................................ 694
16.3.1 Interrupt request flag registers (IF0L, IF0H, IF1L, IF1H, IF2L, IF2H) .......................................... 698
16.3.2 Interrupt mask flag registers (MK0L, MK0H, MK1L, MK1H, MK2L, MK2H) ................................ 699
16.3.3 Priority specification flag registers (PR00L, PR00H, PR01L, PR01H, PR02L, PR02H, PR10L,
PR10H, PR11L, PR11H, PR12L, PR12H) .................................................................................. 701
16.3.4 External interrupt rising edge enable registers (EGP0, EGP1), external interrupt falling edge
enable registers (EGN0, EGN1) ................................................................................................. 703
16.3.5 Program status word (PSW) ....................................................................................................... 705
16.4 Interrupt Servicing Operations .............................................................................................. 706
16.4.1 Maskable interrupt request acknowledgment.............................................................................. 706
16.4.2 Software interrupt request acknowledgment............................................................................... 709
16.4.3 Multiple interrupt servicing .......................................................................................................... 709
16.4.4 Interrupt request hold.................................................................................................................. 713
CHAPTER 17 KEY INTERRUPT FUNCTION ..................................................................................... 714
17.1 Functions of Key Interrupt ..................................................................................................... 714
17.2 Configuration of Key Interrupt............................................................................................... 715
17.3 Register Controlling Key Interrupt ........................................................................................ 717
17.3.1 Key return control register (KRCTL) ........................................................................................... 717
17.3.2 Key return mode registers 0, 1 (KRM0, KRM1) .......................................................................... 718
17.3.3 Key return flag register (KRF) ..................................................................................................... 719
17.3.4 Port mode registers 0 to 2, 7, 12, 15 (PM0 to PM2, PM7, PM12, PM15).................................... 720
17.3.5 Peripheral I/O redirection register (PIOR)................................................................................... 721
17.4 Key Interrupt Operation.......................................................................................................... 722
17.4.1 When not using the key interrupt flag (KRMD = 0)...................................................................... 722
17.4.2 When using the key interrupt flag (KRMD = 1) ........................................................................... 723
CHAPTER 18 STANDBY FUNCTION .................................................................................................. 726
18.1 Standby Function.................................................................................................................... 726
18.2 Registers Controlling Standby Function .............................................................................. 727
18.3 Standby Function Operation.................................................................................................. 727
18.3.1 HALT mode................................................................................................................................. 727
18.3.2 STOP mode................................................................................................................................ 732
18.3.3 SNOOZE mode........................................................................................................................... 737
Index-10
CHAPTER 19 RESET FUNCTION........................................................................................................ 740
19.1 Timing of Reset Operation ..................................................................................................... 742
19.2 States of Operation During Reset Periods ........................................................................... 744
19.3 Register for Confirming Reset Source.................................................................................. 746
19.3.1 Reset control flag register (RESF) .............................................................................................. 746
CHAPTER 20 POWER-ON-RESET CIRCUIT ...................................................................................... 749
20.1 Functions of Power-on-reset Circuit ..................................................................................... 749
20.2 Configuration of Power-on-reset Circuit............................................................................... 750
20.3 Operation of Power-on-reset Circuit ..................................................................................... 750
CHAPTER 21 VOLTAGE DETECTOR ................................................................................................. 754
21.1 Functions of Voltage Detector ............................................................................................... 754
21.2 Configuration of Voltage Detector......................................................................................... 755
21.3 Registers Controlling Voltage Detector................................................................................ 755
21.3.1 Voltage detection register (LVIM) ............................................................................................... 756
21.3.2 Voltage detection level register (LVIS)........................................................................................ 757
21.4 Operation of Voltage Detector ............................................................................................... 760
21.4.1 When used as reset mode.......................................................................................................... 760
21.4.2 When used as interrupt mode..................................................................................................... 762
21.4.3 When used as interrupt & reset mode ........................................................................................ 764
21.5 Cautions for Voltage Detector ............................................................................................... 770
CHAPTER 22 SAFETY FUNCTIONS ................................................................................................... 772
22.1 Overview of Safety Functions................................................................................................ 772
22.2 Registers Used by Safety Functions..................................................................................... 773
22.3 Operation of Safety Functions............................................................................................... 773
22.3.1 Flash memory CRC operation function (high-speed CRC) ......................................................... 773
22.3.2 CRC operation function (general-purpose CRC) ........................................................................ 776
22.3.3 RAM parity error detection function ............................................................................................ 778
22.3.4 RAM guard function .................................................................................................................... 780
22.3.5 SFR guard function..................................................................................................................... 781
22.3.6 Invalid memory access detection function .................................................................................. 782
22.3.7 Frequency detection function...................................................................................................... 784
22.3.8 A/D test function ......................................................................................................................... 786
CHAPTER 23 REGULATOR ................................................................................................................. 791
23.1 Regulator Overview................................................................................................................. 791
CHAPTER 24 OPTION BYTE............................................................................................................... 792
24.1 Functions of Option Bytes ..................................................................................................... 792
24.1.1 User option byte (000C0H to 000C2H/010C0H to 010C2H) ....................................................... 792
24.1.2 On-chip debug option byte (000C3H/ 010C3H) .......................................................................... 793
24.2 Format of User Option Byte ................................................................................................... 794
Index-11
24.3 Format of On-chip Debug Option Byte ................................................................................. 798
24.4 Setting of Option Byte ............................................................................................................ 799
CHAPTER 25 FLASH MEMORY .......................................................................................................... 800
25.1 Serial Programming Using Flash Memory Programmer ..................................................... 802
25.1.1 Programming environment.......................................................................................................... 804
25.1.2 Communication mode................................................................................................................. 804
25.2 Serial Programming Using External Device (that Incorporates UART) ............................. 805
25.2.1 Programming environment.......................................................................................................... 805
25.2.2 Communication mode................................................................................................................. 806
25.3 Connection of Pins on Board................................................................................................. 807
25.3.1 P40/TOOL0 pin........................................................................................................................... 807
25.3.2 RESET pin .................................................................................................................................. 807
25.3.3 Port pins...................................................................................................................................... 808
25.3.4 REGC pin.................................................................................................................................... 808
25.3.5 X1 and X2 pins ........................................................................................................................... 808
25.3.6 Power supply .............................................................................................................................. 808
25.4 Serial Programming Method .................................................................................................. 809
25.4.1 Serial programming procedure ................................................................................................... 809
25.4.2 Flash memory programming mode ............................................................................................. 810
25.4.3 Selecting communication mode .................................................................................................. 812
25.4.4 Communication commands ........................................................................................................ 812
25.5 Processing Time for Each Command When PG-FP5 Is in Use (Reference Value)........... 814
25.6 Self-Programming ................................................................................................................... 815
25.6.1 Self-programming procedure ...................................................................................................... 816
25.6.2 Boot swap function ..................................................................................................................... 817
25.6.3 Flash shield window function ...................................................................................................... 819
25.7 Security Settings..................................................................................................................... 820
25.8 Data Flash ................................................................................................................................ 822
25.8.1 Data flash overview .................................................................................................................... 822
25.8.2 Register controlling data flash memory....................................................................................... 822
25.8.3 Procedure for accessing data flash memory............................................................................... 823
CHAPTER 26 ON-CHIP DEBUG FUNCTION ..................................................................................... 824
26.1 Connecting E1 On-Chip Debugging Emulator ..................................................................... 824
26.2 On-Chip Debug Security ID .................................................................................................... 825
26.3 Securing of User Resources .................................................................................................. 825
CHAPTER 27 BCD CORRECTION CIRCUIT ..................................................................................... 827
27.1 BCD Correction Circuit Function........................................................................................... 827
27.2 Registers Used by BCD Correction Circuit .......................................................................... 827
27.2.1 BCD correction result register (BCDADJ) ................................................................................... 827
27.3 BCD Correction Circuit Operation......................................................................................... 828
CHAPTER 28 INSTRUCTION SET....................................................................................................... 830
Index-12
28.1 Conventions Used in Operation List ..................................................................................... 830
28.1.1 Operand identifiers and specification methods ........................................................................... 830
28.1.2 Description of operation column ................................................................................................. 831
28.1.3 Description of flag operation column........................................................................................... 832
28.1.4 PREFIX instruction ..................................................................................................................... 832
28.2 Operation List.......................................................................................................................... 833
CHAPTER 29 ELECTRICAL SPECIFICATIONS (TA = 40 to +85°C)........................................... 850
29.1 Absolute Maximum Ratings ................................................................................................... 851
29.2 Oscillator Characteristics....................................................................................................... 853
29.2.1 X1, XT1 oscillator characteristics................................................................................................ 853
29.2.2 On-chip oscillator characteristics ................................................................................................ 853
29.3 DC Characteristics .................................................................................................................. 854
29.3.1 Pin characteristics....................................................................................................................... 854
29.3.2 Supply current characteristics..................................................................................................... 859
29.4 AC Characteristics .................................................................................................................. 865
29.5 Peripheral Functions Characteristics ................................................................................... 870
29.5.1 Serial array unit........................................................................................................................... 870
29.5.2 Serial interface IICA.................................................................................................................... 893
29.6 Analog Characteristics ........................................................................................................... 896
29.6.1 A/D converter characteristics ...................................................................................................... 896
29.6.2 Temperature sensor, internal reference voltage output characteristics ...................................... 901
29.6.3 POR circuit characteristics.......................................................................................................... 901
29.6.4 LVD circuit characteristics........................................................................................................... 902
29.6.5 Supply voltage rise slope characteristics .................................................................................... 903
29.7 Data Memory STOP Mode Low Supply Voltage Data Retention Characteristics ............. 904
29.8 Flash Memory Programming Characteristics ...................................................................... 904
29.9 Dedicated Flash Memory Programmer Communication (UART) ....................................... 904
29.10 Timing Specs for Switching Flash Memory Programming Modes..................................... 905
CHAPTER 30 ELECTRICAL SPECIFICATIONS
(G: INDUSTRIAL APPLICATIONS T
A = 40 to +105°C)....................................... 906
30.1 Absolute Maximum Ratings ................................................................................................... 907
30.2 Oscillator Characteristics....................................................................................................... 909
30.2.1 X1, XT1 oscillator characteristics................................................................................................ 909
30.2.2 On-chip oscillator characteristics ................................................................................................ 909
30.3 DC Characteristics .................................................................................................................. 910
30.3.1 Pin characteristics....................................................................................................................... 910
30.3.2 Supply current characteristics..................................................................................................... 915
30.4 AC Characteristics .................................................................................................................. 921
30.5 Peripheral Functions Characteristics ................................................................................... 925
30.5.1 Serial array unit........................................................................................................................... 925
30.5.2 Serial interface IICA.................................................................................................................... 943
30.6 Analog Characteristics ........................................................................................................... 944
30.6.1 A/D converter characteristics ...................................................................................................... 944
Index-13
30.6.2 Temperature sensor, internal reference voltage output characteristics ...................................... 948
30.6.3 POR circuit characteristics.......................................................................................................... 948
30.6.4 LVD circuit characteristics........................................................................................................... 949
30.6.5 Supply voltage rise slope characteristics .................................................................................... 949
30.7 Data Memory STOP Mode Low Supply Voltage Data Retention Characteristics ............. 950
30.8 Flash Memory Programming Characteristics ...................................................................... 950
30.9 Dedicated Flash Memory Programmer Communication (UART) ....................................... 950
30.10 Timing Specs for Switching Flash Memory Programming Modes..................................... 951
CHAPTER 31 PACKAGE DRAWINGS ................................................................................................ 952
31.1 25-pin Products ....................................................................................................................... 952
31.2 32-pin Products ....................................................................................................................... 953
31.3 48-pin Products ....................................................................................................................... 954
31.4 64-pin Products ....................................................................................................................... 956
APPENDIX A REVISION HISTORY ..................................................................................................... 958
A.1 Major Revisions in This Edition............................................................................................. 958
A.2 Revision History of Preceding Editions................................................................................ 969
Index-14
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554
  • Page 555 555
  • Page 556 556
  • Page 557 557
  • Page 558 558
  • Page 559 559
  • Page 560 560
  • Page 561 561
  • Page 562 562
  • Page 563 563
  • Page 564 564
  • Page 565 565
  • Page 566 566
  • Page 567 567
  • Page 568 568
  • Page 569 569
  • Page 570 570
  • Page 571 571
  • Page 572 572
  • Page 573 573
  • Page 574 574
  • Page 575 575
  • Page 576 576
  • Page 577 577
  • Page 578 578
  • Page 579 579
  • Page 580 580
  • Page 581 581
  • Page 582 582
  • Page 583 583
  • Page 584 584
  • Page 585 585
  • Page 586 586
  • Page 587 587
  • Page 588 588
  • Page 589 589
  • Page 590 590
  • Page 591 591
  • Page 592 592
  • Page 593 593
  • Page 594 594
  • Page 595 595
  • Page 596 596
  • Page 597 597
  • Page 598 598
  • Page 599 599
  • Page 600 600
  • Page 601 601
  • Page 602 602
  • Page 603 603
  • Page 604 604
  • Page 605 605
  • Page 606 606
  • Page 607 607
  • Page 608 608
  • Page 609 609
  • Page 610 610
  • Page 611 611
  • Page 612 612
  • Page 613 613
  • Page 614 614
  • Page 615 615
  • Page 616 616
  • Page 617 617
  • Page 618 618
  • Page 619 619
  • Page 620 620
  • Page 621 621
  • Page 622 622
  • Page 623 623
  • Page 624 624
  • Page 625 625
  • Page 626 626
  • Page 627 627
  • Page 628 628
  • Page 629 629
  • Page 630 630
  • Page 631 631
  • Page 632 632
  • Page 633 633
  • Page 634 634
  • Page 635 635
  • Page 636 636
  • Page 637 637
  • Page 638 638
  • Page 639 639
  • Page 640 640
  • Page 641 641
  • Page 642 642
  • Page 643 643
  • Page 644 644
  • Page 645 645
  • Page 646 646
  • Page 647 647
  • Page 648 648
  • Page 649 649
  • Page 650 650
  • Page 651 651
  • Page 652 652
  • Page 653 653
  • Page 654 654
  • Page 655 655
  • Page 656 656
  • Page 657 657
  • Page 658 658
  • Page 659 659
  • Page 660 660
  • Page 661 661
  • Page 662 662
  • Page 663 663
  • Page 664 664
  • Page 665 665
  • Page 666 666
  • Page 667 667
  • Page 668 668
  • Page 669 669
  • Page 670 670
  • Page 671 671
  • Page 672 672
  • Page 673 673
  • Page 674 674
  • Page 675 675
  • Page 676 676
  • Page 677 677
  • Page 678 678
  • Page 679 679
  • Page 680 680
  • Page 681 681
  • Page 682 682
  • Page 683 683
  • Page 684 684
  • Page 685 685
  • Page 686 686
  • Page 687 687
  • Page 688 688
  • Page 689 689
  • Page 690 690
  • Page 691 691
  • Page 692 692
  • Page 693 693
  • Page 694 694
  • Page 695 695
  • Page 696 696
  • Page 697 697
  • Page 698 698
  • Page 699 699
  • Page 700 700
  • Page 701 701
  • Page 702 702
  • Page 703 703
  • Page 704 704
  • Page 705 705
  • Page 706 706
  • Page 707 707
  • Page 708 708
  • Page 709 709
  • Page 710 710
  • Page 711 711
  • Page 712 712
  • Page 713 713
  • Page 714 714
  • Page 715 715
  • Page 716 716
  • Page 717 717
  • Page 718 718
  • Page 719 719
  • Page 720 720
  • Page 721 721
  • Page 722 722
  • Page 723 723
  • Page 724 724
  • Page 725 725
  • Page 726 726
  • Page 727 727
  • Page 728 728
  • Page 729 729
  • Page 730 730
  • Page 731 731
  • Page 732 732
  • Page 733 733
  • Page 734 734
  • Page 735 735
  • Page 736 736
  • Page 737 737
  • Page 738 738
  • Page 739 739
  • Page 740 740
  • Page 741 741
  • Page 742 742
  • Page 743 743
  • Page 744 744
  • Page 745 745
  • Page 746 746
  • Page 747 747
  • Page 748 748
  • Page 749 749
  • Page 750 750
  • Page 751 751
  • Page 752 752
  • Page 753 753
  • Page 754 754
  • Page 755 755
  • Page 756 756
  • Page 757 757
  • Page 758 758
  • Page 759 759
  • Page 760 760
  • Page 761 761
  • Page 762 762
  • Page 763 763
  • Page 764 764
  • Page 765 765
  • Page 766 766
  • Page 767 767
  • Page 768 768
  • Page 769 769
  • Page 770 770
  • Page 771 771
  • Page 772 772
  • Page 773 773
  • Page 774 774
  • Page 775 775
  • Page 776 776
  • Page 777 777
  • Page 778 778
  • Page 779 779
  • Page 780 780
  • Page 781 781
  • Page 782 782
  • Page 783 783
  • Page 784 784
  • Page 785 785
  • Page 786 786
  • Page 787 787
  • Page 788 788
  • Page 789 789
  • Page 790 790
  • Page 791 791
  • Page 792 792
  • Page 793 793
  • Page 794 794
  • Page 795 795
  • Page 796 796
  • Page 797 797
  • Page 798 798
  • Page 799 799
  • Page 800 800
  • Page 801 801
  • Page 802 802
  • Page 803 803
  • Page 804 804
  • Page 805 805
  • Page 806 806
  • Page 807 807
  • Page 808 808
  • Page 809 809
  • Page 810 810
  • Page 811 811
  • Page 812 812
  • Page 813 813
  • Page 814 814
  • Page 815 815
  • Page 816 816
  • Page 817 817
  • Page 818 818
  • Page 819 819
  • Page 820 820
  • Page 821 821
  • Page 822 822
  • Page 823 823
  • Page 824 824
  • Page 825 825
  • Page 826 826
  • Page 827 827
  • Page 828 828
  • Page 829 829
  • Page 830 830
  • Page 831 831
  • Page 832 832
  • Page 833 833
  • Page 834 834
  • Page 835 835
  • Page 836 836
  • Page 837 837
  • Page 838 838
  • Page 839 839
  • Page 840 840
  • Page 841 841
  • Page 842 842
  • Page 843 843
  • Page 844 844
  • Page 845 845
  • Page 846 846
  • Page 847 847
  • Page 848 848
  • Page 849 849
  • Page 850 850
  • Page 851 851
  • Page 852 852
  • Page 853 853
  • Page 854 854
  • Page 855 855
  • Page 856 856
  • Page 857 857
  • Page 858 858
  • Page 859 859
  • Page 860 860
  • Page 861 861
  • Page 862 862
  • Page 863 863
  • Page 864 864
  • Page 865 865
  • Page 866 866
  • Page 867 867
  • Page 868 868
  • Page 869 869
  • Page 870 870
  • Page 871 871
  • Page 872 872
  • Page 873 873
  • Page 874 874
  • Page 875 875
  • Page 876 876
  • Page 877 877
  • Page 878 878
  • Page 879 879
  • Page 880 880
  • Page 881 881
  • Page 882 882
  • Page 883 883
  • Page 884 884
  • Page 885 885
  • Page 886 886
  • Page 887 887
  • Page 888 888
  • Page 889 889
  • Page 890 890
  • Page 891 891
  • Page 892 892
  • Page 893 893
  • Page 894 894
  • Page 895 895
  • Page 896 896
  • Page 897 897
  • Page 898 898
  • Page 899 899
  • Page 900 900
  • Page 901 901
  • Page 902 902
  • Page 903 903
  • Page 904 904
  • Page 905 905
  • Page 906 906
  • Page 907 907
  • Page 908 908
  • Page 909 909
  • Page 910 910
  • Page 911 911
  • Page 912 912
  • Page 913 913
  • Page 914 914
  • Page 915 915
  • Page 916 916
  • Page 917 917
  • Page 918 918
  • Page 919 919
  • Page 920 920
  • Page 921 921
  • Page 922 922
  • Page 923 923
  • Page 924 924
  • Page 925 925
  • Page 926 926
  • Page 927 927
  • Page 928 928
  • Page 929 929
  • Page 930 930
  • Page 931 931
  • Page 932 932
  • Page 933 933
  • Page 934 934
  • Page 935 935
  • Page 936 936
  • Page 937 937
  • Page 938 938
  • Page 939 939
  • Page 940 940
  • Page 941 941
  • Page 942 942
  • Page 943 943
  • Page 944 944
  • Page 945 945
  • Page 946 946
  • Page 947 947
  • Page 948 948
  • Page 949 949
  • Page 950 950
  • Page 951 951
  • Page 952 952
  • Page 953 953
  • Page 954 954
  • Page 955 955
  • Page 956 956
  • Page 957 957
  • Page 958 958
  • Page 959 959
  • Page 960 960
  • Page 961 961
  • Page 962 962
  • Page 963 963
  • Page 964 964
  • Page 965 965
  • Page 966 966
  • Page 967 967
  • Page 968 968
  • Page 969 969
  • Page 970 970
  • Page 971 971
  • Page 972 972
  • Page 973 973
  • Page 974 974
  • Page 975 975
  • Page 976 976
  • Page 977 977
  • Page 978 978
  • Page 979 979
  • Page 980 980
  • Page 981 981
  • Page 982 982
  • Page 983 983
  • Page 984 984
  • Page 985 985
  • Page 986 986
  • Page 987 987
  • Page 988 988
  • Page 989 989
  • Page 990 990
  • Page 991 991
  • Page 992 992
  • Page 993 993
  • Page 994 994
  • Page 995 995
  • Page 996 996
  • Page 997 997
  • Page 998 998
  • Page 999 999
  • Page 1000 1000
  • Page 1001 1001
  • Page 1002 1002
  • Page 1003 1003
  • Page 1004 1004

Renesas Answering Machine g1a User manual

Type
User manual
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI