hit counter script
Hitachi H8/300L Series Manual
Hitachi H8/300L Series Manual

Hitachi H8/300L Series Manual

Single-chip microcomputer
Hide thumbs Also See for H8/300L Series:

Advertisement

Quick Links

OMC942723078
H
8
8
HITACHI SINGLE-CHIP MICROCOMPUTER
H8/300L Series
H I TA C H I

Advertisement

Table of Contents
loading

Summary of Contents for Hitachi H8/300L Series

  • Page 1 OMC942723078 HITACHI SINGLE-CHIP MICROCOMPUTER H8/300L Series H I TA C H I...
  • Page 3 The H8/300L Series are built around the H8/300L CPU core, and provide on chip a wealth of supporting functions for use in various application systems. These include ROM, RAM,...
  • Page 4 Introduction The H8/300L Series are available in either mask ROM or ZTAT™* versions, the latter providing an on-chip PROM that can be programmed by the user. Hitachi is working to provide a full, efficient development environment for a microcomputer application system. In addition to support software, the environment includes a stand-alone emulator that can be connected to a general purpose computer.
  • Page 5: Table Of Contents

    Contents What is the H8/300L Series? ..................1. Application Areas ..................... 2. ASSP Based Approach ..................... 10 3. ZTAT™ Microcomputers..................11 Product Line ........................12 Function Tabl e ......................... 14 Application Perspectives ....................16 1. Vacuum Fluorescent Display Controller/Driver (H8/3714 Series, H8/3724 Series, and H8/3754 Series)....................
  • Page 6 7. Vacuum Fluorescent Display (VFD) Controller/Driver..........105 8. Liquid Crystal Display (LCD) Controller/Driver ............. 106 9. Dual Tone Multi Frequency (DTMF) Generator ............112 10. Multi-Tone Generator ....................114 11. ROM ......................... 116 12. RAM ......................... 117 H8/300L Series Document ................... 118...
  • Page 7: What Is The H8/300L Series

    Furthermore, this CPU realizes high software productivity, since it supports standard (IEEE conforming) mnemonics and the highly efficient C programming language. The H8/300L Series is a product line of microcomputers that takes this H8/300L CPU as their core and inherits and extends the consumer product oriented peripheral functions that were supported by Hitachi’s 4-bit microcomputers.
  • Page 8 Since the H8/300L Series microcomputers not only support operation at 2.7 V, but also support a rich variety of low power modes, including 32-kHz subclock based operation, they can contribute...
  • Page 9 What is the H8/300L Series?
  • Page 10: Assp Based Approach

    What is the H8/300L Series? 2. ASSP Based Approach The members of the H8/300L Series include on-chip peripheral functions that are optimal for particular applications. The microcomputers in the H8/300L Series consist of an H8/300L CPU module, a standard bus to which the on-chip modules are connected, and some number of modules, such as ROM/RAM, VFD/LCD controller/driver, A/D and D/A converter, and I/O port including general purpose I/O ports and high current I/O ports.
  • Page 11: Ztat™ Microcomputers

    What is the H8/300L Series? 3. ZTAT™ Microcomputers Hitachi proposed the new concept of the ZTAT™ (zero turn around time) microcomputer in 1984, and began shipping ZTAT™ products that year. ZTAT™ microcomputers are microcomputers that include user-programmable PROM on-chip. Since these microcomputers allow completed programs to be written to PROM at the user’s site, the waiting time until a completed LSI is obtained, which had previously been required in the development process, was reduced to zero.
  • Page 12: Product Line

    Product Line General Purpose H8/3614 ZTAT™ H8/3613 H8/3614 Series Shared with the H8/3726 H8/3754 H8/3612 ZTAT™ version ZTAT™ H8/3753 H8/3754 Series H8/3724 Series H8/3726 Vacuum Fluorescent ZTAT™ H8/3714 Display Controller/ Driver Products H8/3725 ZTAT™ Reduced function H8/3713 H8/3724 ZTAT™ H8/3712 H8/3714 Series H8/3723 Shared with the H8/3834...
  • Page 13 Product Line Timers* Package Product H8/3612 H8/3613 H8/3614 H8/3712 H8/3713 H8/3714 H8/3723 H8/3724 H8/3725 H8/3726 H8/3753 H8/3754 H8/3812 H8/3813 H8/3814 H8/3834 H8/3836 H8/3837 H8/3875 H8/3876 H8/3877 H8/3924 H8/3925 H8/3926 H8/3927 Note: * Refer to the function table for the number of timers.
  • Page 14: Function Table

    Function Table H8/3612 H8/3613 H8/3614 H8/3712 H8/3713 H8/3714 H8/3723 H8/3724 H8/3725 H8/3726 H8/3753 H8/3754 Memory ROM Mask kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes ZTAT™ — — — — — — — — 512 bytes 1 kbyte 384 bytes 384 bytes 512 bytes 384 bytes 512 bytes 640 bytes 1 kbyte 1 kbyte...
  • Page 15 Function Table H8/3812 H8/3813 H8/3814 H8/3834 H83836 H8/3837 H8/3875 H8/3876 H8/3877 H8/3924 H8/3925 H8/3926 H8/3927 kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes kbytes — — — — — — — — — 512 bytes 512 bytes 512 bytes 1 kbyte 2 kbytes 2 kbytes 2 kbytes 2 kbytes 2 kbytes 1 kbyte 1 kbyte...
  • Page 16: Application Perspectives

    (H8/3714 Series, H8/3724 Series, and H8/3754 Series) Features Hitachi, Ltd. provides the 64-pin package H8/3714 Series and the 80-pin package H8/3724 Series and H8/3754 Series as built-in vacuum fluorescent display (VFD) controller/driver microcomputers for use with applications incorporating fluorescent display. The H8/3714 Series provides 16 kbytes to 32 kbytes of on-chip ROM, H8/3724 Series provides 24 kbytes to 48 kbytes, and the H8/3754 Series provides 24 kbytes to 32 kbytes.
  • Page 17 Application Perspectives Vacuum Fluorescent Display Controller/Driver Possible Applications The H8/3714 Series, the H8/3724 Series, and the H8/3754 Series are optimal for applications that use vacuum fluorescent display. Typical products that incorporate vacuum fluorescent display include VCR and laser disk players, audio equipment such as CD players, home appliances such as microwave ranges, and electronic cash registers (ECRs).
  • Page 18 Application Perspectives Vacuum Fluorescent Display Controller/Driver Application Example This section describes the use of the H8/3724 Series in VCR units. The VFD controller/driver directly drives the VCR front panel vacuum fluorescent display. The built-in timers, of which there are five types, are used to generate the basic timing for system control and for the clock/calendar function, remote control reception control, the frame synchronization counter, the alarm, and other functions.
  • Page 19: Liquid Crystal Display Controller/Driver (H8/3814 Series, H8/3834 Series)

    (H8/3814 Series, H8/3834 Series) Features Hitachi, Ltd. provides the H8/3814 Series and the H8/3834 Series (all in 100-pin packages) as built-in liquid crystal display (LCD) controller/driver microcomputers for use with applications incorporating liquid crystal displays. The H8/3814 Series provides 16 kbytes to 32 kbytes of on-chip ROM, and the H8/3834 Series provides 32 kbytes to 60 kbytes.
  • Page 20 Application Perspectives Liquid Crystal Display Controller/Driver Possible Applications The H8/3814 Series and H8/3834 Series are optimal for use in applications that use liquid crystal display (LCD). Typical products that incorporate LCD include cameras, audio components, and CD players. Furthermore, since the LCD segment pins can be switched over to function as standard I/O pins, these microcomputers can also be used for system control in applications that do not require an LCD, such as cordless telephones and camcorders.
  • Page 21 Application Perspectives Liquid Crystal Display Controller/Driver Application Example This section describes the use of the H8/3834 Series in CD players. The liquid crystal display (LCD) controller/driver drives the LCD directly. The built-in timers, of which there are five types, are used to implement clock and remote control reception functions.
  • Page 22: Tone Generator + Lcd (H8/3877 Series)

    3. Tone Generator + LCD (H8/3877 Series) Features Hitachi, Ltd. provides the H8/3877 Series as microcomputers that include on-chip high precision dual tone multi frequency (DTMF) and multi-tone generator circuits. The H8/3877 Series microcomputers include 40 kbytes to 60 kbytes of ROM and a 2-kbyte large capacity RAM on chip.
  • Page 23 Application Perspectives Tone Generator + LCD Possible Applications The H8/3877 Series microcomputers are optimal for use in applications that require tone generators and LCD displays. Typical products that require tone generators and LCD displays include portable equipment such as portable telephones and radio transceivers, cordless telephone hand sets, and pagers, as well as multi-function telephones.
  • Page 24 Application Perspectives Tone Generator + LCD Application Example This section describes the use of the H8/3877 Series in portable telephones. The LCD controller/driver drives the LCD panel directly. Since the tone generators can output DTMF signals and arbitrary tones simultaneously, the external components previously required for optional functions, such as tone squelch, can be eliminated.
  • Page 25: A/D And D/A Converters (H8/3927 Series)

    4. A/D and D/A Converters (H8/3927 Series) Features Hitachi, Ltd. provides the H8/3927 Series, which includes built-in 8-bit A/D and D/A converters, as microcomputers for use in analog signal interface applications. The H8/3927 Series microcomputers include 32 kbytes to 60 kbytes of ROM and 1 kbyte of RAM on chip.
  • Page 26 Application Perspectives A/D and D/A Converters Possible Applications The H8/3927 Series microcomputers are optimal for use in applications that control analog signals. Typical products that require A/D and D/A converters include video applications such as VCRs and TVs. Furthermore, since the H8/3927 Series microcomputers support low power and low voltage (2.7 V) operation, they can be used in portable equipment such as portable telephones.
  • Page 27: Cpu

    1. Features The H8/300L CPU provides sixteen 8-bit general registers and a concise optimized instruction set that is geared for high speed operation. The general register set can also be used as eight 16-bit registers. Arithmetic, data transfer, and other operations are executed rapidly due to operating frequencies of up to 5 MHz.
  • Page 28: Register Structure

    2. Register Structure The H8/300L CPU register set consists of sixteen 8-bit general registers (referred to as R0H/R0L through R7H/R7L), a 16-bit program counter (PC) used as a control register, and an 8-bit condition code register (CCR). CPU Internal Organization General registers SP: Stack pointer (SP)
  • Page 29 General Registers The sixteen 8-bit registers all have the same structure and can be used without distinguishing data registers from address registers. They can also be used as eight 16-bit registers. When used as data registers, the general registers can be used as either 8-bit registers, in which case they are referred to as upper (H) and lower (L) byte registers, or as 16-bit registers.
  • Page 30 Bit 4 (U): User bit This bit can be read and written by user software using the LCD, STC, ANDC, ORC, and XORC instructions. Bit 3 (N): Negative flag This bit indicates the most significant bit (the sign bit) of the result of an instruction.
  • Page 31: Data Formats

    3. Data Formats The H8/300L CPU can process 1-bit data, 4-bit (BCD) data, 8-bit (byte) data, and 16-bit (word) data. Essentially all instructions can process byte data. The bit manipulation instructions process 1-bit data and certain data transfer and arithmetic instructions process word data.
  • Page 32 Memory Data Formats Data Type Address Data Format Address n 1-bit data Byte data Address n Even address Upper 8 bits Word data Lower 8 bits Odd address Even address Byte data (CCR values) on the stack Odd address Even address Upper 8 bits Word data on the stack Lower 8 bits...
  • Page 33: Addressing Modes

    4. Addressing Modes The H8/300L CPU supports the following eight addressing modes. Addressing Modes Addressing Mode Symbol Register direct Register indirect Register indirect with displacement @(d:16, Rn) Register indirect with pre-decrement @–Rn Register indirect with post-increment @Rn+ Immediate #xx:8/#xx:16 Absolute address @aa:8/@aa:16 PC-relative @(d:8, PC)
  • Page 34 Addressing Mode, Instruction Format Effective Address Calculation Register indirect with pre-decrement @–Rn Register contents (16 bits) 1 or 2 Register indirect with post-decrement @Rn+ Register contents (16 bits) 1 or 2 One is added when the operand size is byte, and 2 is added when the operand size is word.
  • Page 35: Instruction Set

    5. Instruction Set The H8/300L CPU supports 55 basic instructions with the following features. Features • Concise instruction set geared to high-speed performance — All instructions are 2 or 4 bytes long. • High speed — All frequently executed instructions execute in 2 to 4 states. •...
  • Page 36 Main Instruction Formats The figure below shows the main instruction formats supported by the H8/300L CPU. • Arithmetic or logic operation on immediate data and #IMM register contents • Register-register arithmetic or logic operation • Data transfer instruction [@Rm↔ Rn] •...
  • Page 37 Instruction Set Addressing Mode/ Instruction Length Condition Code Mnemonic Operation H N Z Rs8 → Rd8 Data MOV.B Rs,Rd — — 0 — #xx:8 → Rd8 transfer MOV.B #xx:8,Rd — — 0 — @Rs16 → Rd8 instructions MOV.B @Rs,Rd — — 0 —...
  • Page 38 Instruction Set (cont) Addressing Mode/ Instruction Length Condition Code Mnemonic Operation H N Z Arithmetic CMP.B #xx:8,Rd Rd8–#xx:8 — instructions CMP.B Rs,Rd Rd8–Rs8 — CMP.W Rs,Rd Rd16–Rs16 — 1 Rd8×Rs8 → Rd16 MULXU.B Rs,Rd — — — — — — 14 Rd16÷Rs8 →...
  • Page 39 Instruction Set (cont) Addressing Mode/ Instruction Length Condition Code Mnemonic Operation H N Z (#xx:3 of Rd8) ← 1 Bit manipu- BSET #xx:3,Rd — — — — — — (#xx:3 of @Rd16) ← 1 lation BSET #xx:3,@Rd — — — — — — (#xx:3 of @aa:8) ←...
  • Page 40 Instruction Set (cont) Addressing Mode/ Instruction Length Condition Code Mnemonic Operation H N Z ∨ (#xx:3 of @Rd16) → C Bit manipu- BIOR #xx:3,@Rd — — — — — ∨ (#xx:3 of @aa:8) → C lation BIOR #xx:3, @aa:8 — — — — — C⊕(#xx:3 of Rd8) →...
  • Page 41 Instruction Set (cont) Addressing Mode/ Instruction Length Condition Code Mnemonic Operation H N Z CCR ← @SP System — SP+2 → SP control PC ← @SP instructions SP+2 → SP SLEEP — Switches to low power mode. 2 — — — — — — #xx:8 →...
  • Page 42 Operating Notation Symbol Meaning Program counter Stack pointer (R7) Condition code register CCR zero flag CCR carry flag Rs, Rd, Rn General registers (8-bit: R0H/R0L to R7H/R7L; 16-bit: R0 to R7) d:8, d:16 Displacement #xx:3, #xx:8, #xx:16 3-bit, 8-bit, or 16-bit immediate data →...
  • Page 43: Basic Bus Timing

    6. Basic Bus Timing The H8/300L CPU clock is generated either by the system clock generator circuit or the subclock generator circuit. The system clock generator circuit consists of the system clock oscillator and the system clock divider. The subclock generator circuit consists of the subclock oscillator and the system clock divider.
  • Page 44 CPU Read/Write Cycle The H8/300L CPU operates on either the system clock ø or the subclock ø , which are generated by the clock generator circuits. A single period of either the ø or ø clock is called a state. Accesses, which differ for the on-chip memory and the on-chip peripheral modules, take place in basic bus cycles, which take either 2 or 3 states.
  • Page 45: Cpu Operating States

    7. CPU Operating States The H8/300L CPU operates in four states, namely, program execution state, program halt state, exception handling state, and reset state. The figure below shows the transitions between these states. State Transition Diagram Reset release Reset state Exception handling state Reset request Interrupt...
  • Page 46: Exception Handling

    8. Exception Handling The H8/300L CPU supports two types of exceptions: resets and interrupts. When the H8/300L CPU starts interrupt exception handling, it saves the PC and CCR on the stack by referencing the SP. Then it sets the CCR I bit to 1 and fetches the starting address of the interrupt handling routine from the vector table.
  • Page 47 Interrupt Controller Block Diagram Interrupt controller External or Interrupt request internal interrupt External or internal interrupt enable signal CPU CCR register...
  • Page 48: Memory Map

    Since the details of the relationship between the interrupt vector table and the interrupts differ for different products in the H8/300L Series, those details are described in the hardware manual for each product. The H8/300L CPU supports the use of locations H'0000 to H'00FF, which include the interrupt vector table, for indirect addressing with 8-bit addresses that are included in the instruction code.
  • Page 49 8-Bit Memory Direct Addressing Area (Addresses H'FF00 to H'FFFF) The H8/300L CPU provides a short absolute addressing mode for the MOV instruction. This allows the H8/300L CPU to access locations H'FF00 to H'FFFF rapidly and programs to be implemented compactly using these short instructions. Since RAM is mapped to locations H'FF00 to H'FF7F and I/O registers are mapped to locations H'FF80 to H'FFFF, programs can implement high speed data handling by making effective use of the short absolute addressing mode.
  • Page 50: Low Power Modes

    Low Power Modes The H8/300L Series microcomputers support active (high speed) mode in which programs are executed rapidly, and seven low power modes in which the IC power dissipation is significantly reduced. There are two low power modes in which programs are executed at relatively low speeds, namely, active (medium speed) mode and subactive mode.
  • Page 51 Low Power Modes Subsleep Mode In subsleep mode the on-chip peripheral modules operate based on the subclock. Subsleep mode differs from subactive mode in that the CPU is stopped in subsleep mode. Watch Mode In watch mode, a subset of the on-chip peripheral modules operate based on the subclock. Standby Mode In standby mode the CPU and all the on-chip peripheral modules are stopped.
  • Page 52 Low Power Modes The following figure provides an overview of the H8/300L Series operating modes and the transitions between those operating modes. The transitions between modes are made by interrupts and the execution of the SLEEP instruction. H8/3927 Series Operating Modes and Transitions...
  • Page 53: Operating Modes And Current Drain

    2. Operating Modes and Current Drain The table below shows the relationship between the operating modes and the IC current drain. The H8/300L Series microcomputers allow precise program control (using the SLEEP instruction) of power dissipation to match the power saving conditions required by the application.
  • Page 54: Product Series And Supported Operating Modes

    Low Power Modes 3. Product Series and Supported Operating Modes The following table lists the correspondence between the products in the H8/300L Series and the operating modes supported. These operating modes differ slightly between products. Refer to the hardware manual published by Hitachi for the corresponding product for details.
  • Page 55: Product Descriptions

    H8/3612, H8/3613, H8/3614 The H8/3614 Series microcomputers are general purpose 8-bit microcomputers that include an on-chip A/D converter in a 64-pin package. The H8/3614 Series microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 16, 24, and 32 kbytes of ROM, 512, 1024, and 1024 bytes of RAM, timers, two serial communications interfaces, an A/D converter, and I/O ports in a 64-pin...
  • Page 56 H8/3612, H8/3613, H8/3614 • I/O ports — I/O pins: 44 pins (of which six are PMOS open drain circuits) — Input pins: 10 pins • Interrupts — External interrupts: Six interrupts (IRQ , IRQ , IRQ , IRQ , IRQ , and IRQ —...
  • Page 57 H8/3612, H8/3613, H8/3614 Block Diagram H8/300L /IRQ /PWM* /IRQ /SCK (512 or 1024 bytes) /IRQ /IRQ /TMOE Timer A /SCK (either PROM or /EVENT mask ROM) (16, 24, or 32 kbytes) Timer B Timer C Serial communications Timer D interface 1 Timer E Serial communications...
  • Page 58 H8/3712, H8/3713, H8/3714 The H8/3714 Series microcomputers are 8-bit single chip microcomputers that can directly drive vacuum fluorescent displays (VFD). The H8/3712, H8/3713, and H8/3714 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 16, 24, and 32 kbytes of ROM, 384, 384, and 512 bytes of RAM, a VFD (vacuum fluorescent display) controller/driver, timers, two serial...
  • Page 59 H8/3712, H8/3713, H8/3714 • 14-bit PWM — Pulse divider technique used to reduce ripple • A/D converter — Resolution: 8 bits — Eight analog voltage input channels — Resistor ladder based successive approximations — Sample-and-hold function • I/O ports — High breakdown voltage I/O pins: 32 pins —...
  • Page 60 H8/3712, H8/3713, H8/3714 Block Diagram H8/300L /PWM RAM (256, 384, or /IRQ /SCK 512 bytes) /IRQ /IRQ (either PROM or /SCK /IRQ /TMOE Timer A mask ROM) /EVENT (16, 24, or 32 kbytes) disp Timer B Serial Timer C communications interface 1 Timer D Serial...
  • Page 61 H8/3723, H8/3724, H8/3725, H8/3726 The H8/3724 Series microcomputers are 8-bit single chip microcomputers that can directly drive vacuum fluorescent displays (VFD). The H8/3723, H8/3724, H8/3725, and H8/3726 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 24, 32, 40, and 48 kbytes of ROM, 384, 512, 640, and 1024 bytes of RAM, a VFD (vacuum fluorescent display) controller/driver,...
  • Page 62 H8/3723, H8/3724, H8/3725, H8/3726 • 14-bit PWM — Pulse divider technique used to reduce ripple • A/D converter — Resolution: 8 bits — Eight analog voltage input channels — Resistor ladder based successive approximations — Sample-and-hold function • I/O ports —...
  • Page 63 H8/3723, H8/3724, H8/3725, H8/3726 Block Diagram H8/300L /PWM /IRQ /SCK /IRQ /IRQ RAM (384, 512, 640, /IRQ /SCK or 1024 bytes) /IRQ /IRQ /TMOE /EVENT (either PROM or Timer A disp mask ROM) (24, 32, 40, or 48 kbytes) Timer B Serial Timer C communications...
  • Page 64 H8/3753, H8/3754 The H8/3754 Series microcomputers are 8-bit single chip microcomputers that can directly drive vacuum fluorescent displays (VFD). The H8/3753 and H8/3754 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 24 and 32 kbytes of ROM, 1024 bytes of RAM, a VFD (vacuum fluorescent display) controller/driver, timers, two serial communications interfaces, a 14-bit PWM,...
  • Page 65 H8/3753, H8/3754 • 14-bit PWM — Pulse divider technique used to reduce ripple • A/D converter — Resolution: 8 bits — Eight analog voltage input channels — Resistor ladder based successive approximations — Sample-and-hold function • I/O ports — High breakdown voltage I/O pins: 36 pins —...
  • Page 66 H8/3753, H8/3754 Block Diagram H8/300L /PWM /IRQ /SCK /IRQ /IRQ /IRQ RAM (1024 bytes) /SCK /IRQ /IRQ /TMOE /EVENT (either PROM or Timer A disp mask ROM) (24 or 32 kbytes) Timer B Serial Timer C communications interface 1 Timer D Serial communications interface 2...
  • Page 67 H8/3812, H8/3813, H8/3814 The H8/3814 Series microcomputers are 8-bit single chip microcomputers that can directly drive liquid crystal display (LCD). The H8/3812, H8/3813, and H8/3814 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 16, 24, and 32 kbytes of ROM, 512 bytes of RAM, an LCD (liquid crystal display) controller/driver, timers, two serial communications...
  • Page 68 H8/3812, H8/3813, H8/3814 • A/D converter — Resolution: 8 bits — Twelve analog voltage input channels — Resistor ladder based successive approximations — Sample-and-hold function • I/O ports — I/O pins: 71 pins — Input pins: 13 pins • Interrupts —...
  • Page 69 H8/3812, H8/3813, H8/3814 Block Diagram /TMOW /TMOFL /TMOFH /COM H8/300L /TMIG /COM /COM /IRQ /COM /IRQ /IRQ /TMIF /SEG ROM, /SEG mask ROM /IRQ /ADTRG (512 bytes) /SEG (16, 24, or 32 kbytes) /SEG /SEG /SEG /SEG /SEG Timer A /SEG /SEG /SCK...
  • Page 70 H8/3834, H8/3836, H8/3837 The H8/3834 Series microcomputers are 8-bit single chip microcomputers that can directly drive liquid crystal display (LCD). The H8/3834, H8/3836, and H8/3837 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 32, 48, and 60 kbytes of ROM, 1, 2, and 2 kbytes of RAM, an LCD (liquid crystal display) controller/ driver, timers, three serial communications...
  • Page 71 H8/3834, H8/3836, H8/3837 • 14-bit PWM — Pulse divider technique used to reduce ripple. • A/D converter — Resolution: 8 bits — Twelve analog voltage input channels — Resistor ladder based successive approximations — Sample-and-hold function • I/O ports — I/O pins: 71 pins —...
  • Page 72 H8/3834, H8/3836, H8/3837 Block Diagram /TMOW /TMOFL /TMOFH H8/300L /COM /TMIG /COM /PWM /COM /IRQ /TMIB /COM /IRQ /TMIC /IRQ /TMIF /SEG /SEG /IRQ /ADTRG (PROM or mask ROM) (1, 2, or 2 kbytes) /SEG (32, 48, or 64 kbytes) /SEG /SEG /SEG...
  • Page 73 H8/3875, H8/3876, H8/3877 The H8/3877 Series microcomputers are 8-bit single chip microcomputers that can output tones of arbitrary frequencies. The H8/3875, H8/3876, and H8/3877 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 40, 48, and 60 kbytes of ROM, 2 kbytes of RAM, a DTMF (dual tone multi-frequency) generator, a multi- tone generator, an LCD (liquid crystal...
  • Page 74 H8/3875, H8/3876, H8/3877 • Serial communications interface (two channels) — SCI1: 8- or 16-bit clock synchronous transfers — SCI3: 8-bit clock synchronous/asynchronous transfers (includes a multi-processor communications function) • A/D converter — Resolution: 8 bits — Eight analog voltage input channels —...
  • Page 75 H8/3875, H8/3876, H8/3877 Block Diagram /TMOW /TMOFL /TMOFH /TMIG H8/300L /IRQ /IRQ /COM /IRQ /TMIF /COM /IRQ /COM /ADTRG /SCK /COM (PROM or mask ROM) (2 kbytes) (40, 48, or 60 kbytes) /SEG /SCK /SEG /RXD /SEG /TXD /SEG /IRQ /SEG /WKP /SEG...
  • Page 76 H8/3924, H8/3925, H8/3926, H8/3927 The H8/3927 Series microcomputers are 8-bit single chip microcomputers that provide an on-chip D/A converter. The H8/3924, H8/3925, H8/3926, and H8/3927 microcomputers integrate, around an H8/300L CPU core, a rich set of peripheral functions, including 32, 40, 48, and 60 kbytes of ROM, 1 kbyte of RAM, a D/A converter, timers, a 14-bit PWM, two serial communications interfaces, an A/D...
  • Page 77 H8/3924, H8/3925, H8/3926, H8/3927 • Serial communications interface (two channels) — SCI1: 8- or 16-bit clock synchronous transfers — SCI2: 8-bit clock synchronous transfers (includes a 32-byte data buffer) • A/D converter — Resolution: 8 bits — Eight analog voltage input channels —...
  • Page 78 H8/3924, H8/3925, H8/3926, H8/3927 Block Diagram H8/300L /FTID /FTIC /FTIB /TMOW (PROM or mask ROM) /FTIA (1 kbyte) (32, 40, 48, or 60 kbytes) /TMOE /FTOB /FTOA /TMIC /FTCI /PWM Serial Timer A communications /IRQ interface 1 /TMOV /IRQ /TMCIV /IRQ /TRGV Serial...
  • Page 79: Peripheral Functions

    Peripheral Functions 1. Timers The H8/300L Series microcomputers provide on-chip timers that are optimal for application embedded microcontrollers. A wide variety of functions are supported by the H8/300L Series timers, including reload, event counting, compare match, and capture functions. Timer Functions...
  • Page 80 Peripheral Functions Timer A This version of timer A is included in the H8/3614 Series, the H8/3714 Series, the H8/3724 Series, and the H8/3754 Series microcomputers. Function: Timer A is an 8-bit interval timer that can also be used as a clock time base. Features: •...
  • Page 81 Peripheral Functions Timer A This version of timer is included in the H8/3814 Series, the H8/3834 Series, the H8/3877 Series, and the H8/3927 Series microcomputers. Function: Timer A is an 8-bit interval timer that can also be used as a clock time base. Features: •...
  • Page 82 Peripheral Functions Timer B Function: Timer B is an 8-bit up/down counter that supports two operating modes, namely free-running mode and auto-reload mode. Features: • The timer B clock can be selected from seven internal clock frequencies or an external clock. (It can also be taken from external event input.) •...
  • Page 83 Peripheral Functions Timer C Function: Timer C is an 8-bit up/down counter that supports two operating modes, namely free-running mode and auto-reload mode. Features: • Can be switched between functioning as an up counter and as a down counter. • The timer C clock can be selected from one of seven internal clocks or an external clock.
  • Page 84 Peripheral Functions Timer D Function: Timer D is an 8-bit event counter that is incremented by an external event signal. Features: • Can be set to count either rising or falling edges of the external signal. • Generates a counter overflow interrupt. Block Diagram External event input IRRTD...
  • Page 85 Peripheral Functions Timer E Function: Timer E is an 8-bit timer that is incremented by an input clock and has two operating modes, namely free running mode and auto-reload mode. Features: • The timer E clock can be selected from eight internal clock frequencies (ø/8192, ø/4096, ø/2048, ø/512, ø/256, ø/128, ø/32, and ø/8).
  • Page 86 Peripheral Functions Timer E Overflow Based Output Waveform Counter clear Timer E value of H'FF TLE value (The auto-reload function is enabled) TMOE output waveform Timer E interrupt requests...
  • Page 87 Peripheral Functions Timer F Function: Timer F is a 16-bit timer that, in addition to supporting external event counting, also supports functions such as counter reset in response to a compare match signal, interrupt requests, and toggle output. It can also function as two independent 8-bit timers.
  • Page 88 Peripheral Functions Timer G Function: Timer G is an 8-bit timer that has dedicated input capture functions for both the rising and falling edges of pulses input to the input capture pin. Features: • The timer G clock can be selected from four internal clock frequencies; ø/64, ø/32, ø/2048, ø/2, and ø...
  • Page 89 Peripheral Functions Timer V Function: Timer V is an 8-bit timer that has, in addition to a timer counter, a timer constant register, and can output an arbitrary duty pulse based on a compare match signal generated when these registers match. Features: •...
  • Page 90 Peripheral Functions Timer X Function: Timer X is a 16-bit timer that can output two independent waveforms based on a free-running counter. Features: • The timer X clock can be selected from three internal clock frequencies (ø/32, ø/8, and ø/2) and an external clock. •...
  • Page 91 Peripheral Functions Timer Y Function: Timer Y is a 16-bit timer that is incremented by the input clock and supports two operating modes, namely interval mode and auto-reload mode. Features: • The timer V clock can be selected from seven internal clock frequencies (ø/8192, ø/2048, ø/512, ø/256, ø/64, ø/16, and ø/4) and an external clock.
  • Page 92 Peripheral Functions Watchdog Timer Function: The watchdog timer is an 8-bit counter incremented by the input clock. It provides a monitoring function that resets the IC internally when, due to system runaway or other problem, the counter overflows before the counter value is rewritten. Features: •...
  • Page 93: Bit Pwm

    Peripheral Functions 2. 14-Bit PWM The H8/300L Series microcomputers provide a single channel pulse division type 14-bit PWM (pulse width modulation) on-chip. It can be used as a 14-bit D/A converter when combined with an external low pass filter. Features: •...
  • Page 94 Peripheral Functions 14-Bit PWM Operation: The total time (T ) of the 64 pulses generated in a single conversion cycle corresponds to the data loaded into the PWM data registers L and H as described by the formula below. = (data value + 64) × tø/2 Where: tø...
  • Page 95: Serial Communication Interface (Sci)

    The H8/300L Series microcomputers provide serial communications interfaces that are optimal for application embedded microcontrollers. There are three serial communications interfaces provided by the H8/300L Series, namely 8/16-bit synchronous serial, 8-bit synchronous with 32-byte buffer, and 8-bit synchronous/asynchronous serial interfaces.
  • Page 96 Peripheral Functions SCI2 (H8/3614 Series, H8/3714 Series, H8/3724 Series, and H8/3754 Series) Function: The SCI2 has a 32-byte internal data buffer, and supports clock synchronous transfers in units of 1 to 32 bytes. Features: • Automatic transfers of up to 32 bytes •...
  • Page 97 Peripheral Functions SCI2 (H8/3834 Series and H8/3927 Series) Function: The SCI2 has a 32-byte internal data buffer, and supports 32-byte clock synchronous data transfers in a single operation. Features: • Data blocks of 32 bytes can be automatically transferred. • One of seven internal clocks (ø/256, ø/64, ø/32, ø/16, ø/8, ø/4, and ø/2) or an external clock can be used as the clock source.
  • Page 98 Peripheral Functions SCI3 Function: The SCI3 supports synchronous and asynchronous serial data transfers. It also has a multi-processor communications function that supports serial communications between multiple processors. Features: • Serial data transfers in either synchronous or asynchronous mode • Full duplex communication •...
  • Page 99: A/D Converter

    Peripheral Functions 4. A/D Converter The H8/300L Series A/D converter is an on-chip resistor ladder successive approximations A/D converter that allows the microcomputer to measure multiple analog input channel signals. Features: • Eight-bit resolution • Multiple analog input channel pins •...
  • Page 100 Peripheral Functions Number of Channels and Conversion Times Number of External Product Series Conversion Time Channels Trigger H8/3614 Series H8/3714 Series 31/ø, 62/ø 14.8 µs minimum 8 channels Not supported Not provided H8/3724 Series H8/3754 Series H8/3814 Series 31/ø, 62/ø 12.4 µs minimum 12 channels Supported...
  • Page 101: D/A Converter

    Peripheral Functions 5. D/A Converter The H8/300L Series on-chip D/A converter uses an R-2R conversion circuit. It can provide up to four analog voltage output channels. Features: • Eight-bit resolution • Four analog voltage output channels • Conversion time: 3 µs minimum...
  • Page 102: I/O Ports

    In addition to general purpose bidirectional (input and output) ports, the H8/300L Series microcomputers also provide a set of specialized I/O ports that differ between products and that include real time ports that allow immediate output control in response to external events, high current ports that can drive LEDs, and high breakdown voltage (40 V) ports with built-in pull-down MOS transistors.
  • Page 103 H8/3754 Series H8/3927 Series Real Time Output Ports: The H8/300L Series microcomputers provide I/O ports with a real time output function. This real-time output function allows a pin state to be switched immediately upon the input of an external trigger input to a pin. The pin output state can be specified to be an output data toggle operation or an input/output control switch operation.
  • Page 104 Peripheral Functions High Current Ports: These are high current ports that can drive external LEDs. The port functions are the same as general purpose I/O ports. Item Symbol Condition Rating Output low level voltage = 4.0 to 5.5 V 1.5 V = 10 mA Built-In Pull-Down MOS Transistors High Breakdown Voltage Ports: These ports are provided in the H8/3714 Series and the H8/3724 Series, and are 40 V breakdown voltage ports...
  • Page 105: Vacuum Fluorescent Display (Vfd) Controller/Driver

    Peripheral Functions 7. Vacuum Fluorescent Display (VFD) Controller/Driver The H8/3714 Series, the H8/3724 Series and H8/3754 Series include a vacuum fluorescent display (VFD) controller/driver and high breakdown voltage high current pins. These allow the H8/3714 Series, the H8/3724 Series and H8/3754 Series to directly drive vacuum fluorescent displays.
  • Page 106: Liquid Crystal Display (Lcd) Controller/Driver

    Peripheral Functions 8. Liquid Crystal Display (LCD) Controller/Driver The H8/300L Series on-chip segment liquid crystal display (LCD) controller, LCD driver, and power supply circuit allow these microcomputers to directly drive an LCD panel. To support the implementation of LCD control appropriate for the application area, the H8/300L Series provides three types of LCD controller/driver that differ in the particular combination of number of segments and amount of display memory provided.
  • Page 107 Peripheral Functions Block Diagram LCD driver power supply ø/2 to ø/256 Common Common data ø drivers latch LPCR SEG /CL SEG /CL SEG /DO SEG /M Display timing 40-bit Segment generator shift drivers register LCD RAM 64 bytes SEG ,DO <Notation>...
  • Page 108 Peripheral Functions Liquid Crystal Display (LCD) Controller/Driver 2 (H8/3814 Series) Features: • Display size Duty Internal Drivers External Expansion Drivers Static 40 segments When only internal drivers are used 40 segments 40 segments 40 segments Static 36 segments 124 segments When external expansion drivers 36 segments...
  • Page 109 Peripheral Functions Block Diagram LCD driver power supply ø/2 to ø/256 Common Common ø data drivers latch LPCR SEG /CL SEG /CL SEG /DO SEG /M 40-bit Display timing Segment shift generator drivers register LCD RAM 20 bytes SEG ,DO <Notation>...
  • Page 110 Peripheral Functions Liquid Crystal Display (LCD) Controller/Driver 3 (H8/3877 Series) Features: • Display size Duty Internal Drivers External Expansion Drivers Static 52 segments When only internal drivers are used 52 segments 52 segments 52 segments Static 48 segments 208 segments When external expansion drivers 48 segments...
  • Page 111 Peripheral Functions Block Diagram LCD driver power supply ø/2 to ø/256 Common Common ø data drivers latch LPCR SEG /CL SEG /CL SEG /DO SEG /M Display timing 52-bit Segment generator shift drivers register LCD RAM 32 bytes SEG ,DO <Notation>...
  • Page 112: Dual Tone Multi Frequency (Dtmf) Generator

    Peripheral Functions 9. Dual Tone Multi Frequency (DTMF) Generator The H8/3877 Series on-chip dual tone multi frequency (DTMF) generator allows applications to output DTMF signals. Features: DTMF signals are used to access telephone exchange equipment and consist of two sine waves expressed as a frequency matrix. The DTMF generator generates frequency combinations corresponding to the numbers and symbols on a telephone touch-pad.
  • Page 113 Peripheral Functions Block Diagram DTLR (1.2 to 10 MHz in 400 kHz steps) 400 kHz Clock counter Row side Modified D/A sine wave programmable divider counter Feedback DTCR VTref TONED Column side Modified D/A sine wave programmable divider counter Feedback <Notation>...
  • Page 114: Multi-Tone Generator

    Peripheral Functions 10. Multi-Tone Generator The H8/3877 Series on-chip multi-tone generator can output arbitrary waveforms at arbitrary frequencies. Features: • Generates a wide range of frequencies, from 40 Hz to 4000 Hz (when OSC = 10 MHz). Frequency Range Step Size Precision 40 Hz to 1000 Hz 1 Hz...
  • Page 115 Peripheral Functions Block Diagram MTCR EBLR FRMR Bit counter Prescaler Frame counter MTG RAM (1/1,1/2,1/4,1/8) 16 bytes (128 bits) Fine tuning Prescaler counter (1/1,1/2,1/4,1/8) Shift register IRRMT FTNR Increment/ ITLR decrement circuit VTref D/A converter TONEM <Notation> MTCR: Multi-tone control register EBLR: Effective bit-length register FRMR:...
  • Page 116: Rom

    The H8/300L Series product lineup includes microcomputers with on-chip ROM capacities from 16 kbytes to 60 kbytes. The H8/300L Series ROM is connected to the CPU over a 16-bit data bus, and can be accessed in only 2 states in both byte and word access modes. Due to the speed of this ROM, the H8/300L CPU has a minimum instruction execution time of 0.4 µs...
  • Page 117: Ram

    The H8/300L Series product lineup includes microcomputers with on-chip RAM capacities from 512 bytes to 2 kbytes. The H8/300L Series RAM is connected to the CPU over a 16-bit data bus, and can be accessed in only 2 states in both byte and word access modes. Due to the speed of this RAM, the H8/300L CPU can execute data handling instructions in only 0.4 µs.
  • Page 118: H8/300L Series Document

    H8/300L Series Document Document No. Product No. Microcomputer Quick Reference H8 Series Individual Series Overview Series Catalogs Guides Product Catalogs Documents H8/3612 ADJ-102-006P H8/3613 H8/3614 H8/3712 ADJ-102-006P ADJ-102-013F H8/3713 ADJ-102-006P ADJ-301-002F ADJ-102-013F ADE-301-001K H8/3714 ADJ-102-006P ADJ-301-002F ADJ-102-013F ADE-301-001K H8/3723 ADJ-102-006P...
  • Page 119 H8/300L Series Document Document No. Application Databooks GAIN System Catalogs User’s Manuals Notes ADJ-602-087 ADJ-502-026 ADJ-602-087 ADJ-502-026 ADJ-602-087 ADJ-502-026 ADJ-602-070A ADJ-502-026 ADE-602-056 No. 97 ADJ-602-070A ADJ-502-026 Vol. 12 ADE-602-056 No. 97 ADJ-602-070A ADJ-502-026 Vol. 12 ADE-602-056 No. 97 ADJ-109-017/018 ADJ-602-057A ADJ-502-026 Vol.

Table of Contents