beautypg.com
Manuals
Brands
Hitachi Manuals
Computer Hardware
HD64F2628
Hitachi HD64F2628 Manuals
Manuals and User Guides for Hitachi HD64F2628. We have
1
Hitachi HD64F2628 manual available for free PDF download: Hardware Manual
Hitachi HD64F2628 Hardware Manual (605 pages)
H8S/2628 Series 16-bit Single-Chip Microcomputer
Brand:
Hitachi
| Category:
Computer Hardware
| Size: 2.96 MB
Table of Contents
General Precautions on Handling of Product
5
Preface
7
Table of Contents
9
Electrical Characteristics
29
Section 1 Overview
37
Overview
37
Internal Block Diagram
38
Figure 1.1 Internal Block Diagram
38
Section 5 Interrupt Controller
38
Pin Arrangement
39
Figure 1.2 Pin Arrangement
39
Pin Functions
40
Section 2 CPU
45
Features
45
Differences between H8S/2600 CPU and H8S/2000 CPU
46
Section 2 CPU
46
Differences from H8/300 CPU
47
Differences from H8/300H CPU
47
CPU Operating Modes
48
Normal Mode
48
Advanced Mode
49
Figure 2.1 Exception Vector Table (Normal Mode)
49
Figure 2.2 Stack Structure in Normal Mode
49
Figure 2.3 Exception Vector Table (Advanced Mode)
50
Figure 2.4 Stack Structure in Advanced Mode
51
Address Space
52
Figure 2.5 Memory Map
52
Registers
53
Figure 2.6 CPU Registers
53
Figure 2.7 Usage of General Registers
54
General Registers
54
Extended Control Register (EXR)
55
Figure 2.8 Stack
55
Program Counter (PC)
55
Condition-Code Register (CCR)
56
Initial Values of CPU Registers
57
Multiply-Accumulate Register (MAC)
57
Data Formats
58
General Register Data Formats
58
Figure 2.9 General Register Data Formats (1)
58
Figure 2.9 General Register Data Formats (2)
59
Memory Data Formats
60
Figure 2.10 Memory Data Formats
60
Instruction Set
61
Table 2.1 Instruction Classification
61
Table 2.2 Operation Notation
62
Table of Instructions Classified by Function
62
Table 2.3 Data Transfer Instructions
63
Table 2.4 Arithmetic Operations Instructions (1)
64
Table 2.4 Arithmetic Operations Instructions (2)
65
Table 2.5 Logic Operations Instructions
66
Table 2.6 Shift Instructions
67
Table 2.7 Bit Manipulation Instructions (1)
68
Table 2.7 Bit Manipulation Instructions (2)
69
Table 2.8 Branch Instructions
70
Table 2.9 System Control Instructions
71
Basic Instruction Formats
72
Table 2.10 Block Data Transfer Instructions
72
Figure 2.11 Instruction Formats (Examples)
73
Operation Field
73
Addressing Modes and Effective Address Calculation
74
Register DirectRn
74
Register Indirect@Ern
74
Register Indirect with Displacement@(D:16, Ern) or @(D:32, Ern)
74
Table 2.11 Addressing Modes
74
Register Indirect with Post-Increment or Pre-Decrement@Ern+ or @-Ern
75
Absolute Address@Aa:8, @Aa:16, @Aa:24, or @Aa:32
75
Table 2.12 Absolute Address Access Ranges
75
Immediate#XX:8, #XX:16, or #XX:32
76
Program-Counter Relative@(D:8, PC) or @(D:16, PC)
76
Memory Indirect@@Aa:8
76
Effective Address Calculation
77
Figure 2.12 Branch Address Specification in Memory Indirect Mode
77
Processing States
80
Usage Note
81
Notes on Using the Bit Operation Instruction
81
Figure 2.13 State Transitions
81
Section 3 MCU Operating Modes
83
Operating Mode Selection
83
Register Descriptions
83
Table 3.1 MCU Operating Mode Selection
83
Mode Control Register (MDCR)
84
System Control Register (SYSCR)
85
Pin Functions in each Operating Mode
86
Address Map
87
Figure 3.1 Address Map
87
Section 4 Exception Handling
89
Exception Handling Types and Priority
89
Exception Sources and Exception Vector Table
89
Table 4.1 Exception Types and Priority
89
Table 4.2 Exception Handling Vector Table
90
Reset
91
Reset Exception Handling
91
Figure 4.1 Reset Sequence (Advanced Mode with On-Chip ROM Enabled)
92
Interrupts after Reset
93
State of On-Chip Peripheral Modules after Reset Release
93
Figure 4.2 Reset Sequence
93
Traces
94
Interrupts
94
Table 4.3 Statuses of CCR and EXR after Trace Exception Handling
94
Trap Instruction
95
Table 4.4 Statuses of CCR and EXR after Trap Instruction Exception Handling
95
Stack Status after Exception Handling
96
Section 4 Exception Handling
96
Figure 4.3 Stack Status after Exception Handling
96
Usage Note
97
Figure 4.4 Operation When SP Value Is Odd
97
Section 5 Interrupt Controller
99
Features
99
Figure 5.1 Block Diagram of Interrupt Controller
100
Input/Output Pins
101
Register Descriptions
101
Interrupt Priority Registers a to M (IPRA to IPRM)
102
IRQ Enable Register (IER)
103
IRQ Sense Control Registers H and L (ISCRH, ISCRL)
104
IRQ Status Register (ISR)
106
Interrupt Sources
107
External Interrupts
107
Figure 5.2 Block Diagram of Interrupts IRQ0 to IRQ5
107
Internal Interrupts
108
Interrupt Exception Handling Vector Table
108
Table 5.2 Interrupt Sources, Vector Addresses, and Interrupt Priorities
109
Interrupt Control Modes and Interrupt Operation
112
Interrupt Control Mode 0
112
Table 5.3 Interrupt Control Modes
112
Figure 5.3 Flowchart of Procedure up to Interrupt Acceptance in Interrupt Control Mode 0
113
Interrupt Control Mode 2
114
Interrupt Exception Handling Sequence
115
Figure 5.4 Flowchart of Procedure up to Interrupt Acceptance in Control Mode 2
115
Figure 5.5 Interrupt Exception Handling
116
Interrupt Response Times
117
Table 5.4 Interrupt Response Times
117
DTC Activation by Interrupt
118
Usage Notes
118
Conflict between Interrupt Generation and Disabling
118
Table 5.5 Number of States in Interrupt Handling Routine Execution Status
118
Instructions that Disable Interrupts
119
When Interrupts Are Disabled
119
Figure 5.6 Conflict between Interrupt Generation and Disabling
119
Interrupts During Execution of EEPMOV Instruction
120
Section 6 PC Break Controller (PBC)
121
Features
121
Register Descriptions
122
Break Address Register a (BARA)
122
Figure 6.1 Block Diagram of PC Break Controller
122
Break Address Register B (BARB)
123
Break Control Register a (BCRA)
123
Break Control Register B (BCRB)
124
Operation
124
PC Break Interrupt Due to Instruction Fetch
124
PC Break Interrupt Due to Data Access
124
PC Break Operation at Consecutive Data Transfer
125
Operation in Transitions to Power-Down Modes
125
Figure 6.2 Operation in Power-Down Mode Transitions
125
When Instruction Execution Is Delayed by One State
126
Usage Notes
127
Module Stop Mode Setting
127
PC Break Interrupts
127
CMFA and CMFB
127
PC Break Interrupt When DTC Is Bus Master
127
PC Break Set for Instruction Fetch at Address Following BSR, JSR, JMP, TRAPA, RTE, or RTS Instruction
127
I Bit Set by LDC, ANDC, ORC, or XORC Instruction
127
PC Break Set for Instruction Fetch at Address Following Bcc Instruction
128
PC Break Set for Instruction Fetch at Branch Destination Address of Bcc Instruction
128
Section 7 Bus Controller
129
Basic Timing
129
On-Chip Memory Access Timing (ROM, RAM)
129
Figure 7.1 On-Chip Memory Access Cycle
129
On-Chip Support Module Access Timing
130
On-Chip HCAN Module Access Timing
130
Figure 7.2 On-Chip Support Module Access Cycle
130
Figure 7.3 On-Chip HCAN Module Access Cycle (with Wait States)
130
On-Chip SSU Module and Realtime Input Port Data Register Access Timing
131
Bus Arbitration
131
Order of Priority of the Bus Masters
131
Figure.7.4 On-Chip SSU Module Access Cycle
131
Bus Transfer Timing
132
Section 8 Data Transfer Controller (DTC)
133
Features
133
Figure 8.1 Block Diagram of DTC
134
Register Descriptions
135
DTC Mode Register a (MRA)
136
DTC Mode Register B (MRB)
137
DTC Source Address Register (SAR)
137
DTC Destination Address Register (DAR)
137
DTC Transfer Count Register a (CRA)
137
DTC Transfer Count Register B (CRB)
138
DTC Enable Registers (DTCER)
138
DTC Vector Register (DTVECR)
139
Activation Sources
139
Location of Register Information and DTC Vector Table
140
Figure 8.2 Block Diagram of DTC Activation Source Control
140
Figure 8.3 Location of DTC Register Information in Address Space
141
Table 8.1 Interrupt Sources, DTC Vector Addresses, and Corresponding Dtces
142
Operation
143
Figure 8.4 Flowchart of DTC Operation
144
Figure 8.5 Memory Mapping in Normal Mode
145
Normal Mode
145
Table 8.2 Register Information in Normal Mode
145
Figure 8.6 Memory Mapping in Repeat Mode
146
Repeat Mode
146
Table 8.3 Register Information in Repeat Mode
146
Block Transfer Mode
147
Figure 8.7 Memory Mapping in Block Transfer Mode
147
Table 8.4 Register Information in Block Transfer Mode
147
Chain Transfer
148
Figure 8.8 Chain Transfer Operation
148
Figure 8.9 DTC Operation Timing (Example in Normal Mode or Repeat Mode)
149
Interrupts
149
Operation Timing
149
Figure 8.10 DTC Operation Timing (Example of Block Transfer Mode, with Block Size of 2)
150
Figure 8.11 DTC Operation Timing (Example of Chain Transfer)
150
Number of DTC Execution States
150
Table 8.5 DTC Execution Status
151
Table 8.6 Number of States Required for each Execution Status
151
Procedures for Using DTC
152
Activation by Interrupt
152
Activation by Software
152
Examples of Use of the DTC
152
Normal Mode
152
Chain Transfer
153
Software Activation
154
Usage Notes
154
Module Stop Mode Setting
154
On-Chip RAM
155
DTCE Bit Setting
155
Section 9 I/O Ports
157
Table 9.1 Port Functions
158
Port 1
161
Port 1 Data Direction Register (P1DDR)
161
Port 1 Data Register (P1DR)
162
Port 1 Register (PORT1)
162
Pin Functions
163
Table 9.2 P17 Pin Function
163
Table 9.3 P16 Pin Function
163
Table 9.4 P15 Pin Function
163
Table 9.5 P14 Pin Function
164
Table 9.6 P13 Pin Function
164
Table 9.7 P12 Pin Function
164
Port 3
165
Port 3 Data Direction Register (P3DDR)
165
Table 9.8 P11 Pin Function
165
Table 9.9 P10 Pin Function
165
Port 3 Data Register (P3DR)
166
Port 3 Register (PORT3)
166
Port 3 Open-Drain Control Register (P3ODR)
167
Pin Functions
167
Table 9.10 P37 Pin Function
167
Table 9.11 P36 Pin Function
168
Table 9.12 P35 Pin Function
168
Table 9.13 P34 Pin Function
168
Table 9.14 P33 Pin Function
168
Table 9.15 P32 Pin Function
168
Table 9.16 P31 Pin Function
168
Port 4
169
Port 4 Register (PORT4)
169
Port 7
169
Table 9.17 P30 Pin Function
169
Port 7 Data Direction Register (P7DDR)
170
Port 7 Data Register (P7DR)
170
Port 7 Register (PORT7)
170
Pin Functions
171
Table 9.18 P77 Pin Function
171
Table 9.19 P76 Pin Function
171
Table 9.20 P75 Pin Function
171
Table 9.21 P74 Pin Function
171
Port 9
172
Port 9 Register (PORT9)
172
Table 9.22 P73 Pin Function
172
Table 9.23 P72 Pin Function
172
Table 9.24 P71 Pin Function
172
Table 9.25 P70 Pin Function
172
Port a
174
Port a Data Direction Register (PADDR)
174
Port a Data Register (PADR)
175
Port a Register (PORTA)
175
Port a Pull-Up MOS Control Register (PAPCR)
176
Port a Open-Drain Control Register (PAODR)
176
Pin Functions
177
Table 9.26 PA3 Pin Function
177
Table 9.27 PA2 Pin Function
177
Table 9.28 PA1 Pin Function
177
Table 9.29 PA0 Pin Function
177
Port B
178
Port B Data Direction Register (PBDDR)
178
Port B Data Register (PBDR)
179
Port B Register (PORTB)
179
Port B Pull-Up MOS Control Register (PBPCR)
180
Port B Open-Drain Control Register (PBODR)
180
Pin Functions
181
Table 9.30 PB7 Pin Function
181
Table 9.31 PB6 Pin Function
181
Table 9.32 PB5 Pin Function
181
Table 9.33 PB4 Pin Function
181
Port C
182
Table 9.34 PB3 Pin Function
182
Table 9.35 PB2 Pin Function
182
Table 9.36 PB1 Pin Function
182
Table 9.37 PB0 Pin Function
182
Port C Data Direction Register (PCDDR)
183
Port C Data Register (PCDR)
183
Port C Open-Drain Control Register (PCODR)
184
Port C Pull-Up MOS Control Register (PCPCR)
184
Port C Register (PORTC)
184
Pin Functions
185
Table 9.38 PC7 Pin Function
185
Table 9.39 PC6 Pin Function
185
Table 9.40 PC5 Pin Function
186
Table 9.41 PC4 Pin Function
186
Table 9.42 PC3 Pin Function
186
Table 9.43 PC2 Pin Function
186
Table 9.44 PC1 Pin Function
187
Table 9.45 PC 0Pin Function
187
Port D
188
Port D Data Direction Register (PDDDR)
188
Port D Data Register (PDDR)
189
Port D Register (PORTD)
189
Port D Pull-Up MOS Control Register (PDPCR)
189
Port D Realtime Input Data Register (PDRTIDR)
190
Port F
190
Port F Data Direction Register (PFDDR)
191
Port F Data Register (PFDR)
192
Port F Register (PORTF)
192
Pin Functions
193
Table 9.46 PF7 Pin Function
193
Table 9.47 PF6 Pin Function
193
Table 9.48 PF5 Pin Function
193
Table 9.49 PF4 Pin Function
193
Table 9.50 PF3 Pin Function
193
Table 9.51 PF2 Pin Function
193
Table 9.52 PF1 Pin Function
194
Table 9.53 PF0 Pin Function
194
Section 10 16-Bit Timer Pulse Unit (TPU)
195
Features
195
Table 10.1 TPU Functions
196
Figure 10.1 Block Diagram of TPU
198
Input/Output Pins
199
Table 10.2 TPU Pins
199
Register Descriptions
200
Timer Control Register (TCR)
202
Table 10.3 CCLR0 to CCLR2 (Channels 0 and 3)
203
Table 10.4 CCLR0 to CCLR2 (Channels 1, 2, 4, and 5)
203
Table 10.5 TPSC0 to TPSC2 (Channel 0)
204
Table 10.6 TPSC0 to TPSC2 (Channel 1)
204
Table 10.7 TPSC0 to TPSC2 (Channels 2)
205
Table 10.8 TPSC0 to TPSC2 (Channel 3)
205
Table 10.9 TPSC0 to TPSC2 (Channel 4)
206
Table 10.10 TPSC0 to TPSC2 (Channel 5)
206
Timer Mode Register (TMDR)
207
Table 10.11 MD0 to MD3
208
Timer I/O Control Register (TIOR)
209
Table 10.12 TIORH_0 (Channel 0)
210
Table 10.13 TIORL_0 (Channel 0)
211
Table 10.14 TIOR_1 (Channel 1)
212
Table 10.15 TIOR_2 (Channel 2)
213
Table 10.16 TIORH_3 (Channel 3)
214
Table 10.17 TIORL_3 (Channel 3)
215
Table 10.18 TIOR_4 (Channel 4)
216
Table 10.19 TIOR_5 (Channel 5)
217
Table 10.20 TIORH_0 (Channel 0)
218
Table 10.21 TIORL_0 (Channel 0)
219
Table 10.22 TIOR_1 (Channel 1)
220
Table 10.23 TIOR_2 (Channel 2)
221
Table 10.24 TIORH_3 (Channel 3)
222
Table 10.25 TIORL_3 (Channel 3)
223
Table 10.26 TIOR_4 (Channel 4)
224
Table 10.27 TIOR_5 (Channel 5)
225
Timer Interrupt Enable Register (TIER)
226
Timer Status Register (TSR)
228
Timer Counter (TCNT)
231
Timer General Register (TGR)
231
Timer Start Register (TSTR)
231
Timer Synchro Register (TSYR)
232
Operation
232
Basic Functions
232
Figure 10.2 Example of Counter Operation Setting Procedure
233
Figure 10.3 Free-Running Counter Operation
234
Figure 10.4 Periodic Counter Operation
235
Figure 10.5 Example of Setting Procedure for Waveform Output by Compare Match
235
Figure 10.6 Example of 0 Output/1 Output Operation
236
Figure 10.7 Example of Toggle Output Operation
236
Figure 10.8 Example of Input Capture Operation Setting Procedure
237
Figure 10.9 Example of Input Capture Operation
238
Synchronous Operation
239
Figure 10.10 Example of Synchronous Operation Setting Procedure
239
Buffer Operation
240
Figure 10.11 Example of Synchronous Operation
240
Figure 10.12 Compare Match Buffer Operation
241
Figure 10.13 Input Capture Buffer Operation
241
Table 10.28 Register Combinations in Buffer Operation
241
Figure 10.14 Example of Buffer Operation Setting Procedure
242
Figure 10.15 Example of Buffer Operation (1)
242
Figure 10.16 Example of Buffer Operation (2)
243
Cascaded Operation
244
Figure 10.17 Cascaded Operation Setting Procedure
244
Table 10.29 Cascaded Combinations
244
PWM Modes
245
Figure 10.18 Example of Cascaded Operation (1)
245
Figure 10.19 Example of Cascaded Operation (2)
245
Table 10.30 PWM Output Registers and Output Pins
246
Figure 10.20 Example of PWM Mode Setting Procedure
247
Table 10.30 PWM Output Registers and Output Pins (Cont)
247
Figure 10.21 Example of PWM Mode Operation (1)
248
Figure 10.22 Example of PWM Mode Operation (2)
248
Figure 10.23 Example of PWM Mode Operation (3)
249
Phase Counting Mode
250
Figure 10.24 Example of Phase Counting Mode Setting Procedure
250
Table 10.31 Phase Counting Mode Clock Input Pins
250
Figure 10.25 Example of Phase Counting Mode 1 Operation
251
Table 10.32 Up/Down-Count Conditions in Phase Counting Mode 1
251
Figure 10.26 Example of Phase Counting Mode 2 Operation
252
Table 10.33 Up/Down-Count Conditions in Phase Counting Mode 2
252
Figure 10.27 Example of Phase Counting Mode 3 Operation
253
Table 10.34 Up/Down-Count Conditions in Phase Counting Mode 3
253
Figure 10.28 Example of Phase Counting Mode 4 Operation
254
Table 10.35 Up/Down-Count Conditions in Phase Counting Mode 4
254
Figure 10.29 Phase Counting Mode Application Example
256
Interrupt Sources
257
Table 10.36 TPU Interrupts
258
DTC Activation
259
A/D Converter Activation
259
Operation Timing
260
Input/Output Timing
260
Figure 10.30 Count Timing in Internal Clock Operation
260
Figure 10.31 Count Timing in External Clock Operation
260
Figure 10.32 Output Compare Output Timing
261
Figure 10.33 Input Capture Input Signal Timing
261
Figure 10.34 Counter Clear Timing (Compare Match)
262
Figure 10.35 Counter Clear Timing (Input Capture)
262
Figure 10.36 Buffer Operation Timing (Compare Match)
263
Figure 10.37 Buffer Operation Timing (Input Capture)
263
Interrupt Signal Timing
264
Figure 10.38 TGI Interrupt Timing (Compare Match)
264
Figure 10.39 TGI Interrupt Timing (Input Capture)
264
Figure 10.40 TCIV Interrupt Setting Timing
265
Figure 10.41 TCIU Interrupt Setting Timing
265
Figure 10.42 Timing for Status Flag Clearing by CPU
266
Figure 10.43 Timing for Status Flag Clearing by DTC Activation
266
Usage Notes
267
Module Stop Mode Setting
267
Input Clock Restrictions
267
Caution on Period Setting
267
Figure 10.44 Phase Difference, Overlap, and Pulse Width in Phase Counting Mode
267
Conflict between TCNT Write and Clear Operations
268
Figure 10.45 Conflict between TCNT Write and Clear Operations
268
Conflict between TCNT Write and Increment Operations
269
Figure 10.46 Conflict between TCNT Write and Increment Operations
269
Conflict between TGR Write and Compare Match
270
Figure 10.47 Conflict between TGR Write and Compare Match
270
Conflict between Buffer Register Write and Compare Match
271
Figure 10.48 Conflict between Buffer Register Write and Compare Match
271
Conflict between TGR Read and Input Capture
272
Figure 10.49 Conflict between TGR Read and Input Capture
272
Conflict between TGR Write and Input Capture
273
Figure 10.50 Conflict between TGR Write and Input Capture
273
10.9.10 Conflict between Buffer Register Write and Input Capture
274
Figure 10.51 Conflict between Buffer Register Write and Input Capture
274
10.9.11 Conflict between Overflow/Underflow and Counter Clearing
275
Figure 10.52 Conflict between Overflow and Counter Clearing
275
10.9.12 Conflict between TCNT Write and Overflow/Underflow
276
10.9.13 Multiplexing of I/O Pins
276
10.9.14 Interrupts in Module Stop Mode
276
Figure 10.53 Conflict between TCNT Write and Overflow
276
Section 11 8-Bit Timers
277
Features
277
Input/Output Pins
278
Figure 11.1 Block Diagram of 8-Bit Timer Module
278
Register Descriptions
279
Table 11.1 Pin Configuration
279
Time Constant Registers a (TCORA)
280
Time Constant Registers B (TCORB)
280
Timer Control Registers (TCR)
280
Timer Counters (TCNT)
280
Timer Control/Status Registers (TCSR)
283
Operation
287
Pulse Output
287
Operation Timing
288
TCNT Incrementation Timing
288
Figure 11.2 Example of Pulse Output
288
Figure 11.3 Count Timing for Internal Clock Input
288
Timing of CMFA and CMFB Setting When a Compare-Match Occurs
289
Figure 11.4 Count Timing for External Clock Input
289
Figure 11.5 Timing of CMF Setting
289
Timing of Timer Output When a Compare-Match Occurs
290
Timing of Compare-Match Clear When a Compare-Match Occurs
290
TCNT External Reset Timing
290
Figure 11.6 Timing of Timer Output
290
Figure 11.7 Timing of Compare-Match Clear
290
Timing of Overflow Flag (OVF) Setting
291
Operation with Cascaded Connection
291
16-Bit Count Mode
291
Figure 11.8 Timing of Clearing by External Reset Input
291
Figure 11.9 Timing of OVF Setting
291
Compare-Match Count Mode
292
Interrupt Sources
292
Interrupt Sources and DTC Activation
292
A/D Converter Activation
293
Table 11.2 8-Bit Timer Interrupt Sources
293
Usage Notes
294
Conflict between TCNT Write and Clear
294
Conflict between TCNT Write and Increment
294
Figure 11.10 Conflict between TCNT Write and Clear
294
Conflict between TCOR Write and Compare-Match
295
Figure 11.11 Conflict between TCNT Write and Increment
295
Figure 11.12 Conflict between TCOR Write and Compare-Match
295
Conflict between Compare-Matches a and B
296
Switching of Internal Clocks and TCNT Operation
296
Table 11.3 Timer Output Priorities
296
Table 11.4 Switching of Internal Clock and TCNT Operation
297
Conflict between Interrupts and Module Stop Mode
298
Notes on Cascaded Connection
298
Section 12 Programmable Pulse Generator (PPG)
299
Features
299
Figure 12.1 Block Diagram of PPG
300
Input/Output Pins
301
Register Descriptions
301
Table 12.1 Pin Configuration
301
Next Data Enable Registers H, L (NDERH, NDERL)
302
Output Data Registers H, L (PODRH, PODRL)
303
Next Data Registers H, L (NDRH, NDRL)
304
PPG Output Control Register (PCR)
306
PPG Output Mode Register (PMR)
307
Operation
308
Overview
308
Figure 12.2 PPG Output Operation
308
Output Timing
309
Figure 12.3 Timing of Transfer and Output of NDR Contents (Example)
309
Sample Setup Procedure for Normal Pulse Output
310
Figure 12.4 Setup Procedure for Normal Pulse Output (Example)
310
Example of Normal Pulse Output (Example of Five-Phase Pulse Output)
311
Figure 12.5 Normal Pulse Output Example (Five-Phase Pulse Output)
311
Non-Overlapping Pulse Output
312
Figure 12.6 Non-Overlapping Pulse Output
312
Figure 12.7 Non-Overlapping Operation and NDR Write Timing
313
Sample Setup Procedure for Non-Overlapping Pulse Output
314
Figure 12.8 Setup Procedure for Non-Overlapping Pulse Output (Example)
314
Example of Non-Overlapping Pulse Output (Example of Four-Phase Complementary Non-Overlapping Output)
315
Figure 12.9 Non-Overlapping Pulse Output Example (Four-Phase Complementary)
315
Inverted Pulse Output
317
Figure 12.10 Inverted Pulse Output (Example)
317
Pulse Output Triggered by Input Capture
318
Usage Notes
318
Module Stop Mode Setting
318
Operation of Pulse Output Pins
318
Figure 12.11 Pulse Output Triggered by Input Capture (Example)
318
Section 13 Watchdog Timer
319
Features
319
Figure 13.1 Block Diagram of WDT
319
Register Descriptions
320
Timer Counter (TCNT)
320
Timer Control/Status Register (TCSR)
320
Reset Control/Status Register (RSTCSR)
322
Operation
323
Watchdog Timer Mode Operation
323
Interval Timer Mode
323
Figure 13.2 Example of WDT0 Watchdog Timer Operation
323
Interrupts
324
Usage Notes
324
Notes on Register Access
324
Table 13.1 WDT Interrupt Source
324
Conflict between Timer Counter (TCNT) Write and Increment
325
Figure 13.3 Writing to TCNT, TCSR, and RSTCSR (Example for WDT0)
325
Figure 13.4 Conflict between TCNT Write and Increment
325
Changing Value of CKS2 to CKS0
326
Switching between Watchdog Timer Mode and Interval Timer Mode
326
Internal Reset in Watchdog Timer Mode
326
OVF Flag Clearing in Interval Timer Mode
326
Section 14 Serial Communication Interface (SCI)
327
Features
327
Figure 14.1 Block Diagram of SCI
328
Input/Output Pins
329
Register Descriptions
329
Table 14.1 Pin Configuration
329
Receive Data Register (RDR)
330
Receive Shift Register (RSR)
330
Transmit Data Register (TDR)
330
Transmit Shift Register (TSR)
330
Serial Mode Register (SMR)
331
Serial Control Register (SCR)
335
Serial Status Register (SSR)
338
Smart Card Mode Register (SCMR)
343
Bit Rate Register (BRR)
344
Table 14.2 the Relationships between the N Setting in BRR and Bit Rate B
344
Table 14.3 BRR Settings for Various Bit Rates (Asynchronous Mode) (1)
345
Table 14.3 BRR Settings for Various Bit Rates (Asynchronous Mode) (2)
346
Table 14.3 BRR Settings for Various Bit Rates (Asynchronous Mode) (3)
347
Table 14.4 Maximum Bit Rate for each Frequency (Asynchronous Mode)
347
Table 14.5 Maximum Bit Rate with External Clock Input (Asynchronous Mode)
348
Table 14.6 BRR Settings for Various Bit Rates (Clocked Synchronous Mode)
349
Table 14.7 Maximum Bit Rate with External Clock Input (Clocked Synchronous Mode)
349
Table 14.8 Examples of Bit Rate for Various BRR Settings (Smart Card Interface Mode) (When N = 0 and S = 372)
350
Table 14.9 Maximum Bit Rate at Various Frequencies (Smart Card Interface Mode) (When S = 372)
350
Operation in Asynchronous Mode
351
Data Transfer Format
351
Figure 14.2 Data Format in Asynchronous Communication (Example with 8-Bit Data, Parity, Two Stop Bits)
351
Table 14.10 Serial Transfer Formats (Asynchronous Mode)
352
Receive Data Sampling Timing and Reception Margin in Asynchronous Mode
353
Figure 14.3 Receive Data Sampling Timing in Asynchronous Mode
353
Clock
354
Figure 14.4 Relationship between Output Clock and Transfer Data Phase (Asynchronous Mode)
354
SCI Initialization (Asynchronous Mode)
355
Figure 14.5 Sample SCI Initialization Flowchart
355
Data Transmission (Asynchronous Mode)
356
Figure 14.6 Example of Operation in Transmission in Asynchronous Mode (Example with 8-Bit Data, Parity, One Stop Bit)
356
Figure 14.7 Sample Serial Transmission Flowchart
357
Serial Data Reception (Asynchronous Mode)
358
Figure 14.8 Example of SCI Operation in Reception (Example with 8-Bit Data, Parity, One Stop Bit)
358
Table 14.11 SSR Status Flags and Receive Data Handling
359
Figure 14.9 Sample Serial Reception Data Flowchart (1)
360
Figure 14.9 Sample Serial Reception Data Flowchart (2)
361
Multiprocessor Communication Function
362
Figure 14.10 Example of Communication Using Multiprocessor Format (Transmission of Data H'AA to Receiving Station A)
363
Figure 14.11 Sample Multiprocessor Serial Transmission Flowchart
364
Multiprocessor Serial Data Transmission
364
Figure 14.12 Example of SCI Operation in Reception
365
Multiprocessor Serial Data Reception
365
Figure 14.13 Sample Multiprocessor Serial Reception Flowchart (1)
366
Figure 14.13 Sample Multiprocessor Serial Reception Flowchart (2)
367
Operation in Clocked Synchronous Mode
368
Clock
368
Figure 14.14 Data Format in Synchronous Communication (for LSB-First)
368
SCI Initialization (Clocked Synchronous Mode)
369
Figure 14.15 Sample SCI Initialization Flowchart
369
Serial Data Transmission (Clocked Synchronous Mode)
370
Figure 14.16 Sample SCI Transmission Operation in Clocked Synchronous Mode
370
Figure 14.17 Sample Serial Transmission Flowchart
371
Serial Data Reception (Clocked Synchronous Mode)
372
Figure 14.18 Example of SCI Operation in Reception
372
Figure 14.19 Sample Serial Reception Flowchart
373
Simultaneous Serial Data Transmission and Reception (Clocked Synchronous Mode)
374
Figure 14.20 Sample Flowchart of Simultaneous Serial Transmit and Receive Operations
375
Operation in Smart Card Interface
376
Pin Connection Example
376
Figure 14.21 Schematic Diagram of Smart Card Interface Pin Connections
376
Data Format (Except for Block Transfer Mode)
377
Figure 14.22 Normal Smart Card Interface Data Format
377
Figure 14.23 Direct Convention (SDIR = SINV = O/E = 0)
377
Block Transfer Mode
378
Figure 14.24 Inverse Convention (SDIR = SINV = O/E = 1)
378
Receive Data Sampling Timing and Reception Margin in Smart Card Interface Mode
379
Figure 14.25 Receive Data Sampling Timing in Smart Card Mode (Using Clock of 372 Times the Transfer Rate)
379
Initialization
380
Data Transmission (Except for Block Transfer Mode)
380
Figure 14.26 Retransfer Operation in SCI Transmit Mode
381
Figure 14.27 TEND Flag Generation Timing in Transmission Operation
382
Figure 14.28 Example of Transmission Processing Flow
383
Serial Data Reception (Except for Block Transfer Mode)
384
Figure 14.29 Retransfer Operation in SCI Receive Mode
384
Clock Output Control
385
Figure 14.30 Example of Reception Processing Flow
385
Figure 14.31 Timing for Fixing Clock Output Level
385
Figure 14.32 Clock Halt and Restart Procedure
386
Interrupt Sources
387
Interrupts in Normal Serial Communication Interface Mode
387
Table 14.12 SCI Interrupt Sources
387
Interrupts in Smart Card Interface Mode
388
Table 14.13 SCI Interrupt Sources
388
Usage Notes
389
Module Stop Mode Setting
389
Break Detection and Processing
389
Mark State and Break Detection
389
Receive Error Flags and Transmit Operations (Clocked Synchronous Mode Only)
389
Section 15 Hitachi Controller Area Network (HCAN)
391
Features
391
Figure 15.1 HCAN Block Diagram
392
Input/Output Pins
393
Register Descriptions
393
Table 15.1 HCAN Pins
393
Master Control Register (MCR)
394
General Status Register (GSR)
395
Bit Configuration Register (BCR)
397
Mailbox Configuration Register (MBCR)
399
Transmit Wait Register (TXPR)
400
Transmit Wait Cancel Register (TXCR)
401
Transmit Acknowledge Register (TXACK)
402
Abort Acknowledge Register (ABACK)
403
Receive Complete Register (RXPR)
404
Remote Request Register (RFPR)
405
Interrupt Register (IRR)
406
Mailbox Interrupt Mask Register (MBIMR)
410
Interrupt Mask Register (IMR)
411
Receive Error Counter (REC)
412
Transmit Error Counter (TEC)
412
Unread Message Status Register (UMSR)
413
Local Acceptance Filter Masks (LAFML, LAFMH)
414
Figure 15.2 Message Control Register Configuration
416
Figure 15.3 Standard Format
416
Figure 15.4 Extended Format
416
Message Control (MC0 to MC15)
416
Figure 15.5 Message Data Configuration
418
HCAN Monitor Register (HCANMON)
418
Message Data (MD0 to MD15)
418
Operation
420
Hardware and Software Resets
420
Initialization after Hardware Reset
420
Figure 15.6 Hardware Reset Flowchart
421
Figure 15.7 Software Reset Flowchart
422
Figure 15.8 Detailed Description of One Bit
423
Table 15.2 Limits for the Settable Value
423
Table 15.3 Setting Range for TSEG1 and TSEG2 in BCR
424
Message Transmission
426
Figure 15.9 Transmission Flowchart
426
Figure 15.10 Transmit Message Cancellation Flowchart
428
Message Reception
429
Figure 15.11 Reception Flowchart
429
HCAN Sleep Mode
432
Figure 15.12 Unread Message Overwrite Flowchart
432
Figure 15.13 HCAN Sleep Mode Flowchart
433
HCAN Halt Mode
435
Figure 15.14 HCAN Halt Mode Flowchart
435
Interrupt Sources
436
Table 15.4 HCAN Interrupt Sources
436
DTC Interface
437
Figure 15.15 DTC Transfer Flowchart
437
CAN Bus Interface
438
Usage Notes
438
Module Stop Mode Setting
438
Reset
438
Figure 15.16 High-Speed Interface Using PCA82C250
438
HCAN Sleep Mode
439
Interrupts
439
Error Counters
439
Register Access
439
HCAN Medium-Speed Mode
439
Register Hold in Standby Modes
439
Use on Bit Manipulation Instructions
439
15.8.10 HCAN TXCR Operation
440
Section 16 Synchronous Serial Communication Unit (SSU)
441
Features
441
Figure 16.1 Block Diagram of SSU
442
Input/Output Pins
443
Register Descriptions
443
SS Control Register H (SSCRH)
443
Table 16.1 Pin Configuration
443
SS Control Register L (SSCRL)
445
SS Mode Register (SSMR)
446
SS Enable Register (SSER)
447
SS Status Register (SSSR)
448
SS Transmit Data Register 0 to 3 (SSTDR0 to SSTDR3)
451
SS Receive Data Register 0 to 3 (SSRDR0 to SSRDR3)
451
SS Shift Register (SSTRSR)
451
Operation
452
Transfer Clock
452
Relationship of Clock Phase, Polarity, and Data
452
Relationship between Data I/O Pins and the Shift Register
452
Figure 16.2 Relationship of Clock Phase, Polarity, and Data
452
Data Transmission and Data Reception
453
Figure 16.3 Relationship between Data I/O Pins and the Shift Register
453
Figure 16.4 Example of SSU Initialization
454
Figure 16.5 Example of Transmission Operation
455
Figure 16.6 Example of Data Transmission Flowchart
456
Figure 16.7 Example of Reception Operation
458
Figure 16.8 Example of Data Reception Flowchart
459
SCS Pin Control and Arbitration
460
Figure 16.9 Example of Simultaneous Transmission/Reception Flowchart
460
Interrupt Requests
461
Figure 16.10 Arbitration Detection Timing (before Transfer)
461
Figure 16.11 Arbitration Detection Timing (after Transfer End)
461
Usage Note
462
Setting of Module Stop Mode
462
Table 16.2 Interrupt Souses
462
Section 17 A/D Converter
463
Features
463
Figure 17.1 Block Diagram of A/D Converter
464
Input/Output Pins
465
Table 17.1 Pin Configuration
465
Register Description
466
A/D Data Registers a to D (ADDRA to ADDRD)
466
Table 17.2 Analog Input Channels and Corresponding ADDR Registers
466
A/D Control/Status Register (ADCSR)
467
A/D Control Register (ADCR)
469
Operation
470
Single Mode
470
Scan Mode
470
Input Sampling and A/D Conversion Time
471
Figure 17.2 A/D Conversion Timing
471
Table 17.3 A/D Conversion Time (Single Mode)
472
Table 17.4 A/D Conversion Time (Scan Mode)
472
External Trigger Input Timing
473
Interrupt Source
473
Figure 17.3 External Trigger Input Timing
473
Table 17.5 A/D Converter Interrupt Source
473
A/D Conversion Accuracy Definitions
474
Figure 17.4 A/D Conversion Accuracy Definitions
475
Figure 17.5 A/D Conversion Accuracy Definitions
475
Usage Notes
476
Module Stop Mode Setting
476
Permissible Signal Source Impedance
476
Influences on Absolute Accuracy
476
Figure 17.6 Example of Analog Input Circuit
476
Range of Analog Power Supply and Other Pin Settings
477
Notes on Board Design
477
Notes on Noise Countermeasures
477
Figure 17.7 Example of Analog Input Protection Circuit
478
Figure 17.8 Analog Input Pin Equivalent Circuit
478
Table 17.6 Analog Pin Specifications
478
Section 18 RAM
479
Section 19 ROM
481
Features
481
Mode Transitions
482
Figure 19.1 Block Diagram of Flash Memory
482
Figure 19.2 Flash Memory State Transitions
483
Table 19.1 Differences between Boot Mode and User Program Mode
483
Figure 19.3 Boot Mode
484
Figure 19.4 User Program Mode
485
Block Configuration
486
Figure 19.5 Flash Memory Block Configuration
486
Input/Output Pins
487
Register Descriptions
487
Table 19.2 Pin Configuration
487
Flash Memory Control Register 1 (FLMCR1)
488
Erase Block Register 1 (EBR1)
489
Flash Memory Control Register 2 (FLMCR2)
489
Erase Block Register 2 (EBR2)
490
RAM Emulation Register (RAMER)
490
On-Board Programming Modes
491
Table 19.3 Setting On-Board Programming Modes
491
Boot Mode
492
Table 19.4 Boot Mode Operation
493
Table 19.5 System Clock Frequencies for Which Automatic Adjustment of LSI Bit Rate Is Possible
493
Figure 19.6 Programming/Erasing Flowchart Example in User Program Mode
494
Programming/Erasing in User Program Mode
494
Flash Memory Emulation in RAM
495
Figure 19.7 Flowchart for Flash Memory Emulation in RAM
495
Figure 19.8 Example of RAM Overlap Operation
496
Flash Memory Programming/Erasing
497
Program/Program-Verify
497
Figure 19.9 Program/Program-Verify Flowchart
498
Erase/Erase-Verify
499
Interrupt Handling When Programming/Erasing Flash Memory
499
Figure 19.10 Erase/Erase-Verify Flowchart
500
Program/Erase Protection
501
Hardware Protection
501
Software Protection
501
Error Protection
501
Programmer Mode
502
Power-Down States for Flash Memory
502
Table 19.6 Flash Memory Operating States
502
Section 20 Clock Pulse Generator
503
Figure 20.1 Block Diagram of Clock Pulse Generator
503
Register Descriptions
504
System Clock Control Register (SCKCR)
504
Low-Power Control Register (LPWRCR)
505
Oscillator
506
Connecting a Crystal Resonator
506
Figure 20.2 Connection of Crystal Resonator (Example)
506
Figure 20.3 Crystal Resonator Equivalent Circuit
506
Table 20.1 Damping Resistance Value
506
Table 20.2 Crystal Resonator Characteristics
506
External Clock Input
507
Figure 20.4 External Clock Input (Examples)
507
Figure 20.5 External Clock Input Timing
508
Table 20.3 External Clock Input Conditions
508
PLL Circuit
509
Medium-Speed Clock Divider
509
Bus Master Clock Selection Circuit
509
Usage Notes
510
Note on Crystal Resonator
510
Note on Board Design
510
Figure 20.6 Note on Board Design of Oscillator Circuit
510
Figure 20.7 External Circuitry Recommended for PLL Circuit
511
Section 21 Power-Down Modes
513
Figure 21.1 Mode Transition Diagram
514
Table 21.1 Low Power Consumption Mode Transition Conditions
514
Table 21.2 LSI Internal States in each Mode
515
Register Descriptions
516
Standby Control Register (SBYCR)
516
Module Stop Control Registers a to C (MSTPCRA to MSTPCRC)
518
Medium-Speed Mode
519
Sleep Mode
520
Transition to Sleep Mode
520
Clearing Sleep Mode
520
Figure 21.2 Medium-Speed Mode Transition and Clearance Timing
520
Software Standby Mode
521
Transition to Software Standby Mode
521
Clearing Software Standby Mode
521
Setting Oscillation Stabilization Time after Clearing Software Standby Mode
522
Table 21.3 Oscillation Stabilization Time Settings
522
Software Standby Mode Application Example
523
Figure 21.3 Software Standby Mode Application Example
523
Hardware Standby Mode
524
Transition to Hardware Standby Mode
524
Clearing Hardware Standby Mode
524
Hardware Standby Mode Timings
524
Figure 21.4 Timing of Transition to Hardware Standby Mode
524
Module Stop Mode
525
Figure 21.5 Timing of Recovery from Hardware Standby Mode
525
Clock Output Disabling Function
526
Usage Notes
526
I/O Port Status
526
Current Consumption During Oscillation Stabilization Wait Period
526
DTC Module Stop
526
On-Chip Peripheral Module Interrupt
526
Table 21.4 Φ Pin State in each Processing State
526
Writing to MSTPCR
527
Section 22 List of Registers
529
Register Addresses (Address Order)
530
Register Bits
546
Register States in each Operating Mode
564
Section 23 Electrical Characteristics
581
Absolute Maximum Ratings
581
Table 23.1 Absolute Maximum Ratings
581
DC Characteristics
582
Table 23.2 DC Characteristics
582
AC Characteristics
584
Figure 23.1 Output Load Circuit
584
Table 23.3 Permissible Output Currents
584
Clock Timing
585
Figure 23.2 System Clock Timing
585
Table 23.4 Clock Timing
585
Control Signal Timing
586
Figure 23.3 Oscillation Settling Timing
586
Table 23.5 Control Signal Timing
586
Figure 23.4 Reset Input Timing
587
Figure 23.5 Interrupt Input Timing
587
Table 23.6 Timing of On-Chip Peripheral Modules
588
Timing of On-Chip Peripheral Modules
588
Table 23.7 Timing of SSU
589
Figure 23.6 I/O Port Input/Output Timing
591
Figure 23.7 Realtime Input Port Data Input Timing
591
Figure 23.8 TPU Input/Output Timing
591
Figure 23.10 SCK Clock Input Timing
592
Figure 23.11 SCI Input/Output Timing (Clocked Synchronous Mode)
592
Figure 23.12 A/D Converter External Trigger Input Timing
592
Figure 23.9 TPU Clock Input Timing
592
Figure 23.13 HCAN Input/Output Timing
593
Figure 23.14 PPG Output Timing
593
Figure 23.15 SSU Timing (Master, CPHS = 1)
593
Figure 23.16 SSU Timing (Master, CPHS = 0)
594
Figure 23.17 SSU Timing (Slave, CPHS = 1)
594
Figure 23.18 SSU Timing (Slave, CPHS = 0)
595
A/D Conversion Characteristics
596
Table 23.8 A/D Conversion Characteristics
596
Flash Memory Characteristics
597
Appendix
599
I/O Port States in each Pin State
599
Product Code Lineup
600
Package Dimensions
600
Figure C.1 FP-100M Package Dimensions
600
Related Products
Hitachi HD64F2377R
Hitachi HD64F2376R
Hitachi HD64F2377
Hitachi HD64F2376
Hitachi HD64F2199
Hitachi HD64F2677
Hitachi HD64F2676
Hitachi HD64F3064
Hitachi HD64F3062B
Hitachi HD64F3048
Hitachi Categories
Projector
Air Conditioner
Drill
Power Tool
TV
More Hitachi Manuals