H8/300H SERIES Microcontrollers
Notice
When using this document, keep the following in mind:
1. This document may, wholly or partially, be subject to change without notice.
2. All rights are reserved: No one is permitted to reproduce or duplicate, in any form, the
whole or part of this document without Hitachi’s permission.
3. Hitachi will not be held responsible for any damage to the user that may result from
accidents or any other reasons during operation of the user’s unit according to this document.
4. Circuitry and other examples described herein are meant merely to indicate the
characteristics and performance of Hitachi’s semiconductor products. Hitachi assumes no
responsibility for any intellectual property claims or other problems that may result from
applications based on the examples described herein.
5. No license is granted by implication or otherwise under any patents or other rights of any
third party or Hitachi, Ltd.
6. MEDICAL APPLICATIONS: Hitachi’s products are not authorized for use in MEDICAL
APPLICATIONS without the written consent of the appropriate officer of Hitachi’s sales
company. Such use includes, but is not limited to, use in life support systems. Buyers of
Hitachi’s products are requested to notify the relevant Hitachi sales offices when planning to
use the products in MEDICAL APPLICATIONS.
Contents
Welcome .... .....................................................................................................1
CPU ........... .....................................................................................................5
Addressing . .....................................................................................................7
Addressing Modes ................................................................................................................. 7
Instruction Set ..................................................................................................9
Arithmetic Instructions .......................................................................................................... 10
Bit Processing........................................................................................................................ 11
Block Move Instruction ......................................................................................................... 12
Software Interrupt.................................................................................................................. 12
CPU States / Low power modes .......................................................................13
Low Power Modes ................................................................................................................. 13
Sleep Mode............................................................................................................................ 13
Software Standby Mode......................................................................................................... 13
Hardware Standby Mode........................................................................................................ 14
Extra Power Down Support - H8 / 3048 ................................................................................. 14
Clock Gearing........................................................................................................................ 15
Exceptions and Interrupts .................................................................................17
Trap Exceptions..................................................................................................................... 18
Interrupt Controller................................................................................................................ 18
H8 / 300 Compatible Mode.................................................................................................... 18
H8 / 300H Advanced Mode.................................................................................................... 18
External Interrupts ................................................................................................................. 18
Interrupt Vectors.................................................................................................................... 18
Interrupt Response Time........................................................................................................ 19
On-chip Memory..............................................................................................21
Flash Memory (F-ZTAT) .................................................................................23
Technology............................................................................................................................ 24
Bus State Controller (BSC) ..............................................................................25
DRAM and PSRAM Interface................................................................................................ 26
Chip Select Generation .......................................................................................................... 27
i
Direct Memory Access Controller (DMAC)..................................................... 29
Short Address Mode .............................................................................................................. 30
Full Address Mode................................................................................................................. 30
DMAC Interrupts................................................................................................................... 30
DMAC Modes ....................................................................................................................... 30
Integrated Timer Unit (ITU) ............................................................................ 33
Output Compare Functions .................................................................................................... 35
Input Capture Functions......................................................................................................... 35
Timer Synchronisation........................................................................................................... 35
PWM Operating Modes ......................................................................................................... 36
Standard PWM Mode ............................................................................................................ 36
AC Motor Control Outputs .................................................................................................... 37
Complementary 6-Phase PWM .............................................................................................. 37
Reset Synchronised PWM...................................................................................................... 38
Phase Counting Mode ............................................................................................................ 38
ITU Interrupts........................................................................................................................ 39
Timing Pattern Controller (TPC) ..................................................................... 41
Stepper Motor Control with the TPC...................................................................................... 41
Watchdog Timer (WDT).................................................................................. 45
Serial Communications Interface (SCI)............................................................ 47
Analogue to Digital Converter (ADC).............................................................. 49
Digital to Analogue Converter (DAC) ......................................................................... 50
H8/300H Summary .......................................................................................... 51
H8/3001 series ....................................................................................................................... 55
H8/3002 series ....................................................................................................................... 56
H8/3003 series ....................................................................................................................... 57
H8/3004 and H8/3005 series .................................................................................................. 58
H8/3032 series ....................................................................................................................... 59
H8/3042 series ....................................................................................................................... 60
H8/3048 series ....................................................................................................................... 61
Packages................................................................................................................................ 62
Ordering Information ....................................................................................... 63
ii
Welcome
to Hitachi's 16-Bit microcontroller family H8/300H.
H8/300H has enjoyed tremendous success since its introduction in 1993 as a successor to
Hitachi's equally successful H8/500 family. Dataquest has found Hitachi's 16-Bit
microcontrollers to be the most successful world-wide as well as in Europe.
SGS
13%
Motorola
21%
Intel
12%
Siemens
11%
NEC
7%
Hitachi
23%
European 16-Bit
µ
C market shares 1995
Others
13%
Source:Dataquest
At Hitachi Europe we think that this success was driven by our strong commitment to be a
leading force in the microcontroller marketplace and our belief that we must listen to our
customer's requirements and then meet these. As H8/300H is the result of combining many
years of experience of Hitachi with the experience of our customers, H8/300H is an excellent
example where this policy has worked for our customers and Hitachi.
The European Electronics Industry demands full service and support.
At Hitachi, we responded by setting up a European engineering and tool design subsidiary 12
years ago: Hitachi Microsystems Europe (HMSE) based in Maidenhead (UK).
HMSE provides our customers with locally designed and supported tools ranging from
low cost
evaluation boards
to fully featured
real time emulators
based on IBM-compatible PC's at a
very competitive price. Software ranges from Assembler, an ANSI
C-Compiler
via a C-level
debugger to HIOS, Hitachi's real time operating system. To speed development HMSE supplies
MakeApp, a tool that sets up peripherals and creates driver routines on the click of a mouse.
HMSE also offers support and engineering resources for customers wishing to use Hitachi's
ASIC capabilities. This also applies to our
µCBIC
program, enabling our customers to select
one of Hitachi's CPU cores and combine it with peripherals from our library and adding
customer specified logic via VHDL or Verilog.
1