Sign In
Upload
Manuals
Brands
Renesas Manuals
Computer Hardware
SH7780 Series
Renesas SH7780 Series Microcontrollers Manuals
Manuals and User Guides for Renesas SH7780 Series Microcontrollers. We have
1
Renesas SH7780 Series Microcontrollers manual available for free PDF download: Hardware Manual
Renesas SH7780 Series Hardware Manual (1340 pages)
Renesas 32-Bit RISC Microcomputer SuperH RISC Engine Family
Brand:
Renesas
| Category:
Computer Hardware
| Size: 7.76 MB
Table of Contents
General Precautions on Handling of Product
4
Preface
6
Table of Contents
9
Section 1 Overview
51
SH7780 Features
51
Section 1 Overview
52
Table 1.1 SH7780 Features
52
Contents
54
Block Diagram
59
Figure 1.1 SH7780 Block Diagram
59
Pin Arrangement
60
Figure 1.2 SH7780 Pin Arrangement
60
Pin Functions
61
Table 1.2 Pin Functions
61
Memory Address Map
77
Figure 1.3 Physical Address Space of SH7780
78
Figure 1.4 Relationship between AREASEL Bits and Memory Address Map
79
Superhyway Bus
80
Superhyway Memory (Superhyway RAM)
81
Section 2 Programming Model
83
Data Formats
83
Figure 2.1 Data Formats
83
Register Descriptions
84
Privileged Mode and Banks
84
Table 2.1 Initial Register Values
85
Figure 2.2 CPU Register Configuration in each Processing Mode
86
Index
86
General Registers
87
Figure 2.3 General Registers
87
Floating-Point Registers
88
Figure 2.4 Floating-Point Registers
89
Control Registers
90
System Registers
92
Figure 2.5 Relationship between SZ Bit and Endian
95
Table 2.2 Bit Allocation for FPU Exception Handling
95
Memory-Mapped Registers
96
Data Formats in Registers
97
Figure 2.6 Formats of Byte Data and Word Data in Register
97
Data Formats in Memory
98
Figure 2.7 Data Formats in Memory
98
Processing States
99
Figure 2.8 Processing State Transitions
99
Usage Note
100
Notes on Self-Modified Codes
100
Section 3 Instruction Set
101
Execution Environment
101
Addressing Modes
103
Table 3.2 Addressing Modes and Effective Addresses
103
Instruction Set
107
Table 3.3 Notation Used in Instruction List
107
Table 3.4 Fixed-Point Transfer Instructions
109
Table 3.5 Arithmetic Operation Instructions
111
Table 3.6 Logic Operation Instructions
113
Table 3.7 Shift Instructions
114
Table 3.8 Branch Instructions
115
Table 3.9 System Control Instructions
116
Table 3.10 Floating-Point Single-Precision Instructions
119
Table 3.11 Floating-Point Double-Precision Instructions
120
Table 3.12 Floating-Point Control Instructions
120
Table 3.13 Floating-Point Graphics Acceleration Instructions
121
Section 4 Pipelining
123
Pipelines
123
Figure 4.1 Basic Pipelines
123
Table 4.1 Representations of Instruction Execution Patterns
124
Figure 4.2 Instruction Execution Patterns (1)
125
Figure 4.2 Instruction Execution Patterns (2)
126
Figure 4.2 Instruction Execution Patterns (3)
127
Figure 4.2 Instruction Execution Patterns (4)
128
Figure 4.2 Instruction Execution Patterns (5)
129
Figure 4.2 Instruction Execution Patterns (6)
130
Figure 4.2 Instruction Execution Patterns (7)
131
Figure 4.2 Instruction Execution Patterns (8)
132
Figure 4.2 Instruction Execution Patterns (9)
133
Parallel-Executability
134
Table 4.2 Instruction Groups
134
Table 4.3 Combination of Preceding and Following Instructions
136
Issue Rates and Execution Cycles
137
Table 4.4 Issue Rates and Execution Cycles
138
Section 5 Exception Handling
147
Summary of Exception Handling
147
Register Descriptions
147
Table 5.1 Register Configuration
147
Table 5.2 States of Register in each Operating Mode
147
TRAPA Exception Register (TRA)
148
Exception Event Register (EXPEVT)
149
Interrupt Event Register (INTEVT)
150
Exception Handling Functions
151
Exception Handling Flow
151
Exception Handling Vector Addresses
151
Exception Types and Priorities
152
Table 5.3 Exceptions
152
Exception Flow
154
Figure 5.1 Instruction Execution and Exception Handling
155
Exception Source Acceptance
156
Figure 5.2 Example of General Exception Acceptance Order
156
Exception Requests and BL Bit
157
Return from Exception Handling
157
Description of Exceptions
158
Resets
158
General Exceptions
160
Interrupts
174
Priority Order with Multiple Exceptions
175
Usage Notes
177
Section 6 Floating-Point Unit (FPU)
179
Features
179
Data Formats
180
Floating-Point Format
180
Figure 6.1 Format of Single-Precision Floating-Point Number
180
Figure 6.2 Format of Double-Precision Floating-Point Number
180
Table 6.2 Floating-Point Ranges
182
Non-Numbers (Nan)
183
Figure 6.3 Single-Precision Nan Bit Pattern
183
Denormalized Numbers
184
Register Descriptions
185
Floating-Point Registers
185
Figure 6.4 Floating-Point Registers
186
Floating-Point Status/Control Register (FPSCR)
187
Figure 6.5 Relation between SZ Bit and Endian
189
Floating-Point Communication Register (FPUL)
190
Table 6.3 Bit Allocation for FPU Exception Handling
190
Rounding
191
Floating-Point Exceptions
192
General FPU Disable Exceptions and Slot FPU Disable Exceptions
192
FPU Exception Sources
192
FPU Exception Handling
192
Graphics Support Functions
194
Geometric Operation Instructions
194
Pair Single-Precision Data Transfer
195
Section 7 Memory Management Unit (MMU)
197
Overview of MMU
197
Address Spaces
199
Figure 7.1 Role of MMU
199
Figure 7.2 Virtual Address Space (at in MMUCR = 0)
200
Figure 7.3 Virtual Address Space (at in MMUCR = 1)
201
Figure 7.4 P4 Area
203
Figure 7.5 Physical Address Space
204
Register Descriptions
206
Table 7.1 Register Configuration
206
Table 7.2 Register States in each Processing State
206
Page Table Entry High Register (PTEH)
207
Page Table Entry Low Register (PTEL)
208
TLB Exception Address Register (TEA)
209
Translation Table Base Register (TTB)
209
MMU Control Register (MMUCR)
210
Physical Address Space Control Register (PASCR)
214
Instruction Re-Fetch Inhibit Control Register (IRMCR)
215
TLB Functions
217
Unified TLB (UTLB) Configuration
217
Figure 7.6 UTLB Configuration
217
Figure 7.7 Relationship between Page Size and Address Format
219
Instruction TLB (ITLB) Configuration
220
Figure 7.8 ITLB Configuration
220
Address Translation Method
221
Figure 7.9 Flowchart of Memory Access Using UTLB
221
Figure 7.10 Flowchart of Memory Access Using ITLB
222
MMU Functions
223
MMU Hardware Management
223
MMU Software Management
223
MMU Instruction (LDTLB)
224
Hardware ITLB Miss Handling
225
Figure 7.11 Operation of LDTLB Instruction
225
Avoiding Synonym Problems
226
MMU Exceptions
227
Instruction TLB Multiple Hit Exception
227
Instruction TLB Miss Exception
228
Instruction TLB Protection Violation Exception
229
Data TLB Multiple Hit Exception
230
Data TLB Miss Exception
230
Data TLB Protection Violation Exception
231
Initial Page Write Exception
232
Memory-Mapped TLB Configuration
233
ITLB Address Array
234
Figure 7.12 Memory-Mapped ITLB Address Array
234
ITLB Data Array
235
Figure 7.13 Memory-Mapped ITLB Data Array
235
UTLB Address Array
236
UTLB Data Array
237
Figure 7.14 Memory-Mapped UTLB Address Array
237
32-Bit Address Extended Mode
238
Figure 7.15 Memory-Mapped UTLB Data Array
238
Figure 7.16 Physical Address Space (32-Bit Address Extended Mode)
238
Overview of 32-Bit Address Extended Mode
239
Privileged Space Mapping Buffer (PMB) Configuration
239
Transition to 32-Bit Address Extended Mode
239
Figure 7.17 PMB Configuration
240
PMB Function
241
Memory-Mapped PMB Configuration
242
Figure 7.18 Memory-Mapped PMB Address Array
243
Figure 7.19 Memory-Mapped PMB Data Array
243
Notes on Using 32-Bit Address Extended Mode
244
Section 8 Caches
247
Features
247
Table 8.2 Store Queue Features
247
Figure 8.1 Configuration of Operand Cache (OC)
248
Figure 8.2 Configuration of Instruction Cache (IC)
249
Register Descriptions
250
Table 8.3 Register Configuration
250
Table 8.4 Register States in each Processing State
250
Table 9.2 Register Configuration
250
Cache Control Register (CCR)
251
Queue Address Control Register 0 (QACR0)
253
Queue Address Control Register 1 (QACR1)
254
On-Chip Memory Control Register (RAMCR)
255
Operand Cache Operation
257
Read Operation
257
Prefetch Operation
258
Write Operation
259
Write-Back Buffer
261
Write-Through Buffer
261
OC Two-Way Mode
261
Figure 8.3 Configuration of Write-Back Buffer
261
Figure 8.4 Configuration of Write-Through Buffer
261
Instruction Cache Operation
262
Read Operation
262
Prefetch Operation
263
IC Two-Way Mode
263
Cache Operation Instruction
264
Coherency between Cache and External Memory
264
Prefetch Operation
265
Memory-Mapped Cache Configuration
266
IC Address Array
267
Figure 8.5 Memory-Mapped IC Address Array
268
IC Data Array
269
Figure 8.6 Memory-Mapped IC Data Array
269
OC Address Array
270
Figure 8.7 Memory-Mapped OC Address Array
271
OC Data Array
272
Figure 8.8 Memory-Mapped OC Data Array
272
Store Queues
273
SQ Configuration
273
Writing to SQ
273
Figure 8.9 Store Queue Configuration
273
Transfer to External Memory
274
Determination of SQ Access Exception
275
Reading from SQ
275
Notes on Using 32-Bit Address Extended Mode
276
Section 9 L Memory
277
Features
277
Register Descriptions
278
Table 9.3 Register Status in each Processing State
278
On-Chip Memory Control Register (RAMCR)
279
L Memory Transfer Source Address Register 0 (LSA0)
280
L Memory Transfer Source Address Register 1 (LSA1)
282
L Memory Transfer Destination Address Register 0 (LDA0)
284
L Memory Transfer Destination Address Register 1 (LDA1)
286
Operation
288
Access from the CPU and FPU
288
Access from the Superhyway Bus Master Module
288
Block Transfer
288
L Memory Protective Functions
290
Table 9.4 Protective Function Exceptions to Access L Memory
290
Usage Notes
291
Page Conflict
291
L Memory Coherency
291
Sleep Mode
291
Note on Using 32-Bit Address Extended Mode
291
Section 10 Interrupt Controller (INTC)
293
Features
293
Figure 10.1 Block Diagram of INTC
294
Interrupt Method
295
Interrupt Types in INTC
296
Table 10.1 Interrupt Types
296
Input/Output Pins
300
Table 10.2 INTC Pin Configuration
300
Register Descriptions
301
Table 10.3 INTC Register Configuration
301
Table 10.4 Register States in each Operating Mode
303
Interrupt Control Register 0 (ICR0)
305
Interrupt Control Register 1 (ICR1)
308
Interrupt Priority Register (INTPRI)
309
Interrupt Source Register (INTREQ)
310
Interrupt Mask Registers (INTMSK0 to INTMSK2)
311
Interrupt Mask Clear Registers (INTMSKCLR0 to INTMSKCLR2)
316
NMI Flag Control Register (NMIFCR)
321
User Interrupt Mask Level Register (USERIMASK)
323
On-Chip Module Interrupt Priority Registers (INT2PRI0 to INT2PRI7)
326
Table 10.5 Interrupt Request Sources and INT2PRI0 to INT2PRI7
326
Interrupt Source Register (INT2A0: Not Affected by Mask States)
327
Table 10.6 Correspondence between Bits in INT2A0 and Sources
327
Interrupt Source Register (INT2A1: Affected by Mask States)
330
Table 10.7 Correspondence between Bits in INT2A1 and Sources
330
Interrupt Mask Register (INT2MSKR)
332
Table 10.8 Correspondence between Bits in INT2MSKR and Interrupt Masking
333
Interrupt Mask Clear Register (INT2MSKCR)
335
Table 10.9 Correspondence between Bits in INT2MSKCR and Interrupt Mask Clearing
335
On-Chip Module Interrupt Source Registers (INT2B0 to INT2B7)
337
GPIO Interrupt Set Register (INT2GPIC)
344
Table 10.10 Correspondence between Interrupt Input Pins and Bits in INT2GPIC
345
Interrupt Sources
346
NMI Interrupt
346
IRQ Interrupts
346
IRL Interrupts
347
Figure 10.2 Example of IRL Interrupt Connection
347
Table 10.11 IRL[3:0], IRL[7:4] Pins and Interrupt Levels
348
On-Chip Module Interrupts
349
Interrupt Priority Levels of On-Chip Module Interrupts
350
Interrupt Exception Handling and Priority
351
Figure 10.3 On-Chip Module Interrupt Priority
351
Table 10.12 Interrupt Exception Handling and Priority
352
Operation
358
Interrupt Sequence
358
Figure 10.4 Interrupt Operation Flowchart
359
Multiple Interrupts
360
Interrupt Masking by MAI Bit
360
Interrupt Response Time
361
Table 10.13 Interrupt Response Time
361
Usage Notes
362
To Clear Interrupt Request When Holding Function Selected
362
Figure 10.5 Example of Interrupt Handling Routine
362
Notes on Setting IRQ/IRL[7:0] Pin Function
363
To Clear IRQ and IRL Interrupt Requests
363
Table 10.14 Switching Sequence of IRQ/IRL[7:0] Pin Function
363
Section 11 Local Bus State Controller (LBSC)
365
Features
365
Figure 11.1 LBSC Block Diagram
367
Input/Output Pins
368
Table 11.1 Pin Configuration
368
Area Overview
370
Space Divisions
370
Figure 11.2 Correspondence between Virtual Address Space and External Memory Space of LBSC
371
Table 11.2 LBSC External Memory Space Map
372
Figure 11.3 External Memory Space Allocation (29-Bit Address Mode)
373
Memory Bus Width
374
Table 11.3 Correspondence between External Pins (MODE4 and MODE3)
374
Data Alignment
375
PCMCIA Support
375
Table 11.4 Correspondence between External Pin (MODE5) and Endian
375
Table 11.5 PCMCIA Interface Features
375
Table 11.6 PCMCIA Support Interface
376
Register Descriptions
379
Table 11.7 Register Configuration
379
Table 11.8 Register State in each Processing Mode
380
Memory Address Map Select Register (MMSELR)
381
Bus Control Register (BCR)
383
Csn Bus Control Register (Csnbcr)
386
Csn Wait Control Register (Csnwcr)
392
Csn PCMCIA Control Register (Csnpcr)
397
Operation
402
Endian/Access Size and Data Alignment
402
Table 11.9 32-Bit External Device/Big-Endian Access and Data Alignment
403
Table 11.10 16-Bit External Device/Big-Endian Access and Data Alignment
403
Table 11.11 8-Bit External Device/Big-Endian Access and Data Alignment
404
Table 11.12 32-Bit External Device/Little-Endian Access and Data Alignment
405
Table 11.13 16-Bit External Device/Little-Endian Access and Data Alignment
405
Table 11.14 8-Bit External Device/Little-Endian Access and Data Alignment
406
Areas
407
SRAM Interface
411
Figure 11.4 Basic Timing of SRAM Interface
412
Figure 11.5 Example of 32-Bit Data-Width SRAM Connection
413
Figure 11.6 Example of 16-Bit Data-Width SRAM Connection
414
Figure 11.7 Example of 8-Bit Data-Width SRAM Connection
415
Figure 11.8 SRAM Interface Wait Timing (Software Wait Only)
416
Figure 11.9 SRAM Interface Wait Timing (Wait Cycle Insertion by RDY Signal, RDY Signal Is Synchronous Input)
417
Figure 11.10 SRAM Interface Wait Timing (Read-Strobe Negate Timing Setting)
419
Burst ROM (Clock Asynchronous) Interface
420
Figure 11.11 Burst ROM Basic Timing
421
Figure 11.12 Burst ROM Wait Timing
421
PCMCIA Interface
422
Figure 11.13 Burst ROM Wait Timing
422
Figure 11.14 Cexx and DACK Output of ATA Complement Mode in DMA Transfer
424
Table 11.15 Relationship between Address and CE When Using PCMCIA Interface
425
Figure 11.15 Example of PCMCIA Interface
427
Figure 11.16 Basic Timing for PCMCIA Memory Card Interface
428
Figure 11.17 Wait Timing for PCMCIA Memory Card Interface
429
Figure 11.18 Basic Timing for PCMCIA I/O Card Interface
430
Figure 11.19 Wait Timing for PCMCIA I/O Card Interface
431
Figure 11.20 Dynamic Bus Sizing Timing for PCMCIA I/O Card Interface
432
MPX Interface
433
Table 11.16 Relationship between D31 to D29 and Access Size in Address Phase
433
Figure 11.21 Example of 32-Bit Data Width MPX Connection
434
Figure 11.22 MPX Interface Timing 1 (Single Read Cycle, IW = 0, no External Wait)
434
Figure 11.23 MPX Interface Timing 2 (Single Read, IW = 0, One External Wait Inserted)
435
Figure 11.24 MPX Interface Timing 3 (Single Write Cycle, IW = 0, no External Wait)
435
Figure 11.25 MPX Interface Timing
436
Figure 11.26 MPX Interface Timing 5
436
Figure 11.27 MPX Interface Timing 6
437
Figure 11.28 MPX Interface Timing 7
437
Figure 11.29 MPX Interface Timing 8
438
Byte Control SRAM Interface
439
Figure 11.30 Example of 32-Bit Data-Width Byte-Control SRAM
439
Figure 11.31 Byte-Control SRAM Basic Read Cycle (no Wait)
440
Figure 11.32 Byte-Control SRAM Basic Read Cycle (One Internal Wait Cycle)
441
Figure 11.33 Byte-Control SRAM Basic Read Cycle (One Internal Wait + One External Wait)
442
Wait Cycles between Accesses
443
Figure 11.34 Wait Cycles between Access Cycles
444
Bus Arbitration
445
Figure 11.35 Arbitration Sequence
446
11.5.10 Bus Release and Acquire Sequence
447
Figure 11.36 Example of the Bus Release Restraint by the DMAC CHCR LCKN Bit
448
11.5.11 Cooperation between Master and Slave
449
Section 12 DDR-SDRAM Interface (DDRIF)
451
Features
451
Figure 12.1 DDRIF Block Diagram
452
Input/Output Pins
453
Table 12.1 Pin Configuration
453
Address Space, Bus Width, and Data Alignment
454
Address Space of the DDRIF
454
Memory Data Bus Width
455
Figure 12.2 Physical Address Space of this LSI
455
Data Alignment
456
Table 12.2 Access and Data Alignment in Little Endian Mode
456
Table 12.3 Access and Data Alignment in Big Endian Mode
458
Figure 12.3 Data Alignment in DDR-SDRAM and DDRIF
459
Register Descriptions
460
Table 12.4 Register Configuration
460
Table 12.5 Register States in each Operating Mode
461
Memory Interface Mode Register (MIM)
462
SDRAM Control Register (SCR)
466
SDRAM Timing Register (STR)
468
SDRAM Row Attribute Register (SDR)
471
SDRAM Mode Register (SDMR)
472
Figure 12.4 Relationship between Write Values in SDMR and Output Signals to Memory Pins
473
DDR-SDRAM Back-Up Register (DBK)
474
Operation
475
DDR-SDRAM Access
475
DDR-SDRAM Initialization Sequence
475
Supported SDRAM Commands
476
Table 12.6 SDRAM Commands Issuable by DDRIF
476
SDRAM Access Mode
477
Power-Down Modes
477
Address Multiplexing
479
Table 12.7 Relationship between SPLIT Bits and Address Multiplexing
479
DDR-SDRAM Basic Timing
480
Figure 12.5 DDRIF Basic Timing (1-/2-/4-/8-Byte Single Burst Read Without Auto Precharge)
480
Figure 12.6 DDRIF Basic Timing (1-/2-/4-/8-Byte Single Burst Write Without Auto Precharge)
481
Figure 12.7 DDRIF Basic Timing (1-/2-/4-/8-Byte Single Burst Read with Auto Precharge)
482
Figure 12.8 DDRIF Basic Timing (1-/2-/4-/8-Byte Single Burst Write with Auto Precharge)
483
Figure 12.9 DDRIF Basic Timing (4 Burst Read: 32-Byte Without Auto Precharge)
484
Figure 12.10 DDRIF Basic Timing (4 Burst Write: 32-Byte Without Auto Precharge)
485
Figure 12.11 DDRIF Basic Timing (from Precharging All Banks to Bank Activation)
486
Figure 12.12 DDRIF Basic Timing (Mode Register Setting)
487
Figure 12.13 DDRIF Basic Timing (Enter Auto-Refresh/Exit to Bank Activation)
488
Figure 12.14 DDRIF Basic Timing (Enter Self-Refresh/Exit to Command Issuing)
489
Usage Notes
490
Operating Frequency
490
Stopping Clock
490
Using SCR to Issue REFA Command (Outside the Initialization Sequence)
490
Timing of Connected SDRAM
490
Setting Auto-Refresh Interval
491
Section 13 PCI Controller (PCIC)
493
Features
493
Figure 13.1 PCIC Block Diagram
495
Input/Output Pins
496
Table 13.1 Input/Output Pins
496
Register Descriptions
499
Table 13.2 List of PCIC Registers
499
Table 13.3 Register States in each Operating Mode
502
PCIC Enable Control Register (PCIECR)
505
Configuration Registers
506
Local Register
531
Operation
572
Supported PCI Commands
572
Table 13.4 Supported Bus Commands
572
PCIC Initialization
573
Master Access
574
Table 13.5 PCIC Address Map
574
Figure 13.2 Superhyway Bus to PCI Local Bus Access
575
Figure 13.3 Superhyway Bus to PCI Local Bus Address Translation (PCI Memory Space 0)
576
Figure 13.4 Superhyway Bus to PCI Local Bus Address Translation (PCI Memory Space 1)
577
Figure 13.5 Superhyway Bus to PCI Local Bus Address Translation (PCI Memory Space 2)
577
Figure 13.6 Superhyway Bus to PCI Local Bus Address Translation (PCI I/O)
578
Figure 13.7 Endian Conversion from Superhyway Bus to PCI Local Bus (Non-Byte Swapping: TBS = 0)
580
Figure 13.8 Endian Conversion from Superhyway Bus to PCI Local Bus (Byte Swapping: TBS = 1)
581
Target Access
582
Figure 13.9 PCI Local Bus to Superhyway Bus Memory Map
582
Figure 13.10 PCI Local Bus to Superhyway Bus Address Translation (Local Address Space 0/1)
584
Figure 13.11 PCI Local Bus to Superhyway Bus Address Translation (PCIC I/O Space)
585
Figure 13.12 Endian Conversion from PCI Local Bus to Superhyway Bus (Non-Byte Swapping: TBS = 0)
587
Figure 13.13 Endian Conversion from PCI Local Bus to Superhyway Bus (Non-Byte Swapping: TBS = 1)
588
Figure 13.14 Cache Flush/Purge Execution Flow for PCI Local Bus to Superhyway Bus
590
Host Bus Bridge Mode
591
Figure 13.15 Address Generation for Type 0 Configuration Access
592
Table 13.6 Interrupt Priority
593
Normal Mode
594
Power Management
594
PCI Local Bus Basic Interface
595
Figure 13.16 PCI Local Bus Power down State Transition
595
Figure 13.17 Master Write Cycle in Host Bus Bridge Mode (Single)
596
Figure 13.18 Master Read Cycle in Host Bus Bridge Mode (Single)
597
Figure 13.19 Master Write Cycle in Normal Mode (Burst)
598
Figure 13.20 Master Read Cycle in Normal Mode (Burst)
599
Figure 13.21 Target Read Cycle in Normal Mode (Single)
601
Figure 13.22 Target Write Cycle in Normal Mode (Single)
602
Figure 13.23 Target Memory Read Cycle in Host Bus Bridge Mode (Burst)
603
Figure 13.24 Target Memory Write Cycle in Host Bus Bridge Mode (Burst)
604
Figure 13.25 Master Write Cycle in Host Bus Bridge Mode (Burst, with Stepping)
605
Figure 13.26 Target Memory Read Cycle in Host Bus Bridge Mode (Burst, with Stepping)
606
Section 14 Direct Memory Access Controller (DMAC)
607
Features
607
Figure 14.1 Block Diagram of DMAC
608
Input/Output Pins
609
Table 14.1 Pin Configuration
609
Register Descriptions
611
Table 14.2 Register Configuration of DMAC
611
Table 14.3 Register States in each Processing Mode
614
DMA Source Address Registers 0 to 11 (SAR0 to SAR11)
617
DMA Destination Address Registers 0 to 11 (DAR0 to DAR11)
618
DMA Source Address Registers B0 to B3, B6 to B9
618
(SARB0 to SARB3, SARB6 to SARB9)
618
DMA Destination Address Registers B0 to B3, B6 to B9
619
(DARB0 to DARB3, DARB6 to DARB9)
619
DMA Transfer Count Registers 0 to 11 (TCR0 to TCR11)
620
DMA Transfer Count Registers B0 to B3, B6 to B9
621
(TCRB0 to TCRB3, TCRB6 to TCRB9)
621
DMA Channel Control Registers 0 to 11 (CHCR0 to CHCR11)
622
DMA Operation Register 0, 1 (DMAOR0 and DMAOR1)
631
DMA Extended Resource Selectors (DMARS0 to DMARS2)
634
Table 14.4 Transfer Request Sources
637
Operation
638
DMA Transfer Requests
638
Table 14.5 Selecting External Request Detection with DL, DS Bits
639
Table 14.6 Selecting External Request Detection with DO Bit
639
Table 14.7 Peripheral Module Request Modes
641
Channel Priority
642
Figure 14.2 Round-Robin Mode (Example of Channel 0 to 5)
643
Figure 14.3 Changes in Channel Priority in Round-Robin Mode (Example of Channel 0 to 5)
644
DMA Transfer Types
645
Figure 14.4 Data Flow of Dual Address Mode
645
Figure 14.5 Example of DMA Transfer Timing in Dual Address Mode (Source: Ordinary Memory, Destination: Ordinary Memory)
646
Figure 14.6 DMA Transfer Timing Example in Cycle-Steal Normal Mode 1
647
Figure 14.7 DMA Transfer Timing Example in Cycle-Steal Normal Mode 2
648
Figure 14.8 Example of DMA Transfer Timing in Cycle Steal Intermittent Mode (DREQ Low Level Detection)
648
Figure 14.9 DMA Transfer Timing Example in Burst Mode (DREQ Low Level Detection)
649
Table 14.8 DMA Transfer Matrix in Auto-Request Mode (All Channels)
649
Table 14.9 DMA Transfer Matrix in External Request Mode (Only Channels 0 to 3)
650
Table 14.10 DMA Transfer Matrix in Peripheral Module Request Mode
651
DMA Transfer Flow
652
Figure 14.10 Bus State When Multiple Channels Are Operating
652
Figure 14.11 DMA Transfer Flowchart
653
Repeat Mode Transfer
654
Reload Mode Transfer
655
Figure 14.12 Reload Mode Transfer
655
DREQ Pin Sampling Timing
656
Figure 14.13 Example of DREQ Input Detection in Cycle Steal Mode Edge Detection
656
Figure 14.14 Example of DREQ Input Detection in Cycle Steal Mode Level Detection
656
Figure 14.15 Example of DREQ Input Detection in Burst Mode Edge Detection
657
Figure 14.16 Example of DREQ Input Detection in Burst Mode Level Detection
657
Usage Notes
658
Module Stop
658
Address Error
658
Notes on Burst Mode Transfer
658
DACK Output Division
659
Clear DMINT Interrupt
659
CS Output Settings and Transfer Size Larger than External Bus Width
659
DACK Assertion and DREQ Sampling
659
Table14.11 Register Settings for SRAM, Burst ROM, Byte Control SRAM Interface
661
Table14.12 Register Settings for PCMCIA Interface
662
Table14.13 Register Settings for MPX Interface (Read Access)
662
Table14.14 Register Settings for MPX Interface (Write Access)
662
Section 15 Clock Pulse Generator (CPG)
663
Features
663
Figure 15.1 Block Diagram of CPG
664
Input/Output Pins
666
Table 15.1 CPG Pin Configuration
666
Clock Operating Modes
667
Table 15.2 Clock Operating Modes
667
Register Descriptions
668
Table 15.3 Register Configuration
668
Table 15.4 Register States of CPG in each Processing Mode
668
Frequency Control Register (FRQCR)
669
PLL Control Register (PLLCR)
671
Notes on Board Design
672
Figure 15.2 Points for Attention When Using Crystal Resonator
672
Figure 15.3 Points for Attention When Using PLL and DLL Circuit
673
Section 16 Watchdog Timer and Reset
675
Features
675
Figure 16.1 Block Diagram of WDT
676
Input/Output Pins
677
Table 16.1 Pin Configuration
677
Register Descriptions
678
Table 16.2 Register Configuration
678
Table 16.3 Register States in each Processing Mode
678
Watchdog Timer Stop Time Register (WDTST)
679
Watchdog Timer Control/Status Register (WDTCSR)
680
Watchdog Timer Base Stop Time Register (WDTBST)
681
Watchdog Timer Base Counter (WDTBCNT)
682
Watchdog Timer Counter (WDTCNT)
682
Operation
683
Reset Request
683
Using Watchdog Timer Mode
684
Using Interval Timer Mode
684
Time for WDT Overflow
685
Figure 16.2 WDT Counting up Operation
685
Clearing WDT Counter
686
Status Pin Change Timing During Reset
686
Power-On Reset by PRESET
686
Figure 16.3 STATUS Output During Power-On
687
Figure 16.4 STATUS Output by Reset Input During Normal Operation
687
Power-On Reset by Watchdog Timer Overflow
688
Figure 16.5 STATUS Output by Reset Input During Sleep Mode
688
Figure 16.6 STATUS Output by Watchdog Timer Overflow Power-On Reset During Normal Operation
689
Figure 16.7 STATUS Output by Watchdog Timer Overflow Power-On Reset During Sleep Mode
689
Manual Reset by Watchdog Timer Overflow
690
Figure 16.8 STATUS Output by Watchdog Timer Overflow Manual Reset
690
Figure 16.9 STATUS Output by Watchdog Timer Overflow Manual Reset During Sleep Mode
691
Section 17 Power-Down Mode
693
Features
693
Types of Power-Down Modes
693
Table 17.1 Power-Down Modes
694
Input/Output Pins
695
Register Descriptions
695
Table 17.2 Pin Configuration
695
Table 17.3 Register Configuration
695
Table 17.4 Register States in each Processing Mode
695
Standby Control Register (MSTPCR)
696
Sleep Mode
698
Transition to Sleep Mode
698
Cancellation of Sleep Mode
698
Module Standby State
699
Transition to Module Standby Mode
699
Cancellation of Module Standby Mode and Resume
699
DDR-SDRAM Power Supply Backup
700
Self-Refresh and Initialization
700
Figure 17.1 DDR-SDRAM Interface Operation When
700
DDR-SDRAM Backup Sequence When Turning off System Power Supply
701
Figure 17.2 Sequence for Turning off System Power Supply in Self-Refresh Mode
702
RTC Power Supply Backup
703
Transition to RTC Power Supply Backup
703
Cancellation of RTC Power Supply Backup
703
Table 17.5 Pin Configuration
703
Figure 17.3 Sequence for Turning System Power Supply On/Off
704
Mode Transitions
705
Figure 17.4 Mode Transition Diagram
705
STATUS Pin Change Timing
706
In Reset
706
In Sleep
706
Figure 17.5 Status Pins Output from Sleep to Interrupt
706
Section 18 Timer Unit (TMU)
707
Features
707
Figure 18.1 Block Diagram of TMU
708
Input/Output Pins
709
Table 18.1 Pin Configuration
709
Register Descriptions
710
Table 18.2 Register Configuration
710
Table 18.3 Register States in each Processing Mode
711
Timer Output Control Register (TOCR)
712
Timer Start Register (TSTR0, TSTR1)
713
Timer Constant Register (Tcorn) (N = 0 to 5)
715
Timer Counter (Tcntn) (N = 0 to 5)
715
Timer Control Registers (Tcrn) (N = 0 to 5)
716
Input Capture Register 2 (TCPR2)
718
Operation
719
Counter Operation
719
Figure 18.2 Example of Count Operation Setting Procedure
720
Figure 18.3 TCNT Auto-Reload Operation
721
Figure 18.4 Count Timing When Operating on Internal Clock
721
Figure 18.5 Count Timing When Operating on External Clock
722
Figure 18.6 Count Timing When Operating on On-Chip RTC Output Clock
722
Input Capture Function
723
Figure 18.7 Operation Timing When Using Input Capture Function
723
Interrupts
724
Table 18.4 TMU Interrupt Sources
724
Usage Notes
725
Register Writes
725
Reading from TCNT
725
Reset RTC Frequency Divider Circuit
725
External Clock Frequency
725
Section 19 Compare Match Timer (CMT)
727
Features
727
Figure 19.1 Block Diagram of CMT
728
Input/Output Pins
729
Register Descriptions
729
Table 19.1 Pin Configuration
729
Table 19.2 Register Configuration
729
Table 19.3 Register States of CMT in each Processing Mode
730
Configuration Register (CMTCFG)
731
Free-Running Timer (CMTFRT)
734
Interrupt Status Register (CMTIRQS)
738
Channels 0 to 3 Time Registers (CMTCH0T to CMTCH3T)
739
Channels 0 to 3 Counters (CMTCH0C to CMTCH3C)
740
Figure 19.2 Edge Detection (Example of Rising Edge)
741
Operation
741
Figure 19.3 32-Bit Timer Mode: Input Capture (Channel 1 and Channel 0)
742
Figure 19.4 32-Bit Timer Mode: Input Capture Operation Timing
742
Bit Timer: Output Compare
743
Table 19.4 32-Bit Timer Mode: Example of Input Capture Setting
743
Figure 19.5 Cmt_Ctrn Assert Timing (Channel 0 and 1)
744
Figure 19.6 32-Bit Timer Mode: Output Compare (Channel 1 and Channel 0)
744
Figure 19.7 32-Bit Timer Mode: Output Compare Operation Timing (Example of High Output in Active and Not Active by Cmtchnst)
745
Figure 19.8 32-Bit Timer Mode: Output Compare Operation Timing (Example of High Output in Active and Not Active by CMTFRT)
745
Table 19.5 32-Bit Timer Mode: Example of Output Compare Setting
746
Figure 19.9 16-Bit Timer Mode: Input Capture (Channel 1 and Channel 0)
747
Figure19.10 16-Bit Timer Mode: Input Capture Operation Timing
748
Table 19.6 16-Bit Timer Mode: Example of Input Capture Setting
748
Figure 19.11 16-Bit Timer Mode: Output Compare (CMT_CTR Pins Are Available for Channel 1 and Channel 0)
749
Figure19.12 16-Bit Timer Mode: Output Compare Operation Timing
750
Table 19.7 16-Bit Timer Mode: Example of Output Compare Setting
750
Counter: Up-Counter
751
Figure 19.13 Up-Counter Mode (Channel 1 and Channel 0)
751
Figure 19.14 Up-Counter Mode Operation Timing
751
Table 19.8 Setting Example of Up-Counter Mode
752
Counter: Updown-Counter
753
Figure 19.15 Updown-Counter Mode (Only Channel 0)
753
Figure 19.16 Updown-Counter Mode: Countdown Operation Timing (Only Channel 0)
753
Table 19.9 Setting Example of Updown-Counter Mode
754
Counter: Rotary Switch Operation of Updown-Counter
755
Figure 19.17 Rotary Switch Operation Count-Up Timing
755
Figure 19.18 Rotary Switch Operation Count-Down Timing
755
Interrupts
756
Table 19.10 Setting Example of Updown-Counter Mode
756
Table 19.11 CMT Interrupt Setting
756
Section 20 Realtime Clock (RTC)
757
Figure 20.1 Block Diagram of RTC
758
Input/Output Pins
759
Table 20.1 RTC Pins
759
Table 20.2 RTC Registers
760
Table 20.3 Register States of RTC in each Processing Mode
761
Hz Counter (R64CNT)
762
Minute Counter (RMINCNT)
763
Day-Of-Week Counter (RWKCNT)
764
Day Counter (RDAYCNT)
765
Month Counter (RMONCNT)
766
Second Alarm Register (RSECAR)
767
Hour Alarm Register (RHRAR)
768
Day Alarm Register (RDAYAR)
769
Month Alarm Register (RMONAR)
770
RTC Control Register 1 (RCR1)
771
RTC Control Register 2 (RCR2)
773
RTC Control Register (RCR3)
776
Operation
777
Time Setting Procedures
777
Figure 20.2 Examples of Time Setting Procedures
777
Time Reading Procedures
778
Figure 20.3 Examples of Time Reading Procedures
778
Alarm Function
779
Figure 20.4 Example of Use of Alarm Function
779
Interrupts
780
Usage Notes
780
Register Initialization
780
Crystal Oscillator Circuit
780
Table 20.4 Crystal Oscillator Circuit Constants (Recommended Values)
780
Figure 20.5 Example of Crystal Oscillator Circuit Connection
781
Interrupt Source and Request Generating Order
782
Figure 20.6 Interrupt Request Signal Generation Timing of Complex Sources
782
Section 21 Serial Communication Interface with FIFO (SCIF)
783
Features
783
Figure 21.1 Block Diagram of SCIF
785
Figure 21.2 SCIF0_RTS Pin (Only in Channel 0)
786
Figure 21.3 SCIF0_CTS Pin (Only in Channel 0)
786
Figure 21.4 Scifn_Sck Pin (N = 0, 1)
787
Figure 21.5 Scifn_Txd Pin (N = 0, 1)
787
Figure 21.6 Scifn_Rxd Pin (N = 0, 1)
788
Input/Output Pins
789
Table 21.1 Pin Configuration
789
Register Descriptions
790
Table 21.2 Register Configuration
790
Table 21.3 Register States of SCIF in each Processing Mode
791
Receive FIFO Data Register (SCFRDR)
792
Receive Shift Register (SCRSR)
792
Transmit FIFO Data Register (SCFTDR)
793
Transmit Shift Register (SCTSR)
793
Serial Mode Register (SCSMR)
794
Serial Control Register (SCSCR)
797
Serial Status Register N (SCFSR)
801
Bit Rate Register N (SCBRR)
808
Table 21.4 SCSMR Settings
808
FIFO Control Register N (SCFCR)
809
Transmit FIFO Data Count Register N (SCTFDR)
812
Receive FIFO Data Count Register N (SCRFDR)
813
Serial Port Register N (SCSPTR)
814
Line Status Register N (SCLSR)
817
Serial Error Register N (SCRER)
818
Operation
819
Overview
819
Table 21.5 SCSMR Settings for Serial Transfer Format Selection
820
Table 21.6 SCSMR and SCSCR Settings for SCIF Clock Source Selection
821
Operation in Asynchronous Mode
822
Figure 21.7 Data Format in Asynchronous Communication (Example with 8-Bit Data, Parity, and Two Stop Bits)
822
Table 21.7 Serial Transfer Formats (Asynchronous Mode)
823
Figure 21.8 Sample SCIF Initialization Flowchart
825
Figure 21.9 Sample Serial Transmission Flowchart
826
Figure 21.10 Sample SCIF Transmission Operation (Example with 8-Bit Data, Parity, One Stop Bit)
828
Figure 21.11 Sample Operation Using Modem Control (SCIF0_CTS) (Only in Channel 0)
828
Figure 21.12 Sample Serial Reception Flowchart (1)
829
Figure 21.12 Sample Serial Reception Flowchart (2)
830
Figure 21.13 Sample SCIF Receive Operation (Example with 8-Bit Data, Parity, One Stop Bit)
832
Figure 21.14 Sample Operation Using Modem Control (SCIF0_RTS) (Only in Channel 0)
832
Operation in Clocked Synchronous Mode
833
Figure 21.15 Data Format in Clocked Synchronous Communication
833
Figure 21.16 Sample SCIF Initialization Flowchart
835
Figure 21.17 Sample Serial Transmission Flowchart
836
Figure 21.18 Sample SCIF Transmission Operation in Clocked Synchronous Mode
837
Figure 21.19 Sample Serial Reception Flowchart (1)
838
Figure 21.19 Sample Serial Reception Flowchart (2)
839
Figure 21.20 Sample SCIF Reception Operation in Clocked Synchronous Mode
840
Figure 21.21 Sample Simultaneous Serial Transmission and Reception Flowchart
841
SCIF Interrupt Sources and the DMAC
842
Table 21.8 SCIF Interrupt Sources
843
Usage Notes
844
Figure 21.22 Receive Data Sampling Timing in Asynchronous Mode
845
Figure 21.23 Example of Synchronization Clock Transfer by DMAC
846
Section 22 Serial I/O with FIFO (SIOF)
847
Features
847
Figure 22.1 Block Diagram of SIOF
848
Input/Output Pins
849
Table 22.1 Pin Configuration
849
Register Descriptions
850
Table 22.2 Register Configuration of SIOF
850
Table 22.3 Register States of SIOF in each Processing Mode
851
Mode Register (SIMDR)
852
Clock Select Register (SISCR)
854
Table 22.4 Operation in each Transfer Mode
854
Control Register (SICTR)
856
Transmit Data Register (SITDR)
859
Receive Data Register (SIRDR)
860
Transmit Control Data Register (SITCR)
861
Receive Control Data Register (SIRCR)
862
Status Register (SISTR)
863
Interrupt Enable Register (SIIER)
869
FIFO Control Register (SIFCTR)
871
Transmit Data Assign Register (SITDAR)
873
Receive Data Assign Register (SIRDAR)
874
Control Data Assign Register (SICDAR)
875
Figure 22.2 Serial Clock Supply
877
Operation
877
Table 22.5 SIOF Serial Clock Frequency
878
Figure 22.3 Serial Data Synchronization Timing
879
Figure 22.4 SIOF Transmit/Receive Timing
880
Table 22.6 Serial Transfer Modes
880
Transfer Data Format
880
Table 22.7 Frame Length
881
Figure 22.5 Transmit/Receive Data Bit Alignment
882
Register Allocation of Transfer Data
882
Figure 22.6 Control Data Bit Alignment
883
Table 22.8 Audio Mode Specification for Transmit Data
883
Table 22.9 Audio Mode Specification for Receive Data
883
Figure 22.7 Control Data Interface (Slot Position)
884
Table 22.10 Setting Number of Channels in Control Data
884
Figure 22.8 Control Data Interface (Secondary FS)
885
Fifo
886
Table 22.11 Conditions to Issue Transmit Request
886
Table 22.12 Conditions to Issue Receive Request
886
Figure 22.9 Example of Transmit Operation in Master Mode
888
Transmit and Receive Procedures
888
Figure 22.10 Example of Receive Operation in Master Mode
889
Figure 22.11 Example of Transmit Operation in Slave Mode
890
Figure 22.12 Example of Receive Operation in Slave Mode
891
Table 22.13 Transmit and Receive Reset
892
Interrupts
893
Table 22.14 SIOF Interrupt Sources
893
Figure 22.13 Transmit and Receive Timing (8-Bit Monaural Data (1))
895
Figure 22.14 Transmit and Receive Timing (8-Bit Monaural Data (2))
895
Figure 22.15 Transmit and Receive Timing (16-Bit Monaural Data)
896
Figure 22.16 Transmit and Receive Timing (16-Bit Stereo Data (1))
896
Figure 22.17 Transmit and Receive Timing (16-Bit Stereo Data (2))
897
Figure 22.18 Transmit and Receive Timing (16-Bit Stereo Data (3))
897
Figure 22.19 Transmit and Receive Timing (16-Bit Stereo Data (4))
898
Figure 22.20 Transmit and Receive Timing (16-Bit Stereo Data)
898
Section 23 Serial Protocol Interface (HSPI)
899
Figure 23.1 Block Diagram of HSPI
900
Table 23.1 Pin Configuration
901
Table 23.2 Register Configuration
901
Table 23.3 Register States of HSPI in each Processing Mode
901
Input/Output Pins
901
Control Register (SPCR)
902
Status Register (SPSR)
904
System Control Register (SPSCR)
907
Transmit Buffer Register (SPTBR)
909
Receive Buffer Register (SPRBR)
910
Figure 23.2 Operational Flowchart
911
Operation
911
Operation Overview with DMA
912
Figure 23.3 Timing Conditions When FBS = 0
913
Timing Diagrams
913
Figure 23.4 Timing Conditions When FBS = 1
914
HSPI Software Reset
914
Section 24 Multimedia Card Interface (MMCIF)
915
Features
915
Input/Output Pins
916
Figure 24.1 Block Diagram of MMCIF
916
Table 24.1 Pin Configuration
916
Register Descriptions
917
Table 24.2 Register Configuration
917
Table 24.3 Register States of HSPI in each Processing Mode
919
Command Registers 0 to 5 (CMDR0 to CMDR5)
921
Table 24.4 CMDR Configuration
921
Command Start Register (CMDSTRT)
922
Operation Control Register (OPCR)
923
Card Status Register (CSTR)
925
Interrupt Control Registers 0 to 2 (INTCR0 to INTCR2)
927
Interrupt Status Registers 0 to 2 (INTSTR0 to INTSTR2)
930
Transfer Clock Control Register (CLKON)
935
Command Timeout Control Register (CTOCR)
936
Transfer Byte Number Count Register (TBCR)
937
Mode Register (MODER)
938
Command Type Register (CMDTYR)
939
Response Type Register (RSPTYR)
940
Table 24.5 Correspondence between Commands and Settings of CMDTYR and RSPTYR
942
Transfer Block Number Counter (TBNCR)
944
Response Registers 0 to 16, D (RSPR0 to RSPR16, RSPRD)
945
Table 24.6 Correspondence between Command Response Byte Number and RSPR
945
Data Timeout Register (DTOUTR)
947
Data Register (DR)
948
FIFO Pointer Clear Register (FIFOCLR)
949
Figure 24.2 DR Access Example
949
DMA Control Register (DMACR)
950
Operation
951
Operations in MMC Mode
951
Figure 24.3 Example of Command Sequence for Commands Not Requiring Command Response
953
Figure 24.4 Example of Operational Flow for Commands Not Requiring Command Response
954
Figure 24.5 Example of Command Sequence for Commands Without Data Transfer (no Data Busy State)
955
Figure 24.6 Example of Command Sequence for Commands Without Data Transfer (with Data Busy State)
956
Figure 24.7 Example of Operational Flow for Commands Without Data Transfer
957
Figure 24.8 Example of Command Sequence for Commands with Read Data (Block Size ≤ FIFO Size)
959
Figure 24.9 Example of Command Sequence for Commands with Read Data (Block Size > FIFO Size)
960
Figure 24.10 Example of Command Sequence for Commands with Read Data (Multiple Block Transfer)
961
Figure 24.11 Example of Command Sequence for Commands with Read Data (Stream Transfer)
962
Figure 24.12 Example of Operational Flow for Commands with Read Data (Single Block Transfer)
963
Figure 24.13 Example of Operational Flow for Commands with Read Data (1) (Open-Ended Multiple Block Transfer)
964
Figure 24.13 Example of Operational Flow for Commands with Read Data (2) (Open-Ended Multiple Block Transfer)
965
Figure 24.13 Example of Operational Flow for Commands with Read Data (3) (Pre-Defined Multiple Block Transfer)
966
Figure 24.13 Example of Operational Flow for Commands with Read Data (4) (Pre-Defined Multiple Block Transfer)
967
Figure 24.14 Example of Operational Flow for Commands with Read Data (Stream Transfer)
968
Figure 24.15 Example of Command Sequence for Commands with Write Data (Block Size ≤ FIFO Size)
971
Figure 24.16 Example of Command Sequence for Commands with Write Data (Block Size > FIFO Size)
972
Figure 24.17 Example of Command Sequence for Commands with Write Data (Multiple Block Transfer)
973
Figure 24.18 Example of Command Sequence for Commands with Write Data (Stream Transfer)
974
Figure 24.19 Example of Operational Flow for Commands with Write Data (Single Block Transfer)
975
Figure 24.20 Example of Operational Flow for Commands with Write Data (1) (Open-Ended Multiple Block Transfer)
976
Figure 24.20 Example of Operational Flow for Commands with Write Data (2) (Open-Ended Multiple Block Transfer)
977
Figure 24.20 Example of Operational Flow for Commands with Write Data (3) (Pre-Defined Multiple Block Transfer)
978
Figure 24.20 Example of Operational Flow for Commands with Write Data (4) (Pre-Defined Multiple Block Transfer)
979
Figure 24.21 Example of Operational Flow for Commands with Write Data (Stream Transfer)
980
MMCIF Interrupt Sources
981
Table 24.7 MMCIF Interrupt Sources
981
Operations When Using DMA
982
Operation in Read Sequence
982
Figure 24.22 Example of Read Sequence Flow (Single Block Transfer)
984
Figure 24.23 Example of Read Sequence Flow (1) (Open-Ended Multiple Block Transfer)
985
Figure 24.23 Example of Read Sequence Flow (2) (Open-Ended Multiple Block Transfer)
986
Figure 24.23 Example of Read Sequence Flow (3) (Pre-Defined Multiple Block Transfer)
987
Figure 24.23 Example of Read Sequence Flow (4) (Pre-Defined Multiple Block Transfer)
988
Figure 24.24 Example of Operational Flow for Stream Read Transfer
989
Figure 24.25 Example of Operational Flow for Auto-Mode Pre-Defined Multiple Block Read Transfer (1)
990
Figure 24.25 Example of Operational Flow for Auto-Mode Pre-Defined Multiple Block Read Transfer (2)
991
Operation in Write Sequence
992
Figure 24.26 Example of Write Sequence Flow (1) (Single Block Transfer)
994
Figure 24.26 Example of Write Sequence Flow (2) (Single Block Transfer)
995
Figure 24.27 Example of Write Sequence Flow (1) (Open-Ended Multiple Block Transfer)
996
Figure 24.27 Example of Write Sequence Flow (2) (Open-Ended Multiple Block Transfer)
997
Figure 24.27 Example of Write Sequence Flow (3) (Pre-Defined Multiple Block Transfer)
998
Figure 24.27 Example of Write Sequence Flow (4) (Pre-Defined Multiple Block Transfer)
999
Figure 24.28 Example of Operational Flow for Stream Write Transfer
1000
Figure 24.29 Example of Operational Flow for Auto-Mode Pre-Defined Multiple Block Write Transfer (1)
1001
Figure 24.29 Example of Operational Flow for Auto-Mode Pre-Defined Multiple Block Write Transfer (2)
1002
Register Accesses with Little Endian Specification
1003
Section 25 Audio Codec Interface (HAC)
1005
Features
1005
Input/Output Pins
1006
Figure 25.1 Block Diagram
1006
Table 25.1 Pin Configuration
1006
Register Descriptions
1007
Table 25.2 Register Configuration
1007
Table 25.3 Register States of HAC in each Processing Mode
1007
Control and Status Register (HACCR)
1008
Command/Status Address Register (HACCSAR)
1010
Command/Status Data Register (HACCSDR)
1012
PCM Left Channel Register (HACPCML)
1013
PCM Right Channel Register (HACPCMR)
1015
TX Interrupt Enable Register (HACTIER)
1016
TX Status Register (HACTSR)
1017
RX Interrupt Enable Register (HACRIER)
1019
RX Status Register (HACRSR)
1020
HAC Control Register (HACACR)
1021
Figure 25.2 AC97 Frame Slot Structure
1023
Table 25.4 AC97 Transmit Frame Structure
1023
Operation
1024
Table 25.5 AC97 Receive Frame Structure
1024
Transmitter
1025
Figure 25.3 Initialization Sequence
1026
Figure 25.4 Sample Flowchart for Off-Chip Codec Register Write
1027
Figure 25.5 Sample Flowchart for Off-Chip Codec Register Read (1)
1028
Figure 25.6 Sample Flowchart for Off-Chip Codec Register Read (2)
1029
Figure 25.7 Sample Flowchart for Off-Chip Codec Register Read (3)
1030
Notes
1031
Section 26 Serial Sound Interface (SSI) Module
1033
Figure 26.1 Block Diagram of SSI Module
1034
Table 26.1 Pin Configuration
1034
Input/Output Pins
1034
Register Descriptions
1035
Table 26.2 Register Configuration
1035
Table 26.3 Register States of SSI in each Processing Mode
1035
Control Register (SSICR)
1036
Status Register (SSISR)
1042
Transmit Data Register (SSITDR)
1047
Operation
1048
Table 26.4 Bus Formats of SSI Module
1048
Non-Compressed Modes
1049
Figure 26.2 Philips Format (with no Padding)
1050
Figure 26.3 Philips Format (with Padding)
1050
Figure 26.4 Sony Format (with Serial Data First, Followed by Padding Bits)
1051
Figure 26.5 Matsushita Format (with Padding Bits First, Followed by Serial Data)
1051
Table 26.5 Number of Padding Bits for each Valid Configuration
1052
Figure 26.6 Multi-Channel Format (4 Channels, no Padding)
1053
Figure 26.7 Multi-Channel Format (6 Channels with High Padding)
1053
Figure 26.8 Multi-Channel Format (8 Channels, with Padding Bits First, Followed by Serial Data, with Padding)
1054
Figure 26.10 Inverted Clock
1055
Figure 26.9 Basic Sample Format (Transmit Mode with Example System/Data Word Length)
1055
Figure 26.11 Inverted Word Select
1056
Figure 26.12 Inverted Padding Polarity
1056
Figure 26.13 Padding Bits First, Followed by Serial Data, with Delay
1056
Figure 26.14 Padding Bits First, Followed by Serial Data, Without Delay
1057
Figure 26.15 Serial Data First, Followed by Padding Bits, Without Delay
1057
Figure 26.16 Parallel Right Aligned with Delay
1057
Compressed Modes
1058
Figure 26.17 Mute Enabled
1058
Figure 26.18 Compressed Data Format, Slave Transmitter, Burst Mode Disabled
1059
Figure 26.19 Compressed Data Format, Slave Transmitter, and Burst Mode Enabled
1059
Figure 26.20 Transition Diagram between Operation Modes
1061
Transmit Operation
1062
Figure 26.21 Transmission Using DMA Controller
1063
Figure 26.22 Transmission Using Interrupt Data Flow Control
1064
Receive Operation
1065
Figure 26.23 Reception Using DMA Controller
1066
Figure 26.24 Reception Using Interrupt Data Flow Control
1067
Serial Clock Control
1068
Usage Note
1069
Section 27 NAND Flash Memory Controller (FLCTL)
1071
Figure 27.1 FLCTL Block Diagram
1073
Table 27.1 Pin Configuration
1074
Input/Output Pins
1074
Register Descriptions
1075
Table 27.2 Register Configuration of FLCTL
1075
Table 27.3 Register States of FLCTL in each Processing Mode
1075
Common Control Register (FLCMNCR)
1076
Command Control Register (FLCMDCR)
1078
Command Code Register (FLCMCDR)
1080
Data Counter Register (FLDTCNTR)
1082
Data Register (FLDATAR)
1083
Interrupt DMA Control Register (FLINTDMACR)
1084
Ready Busy Timeout Setting Register (FLBSYTMR)
1089
Ready Busy Timeout Counter (FLBSYCNT)
1090
Data FIFO Register (FLDTFIFO)
1091
Control Code FIFO Register (FLECFIFO)
1092
Transfer Control Register (FLTRCR)
1093
Figure 27.2 Read Operation Timing for NAND-Type Flash Memory (1)
1094
Operation
1094
Figure 27.3 Programming Operation Timing for NAND-Type Flash Memory (1)
1095
Figure 27.4 Programming Operation Timing for NAND-Type Flash Memory (2)
1095
Figure 27.5 Relationship between DMA Transfer and Sector (Data and Control Code), and Memory and DMA Transfer
1096
Sector Access Mode
1096
Figure 27.6 Relationship between Sector Number and Address Expansion of
1097
ECC Error Correction
1098
Figure 27.7 Sector Access When Unusable Sector Exists in Continuous Sectors
1098
Table 27.4 Status Read of NAND-Type Flash Memory
1099
Figure 27.8 NAND Flash Command Access (Block Erase)
1100
Example of Register Setting
1100
Figure 27.9 NAND Flash Sector Access (Flash Write) Using DMA
1101
Figure 27.10 NAND Flash Command Access (Flash Read)
1102
Table 27.5 FLCTL Interrupt Requests
1103
Table 27.6 DMA Transfer Specifications
1103
Interrupt Sources
1103
Section 28 General Purpose I/O (GPIO)
1105
Table 28.1 Multiplexed Pins Controlled by Port Control Registers
1106
Register Descriptions
1110
Table 28.2 Register Configuration
1110
Table 28.3 Register States of GPIO in each Processing Mode
1112
Port a Control Register (PACR)
1113
Port B Control Register (PBCR)
1114
Port C Control Register (PCCR)
1116
Port D Control Register (PDCR)
1117
Port E Control Register (PECR)
1119
Port F Control Register (PFCR)
1120
Port G Control Register (PGCR)
1122
Port H Control Register (PHCR)
1124
Port J Control Register (PJCR)
1125
Port K Control Register (PKCR)
1127
Port L Control Register (PLCR)
1129
Port M Control Register (PMCR)
1130
Port a Data Register (PADR)
1131
Port C Data Register (PCDR)
1132
Port E Data Register (PEDR)
1133
Port F Data Register (PFDR)
1134
Port H Data Register (PHDR)
1135
Port K Data Register (PKDR)
1136
Port M Data Register (PMDR)
1137
Port H Pull-Up Control Register (PHPUPR)
1138
Port J Pull-Up Control Register (PJPUPR)
1139
Port K Pull-Up Control Register (PKPUPR)
1140
Port M Pull-Up Control Register (PMPUPR)
1141
Input-Pin Pull-Up Control Register 1 (PPUPR1)
1142
Input-Pin Pull-Up Control Register 2 (PPUPR2)
1143
On-Chip Module Select Register (OMSELR)
1144
Figure 28.1 Port Data Output Timing (Example of Port A)
1147
Usage Example
1147
Figure 28.2 Port Data Input Timing (Example of Port A)
1148
Port Input Function
1148
On-Chip Module Function
1149
Section 29 User Break Controller (UBC)
1151
Figure 29.1 Block Diagram of UBC
1152
Register Descriptions
1153
Table 29.1 Register Configuration
1153
Table 29.2 Register Status in each Processing State
1154
Match Condition Setting Registers 0 and 1 (CBR0 and CBR1)
1155
Match Operation Setting Registers 0 and 1 (CRR0 and CRR1)
1161
Match Address Setting Registers 0 and 1 (CAR0 and CAR1)
1163
Match Address Mask Setting Registers 0 and 1 (CAMR0 and CAMR1)
1164
Match Data Setting Register 1 (CDR1)
1165
Match Data Mask Setting Register 1 (CDMR1)
1166
Table 29.3 Settings for Match Data Setting Register
1166
Execution Count Break Register 1 (CETR1)
1167
Channel Match Flag Register (CCMFR)
1168
Break Control Register (CBCR)
1169
Operation Description
1170
User Break Operation Sequence
1171
Instruction Fetch Cycle Break
1172
Operand Access Cycle Break
1173
Table 29.4 Relation between Operand Sizes and Address Bits to be Compared
1173
Sequential Break
1174
Program Counter Value to be Saved
1176
Figure 29.2 Flowchart of User Break Debugging Support Function
1177
User Break Examples
1178
Usage Notes
1182
Section 30 User Debugging Interface (H-UDI)
1185
Features
1185
Figure 30.1 H-UDI Block Diagram
1186
Input/Output Pins
1187
Table 30.1 Pin Configuration
1187
Boundary Scan TAP Controllers (IDCODE, EXTEST, SAMPLE/PRELOAD, and BYPASS)
1188
Figure 30.2 Sequence for Switching from Boundary-Scan TAP Controller to H-UDI
1189
Table 30.2 Commands Supported by Boundary-Scan TAP Controller
1189
Register Descriptions
1190
Table 30.3 Register Configuration (1)
1190
Table 30.4 Register Configuration (2)
1190
Table 30.5 Register Status in each Processing State
1190
Instruction Register (SDIR)
1191
Bypass Register (SDBPR)
1192
Interrupt Source Register (SDINT)
1192
Boundary Scan Register (SDBSR)
1193
Table 30.6 SDBSR Configuration
1193
Operation
1202
TAP Control
1202
Figure 30.3 TAP Controller State Transitions
1202
H-UDI Reset
1203
H-UDI Interrupt
1203
Figure 30.4 H-UDI Reset
1203
Usage Notes
1204
Section 31 Electrical Characteristics
1205
Absolute Maximum Ratings
1205
Table 31.1 Absolute Maximum Ratings
1205
DC Characteristics
1206
Table 31.2 DC Characteristics
1206
AC Characteristics
1209
Table 31.3 Permissible Output Currents
1209
Table 31.4 Clock Timing
1209
Clock and Control Signal Timing
1210
Table 31.5 Clock and Control Signal Timing
1210
Figure 31.1 EXTAL Clock Input Timing
1211
Figure 31.2 CLKOUT Clock Output Timing (1)
1211
Figure 31.3 CLKOUT Clock Output Timing (2)
1211
Figure 31.4 Power-On Oscillation Settling Time
1212
Figure 31.5 MODE Pins Setup/Hold Timing
1212
Control Signal Timing
1213
Figure 31.6 PLL Synchronization Settling Time
1213
Figure 31.7 Control Signal Timing
1213
Table 31.6 Control Signal Timing
1213
Bus Timing
1214
Table 31.7 Bus Timing
1214
Figure 31.8 SRAM Bus Cycle: Basic Bus Cycle (no Wait)
1215
Figure 31.9 SRAM Bus Cycle: Basic Bus Cycle (One Internal Wait)
1216
Figure 31.10 SRAM Bus Cycle: Basic Bus Cycle (One Internal Wait + One External Wait)
1217
Figure 31.11 SRAM Bus Cycle: Basic Bus Cycle (no Wait, no Address Setup/Hold Time Insertion, RDS = 1, RDH = 0, WTS = 1, WTH = 1)
1218
Figure 31.12 Burst ROM Bus Cycle (no Wait)
1219
Figure 31.13 Burst ROM Bus Cycle (1St Data: One Internal Wait + One External Wait ; 2Nd/3Rd/4Th Data: One Internal Wait)
1220
Figure 31.14 Burst ROM Bus Cycle (no Wait, no Address Setup/Hold Time Insertion, RDS = 1, RDH = 0)
1221
Figure 31.15 Burst ROM Bus Cycle (One Internal Wait + One External Wait)
1222
Figure 31.16 PCMCIA Memory Bus Cycle
1223
Figure 31.17 PCMCIA I/O Bus Cycle
1224
Figure 31.18 PCMCIA I/O Bus Cycle (Tedx = 1, Thex = 1, IW/PCIW = 1, One Internal Wait, Dynamic Bus Sizing)
1225
Figure 31.19 MPX Basic Bus Cycle: Read
1226
Figure 31.20 MPX Basic Bus Cycle: Write
1227
Figure 31.21 MPX Bus Cycle: Burst Read
1228
Figure 31.22 MPX Bus Cycle: Burst Write
1229
Figure 31.23 Byte Control SRAM Bus Cycle
1230
Figure 31.24 Byte Control SRAM Bus Cycle: Basic Read Cycle (no Wait, no Address Setup/Hold Time Insertion, RDS = 1, RDH = 0)
1231
DDRIF Signal Timing
1232
Table 31.8 DDRIF Signal Timing
1232
Figure 31.25 MCLK Output Timing
1233
Figure 31.26 Read Timing of DDR-SDRAM (2 Burst Read)
1234
Figure 31.27 Write Timing of DDR-SDRAM (2 Burst Write)
1235
Figure 31.28 NMI Input Timing
1236
INTC Module Signal Timing
1236
Table 31.9 INTC Module Signal Timing
1236
Figure 31.29 IRQ/IRL, GPIO Interrupt Input and IRQOUT Output Timing
1237
PCIC Module Signal Timing
1238
Table 31.10 PCIC Signal Timing (in PCIREQ/PCIGNT Non-Port Mode) (1)
1238
Figure 31.30 PCI Clock Input Timing
1239
Figure 31.31 Output Signal Timing
1239
Figure 31.32 Input Signal Timing
1239
DMAC Module Signal Timing
1240
Figure 31.33 DREQ and DRAK Timing
1240
Table 31.11 DMAC Module Signal Timing
1240
Figure 31.34 TCLK Input Timing
1241
Table 31.12 TMU Module Signal Timing
1241
TMU Module Signal Timing
1241
CMT Module Signal Timing
1242
Figure 31.35 CMT Timing (1)
1242
Figure 31.36 CMT Timing (2)
1242
Table 31.13 CMT Module Signal Timing
1242
Figure 31.37 Scifn_Sck Input Clock Timing (N = 0, 1)
1243
SCIF Module Signal Timing
1243
Table 31.14 SCIF Module Signal Timing
1243
Figure 31.38 SCIF Channel N I/O Synchronous Mode Clock Timing (N = 0, 1)
1244
Figure 31.39 SIOF_MCLK Input Timing
1245
SIOF Module Signal Timing
1245
Table 31.15 SIOF Module Signal Timing
1245
Figure 31.40 SIOF Transmission/Reception Timing (Master Mode 1, Fall Sampling)
1246
Figure 31.41 SIOF Transmission/Reception Timing (Master Mode 1, Rise Sampling)
1246
Figure 31.42 SIOF Transmission/Reception Timing (Master Mode 2, Fall Sampling)
1247
Figure 31.43 SIOF Transmission/Reception Timing (Master Mode 2, Rise Sampling)
1247
Figure 31.44 SIOF Transmission/Reception Timing (Slave Mode 1, Slave Mode 2)
1248
HSPI Module Signal Timing
1249
Table 31.16 HSPI Module Signal Timing
1249
Figure 31.45 HSPI Data Output/Input Timing
1250
Figure 31.46 MMCIF Transmit Timing
1251
MMCIF Module Signal Timing
1251
Table 31.17 MMCIF Module Signal Timing
1251
Figure 31.47 MMCIF Receive Timing
1252
Figure 31.48 HAC Cold Reset Timing
1253
Figure 31.49 HAC SYNC Output Timing
1253
Figure 31.50 HAC Clock Input Timing
1253
HAC Interface Module Signal Timing
1253
Table 31.18 HAC Interface Module Signal Timing
1253
Figure 31.51 HAC Interface Module Signal Timing
1254
Figure 31.52 SSI Clock Input/Output Timing
1255
Figure 31.53 SSI Transmit Timing (1)
1255
SSI Interface Module Signal Timing
1255
Table 31.19 SSI Interface Module Signal Timing
1255
Figure 31.54 SSI Transmit Timing (2)
1256
Figure 31.55 SSI Receive Timing (1)
1256
Figure 31.56 SSI Receive Timing (2)
1256
FLCTL Module Signal Timing
1257
Table 31.20 FLCTL Module Signal Timing
1257
Figure 31.57 Command Issue Timing of NAND-Type Flash Memory
1258
Figure 31.58 Address Issue Timing of NAND-Type Flash Memory
1259
Figure 31.59 Data Read Timing of NAND-Type Flash Memory
1259
Figure 31.60 Data Write Timing of NAND-Type Flash Memory
1260
Figure 31.61 Status Read Timing of NAND-Type Flash Memory
1260
Figure 31.62 GPIO Timing
1261
GPIO Signal Timing
1261
Table 31.21 GPIO Signal Timing
1261
Figure 31.63 TCK Input Timing
1262
H-UDI Module Signal Timing
1262
Table 31.22 H-UDI Module Signal Timing
1262
Figure 31.64 PRESET Hold Timing
1263
Figure 31.65 H-UDI Data Transfer Timing
1263
Figure 31.66 ASEBRK Pin Break Timing
1263
Figure 31.67 Output Load Circuit
1264
AC Characteristic Test Conditions
1264
Figure 31.68 Load Capacitance-Delay Time
1265
Change in Delay Time Based on Load Capacitance
1265
Appendix
1267
Figure B.1 Instruction Prefetch
1269
B. Instruction Prefetching and Its Side Effects
1269
C. Speculative Execution for Subroutine Return
1270
D. Register Address Map
1271
Figure E.1 Package Dimensions (449-Pin BGA)
1305
F. Mode Pin Settings
1306
Table F.1 Clock Operating Modes with External Pin Combination
1306
Table F.2 Area 0 Memory Map and Bus Width
1306
Table F.3 Endian
1306
Table F.4 PCI Mode
1307
Table F.5 Clock Input
1307
Table F.6 Mode Control
1307
G. Pin Functions
1308
Table G.1 Pin States in Reset, Power-Down State, and Bus-Released State
1308
G.2 Handling of Unused Pins
1317
Table G.2 Treatment of Unused Pins
1317
Figure H.1 Sequence of Turning on and off Power Supply
1325
I. Version Registers (PVR, PRR)
1326
Table I.1 Register Configuration
1326
Table J.1 SH7780 Product Lineup
1327
J. Part Number List
1327
Index
1329
Advertisement
Advertisement
Related Products
Renesas SH7781
Renesas SH7785
Renesas SuperH SH7700 Series
Renesas SuperH SH7710 E10A
Renesas SH7709S
Renesas SH7751 Group
Renesas SH7727
Renesas SH7750R
Renesas SH7750S
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