Hitachi H8/3636 User manual

Type
User manual

This manual is also suitable for

H8/3637 Series
H8/3637, H8/3636, H8/3635
Hardware Manual
ADE-602-152
Rev. 1.0
8/1/98
Hitachi, Ltd.
MC-Setsu
Notice
When using this document, keep the following in mind:
1. This document may, wholly or partially, be subject to change without notice.
2. All rights are reserved: No one is permitted to reproduce or duplicate, in any form, the whole
or part of this document without Hitachi’s permission.
3. Hitachi will not be held responsible for any damage to the user that may result from accidents
or any other reasons during operation of the user’s unit according to this document.
4. Circuitry and other examples described herein are meant merely to indicate the characteristics
and performance of Hitachi’s semiconductor products. Hitachi assumes no responsibility for
any intellectual property claims or other problems that may result from applications based on
the examples described herein.
5. No license is granted by implication or otherwise under any patents or other rights of any third
party or Hitachi, Ltd.
6. MEDICAL APPLICATIONS: Hitachi’s products are not authorized for use in MEDICAL
APPLICATIONS without the written consent of the appropriate officer of Hitachi’s sales
company. Such use includes, but is not limited to, use in life support systems. Buyers of
Hitachi’s products are requested to notify the relevant Hitachi sales offices when planning to
use the products in MEDICAL APPLICATIONS.
Preface
The H8/300L Series of single-chip microcomputers has a high-speed H8/300L CPU core, with
many necessary peripheral system functions on-chip. The H8/300L CPU instruction set is
compatible with the H8/300 CPU.
On-chip peripheral functions of the H8/3637 Series include a high-precision DTMF generator for
tone dialing, a 14-bit PWM, five types of timers, two serial communication interface channels, and
an A/D converter.
This manual describes the hardware of the H8/3637 Series. For details on the H8/3637 Series
instruction set, refer to the H8/300L Series Programming Manual.
i
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......................................................................................................................... 44
2.7.1 Overview.............................................................................................................. 44
2.7.2 Program Execution State...................................................................................... 46
2.7.3 Program Halt State ............................................................................................... 46
2.7.4 Exception-Handling State .................................................................................... 46
ii
2.8 Memory Map..................................................................................................................... 47
2.9 Application Notes.............................................................................................................. 48
2.9.1 Notes on Data Access........................................................................................... 48
2.9.2 Notes on Bit Manipulation ................................................................................... 50
2.9.3 Notes on Use of the EEPMOV Instruction .......................................................... 56
Section 3 Exception Handling........................................................................................ 57
3.1 Overview............................................................................................................................ 57
3.2 Reset.................................................................................................................................. 57
3.2.1 Overview.............................................................................................................. 57
3.2.2 Reset Sequence..................................................................................................... 57
3.2.3 Interrupt Immediately after Reset ........................................................................ 58
3.3 Interrupts............................................................................................................................ 59
3.3.1 Overview.............................................................................................................. 59
3.3.2 Interrupt Control Registers................................................................................... 61
3.3.3 External Interrupts................................................................................................ 69
3.3.4 Internal Interrupts................................................................................................. 70
3.3.5 Interrupt Operations.............................................................................................. 70
3.3.6 Interrupt Response Time...................................................................................... 75
3.4 Application Notes.............................................................................................................. 76
3.4.1 Notes on Stack Area Use...................................................................................... 76
3.4.2 Notes on Rewriting Port Mode Registers............................................................. 76
Section 4 Clock Pulse Generators................................................................................. 79
4.1 Overview............................................................................................................................ 79
4.1.1 Block Diagram...................................................................................................... 79
4.1.2 System Clock and Subclock................................................................................. 79
4.2 System Clock Generator.................................................................................................... 80
4.3 Subclock Generator ........................................................................................................... 83
4.4 Prescalers........................................................................................................................... 84
4.5 Note on Oscillators............................................................................................................ 84
Section 5 Power-Down Modes...................................................................................... 87
5.1 Overview............................................................................................................................ 87
5.1.1 System Control Registers ..................................................................................... 90
5.2 Sleep Mode........................................................................................................................ 93
5.2.1 Transition to Sleep Mode ..................................................................................... 93
5.2.2 Clearing Sleep Mode............................................................................................ 93
5.3 Standby Mode.................................................................................................................... 94
5.3.1 Transition to Standby Mode................................................................................. 94
5.3.2 Clearing Standby Mode........................................................................................ 94
5.3.3 Oscillator Settling Time after Standby Mode is Cleared...................................... 95
5.3.4 Transition to Standby Mode and Pin States ......................................................... 96
iii
5.4 Watch Mode ...................................................................................................................... 97
5.4.1 Transition to Watch Mode.................................................................................... 97
5.4.2 Clearing Watch Mode .......................................................................................... 97
5.4.3 Oscillator Settling Time after Watch Mode is Cleared........................................ 97
5.5 Subsleep Mode .................................................................................................................. 98
5.5.1 Transition to Subsleep Mode................................................................................ 98
5.5.2 Clearing Subsleep Mode ...................................................................................... 98
5.6 Subactive Mode................................................................................................................. 99
5.6.1 Transition to Subactive Mode .............................................................................. 99
5.6.2 Clearing Subactive Mode ..................................................................................... 99
5.6.3 Operating Frequency in Subactive Mode............................................................. 99
5.7 Active (medium-speed) Mode........................................................................................... 100
5.7.1 Transition to Active (medium-speed) Mode........................................................ 100
5.7.2 Clearing Active (medium-speed) Mode............................................................... 100
5.7.3 Operating Frequency in Active (medium-speed) Mode....................................... 100
5.8 Direct Transfer................................................................................................................... 101
5.8.1 Overview.............................................................................................................. 101
5.8.2 Direct Transfer Time............................................................................................ 102
Section 6 ROM................................................................................................................... 105
6.1 Overview............................................................................................................................ 105
6.1.1 Block Diagram...................................................................................................... 105
6.2 PROM Mode...................................................................................................................... 106
6.2.1 Selection of PROM Mode.................................................................................... 106
6.2.2 Socket Adapter Pin Arrangement and Memory Map........................................... 106
6.3 Programming ..................................................................................................................... 109
6.3.1 Programming and Verification............................................................................. 110
6.3.2 Programming Precautions .................................................................................... 114
6.4 Reliability of Programmed Data........................................................................................ 115
Section 7 RAM................................................................................................................... 117
7.1 Overview............................................................................................................................ 117
7.1.1 Block Diagram...................................................................................................... 117
Section 8 I/O Ports ............................................................................................................ 119
8.1 Overview............................................................................................................................ 119
8.2 Port 1.................................................................................................................................. 121
8.2.1 Overview.............................................................................................................. 121
8.2.2 Register Configuration and Description............................................................... 121
8.2.3 Pin Functions........................................................................................................ 125
8.2.4 Pin States.............................................................................................................. 127
8.2.5 MOS Input Pull-Up.............................................................................................. 127
8.3 Port 2.................................................................................................................................. 128
iv
8.3.1 Overview.............................................................................................................. 128
8.3.2 Register Configuration and Description............................................................... 128
8.3.3 Pin Functions........................................................................................................ 133
8.3.4 Pin States.............................................................................................................. 135
8.3.5 MOS Input Pull-Up.............................................................................................. 135
8.4 Port 5.................................................................................................................................. 136
8.4.1 Overview.............................................................................................................. 136
8.4.2 Register Configuration and Description............................................................... 136
8.4.3 Pin Functions........................................................................................................ 138
8.4.4 Pin States.............................................................................................................. 139
8.4.5 MOS Input Pull-Up.............................................................................................. 139
8.5 Port 6.................................................................................................................................. 140
8.5.1 Overview.............................................................................................................. 140
8.5.2 Register Configuration and Description............................................................... 140
8.5.3 Pin Functions........................................................................................................ 142
8.5.4 Pin States.............................................................................................................. 142
8.5.5 MOS Input Pull-Up.............................................................................................. 142
8.6 Port 7.................................................................................................................................. 143
8.6.1 Overview.............................................................................................................. 143
8.6.2 Register Configuration and Description............................................................... 143
8.6.3 Pin Functions........................................................................................................ 145
8.6.4 Pin States.............................................................................................................. 145
8.7 Port 8.................................................................................................................................. 146
8.7.1 Overview.............................................................................................................. 146
8.7.2 Register Configuration and Description............................................................... 146
8.7.3 Pin Functions........................................................................................................ 148
8.7.4 Pin States.............................................................................................................. 148
8.8 Port 9.................................................................................................................................. 149
8.8.1 Overview.............................................................................................................. 149
8.8.2 Register Configuration and Description............................................................... 149
8.8.3 Pin Functions........................................................................................................ 151
8.8.4 Pin States.............................................................................................................. 151
8.9 Port A................................................................................................................................. 152
8.9.1 Overview.............................................................................................................. 152
8.9.2 Register Configuration and Description............................................................... 152
8.9.3 Pin Functions........................................................................................................ 154
8.9.4 Pin States.............................................................................................................. 154
8.10 Port B................................................................................................................................. 155
8.10.1 Overview.............................................................................................................. 155
8.10.2 Register Configuration and Description............................................................... 155
8.11 Port E................................................................................................................................. 156
8.11.1 Overview.............................................................................................................. 156
8.11.2 Register Configuration and Description............................................................... 156
v
8.11.3 Pin Functions........................................................................................................ 157
8.11.4 Pin States.............................................................................................................. 157
Section 9 Timers................................................................................................................ 159
9.1 Overview............................................................................................................................ 159
9.2 Timer A.............................................................................................................................. 160
9.2.1 Overview.............................................................................................................. 160
9.2.2 Register Descriptions............................................................................................ 161
9.2.3 Timer Operation ................................................................................................... 163
9.2.4 Timer A Operation States..................................................................................... 164
9.3 Timer F.............................................................................................................................. 165
9.3.1 Overview.............................................................................................................. 165
9.3.2 Register Descriptions............................................................................................ 167
9.3.3 Interface with the CPU......................................................................................... 174
9.3.4 Timer Operation ................................................................................................... 177
9.3.5 Application Notes................................................................................................. 179
9.4 Timer G.............................................................................................................................. 181
9.4.1 Overview.............................................................................................................. 181
9.4.2 Register Descriptions............................................................................................ 183
9.4.3 Noise Canceller Circuit........................................................................................ 187
9.4.4 Timer Operation ................................................................................................... 188
9.4.5 Application Notes................................................................................................. 192
9.4.6 Sample Timer G Application................................................................................ 196
9.5 Timer Y.............................................................................................................................. 196
9.5.1 Overview.............................................................................................................. 196
9.5.2 Register Descriptions............................................................................................ 198
9.5.3 Interface with the CPU......................................................................................... 200
9.5.4 Operation.............................................................................................................. 203
9.5.5 Timer Y Operating Modes.................................................................................... 204
9.6 Watchdog Timer................................................................................................................ 204
9.6.1 Overview.............................................................................................................. 204
9.6.2 Register Descriptions............................................................................................ 206
9.6.3 Operation.............................................................................................................. 208
9.6.4 Watchdog Timer Operating Modes...................................................................... 209
Section 10 Serial Communication Interface................................................................ 211
10.1 Overview............................................................................................................................ 211
10.2 SCI1................................................................................................................................... 211
10.2.1 Overview.............................................................................................................. 211
10.2.2 Register Descriptions............................................................................................ 213
10.2.3 Operation.............................................................................................................. 217
10.2.4 Interrupt Sources .................................................................................................. 219
10.3 SCI3................................................................................................................................... 220
vi
10.3.1 Overview.............................................................................................................. 220
10.3.2 Register Descriptions............................................................................................ 222
10.3.3 Operation.............................................................................................................. 239
10.3.4 Operation in Asynchronous Mode........................................................................ 244
10.3.5 Operation in Synchronous Mode.......................................................................... 252
10.3.6 Multiprocessor Communication Function............................................................ 260
10.3.7 Interrupts .............................................................................................................. 266
10.3.8 Application Notes................................................................................................. 267
Section 11 DTMF Generator............................................................................................ 271
11.1 Overview............................................................................................................................ 271
11.1.1 Features ................................................................................................................ 272
11.1.2 Block Diagram...................................................................................................... 273
11.1.3 Pin Configuration ................................................................................................. 274
11.1.4 Register Configuration ......................................................................................... 274
11.2 Register Descriptions......................................................................................................... 275
11.2.1 DTMF Control Register (DTCR)......................................................................... 275
11.2.2 DTMF Load Register (DTLR) ............................................................................. 277
11.3 Operation ........................................................................................................................... 278
11.3.1 Output Waveform................................................................................................. 278
11.3.2 Operation Flow..................................................................................................... 279
11.4 Typical Use........................................................................................................................ 280
11.5 Application Notes.............................................................................................................. 280
Section 12 A/D Converter ................................................................................................. 281
12.1 Overview............................................................................................................................ 281
12.1.1 Features ................................................................................................................ 281
12.1.2 Block Diagram...................................................................................................... 282
12.1.3 Pin Configuration ................................................................................................. 283
12.1.4 Register Configuration ......................................................................................... 283
12.2 Register Descriptions......................................................................................................... 284
12.2.1 A/D Result Register (ADRR)............................................................................... 284
12.2.2 A/D Mode Register (AMR).................................................................................. 284
12.2.3 A/D Start Register (ADSR).................................................................................. 286
12.3 Operation ........................................................................................................................... 287
12.3.1 A/D Conversion Operation................................................................................... 287
12.3.2 Start of A/D Conversion by External Trigger Input............................................. 287
12.4 Interrupts............................................................................................................................ 288
12.5 Typical Use........................................................................................................................ 288
12.6 Application Notes.............................................................................................................. 291
vii
Section 13 14-bit Pulse Width Modulator (PWM).................................................... 293
13.1 Overview............................................................................................................................ 293
13.1.1 Features ................................................................................................................ 293
13.1.2 Block Diagram...................................................................................................... 293
13.1.3 Pin Configuration ................................................................................................. 294
13.1.4 Register Configuration ......................................................................................... 294
13.2 Register Descriptions......................................................................................................... 294
13.2.1 PWM Control Register (PWCR).......................................................................... 294
13.2.2 PWM Data Registers U and L (PWDRU, PWDRL)............................................ 295
13.3 Operation ........................................................................................................................... 296
Section 14 Electrical Characteristics.............................................................................. 297
14.1 Absolute Maximum Ratings.............................................................................................. 297
14.2 Electrical Characteristics................................................................................................... 298
14.2.1 Power Supply Voltage and Operating Range....................................................... 298
14.2.2 DC Characteristics................................................................................................ 300
14.2.3 AC Characteristics................................................................................................ 305
14.2.4 A/D Converter Characteristics ............................................................................. 308
14.2.5 DTMF Characteristics.......................................................................................... 309
14.3 Operation Timing .............................................................................................................. 310
14.4 Output Load Circuits ......................................................................................................... 313
Appendix A CPU Instruction Set ................................................................................... 315
A.1 Instructions........................................................................................................................ 315
A.2 Operation Code Map.......................................................................................................... 323
A.3 Number of Execution States.............................................................................................. 325
Appendix B On-Chip Registers...................................................................................... 332
B.1 I/O Registers (1) ................................................................................................................ 332
B.2 I/O Registers (2) ................................................................................................................ 336
Appendix C I/O Port Block Diagrams.......................................................................... 375
C.1 Port 1 Block Diagrams ...................................................................................................... 375
C.2 Port 2 Block Diagrams ...................................................................................................... 382
C.3 Port 5 Block Diagram........................................................................................................ 390
C.4 Port 6 Block Diagram........................................................................................................ 391
C.5 Port 7 Block Diagram........................................................................................................ 392
C.6 Port 8 Block Diagram........................................................................................................ 393
C.7 Port 9 Block Diagram........................................................................................................ 394
C.8 Port A Block Diagram ....................................................................................................... 395
C.9 Port B Block Diagram ....................................................................................................... 395
C.10 Port E Block Diagram........................................................................................................ 396
viii
Appendix D Port States in the Different Processing States.................................... 397
Appendix E Product Line-Up.......................................................................................... 398
Appendix F Package Dimensions.................................................................................. 399
1
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/3637 Series of single-chip microcomputers features a high-
precision DTMF generator for tone dialing. Other on-chip peripheral functions include five types
of timers, two serial communication interface channels, an A/D converter, and a 14-bit pulse width
modulator (PWM). The H8/3637 Series includes three models, the H8/3637, H8/3636, and
H8/3635, with different amounts of on-chip memory: the H8/3637 has 60 kbytes of ROM and 2
kbytes of RAM; the H8/3636 has 48 kbytes of ROM and 2 kbytes of RAM; and the H8/3635 has
40 kbytes of ROM and 2 kbytes of RAM.
The H8/3637 has a ZTAT version with user-programmable on-chip PROM.
Table 1.1 summarizes the features of the H8/3637 Series.
Note: * ZTAT
TM
is a trademark of Hitachi, Ltd.
2
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: 5 MHz
Add/subtract: 0.4 µs (operating at ø= 5 MHz)
Multiply/divide: 2.8 µs (operating at ø= 5 MHz)
Can run on 32.768 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
Instruction features
Multiply (8 bits × 8 bits)
Divide (16 bits ÷ 8 bits)
Bit accumulator
Register-indirect designation of bit position
Interrupts 30 interrupt sources
13 external interrupt sources: IRQ
4
to IRQ
0
, WKP
7
to WKP
0
17 internal interrupt sources
Clock pulse
generators
Two on-chip clock pulse generators
System clock pulse generator: 1 MHz to 10 MHz
Subclock pulse generator: 32.768 kHz
Power-down
modes
Six power-down modes
Sleep mode
Standby mode
Watch mode
Subsleep mode
Subactive mode
Active (medium-speed) mode
3
Table 1.1 Features (cont)
Item Description
Memory Large on-chip memory
H8/3637: 60-kbyte ROM, 2-kbyte RAM
H8/3636: 48-kbyte ROM, 2-kbyte RAM
H8/3635: 40-kbyte ROM, 2-kbyte RAM
I/O ports 66 I/O ports
I/O pins: 61
Input pins: 5
Timers Five on-chip timers
Timer A: 8-bit timer with built-in interval/watch clock time base function
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
)*
Timer F: 16-bit timer with built-in output compare function
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
Compare-match function with toggle output
Timer G: 8-bit timer with built-in input capture/interval functions
Count-up timer with selection of four internal clock signals
Input capture function with built-in noise canceller circuit
Timer Y: 16-bit timer with built-in interval/auto-reload functions
Count-up timer with selection of seven internal clocks or event input
from external pin
Auto-reload function
Watchdog timer
Reset signal generated on 8-bit timer overflow
Serial
communication
interface
Two serial communication interface channels on chip
SCI1: synchronous serial interface
Choice of 8-bit or 16-bit data transfer
SCI3: 8-bit synchronous or asynchronous serial interface
Built-in function for multiprocessor communication
Note: *ø and ø
w
are defined in section 4, Clock Pulse Generators.
4
Table 1.1 Features (cont)
Item Description
A/D converter 8-bit successive-approximations A/D converter using a resistance ladder
4-channel analog input port
Conversion time: 31/ø, 62/ø or 124/ø per channel
DTMF generator Built-in tone dialer supporting OSC clock frequencies from 1.2 MHz to 10 MHz
in 400-kHz steps
14-bit PWM Pulse-division PWM to reduce ripple
Can be used as a 14-bit D/A converter by connecting a low-pass filter
externally
Product lineup Product Code
Mask ROM
Version
ZTAT™
Version Package ROM/RAM Size
HD6433637F HD6473637F 80-pin QFP
(FP-80B)
ROM: 60 kbytes
RAM: 2 kbytes
HD6433637X HD6473637X 80-pin TQFP
(TFP-80F)
HD6433637W HD6473637W 80-pin TQFP
(TFP-80C)
HD6433636F 80-pin QFP
(FP-80B)
ROM: 48 kbytes
RAM: 2 kbytes
HD6433636X 80-pin TQFP
(TFP-80F)
HD6433636W 80-pin TQFP
(TFP-80C)
HD6433635F 80-pin QFP
(FP-80B)
ROM: 40 kbytes
RAM: 2 kbytes
HD6433635X 80-pin TQFP
(TFP-80F)
HD6433635W 80-pin TQFP
(TFP-80C)
5
1.2 Internal Block Diagram
Figure 1.1 shows a block diagram of the H8/3637 Series.
V
SS
V
SS
V
CC
V
CC
OSC
2
OSC
1
X
1
X
2
RES
TEST
P9
7
P9
6
P9
5
P9
4
P9
3
P9
2
P9
1
P9
0
P8
7
P8
6
P8
5
P8
4
P8
3
P8
2
P8
1
P8
0
P7
7
P7
6
P7
5
P7
4
P7
3
P7
2
P7
1
P7
0
PA
3
PA
2
PA
1
PA
0
P1
0
/TMOW
P1
1
/TMOFL
P1
2
/TMOFH
P1
3
/TMIG
P1
4
/PWM
P1
5
/IRQ1
P1
6
/IRQ2/TMCIY
P1
7
/IRQ3/TMIF
P2
0
/IRQ4/ADTRG
P2
1
/SCK1
P2
2
/SI1
P2
3
/SO1
P2
4
/SCK3
P2
5
/RXD
P2
6
/TXD
P2
7
/IRQ0
P5
0
/WKP0
P5
1
/WKP1
P5
2
/WKP2
P5
3
/WKP3
P5
4
/WKP4
P5
5
/WKP5
P5
6
/WKP6
P5
7
/WKP7
P6
0
P6
1
P6
2
P6
3
P6
4
P6
5
P6
6
P6
7
AV
CC
AV
SS
PB
4
/AN
4
PB
5
/AN
5
PB
6
/AN
6
PB
7
/AN
7
SCI3
PWM
WDT DTMF
SCI1
PE
3
PE
2
VT
ref
TONED
Data bus (lower)
System clock
pulse generator
Subclock pulse
generator
Address bus
Data bus (upper)
ROM
(40 k/48 k/
60 kbytes)
RAM
(2 kbytes)
Timer A
Timer F
Timer G
Timer Y
A/D converter
Port EPort APort 9Port 8Port 7
Port B
Port 6 Port 5 Port 2 Port 1
CPU (8-bit)
Figure 1.1 Block Diagram
6
1.3 Pin Arrangement and Functions
1.3.1 Pin Arrangement
The H8/3637 Series pin arrangement is shown in figure 1.2 and 1.3.
P8
5
P8
4
P8
3
P8
2
P8
1
P8
0
P7
7
P7
6
P7
5
P7
4
P7
3
P7
2
P7
1
P7
0
P6
7
P6
6
P6
5
P6
4
P6
3
P6
2
X
1
X
2
V
SS
OSC
2
OSC
1
TEST
V
CC
RES
P2
0
/IRQ4/ADTRG
P2
1
/SCK
1
P2
2
/SI
1
P2
3
/SO
1
P2
4
/SCK
3
P2
5
/RXD
P2
6
/TXD
P2
7
/IRQ0
P1
7
/IRQ
3
/TMIF
P1
6
/IRQ
2
/TMCIY
P1
5
/IRQ
1
P1
4
/PWM
P8
6
P8
7
P9
0
P9
1
P9
2
P9
3
P9
4
P9
5
P9
6
P9
7
PE
2
PE
3
TONED
VT
ref
AV
CC
PB
7
/AN
7
PB
6
/AN
6
PB
5
/AN
5
PB
4
/AN
4
AV
SS
P6
1
P6
0
P5
7
/WKP
7
P5
6
/WKP
6
P5
5
/WKP
5
P5
4
/WKP
4
P5
3
/WKP
3
P5
2
/WKP
2
P5
1
/WKP
1
P5
0
/WKP
0
PA
0
PA
1
PA
2
PA
3
V
CC
V
SS
P1
0
/TMOW
P1
1
/TMOFL
P1
2
/TMOFH
P1
3
/TMIG
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
1234567891011121314151617181920
60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
Figure 1.2 Pin Arrangement (TFP-80F, TFP-80C: Top View)
7
PB
4
/AN
4
AV
SS
X
1
X
2
V
SS
OSC
2
OSC
1
TEST
V
CC
RES
P2
0
/IRQ
4
/ADTRG
P2
1
/SCK
1
P2
2
/SI
1
P2
3
/SO
1
P2
4
/SCK
3
P2
5
/RXD
P2
6
/TXD
P2
7
/IRQ
0
P1
7
/IRQ
3
/TMIF
P1
6
/IRQ
2
/TMCIY
P1
5
/IRQ
1
P1
4
/PWM
P1
3
/TMIG
P1
2
/TMOFH
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
P8
7
P8
6
P8
5
P8
4
P8
3
P8
2
P8
1
P8
0
P7
7
P7
6
P7
5
P7
4
P7
3
P7
2
P7
1
P7
0
P6
7
P6
6
P6
5
P6
4
P6
3
P6
2
P6
1
P6
0
P9
0
P9
1
P9
2
P9
3
P9
4
P9
5
P9
6
P9
7
PE
2
PE
3
TONED
VT
ref
AV
CC
PB
7
/AN
7
PB
6
/AN
6
PB
5
/AN
5
P5
7
/WKP
7
P5
6
/WKP
6
P5
5
/WKP
5
P5
4
/WKP
4
P5
3
/WKP
3
P5
2
/WKP
2
P5
1
/WKP
1
P5
0
/WKP
0
PA
0
PA
1
PA
2
PA
3
V
CC
V
SS
P1
0
/TMOW
P1
1
/TMOFL
123456789101112131415161718192021222324
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
Figure 1.3 Pin Arrangement (FP-80B: Top View)
8
1.3.2 Pin Functions
Table 1.2 outlines the pin functions.
Table 1.2 Pin Functions
Pin No.
Type Symbol
TFP-80F
TFP-80C FP-80B I/O Name and Functions
Power
source pins
V
CC
7, 26 9, 28 Input Power supply: All V
CC
pins should be
connected to the system power supply
(+5 V)
V
SS
3, 25 5, 27 Input Ground: All V
SS
pins should be
connected to the system power supply
(0 V)
AV
CC
75 77 Input Analog power supply: This is the power
supply pin for the A/D converter. When
the A/D converter is not used, connect
this pin to the system power supply
(+5 V).
AV
SS
80 2 Input Analog ground: This is the A/D
converter ground pin. It should be
connected to the system power supply
(0 V).
VT
ref
74 76 Input DTMF generator reference level: This
is a power supply pin for the reference
level for DTMF.
Clock pins OSC
1
5 7 Input System clock: These pins connect to a
crystal or ceramic oscillator, or can be
OSC
2
4 6 Output
used to input an external clock. See
section 4, Clock Pulse Generators, for a
typical connection diagram.
X
1
1 3 Input Subclock: These pins connect to a
32.768-kHz crystal oscillator. See section
X
2
2 4 Output
4, Clock Pulse Generators, for a typical
connection diagram.
System
control
RES 8 10 Input Reset: When this pin is driven low, the
chip is reset
TEST 6 8 Input Test: This is a test pin, not for use in
applica-tion systems. It should be
connected to V
SS
.
9
Table 1.2 Pin Functions (cont)
Pin No.
Type Symbol
TFP-80F
TFP-80C FP-80B I/O Name and Functions
Interrupt
pins
IRQ
0
IRQ
1
IRQ
2
IRQ
3
IRQ
4
16
19
18
17
9
18
21
20
19
11
Input External interrupt request 0 to 4:
These are input pins for external
interrupts for which there is a choice
between rising and falling edge sensing
WKP
7
to
WKP
0
38 to 31 40 to 33 Input Wakeup interrupt request 0 to 7:
These are input pins for external
interrupts that are detected at the falling
edge
Timer pins TMOW 24 26 Output Clock output: This is an output pin for
wave-forms generated by the timer A
output circuit
TMIF 17 19 Input Timer F event counter input: This is an
event input pin for input to the timer F
counter
TMOFL 23 25 Output Timer FL output: This is an output pin
for waveforms generated by the timer FL
output compare function
TMOFH 22 24 Output Timer FH output: This is an output pin
for waveforms generated by the timer FH
output compare function
TMIG 21 23 Input Timer G capture input: This is an input
pin for the timer G input capture function
TMCIY 18 20 Input Timer Y clock input: This pin inputs an
external clock to the timer Y counter.
14-bit PWM PWM 20 22 Output 14-bit PWM output: This pin outputs the
waveform generated by the 14-bit PWM.
  • 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

Hitachi H8/3636 User manual

Type
User manual
This manual is also suitable for

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

Finding information in a document is now easier with AI