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.
H8/38024, H8/38024S,
8
H8/38024F-ZTAT, H8/38124
Hardware Manual
Renesas 8-Bit Single-Chip Microcomputer
H8 Family/H8/300L Super Low Power Series
Group
Rev. 6.00
Revision Date: Aug 27, 2004
Keep safety first in your circuit designs!
1. Renesas Technology Corp. puts the maximum effort into making semiconductor products better and
more reliable, but there is always the possibility that trouble may occur with them. Trouble with
semiconductors may lead to personal injury, fire or property damage.
Remember to give due consideration to safety when making your circuit designs, with appropriate
measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or
(iii) prevention against any malfunction or mishap.
Notes regarding these materials
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.
Rev. 6.00, 08/04, page ii of xxx
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. Trea t ment 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 beca use 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, 08/04, page iii of xxx
Configuration of This Manual
This manual comprises the following items:
1. General Precautions on Handling of Product
2. Configuration of This Manual
3. Preface
4. Contents
5. Overview
6. Description of Functional Modules
•CPU and System-Control Modules
•On-Chip Peripheral Modules
The configuration of the functional description of each module differs according to the
module. However, the generic style includes the following items:
When designing an application system that includes this LSI, take notes into account. Each section
includes notes in relation to the descr i ptions given, and usage notes are give n, as required, as the
final part of each section.
7. List of Registers
8. Electrical Characteristics
9. Appendix
•Product Codes, Package Dimensions, etc.
Rev. 6.00, 08/04, page iv of xxx
Preface
The H8/38024 Group is a single-chip microcomputer built around the high-speed H8/300L CPU
and equipped with peripheral system functions on-chip. The H8/38024 Group incorporates
peripheral functions including ROM, RAM, timer, serial communications interface (SCI), 10-bit
PWM, A/D converter, LCD controller/driver, and I/O ports. It is a microcomputer allowing the
implementation of a sophisticated control system. Versions are available with types of internal
ROM: flash memory (F-ZTATâ„¢
application products with a great deal of specification fluidity, and allows for rapid and flexible
response to contingencies arising between the initial stages of production and full-scale
production.
Below is a table listing the product specifications for each group.
Notes: 1. F-ZTAT is a trademark of Renesas Technology Corp.
2. ZTAT is a trademark of Renesas Technology Corp.
Target Readers: This manual is designed for use by people who design application systems using
the H8/38024 Group, H8/38024S Group, H8/38024F-ZTAT, and H8/38124 Group.
To use this manual, basic knowledge of electric circuits, logic circuits and microcomputers is
required.
Purpose:This manual provides the information of the hardware functions and electrical
characteristics of the H8/38024 Group, H8/38024S Group, H8/38024F-ZTAT, and H8/38124
Group. The H8/300L Series Programming Manual contains detailed information of executable
instructions. Please read the Programming Manual together with this manual.
How to Use the Book:
• To understa nd gene ra l fu nc tio n s
→ Read the manual from the beginning.
The manual explains the CPU, system control functions, peripheral functions and electrical
characteristics in that order.
• To understanding CPU functions
→ Refer to the separate H8/300L Series Programming Manual.
Explanatory Note: Bit sequence: upper bit at left, and lower bit at right
List of Related Documents: The latest documents are available on our Web site. Please make
sure that you have the late st version.
(http://www.renesas.com/)
• User manual for H8/38024 Group
Name of DocumentDocument No.
H8/38024 Group, H8/38024S Group, H8/38024F-ZTATâ„¢,
H8/38124 Group Hardware Manual
Notes: The following limitations apply to H8/38024 and H8/38124 programming and debugging
when the on-chip emulator is used.
1. Pin 95 is not available because it is used exclusively by the on-chip emulator.
2. Pins 33, 34, and 35 are unavailable for use. In order to use these pins additional
hardware must be mounted on the user board.
3. The address range H'7000 to H'7FFF is used by the on-chip emulator and is unavailable
to the user.
4. The address range H'F780 to H'FB7F must not be accessed under any circumstances.
5. When the on-chip emulator is being used, pin 95 is I/O, pins 33 and 34 are input, and
pin 35 is output.
6. When using the on-chip emulator, pins OSC1 and OSC2 should be connected to an
oscillator, or an external clock should be supplied to pin OSC1, even if the on-chip
oscillator of the H8/38124 Group is selected.
Rev. 6.00, 08/04, page viii of xxx
List of Items Revised or Added for This Version
ItemPageRevisions (See Manual for Details)
1.1 Overview
Table 1.1 Features
6Table 1.1 amended
Product Code
Mask ROM Version ZTAT Version F-ZTAT Version Package
HD64338024HD64738024HD64F38024R
HD64338020——FP-80A
HD64F38024
FP-80A
FP-80B
TFP-80C
TLP-85V (HD64F38024R only)
Die (mask ROM/F-ZTAT version
only)
FP-80B
TFP-80C
Die
ROM/RAM Size
(Byte)
32K/1K
8K/512
3.4.2 Notes on
Rewriting Port Mode
Registers
Table 3.5 Conditions
under which Interrupt
Request Flag is Set
to 1
97Table 3.5 amended
Interrupt Request
Flags Set to 1Conditions
IWPRIWPF7
When PMR5 bit WKP7 is changed from 0 to 1 while pin
WKEGS7 = 0.
When PMR5 bit WK P 7 is changed fro m 1 to 0 while pin
WKEGS7 = 1.
IWPF6
When PMR5 bit WKP6 is changed from 0 to 1 while pin
WKEGS6 = 0.
When PMR5 bit WK P 6 is changed fro m 1 to 0 while pin
WKEGS6 = 1.
IWPF5
When PMR5 bit WKP5 is changed from 0 to 1 while pin
WKEGS5 = 0.
When PMR5 bit WK P 5 is changed fro m 1 to 0 while pin
WKEGS5 = 1.
IWPF4
When PMR5 bit WKP4 is changed from 0 to 1 while pin
WKEGS4 = 0.
When PMR5 bit WK P 4 is changed fro m 1 to 0 while pin
WKEGS4 = 1.
IWPF3
When PMR5 bit WKP3 is changed from 0 to 1 while pin
WKEGS3 = 0.
When PMR5 bit WK P 3 is changed fro m 1 to 0 while pin
WKEGS3 = 1.
IWPF2
When PMR5 bit WKP2 is changed from 0 to 1 while pin
WKEGS2 = 0.
When PMR5 bit WK P 2 is changed fro m 1 to 0 while pin
WKEGS2 = 1.
IWPF1
When PMR5 bit WKP1 is changed from 0 to 1 while pin
WKEGS1 = 0.
When PMR5 bit WK P 1 is changed fro m 1 to 0 while pin
WKEGS1 = 1.
IWPF0
When PMR5 bit WKP0 is changed from 0 to 1 while pin
WKEGS0 = 0.
When PMR5 bit WK P 0 is changed fro m 1 to 0 while pin
WKEGS0 = 1.
is low and WEGR bit
7
is low and WEGR bit
7
is low and WEGR bit
6
is low and WEGR bit
6
is low and WEGR bit
5
is low and WEGR bit
5
is low and WEGR bit
4
is low and WEGR bit
4
is low and WEGR bit
3
is low and WEGR bit
3
is low and WEGR bit
2
is low and WEGR bit
2
is low and WEGR bit
1
is low and WEGR bit
1
is low and WEGR bit
0
is low and WEGR bit
0
Rev. 6.00, 08/04, page ix of xxx
ItemPageRevisions (See Manual for Details)
4.1.1 Block Diagram
Figure 4.2 Block
Diagram of Clock Pulse
102Figure 4.2 amended
(Before) Internal reset signal → (After) Internal reset signal
(other than watchdog timer or low-voltage detect circuit reset)
Generators (H8/38124
Group)
4.2 System Clock
Generator
105Table 4.2
Frequency (MHz)44.193
Table 4.2 Crystal
Oscillator Parameters
On-Chip Oscillator
Selection Method
(H8/38124 Group Only)
108Note added
The on-chip oscillator is selected by setting the IRQAEC pin
input level during resets.*
* Other than watchdog timer or low-voltage detect circuit
reset.
4.4 Prescalers111Prescalers S (PPS)
Description amended
The output from prescaler S is shared by timer A,
timer G, SCI3, the A/D converter, the LCD controller,
F,
watchdog timer, and the 10-bit PWM. The divider ratio can be
set separately for each on-chip peripheral function.
4.5.1 Definition of
Oscillation Stabilization
Wait Time
5.1 Overview
Table 5.1 Operating
Modes
1152. Wait time
Description amended, notes *1, *2 added
Oscillation stabilization wait time = oscillation stabilization time + wait time
Notes: 1. H8/38024 Group
2. H8/38124 Group
117Table 5.1 amended
Operating ModeDescription
Watch modeThe CPU halts. The time-base function of timer A, timer F,
= t
+ (8 to 16,384 states)
rc
(to 131,072 states)
timer G, AEC and LCD controller/driver are operable on the
subclock
timer C, timer
1
*
................. (1)
2
*
Rev. 6.00, 08/04, page x of xxx
ItemPageRevisions (See Manual for Details)
8.1 Overview
Table 8.1 Port
Functions
187,
188
Table 8.1 amended
PortDescriptionPinsOther Functions
Port 3
• 8-bit I/O port
• MOS input pull-up
• Large-current
• MOS open drain
option
2
*
port
output selectable
(only P3
5
P3
/AEVL
7
P3
/AEVH
6
P3
to P3
5
3
P32, TMOFH
, TMOFL
P3
1
P3
/UDTimer C count up/down
0
)
(Before) Input terminal → (After) input pin
8.9.1 Overview
Figure 8.8 Port
9 Pin
222Figure 8.8 figure title amended
Configuration
9.2.1 Overview238Features
Description deleted
• Use of module standby mode enables this module to be
placed in standby mode independently when not used.
9.4.2 Register
Descriptions
258Timer Control Register F (TCRF)
Bits 2 to—Clock Select L (CKSL2 to CKSL0)
Note * amended
Note: * …. Note that the timer F counter may increment if the
setting of IRQ3 in port mode register 1 (PMR1) is changed
0 to 1 or from 1 to 0 while the TMIF pin is low order to changed
the TMIF pin function.
9.6.1 Overview290Feature
• On-chip the H8/38/124 Group, 10 internal clocks (φ/64, φ/128,φ/256, φ/512, φ/1024, φ/2048, φ/4096, φ/8192, φw/32, or
watchdog on-chip oscillator) are available for selection for use
by the counter.
Figure 9.17 (2) Block
Diagram of Watchdog
Timer (H8/38124
Group)
Bits 3 to 0—Clock Select (CKS3 to CKS0)
Bit table amended
Bit 3
CKS3
Bit 2
CKS2
Bit 1
CKS1
Bit 0
CKS0Description
0XXX
Watchdog on-chip oscillat or
9.7.2 Register
Configurations
309Event Counter Control/Status Register (ECCSR)
Description amended
• Bit 7—Control
• Bit 6—Counter
9.7.3 Operation
Figure 9.22 Event
Counter Operation
Waveform
316Event Counter PWM Operation
Figure 9.22 amended
Ndr: Value of ECPWDRH and ECPWDRL Fixed
= H’FFFF
14.1 Overview423Note * added
Note: * The voltage maintained in standby mode is the same as
the RAM data retaining voltage (VRAM). See section 16.8.2,
DC Characteristics, for information on retaining voltage.
14.2.1 Low-Voltage
Detection Control
Register (LVDCR)
428Note added
Note: Setting values marked with an asterisk (*) are invalid.
Table 14.3 LVDCR
Settings and Function
Register Selections
14.2.2 Low-Voltage
Detection Status
Register (LVDSR)
14.3.2 Low-Voltage
Detection Circuit
LVDR (Reset by Low
Voltage Detect) Circuit:
428Note amended
Note: * These bits
432Description amended
To operate the LVDR, set the LVDE bit in LVDCR to 1, wait for
150 µs (t
LVDON
detection power supply have stabilized, based on overflow of
LVDNT, etc., then set the LVDRE bit in LVDCR to 1.
LVDI (Interrupt by Low
Voltage Detect) Circuit:
433Description amended
To operate the LVDI, set the LVDE bit in LVDCR to 1, wait for
150 µs (t
LVDON
detection power supply have stabilized, based on overflow of
LVDNT, etc., then set the LVDDE and LVDUE bits in LVDCR to
1.
Overflow H (OVH)
Overflow L (OVL)
low when Ndr
initialized by resets trigged by LVDR.
) until the reference voltage and the low-voltage-
) until the reference voltage and the low-voltage-
Rev. 6.00, 08/04, page xii of xxx
ItemPageRevisions (See Manual for Details)
14.3.2 Low-Voltage
Detection Circuit
Operation and
Cancellation Setting
Procedure Using LVDR
437Description amended
2. After waiting for LVDCNT overflow, etc., to ensure that the
stabilization time (t
and low voltage detection power supply has elapsed, clear
bits LVDDF and LVDUF in LVDSR to 0.
= 150 µs) for the reference voltage
LVDON
and LVDI:
16.4.2 DC
Characteristics
Table 16.8 DC
Characteristics
16.8.1 Power Supply
462Table amended
ItemSym bol Applicable Pi ns MinTyp MaxUnit Test Condit i onNot es
output low
current
(per pin)
IOLOutput pins
except port 9
P9
P93 to P9
487Figure amended
to P9
0
Values
——0.5 mAAllowable
—— 25.0mA
2
—— 10.0
—— 10.0mA
5
Voltage and Operating
Ranges
Power Supply Voltage
and Oscillation
Frequency Range (OnÂChip Oscillator
Selected)
1
*
2
*
5
*
Rev. 6.00, 08/04, page xiii of xxx
ItemPageRevisions (See Manual for Details)
16.8.1 Power Supply
490Figure amended
Voltage and Operating
Ranges
1.0
Analog Power Supply
Voltage and A/D
Converter Operating
Range (On-Chip
Oscillator Selected)
16.8.2 DC
Characteristics
Table 16.21 DC
Characteristics
492Table 16.21 amended
φ (MHz)
0.35
2.75.5
AV
CC (V)
• Active (high-speed) mode
• Sleep (high-speed) mode
ItemSymbol Applicable Pins MinTyp MaxUnit Test ConditionNotes
ItemSymbol Applicable Pins MinTyp MaxUnit Test ConditionNotes
I
Watch
WATCHVCC
mode
current
consumpÂtion
I
Standby
STBYVCC
mode
current
consumpÂtion
V
RAM
RAM data
retaining
voltage
V
CC
Values
—TBD —µA
—1.8—
—1.86.0VCC = 2.7 V,
—TBD —µA
—0.5—
—0.05 —VCC = 2.7 V,
—0.6—VCC = 5.0 V,
—0.16 —
—1.05.0
2.0—— V
VCC = 2.7 V,
T
= 25°C,
a
32-kHz crystal
resonator used,
LCD not used
32-kHz crystal
resonator used,
LCD not used
V
= 2.7 V,
CC
T
= 25°C,
a
32-kHz crystal
resonator not used
= 2.7 V,
V
CC
T
= 25°C,
a
32-kHz crystal
resonator not used
T
= 25°C,
a
SUBSTP (subclock
oscillator control
register) setting = 1
T
= 25°C,
a
32-kHz crystal
resonator not used
= 5.0 V,
V
CC
T
= 25°C,
a
SUBSTP (subclock
oscillator control
register) setting = 1
32-kHz crystal
resonator not used
1 *3 *4
*
Reference
value
2 *3 *4
*
Reference
value
3 *4
*
1 *3 *4
*
Reference
value
2 *3 *4
*
Reference
value
2 *4
*
Reference
value
2 *3 *4
*
Reference
value
4
*2 *
Reference
value
3 *4
*
6
*
ItemSymbol
Allowable output low
current (per pin)
I
OL
Applicable
PinsMinTypMaxUnit
Output pins
except ports 3
and 9
Values
——2.0mA
Port 3——10.0
Output pins
except port 9
——0.5
Port 9——15.0
——10.0
——8.0
Note: 6. Voltage maintained in standby mode
Rev. 6.00, 08/04, page xv of xxx
Test
ConditionNotes
VCC = 4.0 V to
5.5 V
= 4.0 V to
V
CC
5.5 V
5
= 4.0 V to
*
V
CC
5.5 V
ItemPageRevisions (See Manual for Details)
16.8.3 AC
Characteristics
Table 16.22 Control
Signal Timing
500,
501
Table 16.22 amended, note *2 added
ItemSymbol
System clock
oscillation
frequency
OSC clock (φ
cycle time
System clock (φ)
cycle time
f
OSC
)
t
OSC
OSC
t
cyc
Applicable
PinsMin TypMax Unit Test Condition
OSC1, OSC
OSC1, OSC262.5 —500 nsF igure 16.1
Values
2.0 —16.0
2
0.7 —2.0On-chip oscillator
500 —1429On-chip oscillator
2—128 t
—— 182 µs
Note: 2. These characteristics are given as ranges between
minimum and maximum values in order to account for factors
such as temperature, power supply voltage, and variation
among production lots. When designing systems, make sure to
give due consideration to the SPEL range. Please see the Web
site for this product for actual performance data.
16.8.5 LCD
Characteristics
Table 16.25 LCD
Characteristics
503Table 16.25 amended
Applicable
ItemSymbol
Liquid crystal
display volt age
V
LCDV1
Pins
Values
MinTyp Max Unit Test Condition
2.7—5.5V
MHz
OSC
selected
selected
Reference
Figure
2
*
Reference
Figure
2
*
16.8.7 Power Supply
506Table 16.27
Voltage Detection
Circuit Characteristics
Table 16.27 Power
ItemSymbolMinTypMaxUnit Test Conditions
LVD stabilization timeT
150——µs
LVDON
Supply Voltage
Detection Circuit
Characteristics (1)
16.8.8 Power-On
509Title amended
Reset Circuit
Characteristics
B.2 Functions574PWCR1—PWM1 Control Register
Note 1 amended
Notes: 1. tφ: Period of
PWM1 input clock
589OSCCR—Clock Pulse Generator Control Register
Bit table amended
2
IRQAECF

R
1
OSCF

R
0

0
R/W
Rated Values
Rev. 6.00, 08/04, page xvi of xxx
ItemPageRevisions (See Manual for Details)
E. List of Product
Codes
Table E.1 H8/38024
Group Product Code
Lineup
618Table E.1 amended
Product TypeProduct CodeMark Code
H8/38124HD64F38124HF38124H80-pin QFP (FP-80A)
H8/38124
Group
F-ZTAT
versions
Mask ROM
versions
H8/38123HD64338123H38123(***)H80-pin QFP (FP-80A)Mask ROM
versions
H8/38122HD64338122H38122(***)H80-pin QFP (FP-80A)Mask ROM
versions
H8/38121HD64338121H38121(***)H80-pin QFP (FP-80A)
Mask ROM
versions
H8/38120HD64338120H38120(***)H80-pin QFP (FP-80A)Mask ROM