1. Renesas Technology Corp. puts the maximum effort into making semiconductor products
better and more reliable, but there is always the possibilitythat trouble may occur with them.
Trouble with semiconductors may lead to personal injury, fire or property damage.
Remember to give due consideration to safety when making your circuit designs, with
appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of
nonflammable material or (iii) prevention against any malfunction or mishap.
Notes regarding these materials
1. These materials are intended as a reference to assist our customers in the selection of the
Renesas Technology Corp. product best suited to the customer's application; they do not
convey any license under anyintellectual property r ights, or any other rights, belonging to
Renesas TechnologyCorp.or a third party.
2. Renesas Technolog y Corp. assumes no responsibility for any damage, or infr ingement of any
third-party's rights, originating in the use of any product data, diagrams, charts, programs,
algorithms, or circuit application examples contained in these materials.
3. All information contained in these materials, including product data, diagrams, charts,
programs and algorithms represents information on products at the time of publication of these
materials, and are subject to chan ge by Ren esas Technology Corp. without notice due to
product improvements or other reasons. It is therefore recommended that customers contact
Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributor for
the latest product information before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corp. assumes no responsibility for any damage, liability, or other loss
rising from these inaccuracies or errors.
Please also pay attention to information published by Renesas Technology Corp. by various
means, including the Renesas Technology Corp. Semiconductor home page
(http://www.renesas.com).
4. When using any or all of the information contained in these materials, including product data,
diagrams, charts, progr ams, and algorithms, please be sure to evaluate all information as a total
system before making a final decision on the applicability of the information and products.
Renesas Technology Corp. assumes no responsibility for any damage, liability or other loss
resulting from the information contained herein.
5. Renesas Technology Corp. semiconductors are not designed or manufactured for use in a
device or system that is used under circumstances in which human life is potentially at stake.
Please contact Renesas Technology Corp. or an authorized Renesas Technology Corp. product
distributor when considering the use of a product contained herein for any specific purposes,
such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or
undersea repeater use.
6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce in
whole or in part these materials.
7. If these products or technologies are subject to the Japanese export control restrictions, they
must be exported under a license from the Japanese government and cannot be imported into a
country other than the approved destination.
Any diversion or reexport contrary to the export control laws and regulations of Japan and/or
the country of destination is prohibited.
8. Please contact Renesas Technology Corp. for further details on these materials or the products
contained therein.
Rev. 2.00, 09/03, page iv of xlvi
Page 5
General Precautions on Handling of Product
1. Treatment of NC Pins
Note:Do not connect anything to the NC pins.
The NC (not connected) pins are either not connected to any of the internal circuitry or are
used as test pins or to reduce noise. If something is connected to the NC pins, the
operation of the LSI is not guaranteed.
2. Treatment ofUnused Input Pins
Note:Fix all unused input pins tohigh or low level.
Generally, the input pins of CMOS products are high-impedance input pins. If unused pins
are in their open states, intermediate levels are induced by noise in the vicinity, a passthrough curr ent flows internally, and a malfunction may occur.
3. Processing before Initialization
Note:When power is first supplied, the product’s state is undefined.
The states of internal circuits are undefined until full power is supplied throughout the
chip and a low level is input on the reset pin. During the period where the states are
undefined, the register settings and the output state of each pin are also undefined. Design
your system so that it does not malfunction because of processing while it is in this
undefined state. For those products which have a reset function, reset the LSI immediately
after the power supply has been turned on.
4. Prohibition of Access to Undefin ed or Reserved Addresses
Note:Access to undefined or reserved addresses is prohibited.
The undefined or reserved addresses may be used to expand functions, or test registers
may have been be allocated to these addresses. Do not access these registers; the system’s
operation is not guaranteed if they are accessed.
Rev. 2.00, 09/03, page v of xlvi
Page 6
Configuration of This Manual
This manual comprises the following items:
1. General Precautions on Handling of Product
2. Configuration of This Manual
3. Preface
4. Contents
5. Overview
6. Description of Functional Modules
•CPU and System-Control Modules
•On-Chip Peripheral Modules
The con figuration of the functional description of each module differs according to the
module. However, the generic style in cludes the following items:
i)Feature
ii) In put/Output Pin
iii) Register Description
iv) Operation
v) Usage Note
When designing an application system that includes this LSI, take notes into account. Each
section includes notes in relation to the descriptions given, and usage notes are given, as required,
as the final part of each section.
7. List of Registers
8. Electrical Characteristics
9. Appendix
10.Index
Rev. 2.00, 09/03, page vi of xlvi
Page 7
Preface
The SH7705 single-chip RISC (Reduced Instruction Set Computer) microprocessor includes a
Renesas Technology original RISC CPU as its core, and the peripheral function s required to
configure a system.
Target users: This manual was written for users who will be using the SH7705 Micro-Computer
Unit (MCU) in the design of application systems. Users of this manual are expected
to understand the fundamentals of electrical circuits, logical circuits, and
microcomputers.
Objective:This manual was written to explain the hardware functions and electrical
characteristics of the SH7705 MCU to the above users.
Refer to the SH-3/SH-3E/SH3-DSP Programming Manual for a detailed description
of the instruction set.
Notes on reading this manual:
•Product names
The following products are covered in this manual.
Product Classifications and Abbreviations
Basic ClassificationProduct Code
SH7705HD6417705
•In order to understand the overall functions ofthe chip
Read the manual according to the contents. This manual can be roughly categorized into parts
on the CPU, system control functions, peripheral functions and electrical characteristics.
•In order to understandthe details of the CPU's functions
Read the SH-3/SH-3E/SH3-DSP Programming Manual.
Rev. 2.00, 09/03, page vii of xlvi
Page 8
Rules:Register name:The following notation is used for cases when the same or a
similar function, e.g. serial communication, is implemented
on more than one channel:
XXX_N (XXX is the register name and N is the channel
number)
Bit order:The MSB (most significant bit) is on the left and the LSB
(least significant bit) is on the right.
Number notation: Binary is B'xxxx, hexadecimal is H'xxxx, decimal is xxxx
Signal notation:An overbar is added to a low-active signal:
xxxx
Related Manuals:The latest versions of all related manuals are available from our web site.
Please ensure you have the latest versions of all documents you require.
http://www.ren esas.com/eng/
SH Series C/C++ Compiler, Assembler, Optimizing Linkage Editor User's
Manual
ADE-702-246
SH Series Simulator/Debugger (for Windows) User's ManualADE-702-186
SH Series Simulator/Debugger (for UNIX) User's ManualADE-702-203
Embedded Workshop Use r's ManualADE-702-201
SH Series Embedded Workshop, Debugging Interface TutorialADE-702-230
Rev. 2.00, 09/03, page viii of xlvi
Page 9
Abbreviations
ADCAnalog to Digital Co nverter
ALUArithmetic Logic Unit
ASEAdaptive System Evaluator
ASIDAddress Space Identifier
AUDAdvanced User Debugger
BCDBinary Coded Decimal
bpsbit per second
BSCBus State Controller
CCNCache Memory Controller
CMTCompare Match Timer
CPGClock Pulse Generator
CPUCentral Processing Unit
DMACDirect Memory Access Controller
etuElemen tary Time Unit
FIFOFirst-In First-Out
Hi-ZHigh Impedance
UDIUser Debugging Interface
INTCInterrupt Controller
IrDAInfrared Data Association
JTAGJoint Test Action Group
LQFPLow Profile QFP
LRULeast Recently Used
LSBLeast Significant Bit
MMUMemory Management Unit
MPXMultiplex
MSBMost Significant Bit
PCProgram Counter
PFCPin Function Controller
PLLPhase Locked Loop
PWMPulse Width Modulation
RAMRandom Access Memory
RISCReduced Instruction Set Computer
ROMRead Only Memory
RTCRealtime Clock
SCIFSerial Communication Interface with FIFO
Rev. 2.00, 09/03, page ix of xlvi
Page 10
SDRAMSynchronous DRAM
TAPTest Access Port
T.B.DTo Be Determined
TLBTranslation Lookaside Buffer
TMUTimer Unit
TPUTimer Pulse Unit
UARTUniversal Asynchronous Receiver/Transmitter
UBCUser Break Controller
USBUniversal Serial Bus
WDTWatchdog Timer
Rev. 2.00, 09/03, page x of xlvi
Page 11
Main Revisions and Additions in this Edition
ItemPageRevisions (See Manual for Details)
1.1SH7705 Features
Table 1.1SH7705
Features
1.3 Pin Assignment
Table 1.2 Pin Functions
4Features of USB function module (USB) amended
•ConformstoUSB
2.0 full-speed specification
Note *6, *7 added13, 15,
16
Pin No.
FP208C
139G15TDI
140G14TCK
141F17TMS
142F16
143F15TDO/PTF5O / I/OTest data output (UDI) /
144F14
145E17
195C6
TBP208APin NameI/ODescription
7
*
/PTG0I / I/OTest data input (UDI) /
input/output port G
7
*
/PTG1I / I/O
7
*
/PTG2I / I/OTestmode select(UDI) /
7
*1*
TRST
ASEBRKAK
PTF6
ASEMD0
PTF7
RESETP
/PTG3I / I/OTest reset (UDI) / input/output
/
O/I/O
7
*2*
/
I / I/OASE mode (UDI) / input/output
6
*
IPower-on reset request
Test clock (UDI) / input/output
port G
input/output port G
port G
input/output port F
ASE break acknowledge
(UDI) / input/output port F
port F
4.4.1 Address Array
Address-ArrayWrite
(Associative Operation)
4.4.3 Usage Examples
Invalidating a Specific Entry
Invalidating an Add ress
Specification
5.2.5 Exception Source
Acceptance Timing and
Priority
Table 5.1 Exception E vent
Vectors
Notes: 6. Pull-up MOS connected.
7. The pull-up MOS turns on if the pin function controller
(PFC) is used to select other functions (UDI).
105Description amended
⋅⋅⋅⋅⋅
This operation is used to invalidate the address
specification for a cache.
107Description largely revised
108Description added
117Note *3 amended
Note: 3. If an interrupt is accepted, the
register (EXPEVT) is not changed. ⋅⋅⋅⋅⋅
exception event
Rev. 2.00, 09/03, page xi of xlvi
Page 12
ItemPageRevisions (See Manual for Details)
6.1 Features
Figure 6.1 Block Diagram
of INTC
6.4.6 Interrupt Exception
Handling and Priority
Table6.4 Interrupt
Exception Handling Sources
and Priority (IRQ Mode)
126CMT deleted
NMI
IRQ5−IRQ0
PINT15−PINT0
DMAC
SCIF
ADC
USB
TMU
Legend:
DMAC : Direct memory access controller
SCIF : Serial communication interface (with FIFO)
ADC : A/D converter
USB : USB interface
TMU : Timer pulse unit
TPU : 16-bit timer pulse unit
Input/output
6
control
16
(Interrupt request)
140IPR (bit numbers) amended for interrupt source TMU2
IPRA(
7to4)
7.4.2 CSn Space Bus
Control Register (CSnBCR)
(n=0,2,3,4,5A,5B,6A,
6B)
Control/Status Register
(RTCSR)
7.4.6 Refresh Timer
Counter (RTCNT)
160Bits 14 to 12 description added
Note: SDRAM can be specified only in area 2 and area 3.
SDRAM is connected to only one area, SDRAM should be
specified for area 3. In this case area 2 should be specified
as normal space.
161Note 5 added
Note: 5.
The SDRAM bank active mode can only be used
for the CS3 space. (Refer to the explanation of the BACTV
bit in the SDRAM control register.)
177Bits 31 to 18 description amended7.4.5 Refresh Timer
Bit
Bit
Name
31 to 80R
Initial
ValueR/WDescription
179Bits 31 to 18 description amended
Bit
Bit
Name
Initial
ValueR/WDescription
If
Res erved
Rev. 2.00, 09/03, page xii of xlvi
31 to 80RReserved
Page 13
ItemPageRevisions (See Manual for Details)
7.13 Others
Reset
8.3.4 DMA Channel
Control Registers (CHCR)
8.4.3 Channel Priority
Round-Robin Mode
237In standby, sleep, and manual rese t, control registers of the
bus state controller are not initialized. At manual reset, the
current bus cycle being e xecuted is comple ted and then the
access wait state is entered.
Since the RTCNT continues
counting up during manual reset signal assertion, a refresh
request occurs to initiate the refresh cycle.
Note that arbitration requests using
BREQ
are not accepted
during manual reset signal assertion.
244Bits 15, 14 description amended
00: Fixed de stination address
(setting prohibited in 16-byte transfer)
245Bits 13, 12 description amended
00: Fixe d source address
(setting prohibited in 16-byte transfer)
258⋅⋅⋅⋅⋅ The priority of round-robin mode is CH0 > CH1 > CH2 >
CH3 immediately after a reset.
When the round-robin mode is specified, cycle-steal mode
and burst mode should not bemixed among the bus modes
for multiple channels.
8.4.4 DMA Transfer Types
Address Modes
Figure 8.6 Example of
DMA Transfer Timing in
Dual Mode (Source:
Ordinary Memory,
Destination: Ordinary
Memory)
Note: If manual reset is selected using the RSTS bit, a
frequency division ratio of 1/16, 1/32, 1/64, 1/256, 1/1,024,
or 1/4,096 is selected using bits CKS2 to CKS0, and a
watchdog timer coun ter overflow occurs, resulting in a
manual reset, the LSI will generate two manual resets in
succession. This will not affect its operation but will cause
change in the state of the STATUS pin.
301Description amended
This function can be used to reduce the power consumption
in the normal mode
427Table amended
Interrupt
SourceDescriptionDMAC Activation
ERIInterrupt initiated by receive error flag
(ER) or break flag (BRK)
RXI
TXIInterrupt initiated by transmit FIFO data
Interrupt initiated by receiveFIFO data
full flag (RDF) or receive data ready
(DR)
empty flag (TDFE) or transmit data stop
flag (TSF)
and sleep mode.
Not possible
1
Possible
Possible
*
2
*
18.1 Features437Description amended
• The UDC (USB device controller) conforming to USB
and transceiver process USB protocol automatically.
19.2.7 Port F Control
Register (PFCR)
19.2.9 Port G Control
Register (PGCR)
489Note *2 added to Bits 15 and 14
2. Pull-up MOS on.
Note
491Note *2 added to Bits 7 to 0
2. Pull-up MOS on.
Note
Rev. 2.00, 09/03, page xiv of xlvi
2.0
Page 15
ItemPageRevisions (See Manual for Details)
22.2.10 Execution Times
Break Register (BETR)
552Note added
Note: If the channel B brake condition set to during instruction fetch cycles and any of the
instructions below perform breaks, BETR is not decremented when the first break occurs.
The decremented values are listed below.
Instruction
RTE
DMULS.L Rm,Rn
DMULU.L Rm,Rn
MAC.L @Rm+,@Rn+
MAC.W @Rm+,@Rn+
MUL.L Rm,Rn
AND.B #imm,@(R0,GBR)
OR.B #imm,@(R0,GBR)
TAS.B @Rn
TST.B #imm,@(R0,GBR)
XOR.B #imm,@(R0,GBR)
LDC Rm,SR
LDC Rm,GBR
LDC Rm,VBR
LDC Rm,SSR
LDC Rm,SPC
LDC Rm,R0_BANK
LDC Rm,R1_BANK
LDC Rm,R2_BANK
LDC Rm,R3_BANK
LDC Rm,R4_BANK
LDC Rm,R5_BANK
LDC Rm,R6_BANK
LDC Rm,R7_BANK
Value
Decremented
4
2
2
2
2
3
3
3
3
3
3
4
4
4
4
4
4
4
4
4
4
4
4
4
Instruction
LDC.L @Rm+,SR
LDC.L @Rm+,GBR
LDC.L @Rm+,VBR
LDC.L @Rm+,SSR
LDC.L @Rm+,SPC
LDC.L @Rm+,R0_BANK
LDC.L @Rm+,R1_BANK
LDC.L @Rm+,R2_BANK
LDC.L @Rm+,R3_BANK
LDC.L @Rm+,R4_BANK
LDC.L @Rm+,R5_BANK
LDC.L @Rm+,R6_BANK
LDC.L @Rm+,R7_BANK
LDC.L @Rn+,MOD
LDC.L @Rn+,RS
LDC.L @Rn+,RE
LDC Rn,MOD
LDC Rn,RS
LDC Rn,RE
BSR label
BSRF Rm
JSR @Rm
Value
Decremented
6
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
2
2
2
23.2 Input/Output Pins569Note * added
Note: * The pull-up MOS turns on if the pin function
controller (PFC) is used to select other functions (UDI).
23.3.3 Boundary Scan
Register (SDBSR)
570Description amended
SDBSR is a 38
5-bit shift register, located on the PAD, for
controlling the input/output pins of this LSI.
23.5.2 Points for Attention582Item 7 added under “23.5.2 Points for Attention”
7. The CKIO cock should operate during boundary scan.
The MD[2:0] pin should be set to the clock mode used
during normal operation, and EXTAL and CKIO should be
set within the frequency range specified in the Clock Pulse
Generator (CPG) section.
As during normal operation, the boundary scan test should
be performed after allowing sufficient settling time for the
crystal oscillator, PLL1, and PLL2.
24.1 Register Addresses
(by functional module, in
592
Access size of EP1 data register and EP2 data register
amended to 8/
32
order of the corresponding
section numbers)
Rev. 2.00, 09/03, page xv of xlvi
Page 16
ItemPageRevisions (See Manual for Details)
25.3.1 Clock Timing
Figure 25.5 Power-On
OscillationSettling Tim e
25.3.2 Control Signal
Timing
Table 25.6 Control Signal
Timing
Figure 25.15 Pin Drive
Timing at Standby
633Figure amended
CKIO,
internal clock
V
RESETP
TRST
CC
VCC min
636Conditions amended
(Conditions: V
V
=VCC-PLL1 = VCC-PLL2 = 1.4 to 1.6 V, AVCC=3.0to
CC
3.6 V, V
Q=VSS=VSS-RTC = VSS-USB = VSS-PLL1 = VSS-
SS
PLL2 = AV
Q=VCC-RTC= VCC-USB = 3.0 to 3.6 V,
CC
=0V,Ta= –20 to 75°C, Clock mode
SS
0/1/2/4/5/6/7)
Note *1 amended
Note: 1.
RESETP,RESETM
asynchronous. ⋅⋅⋅⋅⋅⋅
638Figure amended
Normal modeNormal modeStandby mode
t
OSC1
Stable oscillation
t
RESPW
t
RESPS
, NMI, and IRQ5 to IRQ0 are
25.3.4 Basic Timing
Figure 25.16 Basic Bus
Cycle (No Wait)
Figure 25.17 Basic Bus
Cycle(One Software Wait)
CKIO
STATUS 0
STATUS 1
640Note *2 added
2
*
WEn
Write
D31 to D0
Notes: 1. DACKn is a waveform when active-low is specified.
2. Output timing is the same when reading byte-selection SRAM.
641Note *2 added
2
*
WEn
Write
D31 to D0
t
WDD1
t
t
WDD1
WED
t
WED
t
WED
t
STD
t
AH
t
WDH1
t
WDH4
t
WED
t
t
WDH1
t
WDH4
AH
Rev. 2.00, 09/03, page xvi of xlvi
Notes: 1. DACKn is a waveform when active-low is specified.
2. Output timing is the same when reading byte-selection SRAM.
Page 17
ItemPageRevisions (See Manual for Details)
25.3.4 Basic Timing
Figure 25.18 Basic Bus
Cycle(OneExternalWait)
Figure 25.19 Basic Bus
Cycle(One Software Wait,
External Wait Enabled
(WM Bit = 0), No Idle Cycle
Setting)
25.3.11 SCIF Module
Signal Timing
Table 25.13 SCIF Module
Signal Timing
642Note *2 added
2
*
WEn
Write
D31 to D0
Notes:
1. DACKn is a waveform when active-low is specified.
2. Output timing is the same when reading byte-selection SRAM.
643Note *2 added
2
*
WEn
Write
D15 to D0
Notes: 1. DACKn is a waveform when active-low is specified.
2. Output timing is the same when reading byte-selection SRAM.
t
WDD1
671Item amended
Transmission data delay time
RTS
delay time (clock synchronization)
t
WED
t
WDD1
t
WED
t
t
AH
WED
t
WDH1
t
WED
t
WED
t
WDD1
t
AH
t
WDH1
t
t
AH
WED
t
WDH1
(clock synchronization)
A. I/O Port States in Each
Processing State
TableA.1 I/O Port States
in Each Processing State
679Note *11 added
Category Pin
System
control
RESETP
RESETM
Power-Down
Reset
Power-
on
Reset
11
*
I
Manual
Reset
*
I
States
Bus
Sleep
11
*
I
Mastership
Released I/O
11
*
I
Software
Standby
11
11
*
I
Handling
of Unused
Pins
IMustbe
used
IIIIIIPull-up
Rev. 2.00, 09/03, page xvii of xlvi
Page 18
ItemPageRevisions (See Manual for Details)
A. I/O Port States in Each
Processing State
TableA.1 I/O Port States
in Each Processing State
682,
684
Note *13 added
Power-Down
Reset
Power-
on
Category Pin
PortNF/PTD[5] IIZIII/IPull-up
PTE[7]VPKPPIOOpen
NF/PTJ[7] LOOOOO/O Open
NF/PTJ
[6:0]
Reset
H
Manual
Reset
13
*
OOOOO/O Open
States
Software
Standby
Sleep
Bus
Mastership
Released I/O
Handling
of Unused
Pins
Note: 13. The values of PTJ6, PTJ1, and PTJ0 differ during
power-on reset and after the power-on reset state is
released. They conform to the port J data register value
after being switched to port status by the pin function
controller (PFC).
Table 25.17UDI Related Pin Timing...................................................................................675
Table 25.18A/D Con verter Characteristics ..........................................................................678
Rev. 2.00, 09/03, page xlv of xlvi
Page 46
Appendix
Table A.1I/O Port States in Each Processing State............................................................679
Rev. 2.00, 09/03, page xlvi of xlvi
Page 47
Section 1Overview
1.1SH7705 Features
This LSI is a microprocessor that integrates a 32-bit RISC-type SuperH architecture CPU as its
core, together with 32-kbyte cache memory as well as peripheral functions required for system
configuration such as an interrupt controller.
High-speed data transfers can be formed by an on-chip direct memory access controller (DMAC),
and an external memory access support function enables direct connection to different kinds of
memory. This LSI also includes powerful peripheral functions that are essential to system
configuration , such as USB (Function) functionality and a serial interface with a large FIFO.
A powerful built-in power-management function keeps power consumption low, even during
high-speed operation. This LSI is ideal for use in electronic devices such as those for applications
that require both high speeds and low power consumption.
The features of th is LSI are listed in table 1.1.
Rev. 2.00, 09/03, page 1 of 690
Page 48
Table 1.1SH7705 Features
ItemFeatures
CPU
Memory
management
unit (MMU)
•Original Renesas SuperH archite cture
•Compatible with SH-1, SH-2 and SH-3 at object code level
•32-bit internal data bus
•General-registers
Sixteen 32-bit general registe rs (eigh t 32-bi t shadow registers)
Five 32-bit control registers
Four 32-bit system registers
•RISC-type instruction set
Instruction length: 16-bit fixed length and improved code efficie ncy
Load/store architecture
Delayed branch instruct ions
Instruction set based on C language
•Instruction execution time: one instruction/cycle for basic instructions
•Logical address space: 4 Gbytes
•Five-stage pipeline
•4 Gbytes of address space, 256 address space identifiers (ASID: 8 bits)
•Page unit sharing
•Supports multiple page sizes: 1 kbyte or 4 kbytes
Cache memory
Interrupt
controller (INTC)
•128-entry, 4-way set associative TLB
•Supports software selection of replacement method and random-
replacement algorithms
•Contents of TLB are directly accessible by addressmapping
•32-kbyte cache, mixture of instructions and da ta
•512 entries, 4-way set associative, 16-byte block length
•Seven external interrupt pins (NMI, IRQ5 to IRQ0)
•On-chip peripheral interrupt: Priority level is independently selected for each
module
Rev. 2.00, 09/03, page 2 of 690
Page 49
ItemFeatures
Bus state
controller (BSC)
•Physical address space is divided into eight areas: area 0, areas 2 to 4;
each a maximum of 64 Mbytes, and areas 5A, 5B, 6A, 6B; each amaximum
of 32 Mbytes
•The following features are settable for each area
Bus size (8, 16, or 32 bits). The supported bus size differs for each area.
Number of access wait cycles (Numbers of wait-state cycles during reading
and writing are independently selectable for some are as.)
Setting of idle wait cycles (for the same area or different area)
Specifying the memory type to be connected to each area enables direct
connection to SRAM , byte selection SRAM, SDRAM, and burst ROM. Some
areas support address/data multiplex I/O (MPX).
Outputs chip select signal (
corresponding area (Programs are used to select the
CS0,CS2toCS4,CS5A/B,CS6A/B
CS
assert/negate
)for
timing.)
•SDRAM refresh function
Supports auto-refresh and self-refresh modes
•SDRAM burst access function
Direct memory
access controller
(DMAC)
Clock pulse
generator (CPG)
Watchdog timer
(WDT)
Different SDRAM can be connected to area 2 or area 3 (size/latency)
•Usable as either big or little endian machine
•Four channels. Two of these channels support external requests.
•Burst mode and cycle steal mode
•Outputs transfer end signal in channel with DREQ (one channel)
•Supports intermittent mode (supports 16 or 64 cycles)
•Clock mode: Input clock can be selected from external input (EXTAL o r
CKIO) or crystal resonator
•Three types of clocks gene rate d
CPU clock: max. 133.34 MHz/100 MHz
Bus clock: max. 66.67 MHz
Peripheral clock: max. 33.34 MHz
•Seven types of clock mode (selection of multiplicat ion ratio of PLL1 and
PLL2, and selection external clock or crys tal resonator)
Cache memory
Cache memory controller
Memory management unit
Translation look-aside buffer
Interrupt controller
Clock pulse generator/watchdog timer
Central processing unit
User break controller
Advanced user debugger
Bus state controller
Direct memory access controller
Timer unit
16-bit timer pulse unit
Realtime clock
Compare match timer
Serial communication interface with FIFO
Infrared data association module
Universal serial bus
A/D converter
User debugging interface
Pin function controller
Note: * The initial functions of NF (No Function) pins are not assigned after power-on reset. Specifies the functions with Pin Function Controller (PFC).
Figure 1.2 Pin Assignment (FP-208C)
Rev. 2.00, 09/03, page 7 of 690
Page 54
ABCDEFGHJ KLMNPRTU
17
16
15
14
13
12
11
10
17
16
15
14
13
12
11
SH7705
9
8
7
6
5
TBP-208A
(Top view)
INDEX MARK
10
9
8
7
6
5
4
3
2
1
ABCDEFGHJ KLMNPRTU
Note: The terminal area surrounded by the dotted line is the perspective view.
Figure 1.3 Pin Assignment (TBP-208A)
4
3
2
1
Rev. 2.00, 09/03, page 8 of 690
Page 55
Table 1.2Pin Functions
Pin No.
FP208C
TBP208APin NameI/ODescription
1A1VssQI/O power supply (0 V)
2B1Vcc-USBUSB power supply (3.3 V)
3C3D+I/OUSB data line
4C2D-I/OUSB data line
5C1Vss-USBUSB power supply (0 V)
6D3Vcc-RTC
5
*
RTC power supply (3.3 V)
5
*
7D2XTAL2OCrystal oscillator pin for on-chip RTC
8D1EXTAL2ICrystal oscillator pin for on-chip RTC
9E4Vss-RTC
5
*
RTC power supply (0 V)
5
*
10E3VBUS/PTM6I / I/OUSB power supply detection / input/output port M
11E2MD6Iconnect to I/O power supp ly (0V)
12E1D31/PTB7/PINT15I/O / I/O / I Data bus / input/output port B / PINT interrupt
13F4D30/PTB6/PINT14I/O / I/O / IData bus / input/output port B / PINT interrupt
14F3D29/PTB5/PINT13I/O / I/O / IData bus / input/output port B / PINT interrupt
15F2D28/PTB4/PINT12I/O / I/O / IData bus / input/output port B / PINT interrupt
16F1D27/PTB3/PINT11I/O / I/O / IData bus / input/output port B / PINT interrupt
17G4VssQI/O power supply (0 V)
18G3D26/PTB2/PINT10I/O / I/O / I Data bus / input/output por t B / PINT inte rrupt
19G2VccQI/O power supply (3.3 V)
20G1D25/PTB1/PINT9I/O / I/O / I Data bus / input /output port B / PINT interrupt
21H4D 24/PTB0/PINT8I/O / I/O / I Data bus / input/output port B / PINT interrupt
22H3D 23/PTA7/PINT7I/O / I/O / I Data bus / input/output port A / PINT interrupt
23H2D 22/PTA6/PINT6I/O / I/O / I Data bus / input/output port A / PINT interrupt
24H1D 21/PTA5/PINT5I/O / I/O / I Data bus / input/output port A / PINT interrupt
25J4D20/PTA4/PINT4I/O / I/O / IData bus / input/output port A / PINT interrupt
26J2VssInternal power supply (0 V)
27J1D19/PTA3/PINT3I/O / I/O / IData bus / input/output port A / PINT interrupt
28J3VccInternal power supply (1.5 V)
29K1D18/PTA2/PINT2I/O / I/O / I Data bus / input/output port A / PINT interrupt
30K2D17/PTA1/PINT1I/O / I/O / I Data bus / input/output port A / PINT interrupt
31K3D16/PTA0/PINT0I/O / I/O / I Data bus / input/output port A / PINT interrupt
Rev. 2.00, 09/03, page 9 of 690
Page 56
Pin No.
FP208C
TBP208APin NameI/ODescription
32K4VssQI/O power supply (0 V)
33L1D15I/OData bus
34L2VccQI/O power supply (3.3 V)
35L3D14I/OData bus
36L4D13I/OData bus
37M1D12I/OData bus
38M2D11I/OData bus
39M3D10I/OData bus
40M4D9I/OData bus
41N1D8I/OData bus
42N2D7I/OData bus
43N3D6I/OData bus
44N4VssQI/O power supply (0 V)
45P1D5I/OData bus
46P2VccQI/O power supply (3.3 V)
47P3D4I/OData bus
48R1D3I/OData bus
49R2D2I/OData bus
50P4D1I/OData bus
51T1D0I/OData bus
52T2VssQI/O power supply (0 V)
53U1A0/PTK0O / I/OAddress bus / input/output port K
54U2A1OAddress bus
55R3A2OAddress bus
56T3A3OAddress bus
57U3VssQI/O power supply (0 V)
58R4A4OAddress bus
59T4VccQI/O power supply (3.3 V)
60U4A5OAddress bus
61P5A6OAddress bus
62R5A7OAddress bus
63T5A8OAddress bus
Rev. 2.00, 09/03, page 10 of 690
Page 57
Pin No.
FP208C
TBP208APin NameI/ODescription
64U5A9OAddress bus
65P6A10OAddress bus
66R6A11OAddress bus
67T6A12OAddre ss bus
68U6A13OAddress bus
69P7VssQI/O power supply (0 V)
70R7A14OAddress bus
71T7VccQI/O power supply (3.3 V)
72U7A15OAddress bus
73P8A16OAddress bus
74R8A17OAddress bus
75T8A18OAddre ss bus
76U8A19/PTK1O / I/OAddress bus / input/output port K
77P9A20/PTK2O / I/OAddress bus / input/output port K
78T9VssInternal power supply (0 V)
79U9A21/PTK3O / I/OAddress bus / input/output port K
80R9VccInternal power supply (1.5 V)
81U10A22/PTK4O / I/OAddress bus / input/output port K
82T10A23/PTK5O / I/OAddress bus / input/output po rt K
83R10A24/PTK6O / I/OAddress bus / input/output port K
84P10A25/PTK7O / I/OAddress bus / input/output port K
85U11
86T11
BS
/PTC0O / I/OBus cycle start signal / input/outpu t por t C
RD
ORead strobe
87R11VssQI/O power supply (0 V)
88P11
WE0
/DQMLLO / OD7 to D0 select signal / DQM(SDRAM)
89U12VccQI/O power supply (3.3 V)
90T12
91R12
WE1
/DQMLUO / OD15 to D8 select signal / DQM(SDRAM)
WE2
/DQMUL/PTC1 O / O / I/O
D23 to D16 select signal / DQM (SDRAM) /
input/output port C
92P12
WE3
/DQMUU/AH/
PTC2
93U13RD/
94T13
WR
CS0
O/O/O/
I/O
D31 to D24 select signal / DQM (SDRAM) /
address hold / input/output port C
ORe ad/write
OChip select 0
Upper 32 Mbytes address RAS (SDRAM) /
input/output port D
104T16
CASL
/PTD2O / I/O
Lower 32 Mbytes address CAS (SDRAM) /
input/output port D
105U17VssQI/O power supply (0 V)
3
106T17
CASU
*
/PTD3O / I/O
Upper 32 Mbytes address CAS (SDRAM) /
input/output port D
107R15CKE/PTD4O / I/OCK enable (SDRAM) / input/output port D
108R16PTD5/NF
109R17
110P15
BACKBREQ
/PTG5O / I/OBus acknowledge / input/output port G
/PTG6I / I/OBus request / input/output port G
4
*
IInput port D / NF
4
*
111P16VssQI/O power supply (0 V)
112P17
WAIT
/PTG7I / I/OHardware wait request / input/output port G
113N14VccQI/O power supply (3.3 V)
114N15DACK0/PTE0O / I/ODM A acknowledge 0 / input/output port E
115N16DACK1/PTE1O / I/ODM A acknowledge 1 / input/output port E
116N17TEND0/PTE3O / I/O
DMA transfer end notification / input/output
port E
117M14AUDSYN C/PTF4O / I/OAUD synchronous / input/output port F
118M15AUDATA0/PTF0/TO0 O / I/O / O
AUD data output / input/output port F / timer
output
119M16AUDATA1/PTF1 /TO1 O / I/O / OAUD data output / input/output port F / timer
output
120M17AUDATA2/PTF2 /TO2 O / I/O / OAUD data output / input/output port F / timer
Rev. 2.00, 09/03, page 12 of 690
output
Page 59
Pin No.
FP208C
121L14AUDA TA 3/PTF3/TO3 O / I/O / O
TBP208APin NameI/ODescription
AUD data output / input/output port F / timer
output
122L15NF
123L16NF
124L17NF
125K14N F
126K15N F
127K16N F
128K17N F
129J14NF
4
*
/PTJ0ONF
4
*
/PTJ1ONF
4
*
/PTJ2ONF
4
*
/PTJ3ONF
4
*
/PTJ4ONF
4
*
/PTJ5ONF
4
*
/PTJ6ONF
4
*
/PTJ7ONF
4
*
/output port J
4
*
/output port J
4
*
/output port J
4
*
/output port J
4
*
/output port J
4
*
/output port J
4
*
/output port J
4
*
/output port J
130J16VssInternal power supply (0 V)
131J17NF
4
*
/PTM4INF
4
*
/ input port M
132J15VccInternal power supply (1.5 V)
133H17VssQI/O power supply (0 V)
134H16PTM0I/OInput/output port M
135H15PTM1I/OInput/output port M
136H14PTM2I/OInput/output port M
137G17PTM3I/OInput/output port M
138G16VccQI/O power supply (3.3 V)
7
139G15TDI
140G14TCK
141F17TMS
142F16
*
/PTG0I / I/OTest data input (UDI) / input/output port G
7
*
/PTG1I / I/OTest clock (UDI) / input/output port G
7
*
/PTG2I / I/OTest mode select (UDI) / input/output port G
7
TRST
*1*
/PTG3I/I/OTestreset(UDI)/input/outputportG
143F15TDO/PTF5O / I/OTest data output (UDI) / input/output port F
144F14
/PTF7I / I/OASE mode (UDI) / input/output port F
146E16MD0IClock mode setting
147E15MD1IClock mode setting
148E14MD2IClock mode setting
149D17Vcc-PLL1PLL1 power supply (1.5 V)
150D16Vss-PLL1PLL1 power supply (0 V)
Rev. 2.00, 09/03, page 13 of 690
Page 60
Pin No.
FP208C
TBP208APin NameI/ODescription
151D15Vss-PLL2PLL2 power supply (0 V)
152C17Vcc-PLL2PLL2 power supply (1.5 V)
153C16MD5IEndian setting
154D14XTALOCrystal oscillator pin
155B17EXTALIExternal clock / crystal oscillator pin
156B16VssQI/O power supply (0 V)
157A17
158A16
STATUS0/PTE4/
RTS0
STATUS1/PTE5/
CTS0
O/I/O/O
O/I/O/I
Processor status / input/output port E / SCIF0
transmit reque st
Processor status / input/output port E / SCIF0
transmit clear
159C15VssQI/O power supply (0 V)
160B15CKIOI/OSystem clock input/output
161A15VccQI/O power supply (3.3 V)
162C14PTN0/SUSPNDI/O / Oinput/output port N / USB suspend
163B14PTN1/TXENLI/O / Oinput/output port N / USB output enable
164A14PTN2/XVDATAI/O / Iinput/output port N / USB differential receive
input
165D13PTN3/TXDMNSI/O / Oinput/output port N / USB D– transmit output
166C13PTN4/TXDPLSI/O / Oinput/output port N / USB D+ transmit output
167B13PTN 5/DM NSI/O / I
input/output port N / D– input from USB
receiver
168A13PTN6/DPLSI/O / Iinput/output port N / D+ input from USB
receiver
169D12PTN7I/Oinput/output port N
170C12TCLK/PTE6I / I/OTMU clock input / input/output port E
171B12PTE 7I/OInput/output port E
172A12TxD0/SCPT0/IrTXO / O / OSCIF0 transmit data / SC port / IrDA TX port
173D11SCK0/SCPT1I/O / I/OSCIF0 clock / SC port
174C11TxD2/SCPT2O / OSCIF2 transmit data / SC port
175B11SCK2/SCPT3I/O / I/OSCIF2 clock / SC port
176A11
RTS2
/SCPT4O / I/OSCIF2 transmit request / SC port
177D10RxD0/SCPT0/IrRX I/I/ISCIF0receivedata/SCport/IrDARXport
178C10VccQI/O power supply (3.3 V)
179B10RxD2/SCPT2I / ISCIF2 receive data / SC port
Rev. 2.00, 09/03, page 14 of 690
Page 61
Pin No.
FP208C
TBP208APin NameI/ODescription
180A10VssQI/O power supply (0 V)
181D9
CTS2
/SCPT5I / I/OSCIF2 transmit clear / SC port
182B9VssI/O power supply (0 V)
183A9
/PTH0I/I/I/OExternalinterruptrequest/input/output port H
IRL1
/PTH1I/I/I/OExternalinterruptrequest/input/output port H
IRL2
/PTH2I/I/I/OExternalinterruptrequest/input/output port H
IRL3
/PTH3I/I/I/OExternalinterruptrequest/input/output port H
189A7IRQ4/PTH4I / I/OExternal interrupt reque st / input/output port H
190B7IRQ5/PTE2I / I/OExternal interrupt request / input/output port E
191C7AUDCK/PTG4O / I/OAUD clock / input/output port G
192D7NMIINonmaskable interrupt request
193A6DREQ0/PTH5I / I/ODMA request / input/output port H
194B6DREQ1/PTH6I / I/ODMA request / input/output port H
6
195C6
RESETP
*
IPower-on reset request
196D6CAIHardware standby request
197A5MD3IArea 0 bus width setting
198B5MD4IArea 0 bus width setting
199C5AVssAnalog power supply (0 V)
200D5AN0/PTL0I / IA/D converter input / input port L
201A4AN1/PTL1I / IA/D converter input / input port L
202B4AN2/PTL2I / IA/D converter input / input port L
203C4AN3/PTL3I / IA/D converter input / input port L
204A3AVccAnalog power supply (3.3 V)
205B3VssQI/O power supply (0 V)
206D4EXTAL_USBIUSB clock
207A2XTAL_USBOUSB clock
208B2VccQI/O power supply (3.3 V)
Notes: The unused pins should be handled according to table A.1, I/O Port States in Each
Processing State, in Appendix.
1. The
TRST
pin must be driven low for a specified period when power supply is turned on
regardless of whether the UDI function is used or not. As the same as the
the
TRST
pin should be driven low at the power-on set state and driven high after the
power-on reset state is released.
RESETP
pin,
Rev. 2.00, 09/03, page 15 of 690
Page 62
2. The input level of the
ASEMD0
pin must be high if the E10A emulator is not used. For
details, refer to section 23.4.2 , Reset Configuration.
3. These pins are initialized to the general input port setting in which the pull-up MOS is off
at a power-on rese t. When these pins are connected to memory and so on, their levels
must be fixed externally.
4. The initial functions of NF (No Function) pins are not assigned after power-on reset.
Specifies the functions with Pin Function Cont roller (PFC).
5. In hardware standby mode, supply power to all power supply pins including the RTC
power supply pins.
6. Pull-up MOS connecte d .
7. The pull-up MOS turns on if the pin function controller (PFC) is used to select other
functions (UDI).
Rev. 2.00, 09/03, page 16 of 690
Page 63
1.4Pin Functions
Table 1.3 lists the pin functions.
Table 1.3Pin Functions
ClassificationSymbolI/ONameFunction
Power supply
Clock
VccPower supply
VssGround
VccQPower supplyPower supply for I/O pins. Connect
VssQGroundGround pin. Connect all VssQ pins
Vcc-PLL1PLL1 power
supply
Power supply for the internal
modules and ports for the system.
Connect all Vcc pins to the system
power supply. There will be no
operation if any pins are open.
Ground pin. Connect all Vss pins to
the system power supply (0 V).
Therewillbenooperationifany
pins are open.
all VccQ pins to the system power
supply. There will be no operation
if any pins are open.
to the system power supply(0 V).
Therewillbenooperationifany
pins are open.
Power supply for the on-chip PLL1
oscillator.
Vss-PLL1PLL1 ground
Vcc-PLL2PLL2 power
supply
Vss-PLL2PLL2 groundGround pin for the on-chip PLL2
EXTALIExternal clock
XTALOCrystal
CKIOI/OSystem clockSupplies the system clock to
Ground pin for the on-chip PLL1
oscillator.
Power supply for the on-chip PLL2
oscillator.
oscillator.
For connection to a crystal
resonator. An external clock signal
mayalsobeinputtotheEXTAL
pin.
For connection to a crystal
resonator.
external device s.
Rev. 2.00, 09/03, page 17 of 690
Page 64
ClassificationSymbolI/ONameFunction
Operating mode
control
System control
MD6 to MD0IMode setSets the operating mode. Do not
change values on these pins
during operation.
MD2 to MD0 set the clock mode,
MD3 and MD4 set the bus-width
mode of area 0 and MD5 sets the
endian. MD6 pin should be
connected to VssQ.
RESETP
IPower-on reset
Whenlow, the system enters the
power-on reset state.
RESETM
IManual resetWhen low, the system enters the
manual reset state.
STATUS1,
OStatus outputIndicates the operating state.
STATUS0
BREQ
IBus request
Low when an external device
requests the release of the bus
mastership.
BACK
OBus request
acknowledge
Indicates that the bus mastership
has been release d to an external
device. Reception of the
BACK
signal informs the device which
has output the
BREQ
signal that it
has acquired the bus.
CAIChip active
High in normal operation, and low
in hardware standby mode.
Interrupts
NMIINon-maskable
interrupt
Non-maskable interrupt request
pin. Fix to high level when not in
use.
IRQ5to IRQ0I
Interrupt
requests 5 to 0
Maskable interrupt request pin.
Selectable as level input or edge
input. The rising edge or falling
edge is selectable as the dete ction
edge. The low leve l or high level is
selectable as the dete ction level.
receiver to the driver.
TXENLOOutput enableOutput enable pin for the driver.
SUSPNDOSuspend
Suspend-state ou tput pin for the
transceiver.
Vcc-USBUSB analog
power supply
USB power supply pin. When the
USB is not in use, connect this pin
to the port power supply (VccQ).
Vss-USBUSB analog
ground
USB ground pin. Connect this pin
to the system power supply(Vss).
D−I/OD− I/OOn-chip USB transceiver D−.
D+I/OD+ I/OOn-chip USB transceiver D+.
Rev. 2.00, 09/03, page 21 of 690
Page 68
ClassificationSymbolI/ONameFunction
I/O port
PTA7 to PTA0I/OGeneral
purpose port
PTB7 to PTB0I/O
General
purpose port
PTC7 to PTC0I/OGeneral
purpose port
PTD7 to PTD0I/O
General
purpose port
PTE7 to PTE0I/OGeneral
purpose port
PTF7 to PTF0I/O
General
purpose port
PTG7to PTG0I/OGeneral
purpose port
PTH6 to PTH0I/OGeneral
purpose port
PTJ7 to PTJ0O
General
purpose port
8-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
7-bit general-purpose I/O port pins .
8-bit general-purpose output port
pins.
PTK7 to PTK0I/OGeneral
purpose port
PTL3 to PTL0I
General
purpose port
PTM6, PTM4 to
PTM0
PTN7 to PTN0I/O
I/OGeneral
purpose port
General
purpose port
SCPT5 to
I/OSerial port6-bit serial port pins.
SCPT0
8-bit general-purpose I/O port pins .
4-bit general-purpose input port
pins.
6-bit general-purpose I/O port pins .
8-bit general-purpose I/O port pins .
Rev. 2.00, 09/03, page 22 of 690
Page 69
ClassificationSymbolI/ONameFunction
User debugging
interface
(UDI)
Advanced user
debugger
(AUD)
E10A interface
TCKITest clockTest-clock input pin.
TMSITest mode
Inputs the test-mode select signal.
select
TDIITest data input
Serial input pin for instructions and
data.
TDOO
TRST
AUDATA3 to
ITest resetInitial-signal input pin.
OAUD data
AUDATA0
Test data
output
Serial output pin for instructions
and data.
Destination-address output pin in
branch-trace mode.
AUDCKOAUD clockSynchronous clock output pin in
branch-trace mode.
AUDSYNCO
ASEBRKAK
OBreak mode
AUD
synchronous
signal
acknowledge
Data start-position acknowledge-
signal output pin in branch-trace
mode.
Indicates that the E10A emulator
has entered its break mode.
ASEMD0
For the connection with the E10A,
see the SH7705 E10A E mulator
User’s Manual (tentative title).
IASE modeSets ASE mode.
Rev. 2.00, 09/03, page 23 of 690
Page 70
Rev. 2.00, 09/03, page 24 of 690
Page 71
Section 2CPU
2.1Processing States and Processing Modes
2.1.1Processing States
This LSI supports four types of processing states: a reset state, an exception handling state, a
program execution state, and a low-power consumption state, according to the CPU processing
states.
Reset State: In the reset state, the CPU is reset. The LSI supports two types of resets: power-on
reset and manual reset. For details on resets, refer to section 5, Exception Handling.
In power-on reset, the registers and internal statuses of all LSI on-chip modules are initialized. In
manualreset, the register contents of a part of the LSI on-chip modules, such as the bus state
controller (BSC), are retained. For details, r efer to section 24, List of Registers. The CPUinternal
statuses and registers are initialized both in power-on reset and manual reset. After initialization,
the program branches to address H'A0000000 to pass control to the reset processing program to be
executed.
Exception Handling State: In the exception handling state, the CPU processing flow is changed
temporarily by a general exception or interrupt exception processing. The program counter (PC)
and status register (SR) are saved in the save program counter (SPC) and save status register
(SSR), respectively. The program branches to an address obtained by adding a vector offset to the
vector base register (VBR) and passes control to the exception processing program defined by the
user to be executed. For details on reset,refer to section 5, Exception Handling.
Program Execution State: The CPU executes pr ograms sequentially.
Low-Power Consumption State: The CPU stops operation to reduce power consumption. The
low-power consumption state can be enter ed by executing the SLEEP instruction. For details on
the low-power consumption state, refer to section 11, Power-Down Modes.
Figure 2.1 sh ows a statustransition diagram.
CPUS3D0S_000020020300
Rev. 2.00, 09/03, page 25 of 690
Page 72
2.1.2Processing Modes
This LSI supports two processing modes: user mode and privileged mode. These processing
modes can be determined by the processing mode bit (MD) of the status register (SR). If the MD
bit is cleared to 0, the user mode is selected. If the MD bit is set to 1, the privileged mode is
selected. The CPU enters the privileged mode by a transition to reset state or exception handling
state. In the privileged mode, any registers and resources in address spaces can be accessed.
Clearing the MD bit of the SRto0 puts theCPUin the user mode. In the user mode, some of the
registers, including SR, and some of the address spaces cannot be accessed by the user program
and system control instructions cannot be executed. This function effectively protects the system
resources from the user program. To change the processing mode from user to privileged mode, a
transition to exception handling state is required.*
Note:*To call a service routine used in privileged mode from user mode, the LSI supports an
unconditional trap instruction (TRAPA). When a transition from user mode to
privileged mode occurs, the contents of the SR and PC are saved. A program execution
in user mode can be resumed by restoringthe contents of the SR and PC. Toreturn
from an exception processing program, the LSI supports an RTE instruction.
(From any states)
Power-on reset
Manual reset
Multiple
exceptions
Exception handling state
Reset processing
Reset state
Exception
handling
routine starts
routine starts
An exception
is accepted
An exception
is accepted
Figure 2.1 Processing State Transitions
Program execution state
SLEEP instruction
Low-power
consumption state
Rev. 2.00, 09/03, page 26 of 690
Page 73
2.2Memory Map
2.2.1Logical Address Space
The LSI supports 32-bit logical addresses and accesses system resources using the 4-Gbytes of
logical address space. User programs and data are accessed from the logical address space. The
logical address space is divided into several areas as shown in table 2.1.
P0/U0 Area: This area is called the P0 area when the CPU is in privileged mode and the U0 area
when in user mode. For the P0 and U0 areas, access using the cache is enabled. The P0 and U0
areas are handled as address translatable areas.
If the cache is enabled, access to the P0 or U0 area is cached. If a P0 or U0 address is specified
while the address translation unit is enabled, the P0 or U0 address is translated into a physical
address based on translation information defined by the user.
If the CPU is in user mode, only the U0 area can be accessed. If P1, P2, P3, or P4 is accessed in
user mode, a transition to an address error exception occurs.
P1 Area: The P1 area is defined as a cacheable but non-address translatable area. Normally,
programs executed at high speed in privileged mode, such as exception processing handlers, which
are at the core of the operating system (S), are assigned to the P1 area.
P2 Area: The P2 area is defined as a non-cacheable but non-address translatable area. A reset
processing program to be called from the reset state is described at the start address (H'A0000000)
of the P2 area. Normally, programs such as system initialization routines and OS initiation
programs are assigned to the P2 area. To access a part of an on-chip module control register, its
corresponding program should be assigned to the P2 area.
P3 Area: The P3 area is defined as a cacheable and address translatable area. This area is used if
an address translation is required for a privileged program.
P4 Area: The P4 area is defined as a control area which is non-cacheable and non-address
translatable. This area can be accessed only in privileged mode. A part of this LSI's on-chip
module control register is assigned to this area.
In user mode, only this address space can
be accessed.
address translatable
2.2.2External Memory Space
The LSI uses 29 bits of the 32-bit logical address to access external memory. In this case, 0.5Gbyte of external memory space can be accessed. The external memory space is managed in area
units. Different types of memory can be connected to each area, as shown in figure 2.2. For
details, please r efer to section 7, Bus State Controller (BSC). In addition, area 1 in the external
memory space is used as an on-chip I/O space where most of this LSI's on-chip module control
registers are mapped. *
1
Normally, the upper three bits of the 32-bit logical address are masked and the lower 29 bits are
used for external memory addresses.*
2
For example, address H'00000100 in the P0 area, address
H'80000100 in the P1 area, address H'A0000100 in the P2 area, and address H'C0000100 in the P3
area of the logical address space are mapped into address H'00000100 of area 0 in the external
memory space. The P4 area in the logical address space is not mapped into the external memory
address. If an address in the P4 area is accessed, an external memory cannot be accessed.
Notes: 1. To access an on-chip module control register mapped into area 1 in the external
memory space, access the address from the P2 area which is not cached in the logical
address space.
2. If the addresstranslation unit is enabled, arbitrary mapping in page units can be
specified. For details, refer to section 3, Memory Management Unit (MMU).
Rev. 2.00, 09/03, page 28 of 690
Page 75
External memory space
H'0000 0000H'0000 0000
P0 area
Area 0
Area 1
Area 2
Area 3
Area 4
Area 5
Area 6
Area 7
U0 area
H'8000 0000
H'A000 0000
H'C000 0000
H'E000 0000
H'FFFF FFFF
P1 area
P2 area
Address error
P3 area
P4 area
Privileged modeUser mode
H'8000 0000
H'FFFF FFFF
Figure 2.2 Logical Address to External Memory Space Mapping
2.3Register Descriptions
This LSI provides thirty-three 32-bit registers: 24 generalregisters, five control registers, three
system registers, and one program counter.
General Registers: This LSI incorporates 24 general registers: R0_BANK0 to R7_BANK0,
R0_BANK1 to R7_BANK1 and R8 to R15. R0 to R7 are banked. The process mode and the
register bank (RB) bit in the status register (SR) define which set of banked registers (R0_BANK0
to R7_BANK0 or R0_BANK1 to R7_BANK1) are accessed as general registers.
SystemRegisters: This LSI incorporates the multiply and accumulateregisters (MACH/MACL)
and procedure register (PR) as system registers. These registers can be accessed regardless of the
processing mode.
Program Counter: The program counter stores the value obtained by adding 4 to the current
instruction address.
Control Registers: This LSI incorporates the statusregister (SR), global base register (GBR),
save status register (SSR), save program counter (SPC), and vector base register (VBR) as control
register. Only the GBR can be accessed in user mode. Control registers other than the GBR can be
accessed only in privileged mode.
Rev. 2.00, 09/03, page 29 of 690
Page 76
Table 2.2 shows the register values after reset. Figure 2.3 shows the register configurations in each
process mode.
Table 2.2Register Initial Values
Register TypeRegistersInitial Values
General registersR0_BANK0 to R7_BANK0,
Undefined
R0_BANK1 to R7_BANK1,
R8 to R15
System registersMACH, MACL, PRUndefined
Program counterPCH’A0000000
Control registers
Notes: 1. The R0 register is used as an index register in indexed register indirect addressing mode
and indexed GBR indirect addressing mode.
2. Bank register
3. Bank register
Accessed as a general register when the RB bit is set to 1 in the SR register.
Accessed only by LDC/STC instructions when the RB bit is cleared to 0.
4. Bank register
Accessed as a general register when the RB bit is cleared to 0 in the SR register.
Accessed only by LDC/STC instructions when the RB bit is set to 1.
Figure 2.3 Register Configuration in Each Processing Mode
Rev. 2.00, 09/03, page 31 of 690
Page 78
2.3.1General Registers
There are twenty-four 32-bit general registers: R0_BANK0 to R7_BANK0, R0_BANK1 to
R7_BANK1, and R8 to R15. R0 to R7 are banked. The process mode and the register bank (RB)
bit in the status register (SR) define which set of banked registers (R0_BANK0 to R7_BANK0 or
R0_BANK1 to R7_BANK1) are accessed as general registers. R0 to R7 registers in the selected
bank are accessed as R0 to R7. R0 to R7 in the non-selected bank is accessed as R0_BANK to
R7_BANK by the control register load instruction (LDC) and control register store instruction
(STC).
In user mode, bank 0 is selected regardless of he RB bit value. Sixteen registers: R0_BANK0 to
R7_BANK0 and R8 to R15 are accessed as general registers R0 to R15. The R0_BANK1 to
R7_BANK1 registers in bank 1 cannot be accessed.
In privileged mode that is entered by a transition to exception handling state, the RB bit is set to 1
to select bank 1. In privileged mode, sixteen registers: R0_BANK1 to R7_BANK1 and R8 to R15
are accessed as general registers R0 to R15. A bank is switched automatically when an exception
handling state is entered, register s R0 to R7 need not be saved by the exception handling routine.
The R0_BANK0 to R7_BANK0 registers in bank 0 can be accessed as R0_BANK to R7_BANK
by th e LDC and STC instructions.
In privileged mode, bank 0 can also be used as general registers byclearing the RB bit to 0. In this
case, sixteen registers: R0_BANK0 to R7_BANK0 and R8 to R15 are accessed as general
registers R0 to R15. The R0_BANK1 to R7_BANK1 registers in bank 1 can be accessed as
R0_BANK to R7_BANK by the LDC and STC instructions.
The gen eral registers R0 to R15 are used as equivalent registers for almost all instructions. In
some instruction s, the R0 register is automaticallyused or only the R0 register can be used as
source or destination registers.
Rev. 2.00, 09/03, page 32 of 690
Page 79
31
R0
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10
R11
R12
R13
R14
R15
*1 *2
*2
*2
*2
*2
*2
*2
*2
0
General Registers: Undefined after reset
Notes: 1. R0 functions as an index register in the indexed
register-indirect addressing mode and indexed
GBR-indirect addressing mode. In some
instructions, only R0 can be used as the source
or destination register.
2. R0−R7 are banked registers. In user mode,
BANK0 is used. In privileged mode, either
R0_BANK0 to R7_BANK0 or R0_BANK1 to
R7_BANK1 is selected by the RB bit of the SR
register.
Figure 2.4 General Registers
2.3.2System Registers
The system registers: multiplyand accumulate registers (MACH/MACL) and procedure register
(PR) as system registers can be accessed by the LDS and STS instructions.
Multiply and Accumulate Registers (MACH/MACL): The multiplyand accumulate registers
(MACH/MACL) store the results of multiplication and accumulation instructions or multiplication
instructions. The MACH/MACL register s also store addition values for the multiplication and
accumulations. After reset, these registers are undefined. The MACH and MACL registers store
upper 32 bits and lower 32 bits, respectively.
Procedure Register (PR): The procedure register (PR) stores the return address for a subroutin e
call using the BSR, BSRF, or JSR instruction. The return address stored in the PR register is
restored to the program counter (PC) by the RTS (return from the subroutine) instruction. After
reset, this register is undefined.
Rev. 2.00, 09/03, page 33 of 690
Page 80
2.3.3Program Counter
The program counter (PC) stores the value obtained by adding 4 to the current instruction address.
There is no instruction to read the PC directly. Before an exception handling state is entered, the
PC is saved in the save program counter (SPC). Before a subroutine call is executed, the PC is
saved in the procedur e register (PR). Inaddition, the PC can be used for PC relative addressing
mode.
Figure 2.5 sh ows the system register and program counter configurations.
Multiply and accumulate high and low registers (MACH/MACL)
310
MACH
MACL
Procedure register (PR)
310
PR
Program counter (PC)
310
PC
Figure 2.5 System Registers and Program Counter
Rev. 2.00, 09/03, page 34 of 690
Page 81
2.3.4Control Registers
The control registers (SR, GBR, SSR, SPC, and VBR) can be accessed by the LDC or STC
instruction in privileged mode. The GBR register can be accessed in the user mode.
The control registers are described below.
Status Register (SR): The status register (SR) indicates the system status as shown below. The
SR register can be accessed only in privileged mode.
Initial
BitBit Name
310RReserved
30MD1R /WProcessing Mode
ValueR/WDescription
This bit is always read as 0. The write value should always be
0.
Indicates the CPU processing mode.
0: User mode
1: Privileged mode
The MD bit is set to 1 in reset or exception handling state.
29RB1R/WRegister Bank
The general registers R0 to R7 are banked registers. The RB
bit selects a bank used in the privileged mode.
0: Selects bank 0 registers. In this case , R0_BANK0 to
R7_BANK0 and R8 to R15 are used as general registers.
R0_BANK1 to R7_BANK1 can be accessed by the LDC or
STR instruction.
1: Selects bank 1 registers. In this case , R0_BANK1 to
R7_BANK1 and R8 to R15 are used as general registers.
R0_BANK0 to R7_BANK0 can be accessed by the LDC or
STR instruction.
The RB bit is set to 1 in reset or exception handling state.
28BL1R/WBlock
Specifies whether an exception, interrupt, or user break is
enabled or not.
27 to 10 0RReserved
0: Enables an exception, interrupt, or user break.
1: Disables an exception, interrupt, or user break.
The BL bit is set to 1 in reset or exception handling state.
These bits are always read as 0. The write value should
always be 0.
Rev. 2.00, 09/03, page 35 of 690
Page 82
BitBit Name
Initial
ValueR/WDescription
9
8
7 to 4I3 to I01R/WInterrupt Mask
3, 20RReserved
1S R/WSaturation Mode
M
Q
R/W
R/W
MBit
QBit
These bits are used by the DIV0S, DIV0U , and D IV1
instructions. Thesebits can be changed even in user mode by
using the DIV0S, DIV0U, and DIV1 instructions. These bits
are undefined at reset. Thesebits do not change in an
exception handling state.
Indicates the interrupt mask level. These bits do not change
even if an interrupt occurs. At reset, these bits are initialized
to B’1111. These bits are not affected in an exception
handling state.
These bits are always read as 0. The write value should
always be 0.
Specifies the saturation mode for multiply instructions or
multiply and accumulate instructions. This bit can be specified
by the SETS and CLRS instructions in user mode.
At reset, this bit is undefined. This bit is not affected in an
exception handling state.
0T R/WT Bit
Indicates true or falsefor compare instructions or carry or
borrow occurrence for an operation instruction with carry or
borrow. This bit can be specified by the SETT and CLRT
instructions in user mode.
At reset, this bit is undefined. This bit is not affected in an
exception handling state.
Note:The M, Q, S, and T bits can be set/cleared by the user mode specific instructions. Other bits
can be read or written in privileged mode.
Save Status Register (SSR): The save status register (SSR) can be accessed only in privileged
mode. Before enteringtheexception, the contents of the SR register is stored in theSSR register.
At reset, the SSR initial value is undefin ed.
Save Program Counter (SPC): The save program counter (SPC) can be accessed only in
privileged mode. Before entering the exception, the contents of the PC are stor ed in the SPC. At
reset, the SPC initial value is undefin ed.
Global Base Register (GBR): The global base register (GBR) is referenced as a base r egister in
GBR indirect addressing mode. At reset, the GBR initial value is undefined.
Rev. 2.00, 09/03, page 36 of 690
Page 83
Vector Base Register (VBR): The global base register (GBR) can be accessed only in privileged
mode. If a transition from reset state to exception handling state occurs, this register is referenced
as a base address. For details, refer to section 5, Exception Handling. At r eset, the VBR is
initialized as H'00000000.
Figure 2.6 shows the control register configuration.
Save status register (SSR)
310
SSR
Save program counter (SPC)
31
SPC
Global base register (GBR)
310
GBR
Vector base register (VBR)
31
VBR
0
0
Status register (SR)
310
0
MD RB BL
0
TS00I0I1I2I3QM0
Figure 2.6 Control Register Configuration
2.4Data Formats
2.4.1Register Data Format
Register operands are always longwords (32 bits). When the memory operand is only a byte (8
bits) or a word (16 bits), it is sign-extended into a longword when loaded into a register.
310
Longword
Rev. 2.00, 09/03, page 37 of 690
Page 84
2.4.2Memory Data Formats
Memory data formats are classified into byte, word, and longword. Memory can be accessed in
byte, word, and longword. When the memory operand is only a byte (8 bits) or a word (16 bits), it
is sign-extended into a longword when loaded into a register.
An address error will occur if word data starting from an address other than 2n or longword data
starting from an address other than 4n is accessed. In such cases, the data accessed cannot be
guaranteed.
When a word or longword operand is accessed, the byte positions on the memory correspon ding to
the word or longword data on the register is determined to the specified endian mode (big endian
or little endian).
Figure 2.7 shows a byte correspondence in big endian mode. In big endian mode, the MSB byte in
the register corresponds to the lowest address in the memory, and the LSB the in the register
correspon ds to the highest address. For example, if the contents of the general register R0 is stored
at an address indicated by the general register R1 in longword, the MSB byte of the R0 is stored at
the address indicated bythe R1 and the LSB byte of the R1 register is stored at the address
indicated by the (R1 +3).
The on-chip device registers assigned to memory are accessed in big endian mode. Note that the
available access size (byte, word, or long word) differs in each register.
Note:The CPU instruction codes of this LSI must be stored in word units. In big endian mode,
the instruction code must be stored from upper byte to lower byte in this order from the
word boundary of the memory.
Figure 2.7 Data Format on Memory (Big Endian Mode)
Rev. 2.00, 09/03, page 38 of 690
Page 85
The little endian mode can also be specified as data format. Either big-endian or little-endian mode
can be selected according to the MD5 pin at reset. When MD5 is low at reset, the processor
oper ates in big-endian mode. When MD5 ishigh at reset, the processor operates in little-endian
mode. The endian mode cannot be modified dynamically.
In little endian mode, the MSB byte in the register corresponds to the highest address in the
memory, and the LSB the in the register corresponds to the lowest address (figure 2.8). For
example, if the contents of th e general register R0 is stored at an address indicated by the general
register R1 in longword, the MSB byte of the R0 is stored at theaddress indicated bythe (R1+3)
and the LSB byte of the R1 register is stored at the address indicated by the R1.
If the little endian mode is selected, the on-chip device registers assigned to memory are accessed
in big endian mode. Note that the available access size (byte, word, or long word) differs in each
register.
Note:The CPU instruction codes of this LSI must be stored in word units. In little endian mode,
the instruction code must be stored from lower byte to upper byte in this order from the
word boundary of the memory.
sequential pipeline. In the sequential pipeline, almost all instructions can be executed in one cycle.
All data items are handles in longword (32 bits). Memory can be accessed in byte, word, or
longword. In this case, Memory byte or word data is sign-extended and operated on as longword
data. Immediate data is sign-extended to longword size for arithmetic operations (MOV, ADD,
and CMP/EQ instructions) or zero-extended to longword size for logical operations (TST, AND,
OR, and XOR instructions).
Load/Store Architecture: Basic operations are executed between registers. In operations
involving memory, data is first loaded into a register (load/store architecture). However, bit
manipulation instructions such as AND are executed directly on memory.
Delayed Branching: Unconditional branch instructions are executed as delayed branches. With a
delayed branch instruction, the branch is made after execution of the instruction (called the slot
instruction) immediately following the delayed branch instruction. This minimizes disruption of
the pipeline when a branch is made.
This LSI supports two types of conditional branch instructions: delayed branch instruction or
normal branch instruction.
Example:BRATARGET
ADDR1, R0; ADD is executed before branching to the TARGET
TBit:The result of a comparison is indicated by the T bit in the status register (SR), and a
condition al branch is performed according to whether the result is True or False. Processing speed
has been improved by keeping the number of instructions that modify the T bit to a minimum.
Example:ADD#1, R0; The T bit cannot be modified by the ADD instruction
CMP/EQ#0, R0;TheTbitissetto1ifR0is0.
BTTarget; Branch to TARGET if the T bit is set to 1 (R0=0).
Rev. 2.00, 09/03, page 40 of 690
Page 87
Literal Constant: Byte literal con stant is placed inside the instruction code as immediate data.
Since the instruction length is fixed to 16 bits, word and longword literal constant is not placed
inside the instr uction code, but in a table in memory. The table in memory is referenced with a
MOV instruction using PC-relative addressing mode with displacement.
Example:MOV.W@(disp, PC)
Absolute Addresses: When data is referenced by absolute address, the absolute address value is
placed in a table in memory beforehand as well as word or longword literal constant. Using the
method whereby immediatedata is loaded wh en an instruction is executed, this value is
transferred to a register and the data is referenced using register indirect addressing mode.
16-Bit/32-Bit Displacement: When data is referenced with a 16- or 32-bit displacement, the
displacement valueis placed in a table in memory beforehand. Usin g the method whereby word or
longword immediate data is loaded when an instruction is executed, this value is transferred to a
register and the data is referenced using indexed register indirect addressing mode.
Rev. 2.00, 09/03, page 41 of 690
Page 88
2.5.2CPU Instruction Addressing Modes
The following table shows addressing modes and effective address calculation meth ods for
instructions executed by the CPU core.
Table 2.3Addressing Modes and Effective Addresses for CPU Instructions
Effective addressis regis ter Rn contents with
4-bit displacement disp added. After disp is
zero-extended, it is multi plied by 1 (byte), 2
(word), or 4 (longword), according to the
operand size.
(zero-extended)
Rev. 2.00, 09/03, page 42 of 690
Rn
disp
1/2/4
Byte: Rn + disp
Word: Rn + disp×
2
Longword: Rn +
disp × 4
+
×
Rn
+ disp × 1/2/4
Page 89
Addressing
Mode
Instruction
FormatEffective Address Calculat ion Method
Calculation
Formula
Indexed
register indirect
GBR indirect
with
displacement
Indexed GBR
indirect
@(R0, Rn) Effective address is sum of register Rn and R0
contents.
Rn
Rn + R0
@(disp:8,
GBR)
+
R0
Effective address is register GBR contents with
8-bit displacement disp added. After disp is
zero-extended, it is multi plied by 1 (byte), 2
(word), or 4 (longword), according to the
operand size.
GBR
+ disp
GBR
×
1/2/4
@(R0,
GBR)
disp
(Zero-extended)
1/2/4
+
×
Effective addre ssis sum of register GBR and
R0 contents.
Rn + R0
Byte: GBR + disp
Word: GBR+ disp
× 2
Longword: GBR +
disp × 4
GBR + R0
PC-relative with
displacement
@(disp:8,
PC)
GBR
+
R0
GBR + R0
Effective address is PC with 8-bit displacement
disp added. After disp is zero-extended, it is
multiplied by 2 (word) or 4 (longword), according
to the operand size. With a longword operand,
the lower 2 bitsof PC aremasked.
PC-relativedisp:8Effective address is PC with 8-bit displacement
disp added after being sign-extended and
multiplied by 2.
PC
disp:12
disp
(sign-extended)
2
Effective addressis PC with 12-bit displacement
+
×
PC + disp × 2
disp added after being sign-extended and
multiplied by 2
PC
disp
(sign-extended)
2
+
×
PC + disp × 2
RnEffective address is sum of PC and Rn.
PC + disp × 2
PC + disp × 2
PC + Rn
PC
Immediate
+
Rn
#imm:88-bit immediate dataimm of TST, AND, OR,
PC + Rn
—
or XOR instruction is zero-extended.
#imm:8
8-bit immediate data imm of MOV, ADD, or
—
CMP/EQ instruction is sign-extended.
#imm:8
8-bit immediate data imm of TRAPA instruction
—
is zero-extended and multiplied by 4.
Note:For addressing modes with displacement (disp) as shown below, the assembler description
in this manual indicates the value before it is scaled(x 1, x2, or x4) accordingto the
operand size to clarify the LSI operation . For details on assembler description, refer to the
description rules in each asse mbler.
@ (disp:4, Rn); Register indirect with displacement
@ (disp:8, Rn); GBR indirect with displacement
@ (disp:8, PC); PC relative with displacement
disp:8, disp; PC relative
Rev. 2.00, 09/03, page 44 of 690
Page 91
2.5.3CPU Instruction Formats
Table 2.4 shows the instruction formats, and the meaning of the source and destination operands,
for instructions executed by the CPU core. The meaning of the operands depends on the
instruction code. The following symbols are used in the table.
Note: * In multiply-and-accumulate instructions, nnnn is the source register.
Rev. 2.00, 09/03, page 47 of 690
Page 94
2.6Instruction Set
2.6.1CPU Instruction Set Based on Functions
The CPU instruction set consists of 68 basic instruction types divided into six functional groups,
as shown in table 2.5. Tables 2.6 to 2.11 show the instruction notation, machine code, execution
time, and function.
Table 2.5CPU Instruction Types
Type
Datatransfer
instructions
Arithmetic
operation
instructions
Kinds of
InstructionOp CodeFunction
5
21ADDBinary addition33
MOVData transfer
Immediate data transfer
Peripheral module data transfer
Structure datatransfer
MOVAEffective address transfer
MOVTT bit transfer
SWAPUpper/lower swap
XTRCTExtraction of middle of linked registers
ADDCBinary addi tion with carry
ADDVBinary addition with overflow check
CMP/condComparison
DIV1Division
Number of
Instructions
39
DIV0SSigned divisioninitialization
DIV0UUnsigned div ision initialization
DMULSSigned double-precision multiplication
DMULUUnsigned double-precisionmultiplication
DTDecrement and test
EXTSSign extension
EXTUZero extension
MAC
NOTBit inversion
ORLogical OR
TASMemory test and bit setting
TSTLogical AND and T bit setting
XORExclusivelogical OR
12ROTL1-bit left shift16
ROTR1-bit right shift
ROTCL1-bit left shift with T bit
ROTCR1-bit right shift with T bit
SHALArithmetic 1-bit left shift
SHARArithmetic 1-bit right shift
SHLLLogical 1-bit left shift
SHLLnLogical n-bit left shift
SHLRLogical 1-bit right shift
SHLRnLogical n-bit right shift
SHADArithmetic dynamic shift
SHLDLogical dynamic shift
Rev. 2.00, 09/03, page 49 of 690
Page 96
Type
Kinds of
InstructionOp CodeFunction
Number of
Instructions
Branch
instructions
System
control
instructions
9BFConditional branch, delayed condi tional
11
branch (T = 0)
BT
Conditional branch, de layed conditional
branch (T = 1)
BRAUnconditional branch
BRAFUnconditional branch
BSRBranch to subroutine procedure
BSRFBranch to subroutine procedure
JMPUnconditional branch
JSRBranch to subroutine procedure
RTSReturn from subroutine procedure
15CLRTT bit clear75
CLRMACMAC register clear
CLRSS bit clear
LDCLoad into control register
LDSLoad into system register
LDTLBPTEH/PTEL load into TLB
NOPNo operation
PREFData prefetch to cache
RTEReturn from exception handling
SETSS bit setting
SETTT bit setting
SLEEPTransition to power-downmode
STCStore from control register
STSStorefrom system register
TRAPATrap exception handling
Total:68188
Rev. 2.00, 09/03, page 50 of 690
Page 97
The instruction code, operation, and number of execution states of the CPU instructions are shown
in the following tables, classified by instruction type, using the format shown below.
Explanation of Symbols
mmmm: Source register
nnnn: Destination register
0000: R0
0001: R1
.........
1111: R15
iiii:Immediate data
dddd: Displacement
Indicates summary of
operation.
Explanation of Symbols
→, ←: Transfer direction
(xx):Memory operand
M/Q/T: Flag bits in SR
&:Logical AND of each bit
|:Logical OR of each bit
^:Exclusive logical OR of
2
*
each bit
~:Logical NOT of each bit
<<n: n-bitleft shift
>>n: n-bit right shift
Indicates a
privileged
instruction.
Value when
no wait
states are
inserted
1
*
Value of T
bit after
instruction is
executed
Explanation
of Symbols
—: No
change
Notes: 1. The table shows the minimum number of exe cution states. In practice, the number of
instruction execution states wi ll be increased in cases such as the following:
a.When there is a conflict be tween an instruction fetch and a data access
b.When the dest ination register of a load instruction (memory → register) is also
used by the following instruc tion
2. Scaled (x1, x2, or x4) according to the instruction operand size, etc.
Rev. 2.00, 09/03, page 51 of 690
Page 98
Table 2.6Data Transfer Instructions
InstructionInstruction Code Operation
Privileged
ModeCycles T Bit
MOV#imm,Rn
MOV.W @(disp,PC),Rn1001nnnndddddddd(disp x 2+PC)→Sign extension