Hitachi HD6433827, HD6433864, HD6473827, HD6433865, HD6433866 Hardware Manual

...
Page 1
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
ADE-602-142B Rev. 3 2/1/99 Hitachi Ltd.
Hardware Manual
Page 2
Page 3
Page 4
Page 5
Page 6

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
Page 7
Page 8
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
Page 9
Page 10
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
Page 11
Page 12
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
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18
Page 19
Page 20
Page 21
Page 22
Page 23
Page 24
Page 25
Page 26
Page 27
Page 28
Page 29
Page 30
Page 31
Page 32
Page 33
Page 34
Page 35
Table 2-2 Effective Address Calculation
Addressing Mode and Instruction Format
op rm
76 34015
No. Effective Address Calculation Method Effective Address (EA)
1 Register direct, Rn
Operand is contents of registers indicated by rm/rn
Register indirect, @Rn
Contents (16 bits) of register
indicated by rm
015
Register indirect with displacement, @(d:16, Rn)
op rm rn
87 34015
op rm
76 34015
disp
op rm
76 34015
Register indirect with post-increment, @Rn+
op rm
76 34015
Register indirect with pre-decrement, @–Rn
2
3
4
Incremented or decremented by 1 if operand is byte size, and by 2 if word size
015
disp
015
015
015
1 or 2
015
015
1 or 2
015
rm
30rn30
Contents (16 bits) of register
indicated by rm
Contents (16 bits) of register
indicated by rm
Contents (16 bits) of register
indicated by rm
23
Page 36
Table 2-2 Effective Address Calculation (cont)
Addressing Mode and Instruction Format No. Effective Address Calculation Method Effective Address (EA)
5 Absolute address
@aa:8
Operand is 1- or 2-byte immediate data
@aa:16
op
87 015
op
015
IMM
op disp
7015
Program-counter relative @(d:8, PC)
6
7
015
PC contents
015
015
abs
H'FF
87 015
015
abs
op
#xx:16
op
87 015
IMM
Immediate #xx:8
8
Sign extension disp
24
Page 37
Table 2-2 Effective Address Calculation (cont)
Addressing Mode and Instruction Format No. Effective Address Calculation Method Effective Address (EA)
8 Memory indirect, @@aa:8
op
87 015
Memory contents (16 bits)
015
abs
H'00
87 015
Notation: rm, rn: op: disp: IMM: abs:
Register field Operation field Displacement Immediate data Absolute address
abs
25
Page 38
Page 39
Page 40
Page 41
Page 42
Page 43
Page 44
Page 45
Page 46
Page 47
Page 48
Page 49
Page 50
Page 51
Page 52
Page 53
Page 54
Page 55
Page 56
Page 57
Page 58
Page 59
Page 60
Page 61
Page 62
Page 63
Page 64
Page 65
Page 66
Page 67
Page 68
Page 69
Page 70
Page 71
Page 72
Page 73
Page 74
Page 75
Page 76
Page 77
Page 78
Page 79
Page 80
Page 81
Page 82
Page 83
Page 84
Page 85
Page 86
Page 87
Page 88
Page 89
Page 90
Page 91
Page 92
Page 93
Page 94
Page 95
Page 96
Page 97
Page 98
Page 99
Page 100
Loading...