Information regarding change of names mentioned
within this document, to Renesas Technology Corp.
On April 1st 2003 the following semiconductor operations were transferred to
Renesas Technology Corporation: operations covering microcomputer, logic,
analog and discrete devices, and memory chips other than DRAMs (flash
memory, SRAMs etc.).
Accordingly, although Hitachi, Hitachi, Ltd., Hitachi Semiconductors, and other
Hitachi brand names are mentioned in the document, these names have all
been changed to Renesas Technology Corporation.
Except for our corporate trademark, logo and corporate statement, no
changes whatsoever have been made to the contents of the document, and
these changes do not constitute any alteration to the contents of the
document itself.
Thank you for your understanding.
Renesas Technology Home Page: www.renesas.com
Renesas Technology Corp.
April 1, 2003
Renesas Technology Corp.
SuperH™ RISC Engine
SH7032 and SH7034
HD6417032, HD6477034,
HD6437034, HD6417034
HD6437034B, HD6417034B
Hardware Manual
ADE-602-062E
Rev. 6.0
9/18/02
Hitachi, Ltd.
Cautions
1. Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s
patent, copyright, trademark, or other intellectual property rights for information contained in
this document. Hitachi bears no responsibility for problems that may arise with third party’s
rights, including intellectual property rights, in connection with use of the information
contained in this document.
2. Products and product specifications may be subject to change without notice. Confirm that you
have received the latest product standards or specifications before final design, purchase or
use.
3. Hitachi makes every attempt to ensure that its products are of high quality and reliability.
However, contact Hitachi’s sales office before using the product in an application that
demands especially high quality and reliability or where its failure or malfunction may directly
threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear
power, combustion control, transportation, traffic, safety equipment or medical equipment for
life support.
4. Design your application so that the product is used within the ranges guaranteed by Hitachi
particularly for maximum rating, operating supply voltage range, heat radiation characteristics,
installation conditions and other characteristics. Hitachi bears no responsibility for failure or
damage when used beyond the guaranteed ranges. Even within the guaranteed ranges,
consider normally foreseeable failure rates or failure modes in semiconductor devices and
employ systemic measures such as fail-safes, so that the equipment incorporating Hitachi
product does not cause bodily injury, fire or other consequential damage due to operation of
the Hitachi product.
5. This product is not designed to be radiation resistant.
6. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document
without written approval from Hitachi.
7. Contact Hitachi’s sales office for any questions regarding this document or Hitachi
semiconductor products.
Preface
The SH7032 and SH7034 are microprocessors that integrate peripheral functions necessary for
system configuration with a 32-bit internal architecture SH1-DSP CPU as its core.
The SH7032 and SH7034's on-chip peripheral functions include an interrupt controller, timers,
serial communication interfaces, a user break controller (UBC), a bus state controller (BSC), a
direct memory access controller (DMAC), and I/O ports, making it ideal for use as a
microcomputer in electronic devices that require high speed together with low power
consumption.
Intended Readership: This manual is intended for users undertaking the design of an application
system using the SH7032 and SH7034. Readers using this manual require a
basic knowledge of electrical circuits, logic circuits, and microcomputers.
Purpose: The purpose of this manual is to give users an understanding of the hardware
functions and electrical characteristics of the SH7032 and SH7034. Details
of execution instructions can be found in the SH-1, SH-2, SH-DSP
Programming Manual, which should be read in conjunction with the present
manual.
Using this Manual:
• For an overall understanding of the SH7032 and SH7034's functions
Follow the Table of Contents. This manual is broadly divided into sections on the CPU, system
control functions, peripheral functions, and electrical characteristics.
• For a detailed understanding of CPU functions
Refer to the separate publication SH-1, SH-2, SH-DSP Programming Manual.
Note on bit notation: Bits are shown in high-to-low order from left to right.
Related Material: The latest information is available at our Web Site. Please make sure that you
have the most up-to-date information available.
http://www.hitachisemiconductor.com/
The on-chip peripheral module registers are located in the on-chip peripheral module space (area
5: H'5000000–H'5FFFFFF), but since the actual register space is only 512 bytes, address bits
A23–A9 are ignored. 32k shadow areas in 512 byte units that contain exactly the same contents as
the actual registers are thus provided in the on-chip peripheral module space.
In this manual, register addresses are specified as though the on-chip peripheral module registers
were in the 512 bytes H'5FFFE00–H'5FFFFFF. Only the values of the A27–A24 and A8–A0 bits
are valid; the A23–A9 bits are ignored. When area H'5000000–H'50001FF is accessed, for
example, the result will be the same as when area H'5FFFE00–H'5FFFFFF is accessed. For more
details, see Section 8.3.5, Area Descriptions: Area 5.
List of Items Revised or Added for This Version
SectionPageDescriptionEdition
1.1 SuperH
Microcomputer
Features
Table 1.2 Product
Lineup
6, 7SH7034, SH7032: 2 to 16.6 MHz device deleted.
Product
Number
SH7032ROMless 5.0 V2 to 20 MHz-20 to +75°C HD6417032F20HD6417032F20112-pin plastic
SH7034PROM5.0 V2 to 20 MHz -20 to +75°C HD6477034F20HD6477034F20112-pin plastic
On-Chip
Operating
ROM
Mask5.0 V2 to 20 MHz-20 to +75°C HD6437034AF20HD6437034AF20112-pin plastic
ROM
ROMless 5.0 V2 to 20 MHz-20 to +75°C HD6417034F20HD6417034F20112-pin plastic
Operating
Voltage
Frequency
3.3 V2 to 12.5 MHz -20 to +75°C HD6417032VF12HD6417032VF12
5.0 V2 to 20 MHz-20 to +75°C HD6417032X20HD6417032TE20120-pin plastic
3.3 V2 to 12.5 MHz -20 to +75°C HD6417032VX12HD6417032VTE12
3.3 V2 to12.5 MHz -20 to +75°C HD6 4 7 70 3 4 V F1 2 HD6 4 7 70 3 4 V F1 2
5.0 V2 to 20 MHz-20 to +75°C HD6477034X20HD6 4 7 70 3 4 TE 2 0 120-pin plastic
3.3 V2 to 12.5 MHz -20 to +75°C HD6 4 7 70 3 4 V X 1 2 HD6 4 7 70 3 4 V TE 1 2
3.3 V2 to 12.5 MHz -20 to +75°C HD6437034AVF12 HD6437034AF12
5.0 V2 to 20 MHz-20 to +75°C HD6437034AX20HD6437034ATE20120-pin plastic
3.3 V2 to 12.5 MHz -20 to +75°C HD6437 0 3 4 A VX 1 2 HD6437034ATE12
3.3 V2 to 12.5 MHz -20 to +75°C HD6417034VF12HD6417034VF12
5.0 V2 to 20 MHz-20 to +75°C HD6417034X20HD6417034TE20120-pin plastic
3.3 V2 to 12.5 MHz -20 to +75°C HD6417034VX12HD6417034VTE12
Temperature
RangeModel
-40 to +85°C HD6417032FI20HD6417032FI20
-40 to +85°C HD6417032VFI12HD6417032VFI12
-40 to +85°C HD6417032XI20HD6417032TEI20
-40 to +85°C HD6417032VXI12HD6417032VTEI12
-40 to +85°C HD6477034FI20HD6477034FI20
-40 to +85°C HD6 4 7 70 3 4 V FI 1 2 HD6 4 7 70 3 4 V FI 1 2
-40 to +85°C HD6477034XI20HD6 4 7 70 3 4 TE I 2 0
-40 to +85°C HD6 4 7 70 3 4 V X I 1 2 HD6 4 7 70 3 4 V TE I 1 2
-40 to +85°C HD6437034AFI20HD6437034AFI20
-40 to +85°C HD6437034AVFI12 HD6437034AFI12
-40 to +85°C HD6437034AXI20HD6437034ATEI20
-40 to +85°C HD6437034AVXI12 HD6437034ATEI12
-40 to +85°C HD6417034FI20HD6417034FI20
-40 to +85°C HD6417034VFI12HD6417034VFI12
-40 to +85°C HD6417034XI20HD6417034TEI20
-40 to +85°C HD6417034VXI12HD6417034VTEI12
Marking
Model No.
6
2
*
Package
QFP (FP-112)
TQFP (TFP-120)
QFP (FP-112)
TQFP (TFP-120)
QFP (FP-112)
TQFP (TFP-120)
QFP (FP-112)
TQFP (TFP-120)
Product
Number
SH7034B
Notes: *1 The electrical characteristics of the SH7034B mask ROM version and SH7034 PROM
1.3.2 Pin Functions
Table 1.3 Pin
12Note amended
*2 Can be used in the SH7034 PROM version.
Functions
On-Chip
Operating
Voltage
Operating
Frequency
ROM
1
*
Mask3.3 V4 to 12.5 MHz -20 to +75°C HD6437034BVF12 6437034B(***)F112-pin plastic
ROM
ROMless 3.3 V4 to 20 MHz-20 to +75°C HD6417034BVF20 HD6417034BVF20112-pin plastic
Temperature
RangeModel
-40 to +85°C HD6437034BVFW12 6437034B(***)FW
-20 to +75°C HD6437034BVX12 6437034B(***)X120-pin plastic
-40 to +85°C HD6437034BVXW12 6437034B(***)XW
-40 to +85°C HD6417034BVFW20 HD6417034BVFW20
-20 to +75°C HD6417034BVX20 6417034BVTE20120-pin plastic
-40 to +85°C HD6417034BVXW20 6417034BVTEW20
Marking
Model No.
2
*
Package
QFP (FP-112)
TQFP (TFP-120)
QFP (FP-112)
TQFP (TFP-120)
version are different.
*2 For mask ROM versions, (***) is the ROM code.
6
SectionPageDescriptionEdition
2.1.2 Control
Registers
Figure 2.2 Control
Registers
2.1.4 Initial Values
of Registers
Table 2.1 Initial
Values of Registers
3.1 Types of
Operating Modes and
Their Selection
Table 3.1 Operating
Mode Selection
8.11.3 Maximum
Number of States
from BREQ Input to
Bus Release
Figure 8.47 Bus
Release Procedure
18Description amended
Bits I3–I0: Interrupt mask bits.
19Description amended
SRBits I3–I0 are 1111(H'F), reserved bits are 0, and other
49Note amended
*2 Only modes 0 and 1 are available in the SH7032 and SH7034
ROMless version.
174Description amended
bits are undefined
t
BRQS
t
BACD1
t
BACD2
6
6
6
6
9.1.4 Register
Configuration
Table 9.2 DMAC
Registers
9.3.4 DMA Transfer
Types
10.1.4 Register
Configuration
Table 10.3 Register
Configuration
10.4.5 ResetSynchronized PWM
Mode
Procedure for
Selecting ResetSynchronized PWM
Mode (figure 10.31):
179*4 added
*4 Only the values of bits A27–A24 and A8–A0 are valid; bits A23–A9
are ignored. For details on the register addresses, see section
8.3.5, Area Descriptions.
200Description amended
Line 3
⋅⋅⋅ destination or source must be the SCI or A/D converter
(table 9.4). ⋅⋅⋅
230*2 description amended
*2 Only 0 can be written to clear flags.
268Description amended
4. Set bits CMD1 and CMD0 in TFCR to select reset-synchronized
PWM mode. TIOCA3, TIOCB3, TIOCA4, TIOCB4, TOCXA4, and
TOCXB4 become PWM output pins.
6
6
6
6
SectionPageDescriptionEdition
10.4.6
Complementary
PWM Mode
Procedure for
Selecting
Complementary
PWM Mode (Figure
10.33):
10.6.15 ITU
Operating Modes
Table 10.18 ITU
Operating Modes
(Channel 0)
Table 10.19 ITU
Operating Modes
(Channel 1)
271Description amended
3. Set bits CMD1 and CMD0 in TMDB to select complementary PWM
mode. TIOCA3, TIOCB3, TIOCA4, TIOCB4, TOCXA4, and
TOCXB4 become PWM pins.
301Table amended
TSNCTMDRTFCRTOCRTIOR0TCR0
Operating
ModeSyncMDF FDIR PWM
Synch-
ronized
preset
PWM√——PWM0
Output
compare A
function
SYNC0
——√——— — √√ √√
= 1
√——PWM0
302Table amended
TSNCTMDRTFCRTOCRTIOR1TCR1
Operating
ModeSyncMDF FDIR PWM
Synch-
ronized
preset
PWM√——PWM1
Output
compare A
function
SYNC1
——√——— — √√ √√
= 1
√——PWM1
Register Setting
Reset
Comp
Sync
PWM
PWM Buffer
——— — — √ *√√
= 1
————IOA2 = 0,
= 0
Register Setting
Reset
Comp
Sync
PWM
PWM Buffer
——— — — √
= 1
————IOA2 = 0,
= 0
Output
Level
Select IOAIOB
√√√
others:
don’t care
Output
Level
Select IOAIOB
√√√
others:
don’t care
*
Clear
Clock
Select
Select
Clear
Clock
Select
Select
√√
6
6
6
Table 10.20 ITU
Operating Modes
(Channel 2)
12.1.4 Register
Configuration
Table 12.2 WDT
Registers
303Table amended
TSNCTMDRTFCRTOCRTIOR2TCR2
Operating
ModeSyncMDF FDIR PWM
Synch-
ronized
preset
PWM√——PWM2
Output
compare A
function
SYNC2
——√——— — √√ √√
= 1
√——PWM2
337*4 added
NameAbbreviation R/WValueWrite
Timer control/status registerTCSRR/(W)
Timer counterTCNTR/WH'00H'5FFFFB9
Reset control/status registerRSTCSRR/(W)
Notes: *1 Write by word transfer. A byte or longword write cannot be used.
*2 Read by byte transfer. The correct value cannot be obtained by a word or longword
read.
*3 Only 0 can be written in bit 7, to clear the flag.
*4 Only the values of bits A27–A24 and A8–A0 are valid; bits A23–A9 are ignored. For
details on the register addresses, see section 8.3.5, Area Descriptions
Register Setting
Reset
Comp
Sync
PWM
PWM Buffer
——— — — √
= 1
————IOA2 = 0,
= 0
Output
Level
Select IOAIOB
3
*
3
*
Clear
Clock
Select
Select
*
√√
√√√
others:
don’t care
4
*
Initial
1
*
Address
Read
2
*
H'18H'5FFFFB8H'5FFFFB8
H'1FH'5FFFFBAH'5FFFFBB
6
6
SectionPageDescriptionEdition
12.2.2 Timer
Control/Status
Register (TCSR)
13.2.6 Serial Control
Register
13.2.8 Bit Rate
Register (BRR)
Table 13.3 Bit Rates
and BRR Settings in
Asynchronous Mode
Table 13.4 Bit
Rates and BRR
Settings in
Synchronous Mode
338Note added
Note: * Only 0 can be written, to clear the flag.
359Initial value added
Internal clock, SCK pin used for input pin (input signal
2
is ignored) or output pin (output level is undefined)
*
(Initial value)
2
Internal clock, SCK pin used for serial clock output
*
(Initial value)
367Note added
Note: Settings with an error of 1% or less are recommended.
Port A I/O registerPAIORR/WH'0000H'5FFFFC48, 16, 32
Port A control register 1 PACR1R/WH'3302H'5FFFFC88, 16, 32
Port A control register 2 PACR2R/WH'FF95H'5FFFFCA8, 16, 32
Port B I/O registerPBIORR/WH'0000H'5FFFFC6 8, 16, 32
Port B control register 1 PBCR1R/WH'0000H'5FFFFCC8, 16, 32
Port B control register 2 PBCR2R/WH'0000H'5FFFFCE8, 16, 32
Column address strobe
pin control register
Note: * Only the values of bits A27–A24 and A8–A0 are valid; bits A23–A9 are ignored. For
details on the register addresses, see section 8.3.5, Area Descriptions.
Port C data registerPCDRR/WH'5FFFFD08, 16, 32
Note: * Only the values of bits A27–A24 and A8–A0 are valid; bits A23–A9 are ignored. For
6
—
details on the register addresses, see section 8.3.5, Area Descriptions.
SectionPageDescriptionEdition
19.1.2 Register
Table 19.2 Standby
Control Register
(SBYCR)
20.1.2 DC
Characteristics
Table 20.2 DC
Characteristics
Table 20. 2 DC
Characteristics
Table 20.3
Permitted Output
Current Values
20.1.3 AC
Characteristics
(1) Clock Timing
Table 20.4 Clock
Timing
460Note added
NameAbbreviationR/WInitial Value Address*Access size
Standby control registerSBYCRR/WH'1FH'5FFFFBC 8, 16, 32
Note: * Only the values of bits A27–A24 and A8–A0 are valid; bits A23–A9 are ignored. For
details on the register addresses, see section 8.3.5, Area Descriptions.
46716.6 MHz deleted6
Table of 16.6 MHz deleted6
47116.6 MHz deleted6
47216.6 MHz deleted6
6
(2) Control Signal
Timing
Table 20.5 Control
Signal Timing
(3) Bus Timing
Table 20.6 Bus
Timing (1)
Table 20.7 Bus
Timing (2)
47416.6 MHz deleted6
478,
479
Description amended
6
Read data access time 1
Read data access time 2
Read data access time from
6
*
CAS 2
Read data access time from
6
*
RAS 1
Read data access time from
6
*
RAS 2
Data setup time for CAStCAS setup time for RASt
Row address hold timet
*
6
*
Table deleted
t
ACC1
t
ACC2
t
CAC2
t
RAC1
t
RAC2
DS
CSR
RAH
4
*
t
– 30
cyc
t
× (n+2) –
cyc
3
*
30
t
× (n+1) –
cyc
3
*
25
t
× 1.5 – 20 —ns20.11, 20.12
cyc
t
× (n+2.5)
cyc
3
*
– 20
5
*
0
10—ns20.16–20.18
10—ns20.11, 20.13
—ns20.8, 20.11, 20.12
—ns20.9, 20.10,
—ns
—ns
—ns20.11, 20.13
20.13–20.15
20.13–20.15
20.13–20.15
6
6
Table 20.7 Bus
Timing (2)
494Description amended
Read data access time 1
Read data access time 2
4
*
4
*
t
ACC1tcyc
t
ACC2tcyc
– 44—ns20.21, 20.24, 20.25
2
× (n+2) – 44
*
—ns20.22, 20.23,
20.26–20.28
6
SectionPageDescriptionEdition
(4) DMAC Timing
Table 20.8 DMAC
Timing
(5) 16-bit Integrated
Timer Pulse Unit
Timing
Table 20.9 16-bit
Integrated Timer
Pulse Unit Timing
(6) Programmable
Timing Pattern
Controller and I/O
Port Timing
Table 20.10
Programmable
Timing Pattern
Controller and I/O
Port Timing
50716.6 MHz deleted6
50916.6 MHz deleted6
51016.6 MHz deleted6
(7) Watchdog Timer
Timing
Table 20.11
Watchdog Timer
Timing
(8) Serial
Communication
Interface Timing
Table 20.12 Serial
Communication
Interface Timing
(9) A/D Converter
Timing
Table 20.13 A/D
Converter Timing
20.1.4 A/D
Converter
Characteristics
51116.6 MHz deleted
51216.6 MHz deleted
51316.6 MHz deleted
51616.6 MHz deleted
6
6
6
6
Table 20.14 A/D
Converter
Characteristics
20.2 SH7034B 3.3 V
51712.5 MHz added6
12.5 MHz Version
and 20 MHz
1
Version
*
Electrical
Characteristics
SectionPageDescriptionEdition
20.2.1 Absolute
Maximum Ratings
Table 20.15
Absolute Maximum
Ratings
Table 20.16 DC
Characteristics
517Notes amended
ItemSymbolRatingUnit
Power supply voltageV
Input voltage (except port C)V
Input voltage (port C)V
Analog power supply voltageAV
Analog reference voltageAV
Analog input voltageV
Operating temperatureT
Storage temperatureT
518,
Caution: Operating the chip in excess of the absolute maximum rating may result in permanent
Notes: *1 ROMless products only for 20 MHz version
12.5 MHz added
damage.
*2 Regular-specification products; for wide-temperature-range products, Topr = –40 to
+85°C
519
Conditions: VCC = 3.3 V ±0.3V, AVCC = 3.3 V ±0.3V, AVCC = VCC ±0.3V, AV
AV
CC
Notes: *1 ROMless products only for 20 MHz version
*2 Regular-specification products; for wide-temperature-range products, Ta = –40 to
+85°C
CC
in
in
CC
ref
AN
opr
stg
, VSS = AVSS = 0 V, φ = 12.5 to 20 MHz
–0.3 to +4.6 V
–0.3 to VCC + 0.3V
–0.3 to AVCC + 0.3V
–0.3 to +4.6 V
–0.3 to AVCC + 0.3V
–0.3 to AVCC + 0.3V
–20 to +75
–55 to +125˚C
1
*
, Ta = –20 to +75°C
2
*
= 3.0 V to
ref
2
*
6
˚C
6
Table 20.17
Permitted Output
Current Values
CurrentOrdinaryI
consumptionoperation
Sleep—20—mAf = 12.5 MHz
Standby—0.15µATa ≤ 50°C
52112.5 MHz added
ItemSymbolMinTypMaxMinTypMaxUnit
Output low-level
permissible current
(per pin)
Output low-level
permissible current
(total)
Output high-level
permissible current
(per pin)
Output high-level
permissible current
(total)
Caution: To ensure reliability of the chip, do not exceed the output current values given in table
20.18.
I
OL
∑ I
–I
–∑ I
OH
CC
—25—mAf = 12.5 MHz
—3560mAf = 20 MHz
—3040mAf = 20 MHz
——10 µA50°C < Ta
6
12.5 MHz20 MHz
——10 ——10mA
OL
——80 ——80mA
——2.0 ——2.0mA
——25 ——25mA
OH
SectionPageDescriptionEdition
20.2.3 AC
Characteristics
(1) Clock Timing
Table 20.18 Clock
Timing
(2) Control Signal
Timing
Table 20.19 Control
Signal Timing
52212.5 MHz added and description amended
12.5 MHz20 MHz
ItemSymbolMinMaxMinMaxUnitFigures
EXTAL input high level
pulse width
EXTAL input low level
pulse width
EXTAL input rise timet
EXTAL input fall timet
Clock cycle timet
Clock high pulse widtht
Clock low pulse widtht
Clock rise timet
Clock fall timet
Reset oscillation settling
2Overflow flag (OVF)0Clear conditions: 0 is written in OVF after
1Input capture/compare match
flag B (IMFB)
0Input capture/compare match
flag A (IMFA)
6
12.5 MHz20 MHz
6
reading OVF = 1(Initial value)
1Set conditions: TCNT value overflows (H'FFFF
? H'0000) or underflows (H'FFFF ? H'0000)
0Clear conditions: 0 is written in IMFB after
reading IMFB = 1(Initial value)
1Set conditions: (1) When GRB is functioning as
the output compare register, and TCNT = GRB;
(2) When GRB is functioning as the input
capture register, and the TCNT value is
transferred to GRB by the input capture signal
0Clear conditions: 0 is written in IMFA after
reading IMFA = 1(Initial value)
1Set conditions: (1) When GRA is functioning as
the output compare register, and TCNT = GRA;
(2) When GRA is functioning as the input
capture register, and the TCNT value is
transferred to GRA by the input capture signal
A.2.23 Timer Output
Control Register
(TOCR)
Table A.24 TOCR
Bit Functions
587Table amended
Bit Bit nameValueDescription
1Output level select 4 (OLS4)0Reverse output of TIOCA3, TIOCA4, TIOCB4
0Output level select 3 (OLS3)0Reverse output of TIOCB3, TOCXA4, TOCXB4
6
1Direct output of TIOCA3, TIOCA4, TIOCB4
(Initial value)
1Direct output of TIOCB3, TOCXA4, TOCXB4
(Initial value)
SectionPageDescriptionEdition
A.3 Register Status
in Reset and PowerDown States
Table A.77 Register
Status in Reset and
Power-Down States