Hitachi HD6433866 User manual

Type
User manual
H8/3867 Series
H8/3867 HD6473867, HD6433867
H8/3866 HD6433866
H8/3865 HD6433865
H8/3864 HD6433864
H8/3863 HD6433863
H8/3862 HD6433862
H8/3827 Series
H8/3827 HD6473827, HD6433827
H8/3826 HD6433826
H8/3825 HD6433825
H8/3824 HD6433824
H8/3823 HD6433823
H8/3822 HD6433822
Hardware Manual
ADE-602-142B
Rev. 3
2/1/99
Hitachi Ltd.
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.
Cautions
List of Items Revised or Added for This Version
Page Item Description
1 Table 1-1 Features / CPU Change in (2) High-speed calculation
specification
2 Table 1-1 Features / Clock pulse Change in specification
generators
3 Table 1-1 Features / LCD drive power Addition
supply
5 Figure 1-1 Block Diagram Modification
8 Table 1-2 Pin Functions / Power Modification of stabilization capacitance
source pin
13 2.1.1 Features Change in High-speed operation
88 Figure 4-2 Typical Connection to Addition of recommended value
Crystal Oscillator
89 Figure 4-4 Typical Connection to Addition of recommended value
Ceramic Oscillator
91 Figure 4-7 Typical Connection to Addition of description
32.768-kHz/38.4 kHz Crystal Oscillator
(Subclock)
92 Figure 4-9 Pin Connection when not Modification
Using Subclock
95 Table 5-1 Operating Modes Modification of subsleep mode/watch mode
descriptions
97 Table 5-2 Internal State in Each Modification of Note 4
Operating Mode
99 5.1.1 System Control Registers Addition of Notes to Bits 6 to 4
1. System control register 1 (SYSCR1)
100 2. System control register 2 (SYSCR2) Modification of Bit 4 contents
102 5.2 Sleep Mode Addition of description
104 5.3.3 Oscillator Settling Timer after Addition of description
Stanby Mode is Cleared
107 5.5.2 Clearing Subsleep Mode Addition of description
• Clearing by interrupt
109 5.7.1 Transition to Active (Medium- Addition of description
Speed) Mode
147 Table 8-10 Port 3 Pin States Modification
226 Table 9-13 Timer G Operation Modes Addition of description in Notes
248 9.7.5 Application Notes Addition and modification of descriptions
251 Figure 10-1 SCI3 Block Diagram Modification
Page Item Description
256 10.2.5 Serial Mode Register (SMR) Addition of description in Notes
/ Bits 1 and 0
265 Table 10-4 Relation between n Addition of description in Notes
and Clock
266 Table 10-5 Maximum Bit Rate for Each Modification of Notes
Frequency (Asynchronous Mode)
267 Table 10-7 Relation between n Addition of description in Notes
and Clock
268 10.2.9 Clock Stop Register 1 Addition of description in Notes for Bits 6
(CKSTPR1) and 5
303 10.5 Application Notes Addition of 9 and 10.
357 14.2 When Using the Internal Power Modification of description
Supply Step-Down Circuit
360 15.2.1 Power Supply Voltage Modification of 1 to 3
to 362 and Operating Range
363 Table 15-2 DC Characteristics Addition and modification
to 368
369 Table 15-3 Control Signal Timing Addition and modification
to 370
371 Table 15-4 Serial Interface (SCI3-1, Addition of Notes
SCI3-2) Timing
372 Table 15-5 A/D Converter Modification
Characteristics
373 Table 15-7 AC Characteristics for Addition
External Segment Expansion
376 Figure 15-6 SCI-3 Synchronous Mode Modification of Notes
Input/Output Timing
377 Figure 15-7 Segment Expansion Addition
Signal Timing
Preface
The H8/300L Series of single-chip microcomputers has the high-speed H8/300L CPU at its core,
with many necessary peripheral functions on-chip. The H8/300L CPU instruction set is compatible
with the H8/300 CPU.
The H8/3867 Series and H8/3827 Series have a system-on-a-chip architecture that includes such
peripheral functions as a as an LCD controller/driver, six timers, a 14-bit PWM, a two-channel seri-
al communication interface, and an A/D converter. This allows H8/3867 Series devices to be used
as embedded microcomputers in systems requiring LCD display.
The H8/3867 Series incorporates an LCD drive power supply and step-up constant power supply
(5 V), enabling a fixed 5 V voltage to be obtained independently of V
CC
.
This manual describes the hardware of the H8/3867 Series and H8/3827 Series. For details on the
H8/3864 Series instruction set, refer to the H8/300L Series Programming Manual.
Contents
Section 1 Overview.......................................................................................................... 1
1.1 Overview......................................................................................................................... 1
1.2 Internal Block Diagram .................................................................................................. 5
1.3 Pin Arrangement and Functions ..................................................................................... 6
1.3.1 Pin Arrangement................................................................................................. 6
1.3.2 Pin Functions...................................................................................................... 8
Section 2 CPU................................................................................................................... 13
2.1 Overview......................................................................................................................... 13
2.1.1 Features............................................................................................................... 13
2.1.2 Address Space..................................................................................................... 14
2.1.3 Register Configuration........................................................................................ 14
2.2 Register Descriptions...................................................................................................... 15
2.2.1 General Registers................................................................................................ 15
2.2.2 Control Registers................................................................................................ 15
2.2.3 Initial Register Values ........................................................................................ 17
2.3 Data Formats................................................................................................................... 17
2.3.1 Data Formats in General Registers..................................................................... 18
2.3.2 Memory Data Formats........................................................................................ 19
2.4 Addressing Modes.......................................................................................................... 20
2.4.1 Addressing Modes.............................................................................................. 20
2.4.2 Effective Address Calculation............................................................................ 22
2.5 Instruction Set................................................................................................................. 26
2.5.1 Data Transfer Instructions .................................................................................. 28
2.5.2 Arithmetic Operations ........................................................................................ 30
2.5.3 Logic Operations ................................................................................................ 31
2.5.4 Shift Operations.................................................................................................. 31
2.5.5 Bit Manipulations ............................................................................................... 33
2.5.6 Branching Instructions........................................................................................ 37
2.5.7 System Control Instructions ............................................................................... 39
2.5.8 Block Data Transfer Instruction ......................................................................... 40
2.6 Basic Operational Timing............................................................................................... 42
2.6.1 Access to On-Chip Memory (RAM, ROM)....................................................... 42
2.6.2 Access to On-Chip Peripheral Modules ............................................................. 43
2.7 CPU States...................................................................................................................... 45
2.7.1 Overview............................................................................................................. 45
2.7.2 Program Execution State ................................................................................... 46
2.7.3 Program Halt State.............................................................................................. 46
2.7.4 Exception-Handling State................................................................................... 46
2.8 Memory Map.................................................................................................................. 47
2.8.1 Memory Map...................................................................................................... 47
2.9 Application Notes........................................................................................................... 53
2.9.1 Notes on Data Access......................................................................................... 53
2.9.2 Notes on Bit Manipulation.................................................................................. 55
2.9.3 Notes on Use of the EEPMOV Instruction......................................................... 61
Section 3 Exception Handling...................................................................................... 63
3.1 Overview......................................................................................................................... 63
3.2 Reset ............................................................................................................................ 63
3.2.1 Overview............................................................................................................. 63
3.2.2 Reset Sequence................................................................................................... 63
3.2.3 Interrupt Immediately after Reset....................................................................... 65
3.3 Interrupts......................................................................................................................... 65
3.3.1 Overview............................................................................................................. 65
3.3.2 Interrupt Control Registers................................................................................. 67
3.3.3 External Interrupts.............................................................................................. 76
3.3.4 Internal Interrupts ............................................................................................... 77
3.3.5 Interrupt Operations............................................................................................ 78
3.3.6 Interrupt Response Time..................................................................................... 83
3.4 Application Notes........................................................................................................... 84
3.4.1 Notes on Stack Area Use.................................................................................... 84
3.4.2 Notes on Rewriting Port Mode Registers........................................................... 85
Section 4 Clock Pulse Generators............................................................................... 87
4.1 Overview......................................................................................................................... 87
4.1.1 Block Diagram.................................................................................................... 87
4.1.2 System Clock and Subclock ............................................................................... 87
4.2 System Clock Generator................................................................................................. 88
4.3 Subclock Generator ........................................................................................................ 91
4.4 Prescalers........................................................................................................................ 93
4.5 Note on Oscillators......................................................................................................... 94
Section 5 Power-Down Modes..................................................................................... 95
5.1 Overview......................................................................................................................... 95
5.1.1 System Control Registers ................................................................................... 98
5.2 Sleep Mode..................................................................................................................... 102
5.2.1 Transition to Sleep Mode.................................................................................... 102
5.2.2 Clearing Sleep Mode .......................................................................................... 102
5.2.3 Clock Frequency in Sleep (Medium-Speed) Mode............................................ 102
5.3 Standby Mode................................................................................................................. 103
5.3.1 Transition to Standby Mode ............................................................................... 103
5.3.2 Clearing Standby Mode...................................................................................... 103
5.3.3 Oscillator Settling Time after Standby Mode is Cleared.................................... 104
5.3.4 Standby Mode Transition and Pin States............................................................ 105
5.4 Watch Mode.................................................................................................................... 106
5.4.1 Transition to Watch Mode.................................................................................. 106
5.4.2 Clearing Watch Mode......................................................................................... 106
5.4.3 Oscillator Settling Time after Watch Mode is Cleared ...................................... 106
5.5 Subsleep Mode................................................................................................................ 107
5.5.1 Transition to Subsleep Mode.............................................................................. 107
5.5.2 Clearing Subsleep Mode..................................................................................... 107
5.6 Subactive Mode.............................................................................................................. 108
5.6.1 Transition to Subactive Mode............................................................................. 108
5.6.2 Clearing Subactive Mode ................................................................................... 108
5.6.3 Operating Frequency in Subactive Mode........................................................... 108
5.7 Active (Medium-Speed) Mode....................................................................................... 109
5.7.1 Transition to Active (Medium-Speed) Mode ..................................................... 109
5.7.2 Clearing Active (Medium-Speed) Mode............................................................ 109
5.7.3 Operating Frequency in Active (Medium-Speed) Mode.................................... 109
5.8 Direct Transfer................................................................................................................ 110
5.8.1 Overview of Direct Transfer............................................................................... 110
5.8.2 Direct Transition Times...................................................................................... 111
5.9 Module Standby Mode ................................................................................................... 114
5.9.1 Setting Module Standby Mode........................................................................... 114
5.9.2 Clearing Module Standby Mode......................................................................... 114
Section 6 ROM.................................................................................................................. 117
6.1 Overview......................................................................................................................... 117
6.1.1 Block Diagram.................................................................................................... 117
6.2 H8/3867 and H8/3827 PROM Mode.............................................................................. 118
6.2.1 Setting to PROM Mode ..................................................................................... 118
6.2.2 Socket Adapter Pin Arrangement and Memory Map......................................... 118
6.3 H8/3867 and H8/3827 Programming.............................................................................. 121
6.3.1 Writing and Verifying......................................................................................... 121
6.3.2 Programming Precautions................................................................................... 126
6.4 Reliability of Programmed Data..................................................................................... 127
Section 7 RAM................................................................................................................. 129
7.1 Overview......................................................................................................................... 129
7.1.1 Block Diagram.................................................................................................... 129
Section 8 I/O Ports........................................................................................................... 131
8.1 Overview......................................................................................................................... 131
8.2 Port 1 ............................................................................................................................ 133
8.2.1 Overview............................................................................................................. 133
8.2.2 Register Configuration and Description............................................................. 133
8.2.3 Pin Functions...................................................................................................... 138
8.2.4 Pin States ............................................................................................................ 140
8.2.5 MOS Input Pull-Up............................................................................................. 140
8.3 Port 3 ............................................................................................................................ 141
8.3.1 Overview............................................................................................................. 141
8.3.2 Register Configuration and Description............................................................. 141
8.3.3 Pin Functions...................................................................................................... 145
8.3.4 Pin States ............................................................................................................ 147
8.3.5 MOS Input Pull-Up............................................................................................. 147
8.4 Port 4 ............................................................................................................................ 148
8.4.1 Overview............................................................................................................. 148
8.4.2 Register Configuration and Description............................................................. 148
8.4.3 Pin Functions...................................................................................................... 149
8.4.4 Pin States ............................................................................................................ 150
8.5 Port 5 ............................................................................................................................ 151
8.5.1 Overview............................................................................................................. 151
8.5.2 Register Configuration and Description............................................................. 151
8.5.3 Pin Functions...................................................................................................... 154
8.5.4 Pin States ............................................................................................................ 155
8.5.5 MOS Input Pull-Up............................................................................................. 155
8.6 Port 6 ............................................................................................................................ 156
8.6.1 Overview............................................................................................................. 156
8.6.2 Register Configuration and Description............................................................. 156
8.6.3 Pin Functions...................................................................................................... 158
8.6.4 Pin States ............................................................................................................ 158
8.6.5 MOS Input Pull-Up............................................................................................. 158
8.7 Port 7 ............................................................................................................................ 159
8.7.1 Overview............................................................................................................. 159
8.7.2 Register Configuration and Description............................................................. 159
8.7.3 Pin Functions...................................................................................................... 161
8.7.4 Pin States ............................................................................................................ 161
8.8 Port 8 ............................................................................................................................ 162
8.8.1 Overview............................................................................................................. 162
8.8.2 Register Configuration and Description............................................................. 162
8.8.3 Pin Functions...................................................................................................... 164
8.8.4 Pin States ............................................................................................................ 165
8.9 Port A ............................................................................................................................ 166
8.9.1 Overview............................................................................................................. 166
8.9.2 Register Configuration and Description............................................................. 166
8.9.3 Pin Functions...................................................................................................... 168
8.9.4 Pin States ............................................................................................................ 168
8.10 Port B ............................................................................................................................ 169
8.10.1 Overview............................................................................................................. 169
8.10.2 Register Configuration and Description............................................................. 169
8.11 Input/Output Data Inversion Function............................................................................ 170
8.11.1 Overview............................................................................................................. 170
8.11.2 Register Configuration and Descriptions............................................................ 170
Section 9 Timers............................................................................................................... 173
9.1 Overview......................................................................................................................... 173
9.2 Timer A........................................................................................................................... 175
9.2.1 Overview............................................................................................................. 175
9.2.2 Register Descriptions.......................................................................................... 177
9.2.3 Timer Operation.................................................................................................. 181
9.2.4 Timer A Operation States................................................................................... 182
9.3 Timer C........................................................................................................................... 183
9.3.1 Overview............................................................................................................. 183
9.3.2 Register Descriptions.......................................................................................... 185
9.3.3 Timer Operation.................................................................................................. 189
9.3.4 Timer C Operation States ................................................................................... 191
9.4 Timer F ........................................................................................................................... 192
9.4.1 Overview............................................................................................................. 192
9.4.2 Register Descriptions.......................................................................................... 195
9.4.3 CPU Interface ..................................................................................................... 203
9.4.4 Operation ............................................................................................................ 206
9.4.5 Application Notes............................................................................................... 210
9.5 Timer G........................................................................................................................... 212
9.5.1 Overview............................................................................................................. 212
9.5.2 Register Descriptions.......................................................................................... 215
9.5.3 Noise Canceler.................................................................................................... 220
9.5.4 Operation ............................................................................................................ 222
9.5.5 Application Notes............................................................................................... 226
9.5.6 Timer G Application Example............................................................................ 230
9.6 Watchdog Timer............................................................................................................. 232
9.6.1 Overview............................................................................................................. 232
9.6.2 Register Descriptions.......................................................................................... 233
9.6.3 Timer Operation.................................................................................................. 237
9.6.4 Watchdog Timer Operation States...................................................................... 238
9.7 Asynchronous Event Counter (AEC) ............................................................................. 239
9.7.1 Overview............................................................................................................. 239
9.7.2 Register Descriptions.......................................................................................... 241
9.7.3 Operation ............................................................................................................ 246
9.7.4 Asynchronous Event Counter Operation Modes................................................ 247
9.7.5 Application Notes............................................................................................... 248
Section 10 Serial Communication Interface............................................................... 249
10.1 Overview......................................................................................................................... 249
10.1.1 Features............................................................................................................... 249
10.1.2 Block diagram..................................................................................................... 251
10.1.3 Pin configuration ................................................................................................ 252
10.1.4 Register configuration ........................................................................................ 252
10.2 Register Descriptions...................................................................................................... 252
10.2.1 Receive shift register (RSR)............................................................................... 252
10.2.2 Receive data register (RDR)............................................................................... 253
10.2.3 Transmit shift register (TSR).............................................................................. 253
10.2.4 Transmit data register (TDR).............................................................................. 254
10.2.5 Serial mode register (SMR)................................................................................ 254
10.2.6 Serial control register 3 (SCR3) ......................................................................... 257
10.2.7 Serial status register (SSR)................................................................................. 260
10.2.8 Bit rate register (BRR) ....................................................................................... 264
10.2.9 Clock stop register 1 (CKSTPR1) ...................................................................... 268
10.2.10
Serial Port Control Register (SPCR) .................................................................. 269
10.3 Operation ........................................................................................................................ 271
10.3.1 Overview............................................................................................................. 271
10.3.2 Operation in Asynchronous Mode...................................................................... 275
10.3.3 Operation in Synchronous Mode........................................................................ 284
10.3.4 Multiprocessor Communication Function.......................................................... 291
10.4 Interrupts......................................................................................................................... 298
10.5 Application Notes........................................................................................................... 299
Section 11 14-Bit PWM................................................................................................... 305
11.1 Overview......................................................................................................................... 305
11.1.1 Features............................................................................................................... 305
11.1.2 Block Diagram.................................................................................................... 305
11.1.3 Pin Configuration................................................................................................ 306
11.1.4 Register Configuration........................................................................................ 306
11.2 Register Descriptions...................................................................................................... 307
11.2.1 PWM Control Register (PWCR)........................................................................ 307
11.2.2 PWM Data Registers U and L (PWDRU, PWDRL).......................................... 308
11.2.3 Clock Stop Register 2 (CKSTPR2) .................................................................... 308
11.3 Operation ........................................................................................................................ 310
11.3.1 Operation ............................................................................................................ 310
11.3.2 PWM Operation Modes...................................................................................... 311
Section 12 A/D Converter................................................................................................ 313
12.1 Overview......................................................................................................................... 313
12.1.1 Features............................................................................................................... 313
12.1.2 Block Diagram.................................................................................................... 313
12.1.3 Pin Configuration................................................................................................ 314
12.1.4 Register Configuration........................................................................................ 314
12.2 Register Descriptions...................................................................................................... 315
12.2.1 A/D Result Registers (ADRRH, ADRRL)......................................................... 315
12.2.2 A/D Mode Register (AMR)................................................................................ 315
12.2.3 A/D Start Register (ADSR)................................................................................ 317
12.2.4 Clock Stop Register 1 (CKSTPR1) .................................................................... 317
12.3 Operation ........................................................................................................................ 319
12.3.1 A/D Conversion Operation................................................................................. 319
12.3.2 Start of A/D Conversion by External Trigger Input........................................... 319
12.3.3 A/D Converter Operation Modes........................................................................ 320
12.4 Interrupts......................................................................................................................... 320
12.5 Typical Use..................................................................................................................... 320
12.6 Application Notes........................................................................................................... 323
Section 13 LCD Controller/Driver................................................................................ 325
13.1 Overview......................................................................................................................... 325
13.1.1 Features............................................................................................................... 325
13.1.2 Block Diagram.................................................................................................... 326
13.1.3 Pin Configuration................................................................................................ 327
13.1.4 Register Configuration........................................................................................ 327
13.2 Register Descriptions...................................................................................................... 328
13.2.1 LCD Port Control Register (LPCR) ................................................................... 328
13.2.2 LCD Control Register (LCR) ............................................................................. 331
13.2.3 LCD Control Register 2 (LCR2) ........................................................................ 333
13.2.4 Clock Stop Register 2 (CKSTPR2) .................................................................... 335
13.3 Operation ........................................................................................................................ 336
13.3.1 Settings up to LCD Display................................................................................ 336
13.3.2 Relationship between LCD RAM and Display .................................................. 339
13.3.3 Luminance Adjustment Function (V0 Pin)......................................................... 347
13.3.4 Step-Up Constant-Voltage (5 V) Power Supply................................................. 348
13.3.5 Low-Power-Consumption LCD Drive System................................................... 348
13.3.6 Operation in Power-Down Modes...................................................................... 352
13.3.7 Boosting the LCD Drive Power Supply ............................................................. 353
13.3.8 Connection to HD66100..................................................................................... 354
Section 14 Power Supply Circuit................................................................................... 357
14.1 Overview......................................................................................................................... 357
14.2 When Using the Internal Power Supply Step-Down Circuit.......................................... 357
14.3 When Not Using the Internal Power Supply Step-Down Circuit................................... 358
Section 15 Electrical Characteristics............................................................................ 359
15.1 H8/3867 Series and H8/3827 Series Absolute Maximum Ratings................................. 359
15.2 H8/3867 Series and H8/3827 Series Electrical Characteristics...................................... 360
15.2.1 Power Supply Voltage and Operating Range..................................................... 360
15.2.2 DC Characteristics.............................................................................................. 363
15.2.3 AC Characteristics.............................................................................................. 369
15.2.4 A/D Converter Characteristics............................................................................ 372
15.2.5 LCD Characteristics............................................................................................ 373
15.3 Operation Timing............................................................................................................ 374
15.4 Output Load Circuit........................................................................................................ 378
15.5 Resonator Equivalent Circuit.......................................................................................... 378
Appendix A CPU Instruction Set .................................................................................. 379
A.1 Instructions ..................................................................................................................... 379
A.2 Operation Code Map....................................................................................................... 387
A.3 Number of Execution States........................................................................................... 389
Appendix B Internal I/O Registers................................................................................ 396
B.1 Addresses........................................................................................................................ 396
B.2 Functions......................................................................................................................... 400
Appendix C I/O Port Block Diagrams......................................................................... 449
C.1 Block Diagrams of Port 1............................................................................................... 449
C.2 Block Diagrams of Port 3............................................................................................... 453
C.3 Block Diagrams of Port 4............................................................................................... 460
C.4 Block Diagram of Port 5................................................................................................. 464
C.5 Block Diagram of Port 6................................................................................................. 465
C.6 Block Diagram of Port 7................................................................................................. 466
C.7 Block Diagrams of Port 8............................................................................................... 467
C.8 Block Diagram of Port A................................................................................................ 468
C.9 Block Diagram of Port B................................................................................................ 469
Appendix D Port States in the Different Processing States................................... 470
Appendix E List of Product Codes................................................................................ 471
Appendix F Package Dimensions.................................................................................. 473
Section 1 Overview
1.1 Overview
The H8/300L Series is a series of single-chip microcomputers (MCU: microcomputer unit), built
around the high-speed H8/300L CPU and equipped with peripheral system functions on-chip.
Within the H8/300L Series, the H8/3867 Series and H8/3827 Series comprise single-chip
microcomputers equipped with a controller/driver. Other on-chip peripheral functions include six
timers, a 14-bit pulse width modulator (PWM), two serial communication interface channels, and an
A/D converter. Together, these functions make the H8/3864 Series ideally suited for embedded
applications in systems requiring low power consumption and LCD display. Models in the H8/3867
and H8/3827 Series are the H8/3862 and H8/3822, with on-chip 16-kbyte ROM and 1-kbyte RAM,
the H8/3863 and H8/3823, with 24-kbyte ROM and 1-kbyte RAM, the H8/3864 and H8/3824, with
32-kbyte ROM and 2-kbyte RAM, the H8/3865 and H8/3825, with 40-kbyte ROM and 2-kbyte
RAM, the H8/3866 and H8/3826, with 48-kbyte ROM and 2-kbyte RAM, and the H8/3867 and
H8/3827, with 60-kbyte ROM and 2-kbyte RAM.
The H8/3867 and H8/3827 are also available in a ZTAT™* version with on-chip PROM which can
be programmed as required by the user.
Table 1-1 summarizes the features of the H8/3867 Series and H8/3827 Series.
Note: * ZTAT (Zero Turn Around Time) is a trademark of Hitachi, Ltd.
Table 1-1 Features
Item Description
CPU High-speed H8/300L CPU
General-register architecture
General registers: Sixteen 8-bit registers (can be used as eight 16-bit
registers)
Operating speed
Max. operating speed: 3 MHz
Add/subtract: 0.67 µs (operating at 3 MHz)
Multiply/divide: 4.67 µs (operating at 3 MHz)
Can run on 32.768 kHz or 38.4 kHz subclock
Instruction set compatible with H8/300 CPU
Instruction length of 2 bytes or 4 bytes
Basic arithmetic operations between registers
MOV instruction for data transfer between memory and registers
Typical instructions
Multiply (8 bits
× 8 bits)
Divide (16 bits ÷ 8 bits)
Bit accumulator
Register-indirect designation of bit position
1
Table 1-1 Features (cont)
Item Description
Interrupts 36 interrupt sources
13 external interrupt sources (IRQ
4
to IRQ
0
, WKP
7
to WKP
0
)
23 internal interrupt sources
Clock pulse generators Two on-chip clock pulse generators
System clock pulse generator: 0.4 to 6 MHz
Subclock pulse generator: 32.768 kHz, 38.4 kHz
Power-down modes Seven power-down modes
Sleep (high-speed) mode
Sleep (medium-speed) mode
Standby mode
Watch mode
Subsleep mode
Subactive mode
Active (medium-speed) mode
Memory Large on-chip memory
H8/3862, H8/3822: 16-kbyte ROM, 1-kbyte RAM
H8/3863, H8/3823: 24-kbyte ROM, 1-kbyte RAM
H8/3864, H8/3824: 32-kbyte ROM, 2-kbyte RAM
H8/3865, H8/3825: 40-kbyte ROM, 2-kbyte RAM
H8/3866, H8/3826: 48-kbyte ROM, 2-kbyte RAM
H8/3867, H8/3827: 60-kbyte ROM, 2-kbyte RAM
I/O ports 64 pins
55 I/O pins
9 input pins
Timers Six on-chip timers
Timer A: 8-bit timer
Count-up timer with selection of eight internal clock signals divided from
the system clock (ø)* and four clock signals divided from the watch clock
w
)*
Asynchronous event counter: 16-bit timer
Count-up timer able to count asynchronous external events
independently of the MCU's internal clocks
Note: * See section 4, Clock Pulse Generator, for the definition of ø and ø
w
.
2
Table 1-1 Features (cont)
Item Description
Timers Timer C: 8-bit timer
Count-up/down timer with selection of seven internal clock signals or
event input from external pin
Auto-reloading
Timer F: 16-bit timer
Can be used as two independent 8-bit timers
Count-up timer with selection of four internal clock signals or event
input from external pin
Provision for toggle output by means of compare-match function
Timer G: 8-bit timer
Count-up timer with selection of four internal clock signals
Incorporates input capture function (built-in noise canceler)
Watchdog timer
Reset signal generated by overflow of 8-bit counter
Serial communication Two serial communication interface channels on chip
interface
SCI3-1: 8-bit synchronous/asynchronous serial interface
Incorporates multiprocessor communication function
SCI3-2: 8-bit synchronous/asynchronous serial interface
Incorporates multiprocessor communication function
14-bit PWM Pulse-division PWM output for reduced ripple
Can be used as a 14-bit D/A converter by connecting to an external
low-pass filter.
A/D converter Successive approximations using a resistance ladder
8-channel analog input pins
Conversion time: 31/ø or 62/ø per channel
LCD controller/driver LCD controller/driver equipped with a maximum of 32 segment pins and
four common pins
Choice of four duty cycles (static, 1/2, 1/3, or 1/4)
Segment pins can be switched to general-purpose port function in 8-bit
units
LCD drive power Step-up constant-voltage power supply allows LCD display
supply (H8/3867 Series only)
3
Table 1-1 Features (cont)
Item Specification
Product lineup Product Code
Mask ROM ZTAT
Version Version Package ROM/RAM Size
HD6433862H, 80-pin QFP (FP-80A) ROM 16 kbytes
HD6433822H RAM 1 kbyte
HD6433862F, 80-pin QFP (FP-80B)
HD6433822F
HD6433862W, 80-pin TQFP (TFP-80C)
HD6433822W
HD6433863H, 80-pin QFP (FP-80A) ROM 24 kbytes
HD6433823H RAM 1 kbyte
HD6433863F, 80-pin QFP (FP-80B)
HD6433823F
HD6433863W, 80-pin TQFP (TFP-80C)
HD6433823W
HD6433864H, 80-pin QFP (FP-80A) ROM 32 kbytes
HD6433824H RAM 2 kbytes
HD6433864F, 80-pin QFP (FP-80B)
HD6433824F
HD6433864W, 80-pin TQFP (TFP-80C)
HD6433824W
HD6433865H, 80-pin QFP (FP-80A) ROM 40 kbytes
HD6433825H RAM 2 kbytes
HD6433865F, 80-pin QFP (FP-80B)
HD6433825F
HD6433865W, 80-pin TQFP (TFP-80C)
HD6433825W
HD6433866H, 80-pin QFP (FP-80A) ROM 48 kbytes
HD6433826H RAM 2 kbytes
HD6433866F, 80-pin QFP (FP-80B)
HD6433826F
HD6433866W, 80-pin TQFP (TFP-80C)
HD6433826W
HD6433867H, HD6473867H, 80-pin QFP (FP-80A) ROM 60 kbytes
HD6433827H HD6473827H RAM 2 kbytes
HD6433867F, HD6473867F, 80-pin QFP (FP-80B)
HD6433827F HD6473827F
HD6433867W, HD6473867W, 80-pin TQFP (TFP-80C)
HD6433827W HD6473827W
4
1.2 Internal Block Diagram
Figure 1-1 shows a block diagram of the H8/3867 Series and H8/3827 Series.
Figure 1-1 Block Diagram
P10/TMOW
P1
1/TMOFL
P1
2/TMOFH
P1
3/TMIG
P14/IRQ4/ADTRG
P1
5/IRQ1/TMIC
P1
6/IRQ2
P17/IRQ3/TMIF
P30/PWM
P3
1/UD
P3
2/RESO
P3
3/SCK31
P34/RXD31
P35/TXD31
P36/AEVH
P3
7/AEVL
P50/WKP0/SEG1
P51/WKP1/SEG2
P52/WKP2/SEG3
P53/WKP3/SEG4
P54/WKP4/SEG5
P55/WKP5/SEG6
P56/WKP6/SEG7
P57/WKP7/SEG8
P40/SCK32
P41/RXD32
P42/TXD32
P43/IRQ0
OSC1
OSC2
System Clock
OSC
Port 1
Port APort 8Port 7Port 6
Port 3Port 4Port 5
X1
X2
Sub Clock
OSC
VSS
VSS
VCC
CVCC
RES
TEST
H8/300L
CPU
LCD Power
Supply
ROM
(60k/48k/40k/32k
24k/16k)
RAM
(2k/1k)
Timer - A
Timer - C
Timer - F
Timer - G
Asynchronous
counter
Serial
communication
interface 3-1
Serial
communication
interface 3-2
14-bit
PWM
WDT
LCD
Controller
A/D
(10bit)
V0
V1
V2
V3
PA3/COM4
PA2/COM3
PA1/COM2
PA0/COM1
P87/SEG32/CL1
P86/SEG31/CL2
P85/SEG30/DO
P8
4/SEG29/M
P8
3/SEG28
P82/SEG27
P81/SEG26
P80/SEG25
P77/SEG24
P76/SEG23
P75/SEG22
P74/SEG21
P73/SEG20
P72/SEG19
P71/SEG18
P70/SEG17
P67/SEG16
P66/SEG15
P65/SEG14
P64/SEG13
P63/SEG12
P62/SEG11
P61/SEG10
P60/SEG9
Port B
AVCC
AVSS
PB0/AN0
PB1/AN1
PB2/AN2
PB3/AN3
PB4/AN4
PB5/AN5
PB6/AN6
PB7/AN7
5
1.3 Pin Arrangement and Functions
1.3.1 Pin Arrangement
The H8/3867 Series and H8/3827 Series pin arrangement is shown in figures 1-2 and 1-3.
Figure 1-2 Pin Arrangement (FP-80A, TFP-80C: Top View)
P77/SEG24
P7
6/SEG23
P7
5/SEG22
P7
4/SEG21
P7
3/SEG20
P7
2/SEG19
P7
1/SEG18
P7
0/SEG17
P6
7/SEG16
P6
6/SEG15
P6
5/SEG14
P6
4/SEG13
P6
3/SEG12
P6
2/SEG11
P6
1/SEG10
P6
0/SEG9
P5
7/WKP7/SEG8
P5
6/WKP6/SEG7
P5
5/WKP5/SEG6
P5
4/WKP4/SEG5
P80/SEG25
P8
1/SEG26
P8
2/SEG27
P8
3/SEG28
P8
4/SEG29/M
P8
5/SEG30/DO
P8
6/SEG31CL2
P87/SEG32CL1
P40/SCK32
P41/RXD32
P42/TXD32
P43/IRQ0
AVCC
PB0/AN0
PB1/AN1
PB2/AN2
PB3/AN3
PB4/AN4
PB5/AN5
PB6/AN6
PB7/AN7
AVSS
X
1
X
2
VSS
OSC
2
OSC
1
TEST
RES
P1
0/TMOW
P1
1/TMOFL
P1
2/TMOFH
P1
3/TMIG
P1
4/IRQ4/ADTRG
P1
5/IRQ1/TMIC
P1
6/IRQ2
P17/IRQ3/TMIF
P3
0/PWM
P3
1/UD
P3
2/RESO
P53/WKP3/SEG4
P5
2/WKP2/SEG3
P5
1/WKP1/SEG2
P5
0/WKP0/SEG1
PA
0/COM1
PA
1/COM2
PA
2/COM3
PA
3/COM4
V
CC
V0
V1
V2
V3
V
SS
CVCC
P37/AEVL
P3
6/AEVH
P3
5/TXD31
P34/RXD31
P33/SCK31
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56 55
54 53
52 51 50
49
48
47
46
45
44
43
42 41
123456789
10
11
12
13 14
15
16
17 18 19 20
6
Figure 1-3 Pin Arrangement (FP-80B: Top View)
PB5/AN5
PB6/AN6
PB7/AN7
AVSS
X
1
X
2
VSS
OSC
2
OSC
1
TEST
RES
P1
0/TMOW
P1
1/TMOFL
P1
2/TMOFH
P1
3/TMIG
P1
4/IRQ4/ADTRG
P1
5/IRQ1/TMIC
P1
6/IRQ2
P17/IRQ3/TMIF
P3
0/PWM
P3
1/UD
P3
2/RESO
P3
3/SCK31
P34/RXD31
54
P81/SEG26
P8
0/SEG25
P7
7/SEG24
P7
6/SEG23
P7
5/SEG22
P7
4/SEG21
P7
3/SEG20
P7
2/SEG19
P7
1/SEG18
P7
0/SEG17
P6
7/SEG16
P6
6/SEG15
P6
5/SEG14
P6
4/SEG13
P6
3/SEG12
P6
2/SEG11
P6
1/SEG10
P6
0/SEG9
P5
7/WKP7/SEG8
P5
6/WKP6/SEG7
P5
5/WKP5/SEG6
P5
4/WKP4/SEG5
P5
3/WKP3/SEG4
P5
2/WKP2/SEG3
P82/SEG27
P8
3/SEG28
P8
4/SEG29/M
P8
5/SEG30/DO
P8
6/SEG31/CL2
P87/SEG32/CL1
P40/SCK32
P41/RXD32
P42/TXD32
P43/IRQ0
AVCC
PB0/AN0
PB1/AN1
PB2/AN2
PB3/AN3
PB4/AN4
P51/WKP1/SEG2
P5
0/WKP0/SEG1
PA
0/COM1
PA
1/COM2
PA
2/COM3
PA
3/COM4
V
CC
V0
V1
V2
V3
V
SS
CVCC
P37/AEVL
P3
6/AEVH
P3
5/TXD31
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
64 63 62
61
60
59 58
57
56
55
53
52
51
50
49
48
47
46 45 44
43 42 41
1 2 3 4 5 6 7 8 9101112131415161718192021222324
7
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480

Hitachi HD6433866 User manual

Type
User manual

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

Finding information in a document is now easier with AI