Sign In
Upload
Manuals
Brands
Renesas Manuals
Computer Hardware
SH7709S
Renesas SH7709S 32-bit Microcontrollers Manuals
Manuals and User Guides for Renesas SH7709S 32-bit Microcontrollers. We have
1
Renesas SH7709S 32-bit Microcontrollers manual available for free PDF download: Hardware Manual
Renesas SH7709S Hardware Manual (807 pages)
32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Brand:
Renesas
| Category:
Computer Hardware
| Size: 4.61 MB
Table of Contents
Table of Contents
17
Section 1 Overview and Pin Functions
45
SH7709S Features
45
Tables
46
Table 1.1 SH7709S Features
46
Table 1.2 Characteristics
49
Block Diagram
50
Figure 1.1 Block Diagram
50
Figures
50
Pin Description
51
Pin Assignment
51
Figure 1.2 Pin Assignment (FP-208C, FP-208E)
51
Figure 1.3 Pin Assignment (BP-240A)
52
Pin Function
53
Table 1.3 SH7709S Pin Function
53
Section 2 CPU
63
Register Configuration
63
Privileged Mode and Banks
63
Figure 2.1 User Mode Register Configuration
64
Figure 2.2 Privileged Mode Register Configuration
65
General Registers
66
Figure 2.3 General Registers
66
Table 2.1 Initial Register Values
66
System Registers
67
Control Registers
67
Figure 2.4 System Registers
67
Figure 2.5 Register Set Overview, Control Registers
68
Data Formats
69
Data Format in Registers
69
Data Format in Memory
69
Figure 2.6 Longword
69
Figure 2.7 Data Format in Memory
69
Instruction Features
70
Execution Environment
70
Addressing Modes
72
Table 2.2 Addressing Modes and Effective Addresses
72
Instruction Formats
76
Table 2.3 Instruction Formats
76
Instruction Set
79
Instruction Set Classified by Function
79
Table 2.4 Classification of Instructions
79
Table 2.5 Instruction Code Format
82
Table 2.6 Data Transfer Instructions
83
Table 2.7 Arithmetic Instructions
85
Table 2.8 Logic Operation Instructions
88
Table 2.9 Shift Instructions
89
Table 2.10 Branch Instructions
90
Table 2.11 System Control Instructions
91
Instruction Code Map
94
Table 2.12 Instruction Code Map
94
Processor States and Processor Modes
97
Processor States
97
Processor Modes
98
Figure 2.8 Processor State Transitions
98
Section 3 Memory Management Unit (MMU)
99
Overview
99
Features
99
Role of MMU
99
Figure 3.1 MMU Functions
101
Sh7709S Mmu
102
Figure 3.2 Virtual Address Space Mapping
103
Register Configuration
105
Register Description
105
Table 3.1 Register Configuration
105
Figure 3.3 MMU Register Contents
106
TLB Functions
107
Configuration of the TLB
107
Figure 3.4 Overall Configuration of the TLB
107
Figure 3.5 Virtual Address and TLB Structure
108
TLB Indexing
109
Figure 3.6 TLB Indexing (IX = 1)
109
TLB Address Comparison
110
Figure 3.7 TLB Indexing (IX = 0)
110
Figure 3.8 Objects of Address Comparison
111
Page Management Information
112
Table 3.2 Access States Designated by D, C, and PR Bits
112
MMU Functions
113
MMU Hardware Management
113
MMU Software Management
113
MMU Instruction (LDTLB)
114
Figure 3.9 Operation of LDTLB Instruction
115
Avoiding Synonym Problems
116
Figure 3.10 Synonym Problem
117
MMU Exceptions
118
TLB Miss Exception
118
TLB Protection Violation Exception
119
TLB Invalid Exception
120
Initial Page Write Exception
121
Figure 3.11 MMU Exception Generation Flowchart
122
Processing Flow in Event of MMU Exception (same Processing Flow for Address Error)
123
Figure 3.12 MMU Exception Signals in Instruction Fetch
123
Configuration of Memory-Mapped TLB
124
Address Array
124
Figure 3.13 MMU Exception Signals in Data Access
124
Data Array
125
Figure 3.14 Specifying Address and Data for Memory-Mapped TLB Access
126
Usage Examples
127
Usage Note
127
Section 4 Exception Handling
129
Overview
129
Features
129
Register Configuration
129
Exception Handling Function
129
Exception Handling Flow
129
Table 4.1 Register Configuration
129
Exception Vector Addresses
130
Figure 4.1 Vector Table
130
Table 4.2 Exception Event Vectors
131
Acceptance of Exceptions
132
Figure 4.2 Example of Acceptance Order of General Exceptions
133
Exception Codes
134
Table 4.3 Exception Codes
134
Exception Request Masks
135
Returning from Exception Handling
135
Register Descriptions
136
Figure 4.3 Bit Configurations of EXPEVT, INTEVT, INTEVT2, and TRA Registers
136
Exception Handling Operation
137
Reset
137
Interrupts
137
General Exceptions
138
Individual Exception Operations
138
Resets
138
General Exceptions
139
Table 4.4 Types of Reset
139
Interrupts
143
Cautions
144
Section 5 Cache
147
Overview
147
Features
147
Cache Structure
147
Table 5.1 Cache Specifications
147
Figure 5.1 Cache Structure
148
Register Configuration
149
Register Description
149
Cache Control Register (CCR)
149
Table 5.2 LRU and Way Replacement (When the Cache Lock Function Is Not Used)
149
Table 5.3 Register Configuration
149
Cache Control Register 2 (CCR2)
150
Figure 5.2 CCR Register Configuration
150
Figure 5.3 CCR2 Register Configuration
151
Table 5.4 Way Replacement When PREF Instruction Ended up in a Cache Miss
151
Table 5.5 Way Replacement When Instructions Except for PREF Instruction Ended up in a Cache Miss
152
Table 5.6 LRU and Way Replacement (When W2LOCK=1)
152
Table 5.7 LRU and Way Replacement (When W3LOCK=1)
152
Table 5.8 LRU and Way Replacement (When W2LOCK=1 and W3LOCK=1)
152
Cache Operation
153
Searching the Cache
153
Figure 5.4 Cache Search Scheme (Normal Mode)
154
Read Access
155
Prefetch Operation
155
Write Access
155
Write-Back Buffer
155
Coherency of Cache and External Memory
156
Memory-Mapped Cache
156
Address Array
156
Figure 5.5 Write-Back Buffer Configuration
156
Data Array
157
Figure 5.6 Specifying Address and Data for Memory-Mapped Cache Access
158
Examples of Usage
159
Section 6 Interrupt Controller (INTC)
161
Overview
161
Features
161
Block Diagram
162
Figure 6.1 Block Diagram of INTC
162
Pin Configuration
163
Table 6.1 INTC Pins
163
Register Configuration
164
Table 6.2 INTC Registers
164
Interrupt Sources
165
NMI Interrupt
165
IRQ Interrupts
165
IRL Interrupts
166
Figure 6.2 Example of IRL Interrupt Connection
166
Table 6.3 IRL3-IRL0/IRLS3-IRLS0 Pins and Interrupt Levels
167
PINT Interrupts
168
On-Chip Peripheral Module Interrupts
168
Interrupt Exception Handling and Priority
169
Table 6.4 Interrupt Exception Handling Sources and Priority (IRQ Mode)
170
Table 6.5 Interrupt Exception Handling Sources and Priority (IRL Mode)
172
Table 6.6 Interrupt Levels and INTEVT Codes
174
INTC Registers
175
Interrupt Priority Registers a to E (IPRA-IPRE)
175
Table 6.7 Interrupt Request Sources and IPRA-IPRE
175
Interrupt Control Register 0 (ICR0)
176
Interrupt Control Register 1 (ICR1)
177
Interrupt Control Register 2 (ICR2)
180
PINT Interrupt Enable Register (PINTER)
181
Interrupt Request Register 0 (IRR0)
182
Interrupt Request Register 1 (IRR1)
184
Interrupt Request Register 2 (IRR2)
185
INTC Operation
187
Interrupt Sequence
187
Figure 6.3 Interrupt Operation Flowchart
188
Multiple Interrupts
189
Interrupt Response Time
189
Table 6.8 Interrupt Response Time
190
Figure 6.4 Example of Pipeline Operations When IRL Interrupt Is Accepted
192
Section 7 User Break Controller
193
Overview
193
Features
193
Block Diagram
194
Figure 7.1 Block Diagram of User Break Controller
194
Register Configuration
195
Table 7.1 Register Configuration
195
Register Descriptions
196
Break Address Register a (BARA)
196
Break Address Mask Register a (BAMRA)
197
Break Bus Cycle Register a (BBRA)
198
Break Address Register B (BARB)
200
Break Address Mask Register B (BAMRB)
201
Break Data Register B (BDRB)
202
Break Data Mask Register B (BDMRB)
203
Break Bus Cycle Register B (BBRB)
204
Break Control Register (BRCR)
206
Execution Times Break Register (BETR)
210
Branch Source Register (BRSR)
211
Branch Destination Register (BRDR)
212
Break ASID Register a (BASRA)
213
Break ASID Register B (BASRB)
213
Operation Description
214
Flow of the User Break Operation
214
Break on Instruction Fetch Cycle
214
Break by Data Access Cycle
215
Table 7.2 Data Access Cycle Addresses and Operand Size Comparison Conditions
215
Sequential Break
216
Value of Saved Program Counter
216
PC Trace
217
Usage Examples
218
Notes
223
Section 8 Power-Down Modes
225
Overview
225
Power-Down Modes
225
Table 8.1 Power-Down Modes
226
Pin Configuration
227
Register Configuration
227
Register Descriptions
227
Standby Control Register (STBCR)
227
Table 8.2 Pin Configuration
227
Table 8.3 Register Configuration
227
Standby Control Register 2 (STBCR2)
229
Sleep Mode
231
Transition to Sleep Mode
231
Canceling Sleep Mode
231
Precautions When Using the Sleep Mode
231
Standby Mode
232
Transition to Standby Mode
232
Table 8.4 Register States in Standby Mode
232
Canceling Standby Mode
233
Figure 8.1 Canceling Standby Mode with STBCR.STBY
233
Clock Pause Function
234
Module Standby Function
235
Transition to Module Standby Function
235
Clearing Module Standby Function
235
Timing of STATUS Pin Changes
236
Timing for Resets
236
Figure 8.2 Power-On Reset (Clock Modes 0, 1, 2, and 7) STATUS Output
236
Figure 8.3 Manual Reset STATUS Output
237
Timing for Canceling Standby
238
Figure 8.4 Standby to Interrupt STATUS Output
238
Figure 8.5 Standby to Power-On Reset STATUS Output
239
Timing for Canceling Sleep Mode
240
Figure 8.6 Standby to Manual Reset STATUS Output
240
Figure 8.7 Sleep to Interrupt STATUS Output
240
Figure 8.8 Sleep to Power-On Reset STATUS Output
241
Figure 8.9 Sleep to Manual Reset STATUS Output
242
Hardware Standby Mode
243
Transition to Hardware Standby Mode
243
Canceling Hardware Standby Mode
243
Hardware Standby Mode Timing
244
Figure 8.10 Hardware Standby Mode (When CA Goes Low in Normal Operation)
244
Figure 8.11 Hardware Standby Mode Timing (When CA Goes Low During WDT Operation on Standby Mode Cancellation)
245
Section 9 On-Chip Oscillation Circuits
247
Overview
247
Features
247
Overview of CPG
248
CPG Block Diagram
248
Figure 9.1 Block Diagram of Clock Pulse Generator
248
CPG Pin Configuration
250
CPG Register Configuration
250
Table 9.1 CPG Pins and Functions
250
Table 9.2 CPG Register
250
Clock Operating Modes
251
Table 9.3 Clock Operating Modes
251
Table 9.4 Available Combinations of Clock Mode and FRQCR Values
252
Register Descriptions
255
Frequency Control Register (FRQCR)
255
Changing the Frequency
257
Changing the Multiplication Rate
257
Changing the Division Ratio
257
Overview of WDT
258
Block Diagram of WDT
258
Register Configuration
258
Figure 9.2 Block Diagram of WDT
258
Table 9.5 Register Configuration
258
WDT Registers
259
Watchdog Timer Counter (WTCNT)
259
Watchdog Timer Control/Status Register (WTCSR)
259
Notes on Register Access
261
Figure 9.3 Writing to WTCNT and WTCSR
261
Using the WDT
262
Canceling Standby
262
Changing the Frequency
262
Using Watchdog Timer Mode
263
Using Interval Timer Mode
263
Notes on Board Design
264
Figure 9.4 Points for Attention When Using Crystal Resonator
264
Figure 9.5 Points for Attention When Using PLL Oscillator Circuit
265
Section 10 Bus State Controller (BSC)
267
Overview
267
Features
267
Block Diagram
269
Figure 10.1 Block Diagram of Bus State Controller
269
10.1.3 Pin Configuration
270
Table 10.1 BSC Pins
270
Register Configuration
272
Table 10.2 BSC Registers
272
Area Overview
273
Figure 10.2 Correspondence between Logical Address Space and Physical Address Space
273
Table 10.3 Physical Address Space Map
274
Figure 10.3 Physical Space Allocation
275
Table 10.4 Correspondence between External Pins (MD4 and MD3) and Memory Size
275
PCMCIA Support
276
Figure 10.4 PCMCIA Space Allocation
276
Table 10.5 PCMCIA Interface Characteristics
276
Table 10.6 PCMCIA Support Interface
277
BSC Registers
279
Bus Control Register 1 (BCR1)
279
Bus Control Register 2 (BCR2)
283
Wait State Control Register 1 (WCR1)
284
Wait State Control Register 2 (WCR2)
285
Individual Memory Control Register (MCR)
289
PCMCIA Control Register (PCR)
292
Synchronous DRAM Mode Register (SDMR)
296
Refresh Timer Control/Status Register (RTCSR)
297
Refresh Timer Counter (RTCNT)
299
Refresh Time Constant Register (RTCOR)
300
Refresh Count Register (RFCR)
300
10.2.12 Cautions on Accessing Refresh Control Related Registers
301
Figure 10.5 Writing to RFCR, RTCSR, RTCNT, and RTCOR
301
MCS0 Control Register (MCSCR0)
302
MCS1 Control Register (MCSCR1)
303
MCS2 Control Register (MCSCR2)
303
MCS3 Control Register (MCSCR3)
303
MCS4 Control Register (MCSCR4)
303
MCS5 Control Register (MCSCR5)
303
MCS6 Control Register (MCSCR6)
303
MCS7 Control Register (MCSCR7)
303
BSC Operation
304
Endian/Access Size and Data Alignment
304
Table 10.7 32-Bit External Device/Big-Endian Access and Data Alignment
304
Table 10.8 16-Bit External Device/Big-Endian Access and Data Alignment
305
Table 10.9 8-Bit External Device/Big-Endian Access and Data Alignment
306
Table 10.10 32-Bit External Device/Little-Endian Access and Data Alignment
307
Table 10.11 16-Bit External Device/Little-Endian Access and Data Alignment
307
Table 10.12 8-Bit External Device/Little-Endian Access and Data Alignment
308
Description of Areas
309
Basic Interface
312
Figure 10.6 Basic Timing of Basic Interface
313
Figure 10.7 Example of 32-Bit Data-Width Static RAM Connection
314
Figure 10.8 Example of 16-Bit Data-Width Static RAM Connection
315
Figure 10.9 Example of 8-Bit Data-Width Static RAM Connection
316
Figure 10.10 Basic Interface Wait Timing (Software Wait Only)
317
Figure 10.11 Basic Interface Wait State Timing
319
Synchronous DRAM Interface
320
Figure 10.12 Example of 64-Mbit Synchronous DRAM Connection (32-Bit Bus Width)
321
Figure 10.13 Example of 64-Mbit Synchronous DRAM Connection (16-Bit Bus Width)
322
Table 10.13 Relationship between Bus Width, AMX Bits, and Address Multiplex Output
323
Table 10.14 Example of Correspondence between SH7709S and Synchronous DRAM Address Pins (AMX [3:0] = 0100 (32-Bit Bus Width))
325
Figure 10.14 Basic Timing for Synchronous DRAM Burst Read
326
Figure 10.15 Synchronous DRAM Burst Read Wait Specification Timing
327
Figure 10.16 Basic Timing for Synchronous DRAM Single Read
328
Figure 10.17 Basic Timing for Synchronous DRAM Burst Write
330
Figure 10.18 Basic Timing for Synchronous DRAM Single Write
332
Figure 10.19 Burst Read Timing (no Precharge)
335
Figure 10.20 Burst Read Timing (same Row Address)
336
Figure 10.21 Burst Read Timing (Different Row Addresses)
337
Figure 10.22 Burst Write Timing (no Precharge)
338
Figure 10.23 Burst Write Timing (same Row Address)
339
Figure 10.24 Burst Write Timing (Different Row Addresses)
340
Figure 10.25 Auto-Refresh Operation
342
Figure 10.26 Synchronous DRAM Auto-Refresh Timing
343
Figure 10.27 Synchronous DRAM Self-Refresh Timing
345
Figure 10.28 Synchronous DRAM Mode Write Timing
347
Burst ROM Interface
348
Figure 10.29 Burst ROM Wait Access Timing
349
Figure 10.30 Burst ROM Basic Access Timing
350
PCMCIA Interface
351
Figure 10.31 Example of PCMCIA Interface
352
Figure 10.32 Basic Timing for PCMCIA Memory Card Interface
354
Figure 10.33 Wait Timing for PCMCIA Memory Card Interface
355
Figure 10.34 Basic Timing for PCMCIA Memory Card Interface Burst Access
356
Figure 10.35 Wait Timing for PCMCIA Memory Card Interface Burst Access
357
Figure 10.36 PCMCIA Space Allocation
358
Figure 10.37 Basic Timing for PCMCIA I/O Card Interface
360
Figure 10.38 Wait Timing for PCMCIA I/O Card Interface
361
Figure 10.39 Dynamic Bus Sizing Timing for PCMCIA I/O Card Interface
362
Waits between Access Cycles
363
Bus Arbitration
364
Figure 10.40 Waits between Access Cycles
364
Bus Pull-Up
365
Figure 10.41 Pull-Up Timing for Pins A25 to A0
365
Figure 10.42 Pull-Up Timing for Pins D31 to D0 (Read Cycle)
366
Figure 10.43 Pull-Up Timing for Pins D31 to D0 (Write Cycle)
366
MCS[0] to MCS[7] Pin Control
367
Table 10.15 Mcscrx Settings and Mcs[X] Assertion Conditions (X: 0-7)
368
Section 11 Direct Memory Access Controller (DMAC)
371
Overview
371
Features
371
Block Diagram
373
Figure 11.1 Block Diagram of DMAC
373
Pin Configuration
374
Table 11.1 DMAC Pins
374
Register Configuration
375
Table 11.2 DMAC Registers
375
Register Descriptions
377
DMA Source Address Registers 0-3 (SAR0-SAR3)
377
DMA Destination Address Registers 0-3 (DAR0-DAR3)
378
DMA Transfer Count Registers 0-3 (DMATCR0-DMATCR3)
379
DMA Channel Control Registers 0-3 (CHCR0-CHCR3)
380
DMA Operation Register (DMAOR)
387
Operation
389
DMA Transfer Flow
389
Figure 11.2 DMAC Transfer Flowchart
390
DMA Transfer Requests
391
Table 11.3 Selecting External Request Modes with RS Bits
391
Table 11.4 Selecting On-Chip Peripheral Module Request Modes with RS3-0 Bits
392
Channel Priority
393
Figure 11.3 Round-Robin Mode
394
Figure 11.4 Changes in Channel Priority in Round-Robin Mode
395
DMA Transfer Types
396
Table 11.5 Supported DMA Transfers
396
Figure 11.5 Operation of Direct Address Mode in Dual Address Mode
397
Figure 11.6 Example of DMA Transfer Timing in the Direct Address Mode in Dual Mode (Transfer Source: Ordinary Memory, Transfer Destination: Ordinary Memory)
398
Figure 11.7 Indirect Address Operation in Dual Address Mode (When External Memory Space Has a 16-Bit Width)
399
Figure 11.8 Example of Transfer Timing in the Indirect Address Mode in Dual Address
400
Figure 11.9 Data Flow in Single Address Mode
401
Figure 11.10 Example of DMA Transfer Timing in Single Address Mode
402
Figure 11.11 Example of DMA Transfer Timing in Single Address Mode
403
Figure 11.12 Example of DMA Transfer in Cycle-Steal Mode
404
Figure 11.13 Example of Transfer in Burst Mode
404
Table 11.6 Relationship between Request Modes and Bus Modes by DMA Transfer Category
405
Figure 11.14 Bus State When Multiple Channels Are Operating
406
Number of Bus Cycle States and DREQ Pin Sampling Timing
407
Figure 11.15 Cycle-Steal Mode, Level Input (CPU Access: 2 Cycles)
409
Figure 11.16 Cycle-Steal Mode, Level Input (CPU Access: 3 Cycles)
410
Figure 11.17 Cycle-Steal Mode, Level Input
411
Figure 11.18 Cycle-Steal Mode, Level Input (CPU Access: 2 Cycles, DREQ Input Delayed)
412
Figure 11.19 Cycle-Steal Mode, Edge Input (CPU Access: 2 Cycles)
413
Figure 11.20 Burst Mode, Level Input
414
Figure 11.21 Burst Mode, Edge Input
415
Source Address Reload Function
416
Figure 11.22 Source Address Reload Function Diagram
416
Figure 11.23 Timing Chart of Source Address Reload Function
417
DMA Transfer Ending Conditions
418
Compare Match Timer (CMT)
420
Overview
420
Figure 11.24 Block Diagram of CMT
420
Register Descriptions
421
Table 11.7 Register Configuration
421
Operation
424
Figure 11.25 Counter Operation
424
Compare Match
425
Figure 11.26 Count Timing
425
Figure 11.27 CMF Setting Timing
426
Figure 11.28 Timing of CMF Clearing by the CPU
426
Examples of Use
427
Example of DMA Transfer between On-Chip Irda and External Memory
427
Table 11.8 Transfer Conditions and Register Settings for Transfer between On-Chip SCI and External Memory
427
Example of DMA Transfer between A/D Converter and External Memory
428
Table 11.9 Transfer Conditions and Register Settings for Transfer between On-Chip A/D Converter and External Memory
428
Example of DMA Transfer between External Memory and SCIF Transmitter (Indirect Address On)
429
Table 11.10 Values in DMAC after End of Fourth Transfer
429
Table 11.11 Transfer Conditions and Register Settings for Transfer between External Memory and SCIF Transmitter
430
Usage Notes
431
Section 12 Timer (TMU)
433
Overview
433
Features
433
Block Diagram
434
Figure 12.1 Block Diagram of TMU
434
Pin Configuration
435
Register Configuration
435
Table 12.1 TMU Pin
435
Table 12.2 TMU Registers
435
TMU Registers
436
Timer Output Control Register (TOCR)
436
Timer Start Register (TSTR)
436
Timer Control Registers (TCR)
437
Timer Constant Registers (TCOR)
441
Timer Counters (TCNT)
441
Input Capture Register (TCPR2)
443
TMU Operation
444
General Operation
444
Figure 12.2 Setting the Count Operation
445
Figure 12.3 Auto-Reload Count Operation
446
Figure 12.4 Count Timing When Operating on Internal Clock
446
Input Capture Function
447
Figure 12.5 Count Timing When Operating on External Clock (both Edges Detected)
447
Figure 12.6 Count Timing When Operating on On-Chip RTC Clock
447
Interrupts
448
Status Flag Setting Timing
448
Figure 12.7 Operation Timing When Using Input Capture Function (Using TCLK Rising Edge)
448
Figure 12.8 UNF Setting Timing
448
Status Flag Clearing Timing
449
Interrupt Sources and Priorities
449
Figure 12.9 Status Flag Clearing Timing
449
Table 12.3 TMU Interrupt Sources
449
Usage Notes
450
Writing to Registers
450
Reading Registers
450
Section 13 Realtime Clock (RTC)
451
Overview
451
Features
451
Block Diagram
452
Figure 13.1 Block Diagram of RTC
452
Pin Configuration
453
Table 13.1 RTC Pins
453
RTC Register Configuration
454
Table 13.2 RTC Registers
454
RTC Registers
455
64-Hz Counter (R64CNT)
455
Second Counter (RSECCNT)
455
Minute Counter (RMINCNT)
456
Hour Counter (RHRCNT)
456
Day of Week Counter (RWKCNT)
457
Table 13.3 Day-Of-Week Codes (RWKCNT)
457
Date Counter (RDAYCNT)
458
Month Counter (RMONCNT)
458
Year Counter (RYRCNT)
459
Second Alarm Register (RSECAR)
459
Minute Alarm Register (RMINAR)
460
Hour Alarm Register (RHRAR)
460
Day of Week Alarm Register (RWKAR)
461
Table 13.4 Day-Of-Week Codes (RWKAR)
461
Date Alarm Register (RDAYAR)
462
Month Alarm Register (RMONAR)
462
RTC Control Register 1 (RCR1)
463
RTC Control Register 2 (RCR2)
464
RTC Operation
466
Initial Settings of Registers after Power-On
466
Setting the Time
466
Figure 13.2 Setting the Time
466
Reading the Time
467
Figure 13.3 Reading the Time
467
Alarm Function
468
Figure 13.4 Using the Alarm Function
468
Crystal Oscillator Circuit
469
Figure 13.5 Example of Crystal Oscillator Circuit Connection
469
Table 13.5 Recommended Oscillator Circuit Constants (Recommended Values)
469
Usage Notes
470
Register Writing During RTC Count
470
Use of Realtime Clock (RTC) Periodic Interrupts
470
Precautions When Using RTC Module Standby
470
Figure 13.6 Using Periodic Interrupt Function
470
Section 14 Serial Communication Interface (SCI)
471
Overview
471
Features
471
Block Diagram
472
Figure 14.1 Block Diagram of SCI
472
Figure 14.2 SCPT[1]/SCK0 Pin
473
Figure 14.3 Scpt[0]/Txd0 Pin
474
Pin Configuration
475
Figure 14.4 Scpt[0]/Rxd0 Pin
475
Table 14.1 SCI Pins
475
Register Configuration
476
Register Descriptions
476
Receive Shift Register (SCRSR)
476
Table 14.2 SCI Registers
476
Receive Data Register (SCRDR)
477
Transmit Shift Register (SCTSR)
477
Transmit Data Register (SCTDR)
478
Serial Mode Register (SCSMR)
478
Serial Control Register (SCSCR)
481
Serial Status Register (SCSSR)
484
SC Port Control Register (SCPCR)/SC Port Data Register (SCPDR)
488
Bit Rate Register (SCBRR)
490
Table 14.3 SCSMR Settings
490
Table 14.4 Bit Rates and SCBRR Settings in Asynchronous Mode
491
Table 14.5 Bit Rates and SCBRR Settings in Synchronous Mode
494
Table 14.6 Maximum Bit Rates for Various Frequencies with Baud Rate Generator (Asynchronous Mode)
495
Table 14.7 Maximum Bit Rates with External Clock Input (Asynchronous Mode)
496
Table 14.8 Maximum Bit Rates with External Clock Input (Synchronous Mode)
496
Operation
497
Overview
497
Table 14.9 Serial Mode Register Settings and SCI Communication Formats
498
Table 14.10 SCSMR and SCSCR Settings and SCI Clock Source Selection
498
Operation in Asynchronous Mode
499
Figure 14.5 Example of Data Format in Asynchronous Communication (8-Bit Data with Parity and Two Stop Bits)
499
Table 14.11 Serial Communication Formats (Asynchronous Mode)
500
Figure 14.6 Output Clock and Serial Data Timing (Asynchronous Mode)
501
Figure 14.7 Sample Flowchart for SCI Initialization
502
Figure 14.8 Sample Flowchart for Transmitting Serial Data
503
Figure 14.9 Example of SCI Transmit Operation in Asynchronous Mode (8-Bit Data with Parity and One Stop Bit)
505
Figure 14.10 Sample Flowchart for Receiving Serial Data
506
Table 14.12 Receive Error Conditions and SCI Operation
508
Multiprocessor Communication
509
Figure 14.11 Example of SCI Receive Operation (8-Bit Data with Parity and One Stop Bit)
509
Figure 14.12 Communication Among Processors Using Multiprocessor Format (Sending Data H'AA to Receiving Processor A)
510
Figure 14.13 Sample Flowchart for Transmitting Multiprocessor Serial Data
511
Figure 14.14 Example of SCI Multiprocessor Transmit Operation (8-Bit Data with Multiprocessor Bit and One Stop Bit)
512
Figure 14.15 Sample Flowchart for Receiving Multiprocessor Serial Data
514
Figure 14.16 Example of SCI Receive Operation (8-Bit Data with Multiprocessor Bit and One Stop Bit)
516
Synchronous Operation
518
Figure 14.17 Data Format in Synchronous Communication
518
Figure 14.18 Sample Flowchart for SCI Initialization
520
Figure 14.19 Sample Flowchart for Transmitting Serial Data
521
Figure 14.20 Example of SCI Transmit Operation
522
Figure 14.21 Sample Flowchart for Receiving Serial Data
524
Figure 14.22 Example of SCI Receive Operation
526
Figure 14.23 Sample Flowchart for Transmitting/Receiving Serial Data
527
SCI Interrupts
528
Table 14.13 SCI Interrupt Sources
528
Usage Notes
529
Table 14.14 SCSSR Status Flags and Transfer of Receive Data
529
Figure 14.24 Receive Data Sampling Timing in Asynchronous Mode
530
Section 15 Smart Card Interface
533
Overview
533
Features
533
Block Diagram
534
Figure 15.1 Block Diagram of Smart Card Interface
534
Pin Configuration
535
Smart Card Interface Registers
535
Table 15.1 Smart Card Interface Pins
535
Table 15.2 Registers
535
Register Descriptions
536
Smart Card Mode Register (SCSCMR)
536
Serial Status Register (SCSSR)
537
Operation
538
Overview
538
Pin Connections
539
Figure 15.2 Pin Connection Diagram for Smart Card Interface
539
Data Format
540
Figure 15.3 Data Format for Smart Card Interface
540
Register Settings
541
Table 15.3 Register Settings for Smart Card Interface
541
Clock
542
Figure 15.4 Waveform of Start Character
542
Table 15.4 Relationship of N to CKS1 and CKS0
543
Table 15.5 Examples of Bit Rate B (Bits/S) for SCBRR Settings (N 0)
543
Table 15.6 Examples of SCBRR Settings for Bit Rate B (Bits/S) (N 0)
543
Table 15.7 Maximum Bit Rates for Frequencies (Smart Card Interface Mode)
544
Table 15.8 Register Set Values and SCK Pin
544
Data Transmission and Reception
545
Figure 15.5 Initialization Flowchart (Example)
546
Figure 15.6 Transmission Flowchart
548
Figure 15.7 Reception Flowchart (Example)
550
Usage Notes
551
Receive Data Timing and Receive Margin in Asynchronous Mode
551
Table 15.9 Smart Card Mode Operating State and Interrupt Sources
551
Figure 15.8 Receive Data Sampling Timing in Smart Card Mode
552
Retransmission (Receive and Transmit Modes)
553
Figure 15.9 Retransmission in SCI Receive Mode
553
Figure 15.10 Retransmission in SCI Transmit Mode
554
Section 16 Serial Communication Interface with FIFO (SCIF)
555
Overview
555
Features
555
Block Diagram
556
Figure 16.1 Block Diagram of SCIF
556
Figure 16.2 SCPT[5]/SCK2 Pin
557
Figure 16.3 Scpt[4]/Txd2 Pin
558
Pin Configuration
559
Figure 16.4 Scpt[4]/Rxd2 Pin
559
Table 16.1 SCIF Pins
559
Register Configuration
560
Table 16.2 SCIF Registers
560
Register Descriptions
561
Receive Shift Register (SCRSR)
561
Receive FIFO Data Register (SCFRDR)
561
Transmit Shift Register (SCTSR)
561
Transmit FIFO Data Register (SCFTDR)
562
Serial Mode Register (SCSMR)
562
Serial Control Register (SCSCR)
564
Serial Status Register (SCSSR)
566
Bit Rate Register (SCBRR)
571
Table 16.3 SCSMR Settings
572
Table 16.4 Bit Rates and SCBRR Settings
572
Table 16.5 Maximum Bit Rates for Various Frequencies with Baud Rate Generator (Asynchronous Mode)
576
Table 16.6 Maximum Bit Rates with External Clock Input (Asynchronous Mode)
577
FIFO Control Register (SCFCR)
578
FIFO Data Count Register (SCFDR)
580
Operation
581
Overview
581
Table 16.7 SCSMR Settings and SCIF Communication Formats
581
Serial Operation
582
Table 16.8 SCSCR Settings and SCIF Clock Source Selection
582
Table 16.9 Serial Communication Formats
582
Figure 16.5 Sample Flowchart for SCIF Initialization
584
Figure 16.6 Sample Flowchart for Transmitting Serial Data
586
Figure 16.7 Example of Transmit Operation (8-Bit Data, Parity, One Stop Bit)
588
Figure 16.8 Example of Operation Using Modem Control (CTS)
588
Figure 16.9 Sample Flowchart for Receiving Serial Data
590
Figure 16.10 Sample Flowchart for Receiving Serial Data (Cont)
591
Figure 16.11 Example of SCIF Receive Operation (8-Bit Data, Parity, One Stop Bit)
593
Figure 16.12 Example of Operation Using Modem Control (RTS)
593
SCIF Interrupts
594
Table 16.10 SCIF Interrupt Sources
594
Usage Notes
595
Figure 16.13 Receive Data Sampling Timing in Asynchronous Mode
596
Section 17 Irda
599
Overview
599
Features
599
Block Diagram
600
Figure 17.1 Block Diagram of Irda
600
Figure 17.2 SCPT[3]/SCK1 Pin
601
Figure 17.3 Scpt[2]/Txd1 Pin
602
Pin Configuration
603
Figure 17.4 Scpt[2]/Rxd1 Pin
603
Table 17.1 Irda Pins
603
Register Configuration
604
Table 17.2 Irda Registers
604
Register Description
605
Serial Mode Register (SCSMR)
605
Operation Description
607
Overview
607
Transmitting
607
Receiving
608
Figure 17.5 Transmit/Receive Operation
608
Section 18 Pin Function Controller
609
Overview
609
Table 18.1 List of Multiplexed Pins
609
Register Configuration
613
Table 18.2 Pin Function Controller Registers
613
Register Descriptions
614
Port a Control Register (PACR)
614
Port B Control Register (PBCR)
615
Port C Control Register (PCCR)
616
Port D Control Register (PDCR)
617
Port E Control Register (PECR)
618
Port F Control Register (PFCR)
619
Port G Control Register
620
Port H Control Register (PHCR)
621
Port J Control Register (PJCR)
623
Port K Control Register (PKCR)
624
Port L Control Register (PLCR)
625
SC Port Control Register (SCPCR)
626
Section 19 I/O Ports
631
Overview
631
Port a
631
Register Description
631
Figure 19.1 Port a
631
Table 19.1 Port a Register
631
Port a Data Register (PADR)
632
Table 19.2 Port a Data Register (PADR) Read/Write Operations
632
Port B
633
Register Description
633
Figure 19.2 Port B
633
Table 19.3 Port B Register
633
Port B Data Register (PBDR)
634
Table 19.4 Port B Data Register (PBDR) Read/Write Operations
634
Port C
635
Register Description
635
Figure 19.3 Port C
635
Table 19.5 Port C Register
635
Port C Data Register (PCDR)
636
Table 19.6 Port C Data Register (PCDR) Read/Write Operations
636
Port D
637
Register Description
637
Figure 19.4 Port D
637
Table 19.7 Port D Register
637
Port D Data Register (PDDR)
638
Table 19.8 Port D Data Register (PDDR) Read/Write Operations
638
Port E
639
Register Description
639
Figure 19.5 Port E
639
Table 19.9 Port E Register
639
Port E Data Register (PEDR)
640
Table 19.10 Port E Data Register (PEDR) Read/Write Operations
640
Port F
641
Register Description
641
Figure 19.6 Port F
641
Table 19.11 Port F Register
641
Port F Data Register (PFDR)
642
Table 19.12 Port F Data Register (PFDR) Read/Write Operations
642
Port G
643
Register Description
643
Figure 19.7 Port G
643
Table 19.13 Port G Register
643
Port G Data Register
644
Table 19.14 Port G Data Register (PGDR) Read/Write Operations
644
Port H
645
Register Description
645
Figure 19.8 Port H
645
Table 19.15 Port H Register
645
Port H Data Register (PHDR)
646
Table 19.16 Port H Data Register (PHDR) Read/Write Operations
646
Port J
647
19.10.1 Register Description
647
Figure 19.9 Port J
647
Table 19.17 Port J Register
647
Port J Data Register (PJDR)
648
Table 19.18 Port J Data Register (PJDR) Read/Write Operations
648
Port K
649
19.11.1 Register Description
649
Figure 19.10 Port K
649
Table 19.19 Port K Register
649
Port K Data Register (PKDR)
650
Table 19.20 Port K Data Register (PKDR) Read/Write Operations
650
Port L
651
19.12.1 Register Description
651
Figure 19.11 Port L
651
Table 19.21 Port L Register
651
Port L Data Register (PLDR)
652
Table 19.22 Port L Data Register (PLDR) Read/Write Operation
652
SC Port
653
19.13.1 Register Description
653
Figure 19.12 SC Port
653
Table 19.23 SC Port Register
653
SC Port Data Register (SCPDR)
654
Table 19.24 Read/Write Operation of the SC Port Data Register (SCPDR)
655
Section 20 A/D Converter
657
Overview
657
Features
657
Block Diagram
658
Figure 20.1 Block Diagram of A/D Converter
658
Input Pins
659
Table 20.1 A/D Converter Pins
659
Register Configuration
660
Table 20.2 A/D Converter Registers
660
Register Descriptions
661
A/D Data Registers a to D (ADDRA to ADDRD)
661
Table 20.3 Analog Input Channels and A/D Data Registers
661
A/D Control/Status Register (ADCSR)
662
A/D Control Register (ADCR)
665
Bus Master Interface
666
Figure 20.2 A/D Data Register Access Operation (Reading H'AA40)
666
Operation
667
Single Mode (MULTI = 0)
667
Figure 20.3 Example of A/D Converter Operation (Single Mode, Channel 1 Selected)
668
Multi Mode (MULTI = 1, SCN = 0)
669
Figure 20.4 Example of A/D Converter Operation (Multi Mode, Channels AN0 to AN2 Selected)
670
Scan Mode (MULTI = 1, SCN = 1)
671
Figure 20.5 Example of A/D Converter Operation (Scan Mode, Channels AN0 to AN2 Selected)
672
Input Sampling and A/D Conversion Time
673
Figure 20.6 A/D Conversion Timing
673
External Trigger Input Timing
674
Figure 20.7 External Trigger Input Timing
674
Table 20.4 A/D Conversion Time (Single Mode)
674
Interrupts
675
Definitions of A/D Conversion Accuracy
675
Usage Notes
676
Setting Analog Input Voltage
676
Processing of Analog Input Pins
676
Figure 20.8 Definitions of A/D Conversion Accuracy
676
Access Size and Read Data
677
Figure 20.9 Example of Analog Input Protection Circuit
677
Figure 20.10 Analog Input Pin Equivalent Circuit
677
Table 20.5 Analog Input Pin Ratings
678
Table 20.6 Relationship between Access Size and Read Data
678
Section 21 D/A Converter
679
Overview
679
Features
679
Block Diagram
679
Figure 21.1 Block Diagram of D/A Converter
679
I/O Pins
680
Register Configuration
680
Table 21.1 D/A Converter Pins
680
Table 21.2 D/A Converter Registers
680
Register Descriptions
681
D/A Data Registers 0 and 1 (DADR0/1)
681
D/A Control Register (DACR)
681
Operation
683
Figure 21.2 Example of D/A Converter Operation
683
Section 22 User Debugging Interface (UDI)
685
Overview
685
User Debugging Interface (UDI)
685
Pin Descriptions
685
Block Diagram
686
Register Descriptions
686
Figure 22.1 Block Diagram of UDI
686
Bypass Register (SDBPR)
687
Instruction Register (SDIR)
687
Table 22.1 UDI Registers
687
Boundary Scan Register (SDBSR)
688
Table 22.2 UDI Commands
688
Table 22.3 Pins of this LSI and Boundary Scan Register Bits
689
UDI Operation
695
TAP Controller
695
Figure 22.2 TAP Controller State Transitions
695
Reset Configuration
696
Table 22.4 Reset Configuration
696
UDI Reset
697
UDI Interrupt
697
Bypass
697
Using UDI to Recover from Sleep Mode
697
Figure 22.3 UDI Reset
697
Boundary Scan
698
Supported Instructions
698
Points for Attention
699
Usage Notes
699
Advanced User Debugger (AUD)
699
Section 23 Electrical Characteristics
701
Absolute Maximum Ratings
701
Table 23.1 Absolute Maximum Ratings
701
DC Characteristics
703
Table 23.2 DC Characteristics
703
Table 23.3 Permitted Output Current Values
706
AC Characteristics
707
Table 23.4 Operating Frequency Range
707
Clock Timing
708
Table 23.5 Clock Timing
708
Figure 23.1 EXTAL Clock Input Timing
709
Figure 23.2 CKIO Clock Input Timing
709
Figure 23.3 CKIO Clock Output Timing
709
Figure 23.4 Power-On Oscillation Settling Time
710
Figure 23.5 Oscillation Settling Time at Standby Return (Return by Reset)
710
Figure 23.6 Oscillation Settling Time at Standby Return (Return by NMI)
711
Figure 23.7 Oscillation Settling Time at Standby Return
711
Figure 23.8 PLL Synchronization Settling Time During Standby Recovery (Reset or NMI)
712
Figure 23.9 PLL Synchronization Settling Time During Standby Recovery
712
Figure 23.10 PLL Synchronization Settling Time When Frequency Multiplication Rate Modified
713
Control Signal Timing
714
Table 23.6 Control Signal Timing
714
Figure 23.11 Reset Input Timing
715
Figure 23.12 Interrupt Signal Input Timing
715
Figure 23.13 IRQOUT Timing
715
Figure 23.14 Bus Release Timing
716
Figure 23.15 Pin Drive Timing at Standby
716
AC Bus Timing
717
Table 23.7 Bus Timing
717
Basic Timing
719
Figure 23.16 Basic Bus Cycle (no Wait)
719
Figure 23.17 Basic Bus Cycle (One Wait)
720
Figure 23.18 Basic Bus Cycle (External Wait, WAITSEL = 1)
721
Burst ROM Timing
722
Figure 23.19 Burst ROM Bus Cycle (no Wait)
722
Figure 23.20 Burst ROM Bus Cycle (Two Waits)
723
Figure 23.21 Burst ROM Bus Cycle (External Wait, WAITSEL = 1)
724
Figure 23.22 Synchronous DRAM Read Bus Cycle (RCD 0, CAS Latency 1, TPC 0)
725
Synchronous DRAM Timing
725
Figure 23.23 Synchronous DRAM Read Bus Cycle (RCD 2, CAS Latency 2, TPC 1)
726
Figure 23.24 Synchronous DRAM Read Bus Cycle (Burst Read (Single Read 4)
727
Figure 23.24 Synchronous DRAM Read Bus Cycle (Burst Read (Single Read RCD 0, CAS Latency 1, TPC 1)
727
Figure 23.25 Synchronous DRAM Read Bus Cycle (Burst Read (Single Read 4), RCD 1, CAS Latency 3, TPC 0)
728
Figure 23.26 Synchronous DRAM Write Bus Cycle (RCD 0, TPC 0, TRWL = 0)
729
Figure 23.27 Synchronous DRAM Write Bus Cycle (RCD 2, TPC 1, TRWL = 1)
730
Figure 23.28 Synchronous DRAM Write Bus Cycle (Burst Mode (Single Write 4)
731
Figure 23.29 Synchronous DRAM Write Bus Cycle (Burst Mode (Single Write 4)
732
Figure 23.29 Synchronous DRAM Write Bus Cycle (Burst Mode (Single Write RCD 1, TPC 0, TRWL = 0)
732
Figure 23.30 Synchronous DRAM Burst Read Bus Cycle (RAS Down, same Row Address, CAS Latency = 1)
733
Figure 23.31 Synchronous DRAM Burst Read Bus Cycle (RAS Down, same Row Address, CAS Latency = 2)
734
Figure 23.32 Synchronous DRAM Burst Read Bus Cycle (RAS Down, Different Row Address, TPC = 0, RCD = 0, CAS Latency = 1)
735
Figure 23.33 Synchronous DRAM Burst Read Bus Cycle (RAS Down, Different Row Address, TPC = 1, RCD = 0, CAS Latency = 1)
736
Figure 23.34 Synchronous DRAM Burst Write Bus Cycle (RAS Down, same Row Address)
737
Figure 23.35 Synchronous DRAM Burst Write Bus Cycle (RAS Down, Different Row Address, TPC = 0, RCD = 0)
738
Figure 23.36 Synchronous DRAM Burst Write Bus Cycle (RAS Down, Different Row Address, TPC = 1, RCD = 1)
739
Figure 23.37 Synchronous DRAM Auto-Refresh Timing (tras = 1, TPC = 1)
740
Figure 23.38 Synchronous DRAM Self-Refresh Cycle (tras 1, TPC 1)
741
Figure 23.39 Synchronous DRAM Mode Register Write Cycle
742
Figure 23.40 PCMCIA Memory Bus Cycle (TED = 0, TEH = 0, no Wait)
743
PCMCIA Timing
743
Figure 23.41 PCMCIA Memory Bus Cycle
744
Figure 23.42 PCMCIA Memory Bus Cycle (Burst Read, TED = 0, TEH = 0, no Wait)
745
Figure 23.43 PCMCIA Memory Bus Cycle (Burst Read, TED = 1, TEH = 1, Two Waits, Burst Pitch = 3, WAITSEL = 1)
746
Figure 23.44 PCMCIA I/O Bus Cycle (TED = 0, TEH = 0, no Wait)
747
Figure 23.45 PCMCIA I/O Bus Cycle
748
Figure 23.46 PCMCIA I/O Bus Cycle
749
Peripheral Module Signal Timing
750
Table 23.8 Peripheral Module Signal Timing
750
Figure 23.47 TCLK Input Timing
751
Figure 23.48 TCLK Clock Input Timing
751
Figure 23.49 Oscillation Settling Time at RTC Crystal Oscillator Power-On
751
Figure 23.50 SCK Input Clock Timing
751
Figure 23.51 SCI I/O Timing in Clock Synchronous Mode
752
Figure 23.52 I/O Port Timing
752
Figure 23.53 DREQ Input Timing
752
Figure 23.54 DRAK Output Timing
753
Figure 23.55 TCK Input Timing
753
Table 23.9 UDI-Related Pin Timing
753
UDI-Related Pin Timing
753
Figure 23.56 TRST Input Timing (Reset Hold)
754
Figure 23.57 UDI Data Transfer Timing
754
Figure 23.58 ASEMD0 Input Timing
754
23.3.10 AC Characteristics Measurement Conditions
755
Figure 23.59 Output Load Circuit
755
23.3.11 Delay Time Variation Due to Load Capacitance
756
Figure 23.60 Load Capacitance Vs. Delay Time
756
A/D Converter Characteristics
757
D/A Converter Characteristics
757
Table 23.10 A/D Converter Characteristics
757
Table 23.11 D/A Converter Characteristics
757
Appendix A Pin Functions
759
Pin States
759
Table A.1 Pin States During Resets, Power-Down States, and Bus-Released State
759
Pin Specifications
763
Table A.2 Pin Specifications
763
Treatment of Unused Pins
768
Pin States in Access to each Address Space
769
Table A.3 Pin States (Ordinary Memory/Little Endian)
769
Table A.4 Pin States (Ordinary Memory/Big Endian)
771
Table A.5 Pin States (Burst Rom/Little Endian)
773
Table A.6 Pin States (Burst Rom/Big Endian)
775
Table A.7 Pin States (Synchronous Dram/Little Endian)
777
Table A.8 Pin States (Synchronous Dram/Big Endian)
778
Table A.9 Pin States (Pcmcia/Little Endian)
779
Table A.10 Pin States (Pcmcia/Big Endian)
781
Appendix B Memory-Mapped Control Registers
783
Register Address Map
783
Table B.1 Memory-Mapped Control Registers
783
Register Bits
789
Table B.2 Register Bits
789
Appendix C Product Lineup
801
Table C.1 SH7709S Models
801
Appendix D Package Dimensions
802
Figure D.1 Package Dimensions (FP-208C)
802
Figure D.2 Package Dimensions (FP-208E)
803
Figure D.3 Package Dimensions (BP-240A)
804
Advertisement
Advertisement
Related Products
Renesas SuperH SH7700 Series
Renesas SH7705
Renesas SH7706 Series
Renesas SuperH SH7710 E10A
Renesas SH7785
Renesas SH7751 Group
Renesas SH7751R Group
Renesas SH7763
Renesas SH7780 Series
Renesas SH7750 Series
Renesas Categories
Computer Hardware
Motherboard
Microcontrollers
Adapter
Switch
More Renesas Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL