Renesas H8/3644 Series User manual

Type
User manual
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas
Electronics Corporation took over all the business of both
companies.
Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry
.
Notice
1. All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please
confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to
additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
2. 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.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
4. 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.
5. When exporting the 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. You should not use Renesas
Electronics products or the 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. 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.
6. 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.
7. Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as
indicated below. 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 categorized as “Specific” without the prior
written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for
which it is not intended without the prior written consent of Renesas Electronics. 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 an
application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written
consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise
expressly specified in a Renesas Electronics data sheets or data books, etc.
“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.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
crime systems; safety equipment; and medical equipment not specifically designed for life support.
“Specific”: Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare
intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
8. 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.
9. 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 system
manufactured by you.
10. 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.
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.
H8/3644 Group, H8/3644R Group
H8/3644 F-ZTAT
TM
, H8/3643 F-ZTAT
TM
,
H8/3642A F-ZTAT
TM
Hardware Manual
8
Users Manual
Rev.6.00 2006.09
Renesas 8-Bit Single-Chip Microcomputer
H8 Family/H8/300L Series
H8/3644 HD6473644 H8/3644R HD6473644R
HD6433644 HD6433644R
HD64F3644
H8/3643 HD6433643 H8/3643R HD6433643R
HD64F3643
H8/3642 HD6433642 H8/3642R HD6433642R
HD64F3642A
H8/3641 HD6433641 H8/3641R HD6433641R
H8/3640 HD6433640 H8/3640R HD6433640R
The revision list can be viewed directly by
clicking the title page.
The revision list summarizes the locations of
revisions and additions. Details should always
be checked by referring to the relevant text.
Rev. 6.00 Sep 12, 2006 page ii of xx
1. These materials are intended as a reference to assist our customers in the selection of the Renesas
Technology Corp. product best suited to the customer's application; they do not convey any license
under any intellectual property rights, or any other rights, belonging to Renesas Technology Corp. or
a third party.
2. Renesas Technology Corp. assumes no responsibility for any damage, or infringement of any third-
party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or
circuit application examples contained in these materials.
3. All information contained in these materials, including product data, diagrams, charts, programs and
algorithms represents information on products at the time of publication of these materials, and are
subject to change by Renesas Technology Corp. without notice due to product improvements or
other reasons. It is therefore recommended that customers contact Renesas Technology Corp. or
an authorized Renesas Technology Corp. product distributor for the latest product information
before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corp. assumes no responsibility for any damage, liability, or other loss rising
from these inaccuracies or errors.
Please also pay attention to information published by Renesas Technology Corp. by various means,
including the Renesas Technology Corp. Semiconductor home page (http://www.renesas.com).
4. When using any or all of the information contained in these materials, including product data,
diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total
system before making a final decision on the applicability of the information and products. Renesas
Technology Corp. assumes no responsibility for any damage, liability or other loss resulting from the
information contained herein.
5. Renesas Technology Corp. semiconductors are not designed or manufactured for use in a device or
system that is used under circumstances in which human life is potentially at stake. Please contact
Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributor when
considering the use of a product contained herein for any specific purposes, such as apparatus or
systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce in
whole or in part these materials.
7. If these products or technologies are subject to the Japanese export control restrictions, they must
be exported under a license from the Japanese government and cannot be imported into a country
other than the approved destination.
Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the
country of destination is prohibited.
8. Please contact Renesas Technology Corp. for further details on these materials or the products
contained therein.
1. Renesas Technology Corp. puts the maximum effort into making semiconductor products better and
more reliable, but there is always the possibility that trouble may occur with them. Trouble with
semiconductors may lead to personal injury, fire or property damage.
Remember to give due consideration to safety when making your circuit designs, with appropriate
measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or
(iii) prevention against any malfunction or mishap.
Keep safety first in your circuit designs!
Notes regarding these materials
Rev. 6.00 Sep 12, 2006 page iii of xx
General Precautions on Handling of Product
1. Treatment of NC Pins
Note: Do not connect anything to the NC pins.
The NC (not connected) pins are either not connected to any of the internal circuitry or are
used as test pins or to reduce noise. If something is connected to the NC pins, the
operation of the LSI is not guaranteed.
2. Treatment of Unused Input Pins
Note: Fix all unused input pins to high or low level.
Generally, the input pins of CMOS products are high-impedance input pins. If unused pins
are in their open states, intermediate levels are induced by noise in the vicinity, a pass-
through current flows internally, and a malfunction may occur.
3. Processing before Initialization
Note: When power is first supplied, the product’s state is undefined.
The states of internal circuits are undefined until full power is supplied throughout the
chip and a low level is input on the reset pin. During the period where the states are
undefined, the register settings and the output state of each pin are also undefined. Design
your system so that it does not malfunction because of processing while it is in this
undefined state. For those products which have a reset function, reset the LSI immediately
after the power supply has been turned on.
4. Prohibition of Access to Undefined or Reserved Addresses
Note: Access to undefined or reserved addresses is prohibited.
The undefined or reserved addresses may be used to expand functions, or test registers
may have been be allocated to these addresses. Do not access these registers; the system’s
operation is not guaranteed if they are accessed.
Rev. 6.00 Sep 12, 2006 page iv of xx
Rev. 6.00 Sep 12, 2006 page v of xx
Preface
The H8/300L Series of single-chip microcomputers has the high-speed H8/300L CPU at its core,
with many necessary peripheral functions on-chip. The H8/300L CPU instruction set is compatible
with the H8/300 CPU.
The H8/3644 Group has a system-on-a-chip architecture that includes such peripheral functions as
a D/A converter, five timers, a 14-bit PWM, a two-channel serial communication interface, and an
A/D converter. This makes it ideal for use in advanced control systems.
This manual describes the hardware of the H8/3644 Group. For details on the H8/3644 Group
instruction set, refer to the H8/300L Series Programming Manual.
Rev. 6.00 Sep 12, 2006 page vi of xx
Rev. 6.00 Sep 12, 2006 page vii of xx
Main Revisions in This Edition
Item Page Revision (See Manual for Details)
All Notification of change in company name amended
(Before) Hitachi, Ltd. (After) Renesas Technology Corp.
Product naming convention amended
(Before) H8/3644 Series (After) H8/3644 Group
(Before) H8/3644R Series (After) H8/3644R Group
3.3.2 Interrupt Control
Registers
Interrupt Edge Select
Register 2 (IEGR2)
64 Description amended
IEGR2 is an 8-bit read/write register, used to designate whether pins INT
7
to INT
0
, and TMIB are
set to rising edge sensing or falling edge sensing. Upon reset, IEGR2 is initialized to H'00.
Bit 7
INT
7
Edge Select (INTEG7): Bit 7 selects the input sensing of the INT
7
pin.
Bit 7: INTEG7 Description
0 Falling edge of INT
7
pin input is detected (initial value)
1 Rising edge of INT
7
pin input is detected
6.2.2 Memory Map
Table 6.2 Socket
Adapter
Figure 6.2 Socket
Adapter Pin
Correspondence
(ZTAT)
102, 103 Description of socket adapter deleted
6.8.2 Memory Map
Table 6.14 Socket
Adapter Product
Codes
Figure 6.19 Socket
Adapter Pin
Correspondence
(F-ZTAT)
149, 151 Description of socket adapter deleted
6.9 Flash Memory
Programming and
Erasing Precautions
Table 6.18 Flash
Memory AC
Characteristics
165 Table amended
Item Symbol Min Typ Max Unit Test Conditions
Flash memory read setup time
*
4
t
FRS
50 µs V
CC
4.5 V
100  V
CC
< 4.5 V
8.4.2 Register
Configuration and
Description
Port Mode Register 7
(PMR7)
182 Bit table amended
Bit 76543210
TXD POF1
Initial value 1 1 1 1 1 0 0 0
Read/Write R/W R/W
Rev. 6.00 Sep 12, 2006 page viii of xx
Item Page Revision (See Manual for Details)
10.2.2 Register
Descriptions
Serial Control/Status
Register 1 (SCSR1)
281 Description amended
SCSR1 is an 8-bit register indicating operation status and
error status.
10.3.1 Overview
Figure 10.6 SCI3
Block Diagram
291 Figure amended
Clock
TXD
RXD
SCK
3
BRR
SMR
SCR3
SSR
TDR
RDR
TSR
RSR
Transmit/receive
control circuit
Internal data bus
Interrupt request
(TEI, TXI, RXI, ERI)
Internal clock (φ/64, φ/16, φ/4, φ)
External
clock
BRC
Baud rate generator
10.3.7 Interrupts
Table 10.16 SCI3
Interrupt Requests
336 Table amended
Vector Address
H'002A
Rev. 6.00 Sep 12, 2006 page ix of xx
Item Page Revision (See Manual for Details)
13.2.4 DC
Characteristics
(HD6433644,
HD6433643,
HD6433642,
HD6433641,
HD6433640)
Table 13.6 DC
Characteristics
374 Table amended
Values
Item Symbol
Applicable
Pins Min Typ Max Unit Test Condition Notes
Active
mode
current
dissipation
I
OPE1
V
CC
10 15 mA Active (high-
speed) mode
V
CC
= 5 V,
f
OSC
= 10 MHz
1, 2
5 V
CC
= 2.5 V,
f
OSC
= 10 MHz
1, 2
Reference
value
I
OPE2
V
CC
2 3 mA Active (medium-
speed) mode
V
CC
= 5 V,
f
OSC
= 10 MHz
1, 2
1 V
CC
= 2.5 V,
f
OSC
= 10 MHz
1, 2
Reference
value
Sleep
mode
current
dissipation
I
SLEEP1
V
CC
5 7 mA Sleep (high-
speed) mode
V
CC
= 5 V,
f
OSC
= 10 MHz
1, 2
2 V
CC
= 2.5 V,
f
OSC
= 10 MHz
1, 2
Reference
value
I
SLEEP2
V
CC
2 3 mA Sleep (medium-
speed) mode
V
CC
= 5 V,
f
OSC
= 10 MHz
1, 2
1 V
CC
= 2.5 V,
f
OSC
= 10 MHz
1, 2
Reference
value
13.2.5 AC
Characteristics
(HD6433644,
HD6433643,
HD6433642,
HD6433641,
HD6433640)
Table 13.9 Serial
Interface (SCI3)
Timing
380 Table amended
V
CC
= 2.5 V to 5.5 V, AV
CC
= 2.7 V to 5.5 V, V
SS
= 0.0 V, T
a
=
–20°C to +75°C, unless otherwise specified.
13.3.5 AC
Characteristics
(HD6433644R,
HD6433643R,
HD6433642R,
HD6433641R,
HD6433640R)
Table 13.18 Serial
Interface (SCI3)
Timing
404 Table amended
V
CC
= 2.5 V to 5.5 V, AV
CC
= 2.7 V to 5.5 V, V
SS
= 0.0 V, T
a
=
–20°C to +75°C, unless otherwise specified.
Rev. 6.00 Sep 12, 2006 page x of xx
Item Page Revision (See Manual for Details)
A.1 Instructions
Table A.1 Instruction
Set
427 Table amended
Mnemonic Operation
Addressing Mode/
Instruction Length (Bytes)
Operand Size
#xx: 8/16
Rn
@Rn
@(d:16, Rn)
@–Rn/@Rn+
@aa: 8/16
@(d:8, PC)
@@aa
Implied
No. of States
IHNZVC
Condition Code
PUSH Rs
ADD.B #xx:8, Rd
SP–2 SP
Rs16 @SP
Rd8+#xx:8 Rd8
W
B
2 0—6
2
2—
B.2 Functions
IEGR2—Interrupt edge
select register 2
485 Bit table amended
INT
7
edge select
0 Falling edge of INT
7
pin input is detected
Rising edge of INT
7
pin input is detected
1
Rev. 6.00 Sep 12, 2006 page xi of xx
Contents
Section 1 Overview............................................................................................................. 1
1.1 Overview........................................................................................................................... 1
1.2 Internal Block Diagram..................................................................................................... 6
1.3 Pin Arrangement and Functions ........................................................................................ 7
1.3.1 Pin Arrangement .................................................................................................. 7
1.3.2 Pin Functions ....................................................................................................... 10
Section 2 CPU ...................................................................................................................... 15
2.1 Overview........................................................................................................................... 15
2.1.1 Features................................................................................................................ 15
2.1.2 Address Space...................................................................................................... 16
2.1.3 Register Configuration ......................................................................................... 16
2.2 Register Descriptions ........................................................................................................ 18
2.2.1 General Registers ................................................................................................. 18
2.2.2 Control Registers.................................................................................................. 18
2.2.3 Initial Register Values.......................................................................................... 20
2.3 Data Formats..................................................................................................................... 20
2.3.1 Data Formats in General Registers....................................................................... 21
2.3.2 Memory Data Formats ......................................................................................... 22
2.4 Addressing Modes............................................................................................................. 23
2.4.1 Addressing Modes................................................................................................ 23
2.4.2 Effective Address Calculation.............................................................................. 25
2.5 Instruction Set ................................................................................................................... 29
2.5.1 Data Transfer Instructions.................................................................................... 31
2.5.2 Arithmetic Operations.......................................................................................... 33
2.5.3 Logic Operations.................................................................................................. 34
2.5.4 Shift Operations ................................................................................................... 34
2.5.5 Bit Manipulations................................................................................................. 36
2.5.6 Branching Instructions ......................................................................................... 40
2.5.7 System Control Instructions ................................................................................. 42
2.5.8 Block Data Transfer Instruction........................................................................... 43
2.6 Basic Operational Timing ................................................................................................. 44
2.6.1 Access to On-Chip Memory (RAM, ROM) ......................................................... 44
2.6.2 Access to On-Chip Peripheral Modules ............................................................... 45
2.7 CPU States ........................................................................................................................ 46
2.7.1 Overview.............................................................................................................. 46
2.7.2 Program Execution State...................................................................................... 48
2.7.3 Program Halt State............................................................................................... 48
Rev. 6.00 Sep 12, 2006 page xii of xx
2.7.4 Exception-Handling State .................................................................................... 48
2.8 Memory Map..................................................................................................................... 49
2.9 Application Notes ............................................................................................................. 50
2.9.1 Notes on Data Access .......................................................................................... 50
2.9.2 Notes on Bit Manipulation................................................................................... 52
2.9.3 Notes on Use of the EEPMOV Instruction .......................................................... 58
Section 3 Exception Handling ......................................................................................... 59
3.1 Overview........................................................................................................................... 59
3.2 Reset 59
3.2.1 Overview.............................................................................................................. 59
3.2.2 Reset Sequence .................................................................................................... 59
3.2.3 Interrupt Immediately after Reset......................................................................... 61
3.3 Interrupts........................................................................................................................... 61
3.3.1 Overview.............................................................................................................. 61
3.3.2 Interrupt Control Registers................................................................................... 63
3.3.3 External Interrupts................................................................................................ 71
3.3.4 Internal Interrupts................................................................................................. 72
3.3.5 Interrupt Operations............................................................................................. 72
3.3.6 Interrupt Response Time ...................................................................................... 77
3.4 Application Notes ............................................................................................................. 78
3.4.1 Notes on Stack Area Use...................................................................................... 78
3.4.2 Notes on Rewriting Port Mode Registers............................................................. 79
Section 4 Clock Pulse Generators................................................................................... 81
4.1 Overview........................................................................................................................... 81
4.1.1 Block Diagram..................................................................................................... 81
4.1.2 System Clock and Subclock................................................................................. 81
4.2 System Clock Generator.................................................................................................... 82
4.3 Subclock Generator........................................................................................................... 84
4.4 Prescalers .......................................................................................................................... 85
4.5 Note on Oscillators............................................................................................................ 86
Section 5 Power-Down Modes ........................................................................................ 87
5.1 Overview........................................................................................................................... 87
5.1.1 System Control Registers..................................................................................... 90
5.2 Sleep Mode ....................................................................................................................... 94
5.2.1 Transition to Sleep Mode..................................................................................... 94
5.2.2 Clearing Sleep Mode............................................................................................ 94
5.2.3 Clock Frequency in Sleep (Medium-Speed) Mode .............................................. 95
5.3 Standby Mode ................................................................................................................... 95
Rev. 6.00 Sep 12, 2006 page xiii of xx
5.3.1 Transition to Standby Mode................................................................................. 95
5.3.2 Clearing Standby Mode........................................................................................ 95
5.3.3 Oscillator Settling Time after Standby Mode Is Cleared ..................................... 96
5.4 Watch Mode...................................................................................................................... 96
5.4.1 Transition to Watch Mode ................................................................................... 96
5.4.2 Clearing Watch Mode .......................................................................................... 97
5.4.3 Oscillator Settling Time after Watch Mode Is Cleared........................................ 97
5.5 Subsleep Mode.................................................................................................................. 97
5.5.1 Transition to Subsleep Mode ............................................................................... 97
5.5.2 Clearing Subsleep Mode ...................................................................................... 98
5.6 Subactive Mode................................................................................................................. 98
5.6.1 Transition to Subactive Mode.............................................................................. 98
5.6.2 Clearing Subactive Mode..................................................................................... 98
5.6.3 Operating Frequency in Subactive Mode............................................................. 99
5.7 Active (Medium-Speed) Mode.......................................................................................... 99
5.7.1 Transition to Active (Medium-Speed) Mode ....................................................... 99
5.7.2 Clearing Active (Medium-Speed) Mode.............................................................. 99
5.7.3 Operating Frequency in Active (Medium-Speed) Mode...................................... 99
5.8 Direct Transfer .................................................................................................................. 100
Section 6 ROM..................................................................................................................... 103
6.1 Overview........................................................................................................................... 103
6.1.1 Block Diagram..................................................................................................... 103
6.2 PROM Mode..................................................................................................................... 104
6.2.1 Setting to PROM Mode........................................................................................ 104
6.2.2 Memory Map ....................................................................................................... 104
6.3 Programming..................................................................................................................... 105
6.3.1 Writing and Verifying .......................................................................................... 106
6.3.2 Programming Precautions .................................................................................... 109
6.3.3 Reliability of Programmed Data........................................................................... 110
6.4 Flash Memory Overview................................................................................................... 111
6.4.1 Principle of Flash Memory Operation.................................................................. 111
6.4.2 Mode Pin Settings and ROM Space..................................................................... 112
6.4.3 Features................................................................................................................ 112
6.4.4 Block Diagram..................................................................................................... 113
6.4.5 Pin Configuration................................................................................................. 114
6.4.6 Register Configuration ......................................................................................... 114
6.5 Flash Memory Register Descriptions ................................................................................ 115
6.5.1 Flash Memory Control Register (FLMCR).......................................................... 115
6.5.2 Erase Block Register 1 (EBR1) ........................................................................... 117
6.5.3 Erase Block Register 2 (EBR2) ........................................................................... 118
Rev. 6.00 Sep 12, 2006 page xiv of xx
6.6 On-Board Programming Modes ........................................................................................ 120
6.6.1 Boot Mode ........................................................................................................... 120
6.6.2 User Program Mode............................................................................................. 125
6.7 Programming and Erasing Flash Memory......................................................................... 127
6.7.1 Program Mode ..................................................................................................... 127
6.7.2 Program-Verify Mode.......................................................................................... 128
6.7.3 Programming Flowchart and Sample Program..................................................... 129
6.7.4 Erase Mode .......................................................................................................... 132
6.7.5 Erase-Verify Mode............................................................................................... 132
6.7.6 Erase Flowcharts and Sample Programs .............................................................. 133
6.7.7 Prewrite-Verify Mode .......................................................................................... 147
6.7.8 Protect Modes ...................................................................................................... 148
6.7.9 Interrupt Handling during Flash Memory Programming/Erasing......................... 149
6.8 Flash Memory PROM Mode (H8/3644F, H8/3643F, and H8/3642AF) ........................... 150
6.8.1 PROM Mode Setting............................................................................................ 150
6.8.2 Memory Map ....................................................................................................... 150
6.8.3 Operation in PROM Mode................................................................................... 151
6.9 Flash Memory Programming and Erasing Precautions ..................................................... 160
Section 7 RAM..................................................................................................................... 167
7.1 Overview........................................................................................................................... 167
7.1.1 Block Diagram..................................................................................................... 167
Section 8 I/O Ports .............................................................................................................. 169
8.1 Overview........................................................................................................................... 169
8.2 Port 1................................................................................................................................. 171
8.2.1 Overview.............................................................................................................. 171
8.2.2 Register Configuration and Description............................................................... 171
8.2.3 Pin Functions ....................................................................................................... 175
8.2.4 Pin States.............................................................................................................. 176
8.2.5 MOS Input Pull-Up.............................................................................................. 176
8.3 Port 2................................................................................................................................. 177
8.3.1 Overview.............................................................................................................. 177
8.3.2 Register Configuration and Description............................................................... 177
8.3.3 Pin Functions ....................................................................................................... 179
8.3.4 Pin States.............................................................................................................. 179
8.4 Port 3................................................................................................................................. 180
8.4.1 Overview.............................................................................................................. 180
8.4.2 Register Configuration and Description............................................................... 180
8.4.3 Pin Functions ....................................................................................................... 184
8.4.4 Pin States.............................................................................................................. 185
Rev. 6.00 Sep 12, 2006 page xv of xx
8.4.5 MOS Input Pull-Up.............................................................................................. 185
8.5 Port 5................................................................................................................................. 186
8.5.1 Overview.............................................................................................................. 186
8.5.2 Register Configuration and Description............................................................... 186
8.5.3 Pin Functions ....................................................................................................... 188
8.5.4 Pin States.............................................................................................................. 189
8.5.5 MOS Input Pull-Up.............................................................................................. 189
8.6 Port 6................................................................................................................................. 190
8.6.1 Overview.............................................................................................................. 190
8.6.2 Register Configuration and Description............................................................... 190
8.6.3 Pin Functions ....................................................................................................... 191
8.6.4 Pin States.............................................................................................................. 192
8.7 Port 7................................................................................................................................. 192
8.7.1 Overview.............................................................................................................. 192
8.7.2 Register Configuration and Description............................................................... 192
8.7.3 Pin Functions ....................................................................................................... 194
8.7.4 Pin States.............................................................................................................. 195
8.8 Port 8................................................................................................................................. 195
8.8.1 Overview.............................................................................................................. 195
8.8.2 Register Configuration and Description............................................................... 196
8.8.3 Pin Functions ....................................................................................................... 197
8.8.4 Pin States.............................................................................................................. 198
8.9 Port 9................................................................................................................................. 199
8.9.1 Overview.............................................................................................................. 199
8.9.2 Register Configuration and Description............................................................... 199
8.9.3 Pin Functions ....................................................................................................... 200
8.9.4 Pin States.............................................................................................................. 201
8.10 Port B ................................................................................................................................ 201
8.10.1 Overview.............................................................................................................. 201
8.10.2 Register Configuration and Description............................................................... 201
8.10.3 Pin Functions ....................................................................................................... 202
8.10.4 Pin States.............................................................................................................. 202
Section 9 Timers .................................................................................................................. 203
9.1 Overview........................................................................................................................... 203
9.2 Timer A............................................................................................................................. 204
9.2.1 Overview.............................................................................................................. 204
9.2.2 Register Descriptions ........................................................................................... 206
9.2.3 Timer Operation................................................................................................... 208
9.2.4 Timer A Operation States..................................................................................... 209
9.3 Timer B1 ........................................................................................................................... 209
Rev. 6.00 Sep 12, 2006 page xvi of xx
9.3.1 Overview.............................................................................................................. 209
9.3.2 Register Descriptions ........................................................................................... 211
9.3.3 Timer Operation................................................................................................... 213
9.3.4 Timer B1 Operation States................................................................................... 214
9.4 Timer V............................................................................................................................. 215
9.4.1 Overview.............................................................................................................. 215
9.4.2 Register Descriptions ........................................................................................... 218
9.4.3 Timer Operation................................................................................................... 224
9.4.4 Timer V Operation Modes ................................................................................... 229
9.4.5 Interrupt Sources.................................................................................................. 229
9.4.6 Application Examples .......................................................................................... 229
9.4.7 Application Notes ................................................................................................ 232
9.5 Timer X............................................................................................................................. 238
9.5.1 Overview.............................................................................................................. 238
9.5.2 Register Descriptions ........................................................................................... 242
9.5.3 CPU Interface....................................................................................................... 253
9.5.4 Timer Operation................................................................................................... 256
9.5.5 Timer X Operation Modes ................................................................................... 263
9.5.6 Interrupt Sources.................................................................................................. 263
9.5.7 Timer X Application Example ............................................................................. 264
9.5.8 Application Notes ................................................................................................ 265
9.6 Watchdog Timer ............................................................................................................... 270
9.6.1 Overview.............................................................................................................. 270
9.6.2 Register Descriptions ........................................................................................... 271
9.6.3 Timer Operation................................................................................................... 274
9.6.4 Watchdog Timer Operation States ....................................................................... 275
Section 10 Serial Communication Interface ................................................................ 277
10.1 Overview........................................................................................................................... 277
10.2 SCI1 ................................................................................................................................. 277
10.2.1 Overview.............................................................................................................. 277
10.2.2 Register Descriptions ........................................................................................... 279
10.2.3 Operation in Synchronous Mode.......................................................................... 284
10.2.4 Operation in SSB Mode ....................................................................................... 287
10.2.5 Interrupts.............................................................................................................. 289
10.3 SCI3 ................................................................................................................................. 289
10.3.1 Overview.............................................................................................................. 289
10.3.2 Register Descriptions ........................................................................................... 292
10.3.3 Operation ............................................................................................................. 309
10.3.4 Operation in Asynchronous Mode ....................................................................... 313
10.3.5 Operation in Synchronous Mode.......................................................................... 322
Rev. 6.00 Sep 12, 2006 page xvii of xx
10.3.6 Multiprocessor Communication Function............................................................ 329
10.3.7 Interrupts.............................................................................................................. 336
10.3.8 Application Notes ................................................................................................ 337
Section 11 14-Bit PWM..................................................................................................... 341
11.1 Overview........................................................................................................................... 341
11.1.1 Features................................................................................................................ 341
11.1.2 Block Diagram..................................................................................................... 341
11.1.3 Pin Configuration................................................................................................. 342
11.1.4 Register Configuration ......................................................................................... 342
11.2 Register Descriptions ........................................................................................................ 342
11.2.1 PWM Control Register (PWCR).......................................................................... 342
11.2.2 PWM Data Registers U and L (PWDRU, PWDRL)............................................ 343
11.3 Operation........................................................................................................................... 344
Section 12 A/D Converter................................................................................................. 345
12.1 Overview........................................................................................................................... 345
12.1.1 Features................................................................................................................ 345
12.1.2 Block Diagram..................................................................................................... 346
12.1.3 Pin Configuration................................................................................................. 347
12.1.4 Register Configuration ......................................................................................... 347
12.2 Register Descriptions ........................................................................................................ 348
12.2.1 A/D Result Register (ADRR)............................................................................... 348
12.2.2 A/D Mode Register (AMR) ................................................................................. 348
12.2.3 A/D Start Register (ADSR).................................................................................. 350
12.3 Operation........................................................................................................................... 351
12.3.1 A/D Conversion Operation .................................................................................. 351
12.3.2 Start of A/D Conversion by External Trigger Input............................................. 351
12.4 Interrupts........................................................................................................................... 352
12.5 Typical Use ....................................................................................................................... 352
12.6 Application Notes ............................................................................................................. 355
Section 13 Electrical Characteristics.............................................................................. 357
13.1 Absolute Maximum Ratings.............................................................................................. 357
13.2 Electrical Characteristics (ZTAT™, Mask ROM Version)............................................... 358
13.2.1 Power Supply Voltage and Operating Range....................................................... 358
13.2.2 DC Characteristics (HD6473644)........................................................................ 361
13.2.3 AC Characteristics (HD6473644) ........................................................................ 367
13.2.4 DC Characteristics (HD6433644, HD6433643, HD6433642, HD6433641,
HD6433640) ........................................................................................................ 371
Rev. 6.00 Sep 12, 2006 page xviii of xx
13.2.5 AC Characteristics (HD6433644, HD6433643, HD6433642, HD6433641,
HD6433640) ........................................................................................................ 376
13.2.6 A/D Converter Characteristics ............................................................................. 381
13.3 Electrical Characteristics (ZTAT and R of the Mask ROM Version) ............................... 382
13.3.1 Power Supply Voltage and Operating Range....................................................... 382
13.3.2 DC Characteristics (HD6473644R) ..................................................................... 385
13.3.3 AC Characteristics (HD6473644R) ..................................................................... 391
13.3.4 DC Characteristics (HD6433644R, HD6433643R, HD6433642R, HD6433641R,
HD6433640R)...................................................................................................... 395
13.3.5 AC Characteristics (HD6433644R, HD6433643R, HD6433642R,
HD6433641R, HD6433640R) ............................................................................. 400
13.3.6 A/D Converter Characteristics ............................................................................. 405
13.4 Electrical Characteristics (F-ZTAT version) ................................................................. 406
13.4.1 Power Supply Voltage and Operating Range....................................................... 406
13.4.2 DC Characteristics (HD64F3644, HD64F3643, HD64F3642A) ......................... 409
13.4.3 AC Characteristics (HD64F3644, HD64F3643, HD64F3642A) ......................... 415
13.4.4 A/D Converter Characteristics ............................................................................. 419
13.5 Operation Timing.............................................................................................................. 420
13.6 Output Load Circuit .......................................................................................................... 423
Appendix A CPU Instruction Set.................................................................................... 425
A.1 Instructions........................................................................................................................ 425
A.2 Operation Code Map......................................................................................................... 433
A.3 Number of Execution States.............................................................................................. 435
Appendix B Internal I/O Registers ................................................................................. 442
B.1 Addresses .......................................................................................................................... 442
B.2 Functions........................................................................................................................... 446
Appendix C I/O Port Block Diagrams........................................................................... 493
C.1 Block Diagrams of Port 1.................................................................................................. 493
C.2 Block Diagrams of Port 2.................................................................................................. 497
C.3 Block Diagrams of Port 3.................................................................................................. 500
C.4 Block Diagrams of Port 5.................................................................................................. 503
C.5 Block Diagram of Port 6 ................................................................................................... 506
C.6 Block Diagrams of Port 7.................................................................................................. 507
C.7 Block Diagrams of Port 8.................................................................................................. 511
C.8 Block Diagram of Port 9 ................................................................................................... 519
C.9 Block Diagram of Port B................................................................................................... 520
Appendix D Port States in the Different Processing States..................................... 521
  • 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

Renesas H8/3644 Series User manual

Type
User manual

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

Finding information in a document is now easier with AI