Note:
Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and
ultimately degrade the device operation. Steps must be taken to stop generation of static
electricity as much as possible, and quickly dissipate it once, when it has occurred. Environmental
control must be adequate. When it is dry, humidifier should be used. It is recommended to avoid
using insulators that easily build static electricity. Semiconductor devices must be stored and
transported in an anti-static container, static shielding bag or conductive material. All test and
measurement tools including work bench and floor should be grounded. The operator should be
grounded using wrist strap. Semiconductor devices must not be touched with bare hands. Similar
precautions need to be taken for PW boards with semiconductor devices on it.
2HANDLING OF UNUSED INPUT PINS FOR CMOS
Note:
No connection for CMOS device inputs can be cause of malfunction. If no connection is provided
to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence
causing malfunction. CMOS devices behave differently than Bipolar or NMOS devices. Input
levels of CMOS devices must be fixed high or low by using a pull-up or pull-down circuitry. Each
unused pin should be connected to V
possibility of being an output pin. All handling related to the unused pins must be judged device
by device and related specifications governing the devices.
DD or GND with a resistor, if it is considered to have a
3STATUS BEFORE INITIALIZATION OF MOS DEVICES
Note:
Power-on does not necessarily define initial status of MOS device. Production process of MOS
does not define the initial operation status of the device. Immediately after the power source is
turned ON, the devices with reset function have not yet been initialized. Hence, power-on does
not guarantee out-pin levels, I/O settings or contents of registers. Device is not initialized until
the reset signal is received. Reset operation must be executed immediately after power-on for
devices having reset function.
V850 Family, V850/SA1 is a trademark of NEC Corporation.
Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or
other countries.
UNIX is a registered trademark licensed by X/Open Company Limited in the United States and other
countries.
3
Page 4
Purchase of NEC I2C components conveys a license under the Philips I2C Patent Rights to use these
components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined
by Philips.
The export of these products from Japan is regulated by the Japanese government. The export of some or all of these
products may be prohibited without governmental license. To export or re-export some or all of these products from a
country other than Japan may also be prohibited without a license from that country. Please call an NEC sales
representative.
Licence not needed : µPD70F3017,70F3017Y
The customer must judge the need for licence : µPD703015,703015Y
The information in this document is subject to change without notice.
No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in
this document.
NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual
property rights of third parties by or arising from use of a device described herein or any other liability arising
from use of such device. No license, either express, implied or otherwise, is granted under any patents,
copyrights or other intellectual property rights of NEC Corporation or others.
While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor devices,
the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to persons or
property arising from a defect in an NEC semiconductor device, customers must incorporate sufficient safety
measures in its design, such as redundancy, fire-containment, and anti-failure features.
NEC devices are classified into the following three quality grades:
"Standard", "Special", and "Specific". The Specific quality grade applies only to devices developed based on
a customer designated "quality assurance program" for a specific application. The recommended applications
of a device depend on its quality grade, as indicated below. Customers must check the quality grade of each
device before using it in a particular application.
Standard: Computers, office equipment, communications equipment, test and measurement equipment,
audio and visual equipment, home electronic appliances, machine tools, personal electronic
equipment and industrial robots
Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support)
Specific: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems or medical equipment for life support, etc.
The quality grade of NEC devices is "Standard" unless otherwise specified in NEC's Data Sheets or Data Books.
If customers intend to use NEC devices for applications other than those specified for Standard quality grade,
they should contact an NEC sales representative in advance.
Anti-radioactive design is not implemented in this product.
M7 96. 5
4
Page 5
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, pIease contact the NEC office in your country to obtain a list of authorized
representatives and distributors. They will verify:
•
Device availability
•
Ordering information
•
Product release schedule
•
Availability of related technical literature
•
Development environment specifications (for example, specifications for third-party tools and
components, host computers, power plugs, AC supply voltages, and so forth)
•
Network requirements
In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary
from country to country.
NEC Electronics Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
Seoul Branch
Seoul, Korea
Tel: 02-528-0303
Fax: 02-528-4411
NEC Electronics Singapore Pte. Ltd.
United Square, Singapore 1130
Tel: 65-253-8311
Fax: 65-250-3583
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-719-2377
Fax: 02-719-5951
NEC do Brasil S.A.
Cumbica-Guarulhos-SP, Brasil
Tel: 011-6465-6810
Fax: 011-6465-6829
J98. 2
5
Page 6
Major Revisions in This Edition
p.23121-pin fine pitch BGA has been added to
p.24121-pin fine pitch BGA has been added to
p.57The explanation of EP bit has been modified in
p.71The description has been modified in
.
(MAM)
p.75
p.80
p.90
p.102
p.148, 149
p.152
p.153
p.155
p.156
p.157
p.160
p.162
p.164TIn0 has been modified in
p.164
p.166
p.167
p.198The description has been changed in
p.222
p.223
p.266The explanation has been modified in
p.269
p.303
p.308
p.314
p.359, 362, 366Erase/write voltage has been changed to VPP = 7.8 V
Figure 7-5 Format of Prescaler Mode Register 0 (PRM0)
Figure 7-6 Format of Prescaler Mode Register 1 (PRM1)
Figure 7-10 Control register Settings in PPG Output Operation
Figure 7-13
Specified
The following figures have been modified.
Figure 7-16 Timing of Pulse Width Measurement with Free Running Counter (with
both edges specified)
Figure 7-18 Timing of Pulse Width Measurement with Free Running Counter and Two
Capture Registers (with rising edge specified)
Figure 7-20 Timing of Pulse Width Measurement by Restarting (with rising edge
specified)
Caution
Figure 10-9 Format of IIC Control Register (IICC0)
been added to this figure.
Figure 10-23 Communication Reservation Flow Chart
Caution
Caution
11.5 (9) Reading A/D conversion result register (ADCR)
has been added to
has been added to
has been added to
has been added to
has been modified in
.
has been added to
.
has been added to
has been added to the following figures:
has been modified.
.
has been added to
has been added to
has been added to
has been modified.
3.4.9 Specific registers
4.7.1 Outline of function
Table 5-1 Interrupt Source List
Figure 7-2 Format of 16-Bit Timer Mode Control Register
Figure 7-3 Format of Capture/Compare Control Register 0,
Figure 7-4 Format of 16-Bit Timer Output Control Register 0, 1
Figure 7-15 CRn1 Capture Operation with Rising Edge
10.3.2 (1) IIC control register (IICC0)
11.2 (2) A/D conversion result register (ADCR)
11.4.1 Basic operation
1.4 Ordering Information
1.5 Pin Configuration (Top View)
3.2.2 (2) Program status word (PSW)
3.4.6 (2) memory address output mode register
.
8.4.1 Operation as watch timer.
10.3.12 Communication reservation
has been added to this section.
Note
.
.
.
.
has been modified and
has been modified.
.
has been added.
.
Remark
.
.
.
and
has
The mark shows major revised points.
6
Page 7
INTRODUCTION
Readers
This manual is intended for users who wish to understand the functions of the V850/SA1 (µPD703015,
703015Y, 70F3017, 70F3017Y) and design applicati on systems using these products.
Purpose
This manual is intended to help users understand the hardware functions described following the
organization below.
Organization
The V850/SA1 user’s manual is divided into two parts: hardware (this manual) and architecture
(V850 Family User’s Manual Architecture).
HardwareArchitecture
•
Pin function
•
CPU function
•
Internal peripheral function
•
Flash memory programming mode
How to Read This Manual
To find the details of a register whose name is known:
Refer to
→
•
Data type
•
Register set
•
Instruction format and instruction set
•
Interrupt and exception
•
Pipeline operation
The manual assumes that the reader has general knowledge of electricity, logical
circuits and microcontrollers.
APPENDIX A REGISTER INDEX
.
Legend
To find the details of a function, etc. whose name is known:
Refer to
→
APPENDIX C INDEX
.
To understand the details of instruction functions:
Refer to
→
V850 Family User’s Manual Architecture
To understand the overall functions of the V850/SA1:
Read this manual according to the Table of Contents.
→
Data significance: Higher digits on the left and lower digits on the right
Active low : xxx (overscore over pin or signal name)
Memory map address :Top: highest, bottom: lowest
Note
Caution
Remark
: Footnote for item marked with
: Information requiring particular information
: Supplementary information
Note
in the text
Number representation : Binary … xxxxB or xxxx
Decimal number … xxxx
Hexadecimal … xxxxH
Prefixes indicating power of 2 (address space, memory capacity):
K (kilo) : 2
M (mega) : 220=1024
G (giga) : 230=1024
10
=1024
2
3
7
Page 8
Related documents
The related documents indicted in this publication may included preliminary versions.
However, preliminary versions are not marked as such.
Related documents for V850/SA1
Document NameDocument No.
V850 Family Architec ture User’s ManualU10243E
V850 Family Instructi on Tabl eU10229E
µ
PD703015 Data SheetTo be prepared
µ
PD703015Y Data SheetTo be prepared
µ
PD703017 Data SheetTo be prepared
µ
PD70F3017Y Data SheetTo be prepared
V850/SA1 Hardware User’s ManualThis manual
Related documents for development tool (user’s manual)
Document NameDocument No.
IE-703002-MC (In-circuit em ul ator)U11595E
IE-703017-MC-EM1 (In-circui t emulator option board)U12898E
CA850 (C compiler package)Operation (UNIX based)U11013E
Operation (Windows based)U11068E
Assembly LanguageU10543E
C LanguageU11010E
Project ManagerU11991E
3.4Address Space .....................................................................................................................................59
3.4.1 CPU address space....................................................................................................................59
5.4.3 EP flag......................................................................................................................................... 124
5.6Priority Control ..................................................................................................................................... 127
5.6.1 Priorities of interrupts and exceptions......................................................................................... 127
6.4.1 General ....................................................................................................................................... 135
6.4.2 HALT mode................................................................................................................................. 136
7.1.2 Function ...................................................................................................................................... 145
11.1 Function ................................................................................................................................................ 301
11.3 Control Registers ................................................................................................................................ 305
12.2 Transfer Completion Interrupt Request............................................................................................. 317
12.3 Control Registers................................................................................................................................. 317
CHAPTER 13 REAL-TIME OUTPUT FUNCTION (RTO) ................................................................. 321
13.3 RTO Control Registers......................................................................................................................... 323
CHAPTER 14 PORT FUNCTION........................................................................................................ 329
14.1 Port Configuration................................................................................................................................ 329
14.2 Port Pin Function ................................................................................................................................. 329
14.2.1 Port 0......................................................................................................................................... 329
14.2.2 Port 1......................................................................................................................................... 333
14.2.3 Port 2......................................................................................................................................... 336
14.2.4 Port 3......................................................................................................................................... 339
14.2.5 Ports 4 and 5............................................................................................................................. 341
14.2.6 Port 6......................................................................................................................................... 343
14.2.7 Ports 7 and 8............................................................................................................................. 345
14.2.8 Port 9......................................................................................................................................... 346
14.2.9 Port 10....................................................................................................................................... 348
14.2.10 Port 11..................................................................................................................................... 350
14.2.11 Port 12..................................................................................................................................... 353
16.5.4 Port pin...................................................................................................................................... 364
16.5.5 Other signal pins ....................................................................................................................... 364
16.5.6 Power supply............................................................................................................................. 364
5-17Pipeline Operation at Interrupt Request Acknowledge...........................................................................130
6-1Format of Processor Clock Control Register (PCC)...............................................................................132
6-2Format of Power Saving Control Register (PSC)....................................................................................134
6-3Format of Oscillation Stabilization Time Select Register (OSTS)...........................................................135
7-1Block Diagram of TM0 and TM1.............................................................................................................146
7-2Format of 16-Bit Timer Mode Control Register 0, 1 (TMC0, TMC1).......................................................151
7-3Format of Capture/Compare Control Register 0, 1 (CRC0, CRC1)........................................................153
7-4Format of 16-Bit Timer Output Control Register 0, 1 (TOC0, TOC1)......................................................155
7-5Format of Prescaler Mode Register 0 (PRM0)........................................................................................156
7-6Format of Prescaler Mode Register 1 (PRM1)........................................................................................157
7-7Control Register Settings When Timer 0 Operates as Interval Timer.....................................................158
7-8Configuration of Interval Timer ...............................................................................................................159
7-9Timing of Interval Timer Operation.........................................................................................................159
7-10Control Register Settings in PPG Output Operation...............................................................................160
15
Page 16
LIST OF FIGURES (2/5)
Fig. No.TitlePage
7-11Control Register Settings for Pulse Width Measurement with
Free Running Counter and One Capture Register ................................................................................161
7-12Configuration for Pulse Width Measurement with Free Running Counter .............................................162
7-13Timing of Pulse Width Measurement with Free Running Counter and
One Capture Register (with both edges specified)................................................................................162
7-14Control Register Settings for Measurement of Two Pulse Widths with Free Running Counter .............163
7-15CRn1 Capture Operation with Rising Edge Specified............................................................................164
7-16Timing of Pulse Width Measurement with Free Running Counter (with both edges specified) .............164
7-17Control Register Settings for Pulse Width Measurement
with Free Running Counter and Two Capture Registers .......................................................................165
7-18Timing of Pulse Width Measurement with Free Running Counter and
Two Capture Registers (with rising edge specified)...............................................................................166
7-19Control Register Settings for Pulse Width Measurement by Restarting ................................................167
7-20Timing of Pulse Width Measurement by Restarting (with rising edge specified) ...................................167
7-21Control Register Settings in External Event Counter Mode...................................................................168
7-22Configuration of External Event Counter ...............................................................................................169
7-23Timing of External Event Counter Operation (with rising edge specified)..............................................169
7-24Control Register Settings in Square Wave Output Mode.......................................................................170
7-25Timing of Square Wave Output Operation.............................................................................................171
7-26Control Register Settings for One-Shot Pulse Output with Software Trigger.........................................172
7-27Timing of One-Shot Pulse Output Operation with Software Trigger ......................................................173
7-28Control Register Settings for One-Shot Pulse Output with External Trigger..........................................174
7-29Timing of One-Shot Pulse Output Operation with External Trigger (with rising edge specified)............175
7-30Start Timing of 16-Bit Timer Register n..................................................................................................175
7-31Timing after Changing Compare Register during Timer Count Operation.............................................176
7-32Data Hold Timing of Capture Register...................................................................................................176
7-33Operation Timing of OVFn Flag.............................................................................................................177
7-34Block Diagram of TM2-TM5...................................................................................................................179
7-35Format of TM2, TM3 Timer Clock Selection Register 2 and 3 (TCL2, TCL3)........................................181
7-36Format of TM4, TM5 Timer Clock Selection Register 4 and 5 (TCL4, TCL5)........................................182
7-37Format of 8-Bit Timer Mode Control Register 2-5 (TMC2-TMC5)..........................................................183
7-38Timing of Interval Timer Operation ........................................................................................................185
7-39Timing of External Event Counter Operation (when rising edge is set) .................................................188
7-40Timing of PWM Output...........................................................................................................................190
7-41Timing of Operation Based on CRn0 Transitions ..................................................................................191
7-42Cascade Connection Mode with 16-Bit Resolution................................................................................193
7-43Start Timing of Timer n ..........................................................................................................................194
7-44Timing After Compare Register Changes During Timer Counting.........................................................194
8-1Block Diagram of Watch Timer..............................................................................................................195
8-2Format of Watch Timer Mode Control Register (WTM) .........................................................................197
8-3Operation Timing of Watch Timer/Interval Timer...................................................................................199
9-1Block Diagram of Watchdog Timer........................................................................................................201
16
Page 17
LIST OF FIGURES (3/5)
Fig. No.TitlePage
9-2Format of Oscillation Stabilization Time Selection Register (OSTS)......................................................203
9-3Format of Watchdog Timer Clock Selection Register (WDCS)...............................................................204
9-4Format of Watchdog Timer Mode Register (WDTM)..............................................................................205
9-5Format of Oscillation Stabilization Time Selection Register (OSTS)......................................................208
10-1Block Diagram of 3-wire Serial I/O..........................................................................................................210
10-2Format of Serial Operation Mode Register 0-2 (CSIM0-CSIM2) ............................................................211
10-3Format of Serial Clock Selection Registers 0-2 (CSIS0-CSIS2).............................................................212
10-4Format of Serial Operation Mode Register 0-2 (CSIM0-CSIM2) ............................................................213
10-5Format of Serial Operation Mode Registers 0-2 (CSIM0-CSIM2)...........................................................214
10-6Timing of 3-wire Serial I/O Mode ............................................................................................................215
10-7Block Diagram of I2C...............................................................................................................................218
10-8Serial Bus Configuration Example Using I2C Bus...................................................................................219
10-9Format of IIC Control Register (IICC0) ...................................................................................................223
10-10Format of IIC Status Register (IICS0).....................................................................................................227
10-11Format of IIC Clock Select Register (IICCL0).........................................................................................230
10-16Transfer Direction Specification..............................................................................................................235
10-17ACK Signal .............................................................................................................................................236
10-19Wait Signal .............................................................................................................................................238
11-1Block Diagram of A/D Converter............................................................................................................302
11-2Format of A/D Converter Mode Register (ADM) ....................................................................................305
11-3Format of Analog Input Channel Specification Register (ADS) .............................................................307
11-4Basic Operation of A/D Converter..........................................................................................................309
11-5Relation between Analog Input Voltage and A/D Conversion Result ....................................................310
11-6A/D Conversion by Hardware Start (with falling edge specified) ...........................................................312
11-7A/D Conversion by Software Start .........................................................................................................313
11-8Processing of Analog Input Pin..............................................................................................................315
11-9A/D Conversion End Interrupt Generation Timing .................................................................................316
11-10Processing of AVDD Pin........................................................................................................................316
12-1Format of DMA Peripheral I/O Address Registers 0 to 2 (DIOA0 to DIOA2) .........................................317
12-2Format of DMA On-chip RAM Address Registers 0 to 2 (DRA0 to DRA2) ............................................318
12-3Format of DMA Byte Count Registers 0 to 2 (DBC0 to DBC2) ..............................................................318
12-4Format of DMA Channel Control Registers 0 to 2 (DCHC0 to DCHC2).................................................319
13-1Block Diagram of RTO...........................................................................................................................321
13-2Configuration of Real-Time Output Buffer Registers .............................................................................322
13-3Format of Real-Time Output Port Mode Register (RTPM).....................................................................324
13-4Format of Real-Time Output Port Control Register (RTPC)...................................................................325
13-5Example of Operation Timing of RTO (when EXTR = 0, BYTE = 0)......................................................326
14-1Format of Port 0 (P0) .............................................................................................................................329
14-2Format of Port 0 Mode Register (PM0)..................................................................................................331
14-3Format of Pull-up Resistance Option Register 0 (PU0) .........................................................................331
14-4Format of Rising Edge Enable Register (EGP0)....................................................................................332
14-5Format of Falling Edge Enable Register (EGN0)...................................................................................332
14-6Format of Port 1 (P1) .............................................................................................................................333
14-7Format of Port 1 Mode Register (PM1)..................................................................................................334
14-8Format of Pull-up Resistance Option Register 1 (PU1) .........................................................................335
14-9Format of Port 1 Function Register (PF1)..............................................................................................335
14-10Format of Port 2 (P2) .............................................................................................................................336
14-11Format of Port 2 Mode Register (PM2)..................................................................................................337
14-12Format of Pull-up Resistance Option Register 2 (PU2) .........................................................................338
14-13Format of Port 2 Function Register (PF2)..............................................................................................338
14-14Format of Port 3 (P3) .............................................................................................................................339
14-15Format of Port 3 Mode Register (PM3)..................................................................................................340
14-16Format of Pull-up Resistance Option Register 3 (PU3) .........................................................................341
14-17Format of Ports 4 and 5 (P4 and P5).....................................................................................................341
14-18Format of Port 4 Mode Register, Port 5 Mode Register (PM4, PM5).....................................................343
14-19Format of Port 6 (P6) .............................................................................................................................343
14-20Format of Port 6 Mode Register (PM6)..................................................................................................344
14-21Format of Ports 7 and 8 (P7 and P8).....................................................................................................345
14-22Format of Port 9 (P9) .............................................................................................................................346
18
Page 19
LIST OF FIGURES (5/5)
Fig. No.TitlePage
14-23Format of Port 9 Mode Register (PM9)...................................................................................................347
14-24Format of Port 10 (P10)..........................................................................................................................348
14-25Format of Port 10 Mode Register (PM10)...............................................................................................349
14-26Format of Pull-up Resistance Option Register 10 (PU10)......................................................................350
14-27Format of Port 10 Function Register (PF10) ...........................................................................................350
14-28Format of Port 11 (P11)..........................................................................................................................351
14-29Format of Port 11 Mode Register (PM11)...............................................................................................352
14-30Format of Pull-up Resistance Option Register 11 (PU11)......................................................................352
14-31Format of Port 12 (P12)..........................................................................................................................353
14-32Format of Port 12 Mode Register (PM12)...............................................................................................354
14-33Format of Port 12 Mode Control Register (PMC12)................................................................................355
6-1Operating Statuses during HALT Mode.................................................................................................137
6-2Operating Statuses during IDLE Mode..................................................................................................139
6-3Operating States during Software STOP Mode.....................................................................................141
7-1Configuration of Timer 0 ........................................................................................................................147
7-2Valid Edge of TIn0 Pin and Capture Trigger of CRn0............................................................................148
7-3Valid Edge of TIn1 Pin and Capture Trigger of CRn0............................................................................148
9-4Runaway Detection Time of Watchdog Timer .......................................................................................206
9-5Interval Time of Interval Timer...............................................................................................................207
10-1Configuration of CSIn.............................................................................................................................210
10-2Configuration of I2C................................................................................................................................220
10-3INTIIC0 Timing and Wait Control...........................................................................................................260
10-4Extension Code Bit Definitions...............................................................................................................262
10-5Status during Arbitration and Interrupt Request Generation Timing......................................................264
11-1Configuration of A/D Converter..............................................................................................................303
13-1Configuration of RTO.............................................................................................................................322
13-2Operation When Real-Time Output Buffer Registers Are Manipulated..................................................323
13-3Operation Mode and Output Trigger of Real-Time Output Port.............................................................325
16-1List of Communication Systems.............................................................................................................366
20
Page 21
CHAPTER 1 INTRODUCTION
The V850/SA1 is a product in NEC’s V850 Family of single-chip microcontrollers designed for real-time control
operations. This chapter presents a brief overview of the V850/SA1.
1.1General
The V850/SA1 is a 32-/16-bit single-chip microcontroller that includes the V850 Family’s CPU core, and peripheral
functions such as ROM/RAM, a timer/counter, a serial interface, an A/D converter, a timer, and DMA, controller.
In addition to its highly real-time responsiveness and one-clock-pitch execution of instructions, the V850/SA1
includes a hardware multiplier for multiplication instructions, saturation instructions, and bit manipulation instructions,
all of which are instructions suited for digital servo control applications. As a real-time control system, this device
provides a high level of cost performance suitable for applications ranging from low-power camcorders and other AV
equipment to portable telephone equipment such as cellular phones and PHS phone systems.
1.2Features
{ Number of instructions: 74
{ Minimum instruction execution time
59 ns (when main system clock (fXX) is operating at 17 MHz)
30.5 µs (when subsystem clock fXT is operating at 32.768 kHz)
(able to execute instructions in parallel continuously without creating any register
hazards).
Saturation operations (overflow and underflow detection functions are included)
32-bit shift instruction: 1 clock
Bit manipulation instructions
Load/store instructions with long/short format
{ Memory space16 Mbytes of linear address space (for programs and data)
External expandability: expandable to 4 Mbytes
Memory block allocation function: 2 Mbytes per block
Programmable wait function
Idle state insertion function
21
Page 22
CHAPTER 1 INTRODUCTION
{ External bus interface 16-bit data bus (address/data multiplex)
Address bus: separate output enabled
Bus hold function
External wait function
{ On-chip memory
{ Interrupts and exceptionsExternal interrupts: 8 (including NMIs)
{ Watch timerWhen operating under subsystem or main system clock: 1 channel
{ Watchdog timer1 channel
{ Serial interface (SIO)Asynchronous serial interface (UART)
{ A/D converter 10-bit resolution: 12 channels
{ DMA controllerOn-chip RAM ←→ on-chip peripheral I/O: 3 channels
{ RTP8 bits × 1 ch or 4 bits × 2 ch
{ Clock generatorDuring main system clock or subsystem clock operation
PD70F3017, 70F3017Y: VPP (Connect directly to VSS at the normal operation mode.)
Remarks 1.
Alternate pin names are omitted. An alternate pin is identical to 100-pin plastic LQFP.
2.
D4 pin is not necessary for the pin processing.
25
Page 26
CHAPTER 1 INTRODUCTION
Pin Identification
A1-A21: Address BusP90-P96: Port9
AD0-AD15: Address/Data BusP100-P107: Port10
ADTRG: AD Trigger InputP110-P114: Port11
ANI0-ANI11: Analog InputP120: Port12
ASCK0, ASCK1: Asynchronous Serial ClockRD: Read
ASTB: Address StrobeRESET: Reset
AV
AV
AV
BV
BV
DD
REF
SS
DD
SS
: Analog V
: Analog Reference VoltageRTPTRG: RTP Trigger
: Analog V
: Power Supply for Bus InterfaceRXD0, RXD1: Receive Data
: Ground for Bus InterfaceSCK0-SCK2: Serial Clock
DD
SS
RTP0-RTP7: Real-time Port
R/W: Read/Write Status
CLKOUT: Clock OutputSCL: Serial Clock
DSTB: Data StrobeSDA: Serial Data
HLDAK: Hold AcknowledgeSI0-SI2: Serial Input
HLDRQ: Hold RequestSO0-SO2: Serial Output
IC: Internally ConnectedTI00, TI01, TI10, TI11, TI2-TI5
INTP0-INTP6: Interrupt Request From Peripherals: Timer Input
LBEN: Lower Byte EnableTO0-TO5: Timer Output
NMI: Non-maskable Interrupt RequestTXD0,TXD1: Transmit Data
P00-P07: Port0UBEN: Upper Byte Enable
P10-P15: Port1V
P20-P27: Port2V
P30-P37: Port3V
DD
PP
SS
: Power Supply
: Programming Power Supply
: Ground
P40-P47: Port4WAIT: Wait
P50-P57: Port5WRH: Write Strobe High Level Data
P60-P65: Port6WRL: Write Strobe Low Level Data
P70-P77: Port7X1, X2: Cry stal for Main Clock
P80-P83: Port8XT1, XT2: Crystal for Sub-clock
26
Page 27
1.6Function Blocks
1.6.1 Internal Block Diagram
CHAPTER 1 INTRODUCTION
INTP0-INTP6
TI00, TI01
TI10, TI11
TO0, TO1
TI2/TO2
TI3/TO3
TI4/TO4
TI5/TO5
SI0/SDA
SCK0/SCL
SO1/TXD0
SI1/RXD0
SCK1/ASCK0
ASCK1
NMI
SO0
Note 3
Note 3
SO2
S12
SCK2
TXD1
RXD1
INTC
Timer/counter
16-bit timer:
TM0, TM1
8-bit timer:
TM2 to TM5
SIO
2
C
Note 4
CSI0/I
CSI1/UART0
CSI2
UART1
DMAC:3ch
Watch timer
Watchdog
timer
ROM
Note 1
RAM
Note 2
P114
P120
CPU
PC
32-bit
barrel
shifter
System
register
Generalpurpose
registers
32 bits × 32
PortsRTP
P10-P15
P20-P27
P30-P37
P40-P47
P50-P57
P60-P65
P70-P77
P80-P83
P90-P96
P100-P107
P110-P113
Multiplier
16 ×16– 32
ALU
P00-P07
Instruction
queue
RTPTRG
RTP0-RTP7
BCU
A/D
converter
SS
DD
REF
AV
AV
AV
HLDRQ (P96)
HLDAK (P95)
ASTB (P94)
DSTB/RD (P93)
R/W/WRH (P92)
UBEN (P91)
LBEN/WRL (P90)
WAIT
A1-A12
(P100-P107, P110-P113)
A13-A15 (P34-P36)
A16-A21 (P60-P65)
AD0-AD15
(P40-P47, P50-P57)
CG
ADTRG
ANI0-ANI11
CLKOUT
X1
X2
XT1 (P114)
XT2
RESET
DD
V
V
SS
BV
DD
BV
SS
Note 3
V
PP
Note 4
IC
Notes 1.
µ
PD703015, 703015Y: 128 Kbytes (mask ROM)
µ
PD70F3017, 70F3017Y: 256 Kbytes (flash memory)
2.
µ
PD703015, 703015Y: 4 Kbytes
µ
PD70F3017, 70F3017Y: 8 Kbytes
3.
SDA and SCL pins are valid only for µPD703015Y and 70F3017Y.
4.
I2C function is valid only for µPD703015Y and 70F3017Y.
5.
µ
PD70F3017, 70F3017Y
6.
µ
PD703015, 703015Y
27
Page 28
CHAPTER 1 INTRODUCTION
1.6.2 On-chip units
(1) CPU
The CPU uses five-stage pipeline control to enable single-clock execution of address calculations, arithmetic
logic operations, data transfers, and almost all other instruction processing.
Other dedicated on-chip hardware, such as the multiplier (16 bits × 16 bits → 32 bits) and the barrel shifter (32
bits) help accelerate processing of complex instructions.
(2) Bus control unit (BCU)
The BCU starts a required external bus cycle based on the physical address obtained by the CPU. When an
instruction is fetched from external memory space and the CPU does not send a bus cycle start request, the
BCU generates a prefetch address and prefetches the instruction code. The prefetched instruction code is
stored in an instruction queue.
DD
The V850/SA1 is equipped with BV
and BVSS as power supply pins for the bus interface. These provide an
external interface using a lower voltage level compared to the VDD and VSS pins.
(3) ROM
This consists of a 128-Kbyte mask ROM or a 256-Kbyte flash memory mapped to the address space starting at
00000000H. Both types of memory are accessed by the CPU in one clock cycle when an instruction is fetched.
(4) RAM
This consists of a 4-Kbyte RAM mapped to the address space starting at FFFFE000H if the device includes
mask ROM, or an 8-Kbyte RAM mapped to the address space starting at FFFFD000H if the device includes flash
memory. RAM can be accessed by the CPU in one clock cycle.
(5) Interrupt controller (INTC)
This controller handles hardware interrupt requests (NMI, INTP0-INTP6) from on-chip peripheral hardware and
external hardware. Eight levels of interrupt priorities can be specified for these interrupt requests, and
multiplexed servicing control can be performed for interrupt sources.
(6) Clock generator (CG)
The clock generator includes two types of oscillators, each for main system clock (fXX) and for subsystem clock
(fXT), generates five types of clocks (fXX, fXX/2, fXX/4, fXX/8, and fXT), and supplies one of them as operating clocks
for the CPU (f
cpu
).
28
Page 29
CHAPTER 1 INTRODUCTION
(7) Timer/counter
A two-channel 16-bit timer/event counter and a four-channel 8-bit timer/event counter are both on chip, which
enables measurement of pulse intervals and frequency as well as programmable pulse output.
The two-channel 8-bit timer/event counter can be connected via a cascade connection to enable use as a 16-bit
timer.
(8) Watch timer
This timer counts the reference time period (0.5 seconds) for counting the clock (the 32.768-kHz subsystem
clock or the 16.777-MHz main system clock). At the same time, the watch timer can be used as an interval timer
for the main system clock.
(9) Watchdog timer
A watchdog timer has been included to detect runaway programs, system abnormalities, etc.
It can also be used as an interval timer.
When used as a watchdog timer, it generates a nonmaskable interrupt request (INTWDT) after an overflow
occurs. When used as an interval timer, it generates a maskable interrupt request (INTWDTM) after an overflow
occurs.
(10) Serial interface (SIO)
The V850/SA1 includes two kinds of serial interfaces: an asynchronous serial interface (UART) and a clock-
2
synchronized serial interface (CSI). These plus the I
C bus interface comprise four channels. One of these
channels is switchable between the UART and CSI and another is switchable between CSI and I2C, while the
remaining two channels are fixed (one as UART and one as CSI).
For UART, data is transferred via the TXDn and RXDn pins.
For CSI, data is transferred via the SOn, SIn, and SCKn pins.
For I2C, data is transferred via the SDA and SCL pins.
For UART only, there is a two-channel dedicated baud rate generator on chip.
(11) A/D converter
This high-speed, high-resolution 10-bit A/D converter includes 12 analog input pins. Conversion uses the
successive conversion method.
(12) DMA controller
A three-channel DMA controller is on chip. This controller transfers data between the on-chip RAM and on-cihip
peripheral I/O devices in response to interrupt requests sent by on-chip peripheral I/O.
(13) RTP
The RTP is a real-time output function that transfers previously set 8-bit data to an output latch when an
external trigger signal occurs or when there is a coincidence signal in a timer compare register. It can also be
used for 4-bit × 2 ch.
29
Page 30
CHAPTER 1 INTRODUCTION
(14) Ports
As shown below, following ports have general port functions and control pin functions.
PortI/OPort FunctionControl Function
P08-bit I/OGeneral portNMI, external i nterrupt, A/D converter trigger, RTP tri gger
P16-bit I/OSerial interface
P28-bit I/OSerial interface, ti m er output
P38-bit I/OTimer I/O, external addres s bus
P48-bit I/OExternal address/data bus
P5
P66-bit I/OExternal address bus
P78-bit inputA /D converter analog input
P84-bit input
P97-bit I/OExternal bus interfac e control signal I/O
P108-bit I/OReal-time output port, external address bus
P114-bit I/O,
1-bit input
P121-bit I/OWait control
External address bus, sub clock input
30
Page 31
CHAPTER 2 PIN FUNCTIONS
2.1List of Pin Functions
The names and functions of this product’s pins are listed below. These pins can be divided into port pins and non-
8-bit input port
Input mode can be specified bi twise
Port 8
4-bit input port
Input mode can be specified bi twise
Port 9
7-bit I/O port
Input/output mode can be specified bitwise
Port 10
8-bit I/O port
Input/output mode can be specified bitwise
Port 11
5-bit I/O port
Input/output mode can be specified bitwise
Fixed as input mode in P114 only .
Port 12
1-bit I/O port
Remark
PULL: on-chip pull-up resistor
33
Page 34
CHAPTER 2 PIN FUNCTIONS
(2) Non-port pins
Pin NameI/OPULLFunctionAlternate Function
A1-A4OutputNoLow-order address bus used for external memory expansionP 110-P 113
A5-A12P100/RTP0-
P107/RTP7
A13P34/TO0
A14P35/TI1
A15P36/TI4/TO4
A16-A21OutputNoHigh-order address bus us ed for external memory expansionP60-P65
AD0-AD7I/ONoP40-P47
AD8-AD15
ADTRGInputYesA/D convert er external trigger inputP05/INTP4
ANI0-ANI7InputNoAnalog input to A/D converterP70-P77
ANI8-ANI11InputNoP80-P83
ASCK0InputYesSerial clock input for UART0 and UART1P15/SCK1
ASCK1P25
ASTBOutputNoExternal address strobe signal outputP94
AV
AV
AV
BV
BV
DD
REF
SS
DD
SS
−−
Input
−−
−−
−−
CLKOUTOutput
DSTBOutputNoEx t ernal data strobe signal outputP93/RD
HLDAKOutputNoBus hold ack nowl edge outputP95
HLDRQInputNoBus hold request inputP96
INTP0-INTP3I/OYesExternal interrupt reques t input (analog noise elimination)P 01-P04
INTP4Ex ternal interrupt request input (digital noise el i m i nation)P05/ADTRG
INTP5P06/RTPTRG
INTP6P07
LBENOutputNoExternal data bus’s low-order byte enable signal outputP90/WRL
NMIInputYesNonmaskable interrupt request inputP00
RDOutputNoRead strobe s i gnal outputP93/DSTB
RESETInput
RTP0-RTP7OutputYesReal-time output portP100/A5-P107/A12
16-bit multiplexed address /data bus used for external memory
expansion
Positive power supply for A/D converter
−
Reference voltage input for A / D converter
Ground potential for A/D conv ert er
Positive power supply for bus interface
Ground potential for bus interface
−
Internal system clock output
−
System reset input
P50-P57
−
−
−
−
−
−
−
(1/3)
Remark
34
PULL: on-chip pull-up resistor
Page 35
CHAPTER 2 PIN FUNCTIONS
Pin NameI/OPULLFunctionAlternate Function
RTPTRGInputYesRTP external trigger inputP06/INTP5
R/WOutputNoExternal read/ wri t e status outputP92/WRH
RXD0InputYesSerial receive data input for UART0 and UART1P13/SI1
RXD1P23
SCK0I/OYesSerial clock I/O (3-wire type) for CSI0 to CSI2P12/SCL
SCK1P15/ASCK0
SCK2P22
SCLI/OYesSerial clock I/O for I2C (µPD703015Y, 70F3017Y only)P12/SCK0
SDAI/OYes
Serial transmit/receive data I/O for I2C (µPD703015Y, 70F3017Y only)
P10/SI0
SI0InputYesSerial receive dat a i nput (3-wi re type) for CSI0 to CSI2P10/SDA
SI1P13/RXD0
SI2P20
SO0OutputYesS eri al transmit data output (3-wire type) for CSI0 to CSI2P11
SO1P14/TXD0
SO2P21
TI00InputYesShared as external capture trigger input and external count
P30
clock input for TM0
TI01External capture trigger input f or TM 0P31
TI10Shared as external capture trigger input and external count
P32
clock input for TM1
TI11External capture trigger input f or TM 1P33
TI2Ex t ernal count clock input for TM2P26/TO2
TI3Ex t ernal count clock input for TM3P27/TO3
TI4Ex t ernal count clock input for TM4P36/TO4/A15
TI5Ex t ernal count clock input for TM5P37/TO5
TO0, TO1Out putYesPulse signal out put for TM0, TM1P34/A13, P35/A14
TO2Pulse s ignal output for TM2P26/TI2
TO3Pulse s ignal output for TM3P27/TI3
TO4Pulse s ignal output for TM4P36/TI4/A15
TO5Pulse s ignal output for TM5P37/TI5
TXD0OutputYesSerial transmit data output for UART0 and UART1P14/SO1
TXD1P24
UBENOutputNoHigh-order byte enable signal output for external data busP91
DD
V
PP
V
−−
−−
Positive power supply pi n
High-voltage apply pin for program write/ verify (only in produc ts
−
−
that feature flash memory)
SS
V
−−
GND potential
−
(2/3)
Remark
PULL: on-chip pull-up resistor
35
Page 36
CHAPTER 2 PIN FUNCTIONS
Pin NameI/OPULLFunctionAlternate Function
WAITI nputNoControl signal input for inserting wait in bus cycleP120
WRHOutputNoHigh-order byte write strobe signal output for external data busP92/R/W
WRLLow-order byte write strobe si gnal output for external data busP90/LBEN
X1InputNoResonator connection for main clock
X2
XT1InputNoResonator connection for subsystem clockP114
XT2
IC
−−
−−
−−
Internally connected (µPD703015, 703015Y only)
−
−
(3/3)
Remark
PULL: on-chip pull-up resistor
36
Page 37
CHAPTER 2 PIN FUNCTIONS
2.2Pin States
The operating states of various pins are described below with reference to their operating states.
ResetSTOP ModeIDLE ModeHALT ModeBus HoldIdle State
−−−
−−−−−−
OperatingOperati ngOperating
Operating
Note
Operating
Note
Operating
Held: State is held during previously set external bus cycle
L: Low-level output
H: High-level output
−: Sampled without input
Note
37
Page 38
CHAPTER 2 PIN FUNCTIONS
2.3Description of Pin Functions
(1) P00 to P07 (Port 0) ··· 3-state I/O
Port 0 is an 8-bit I/O port that can be set bitwise for input or output.
P00 to P07 can function as I/O port pins and can also function as NMI inputs, external interrupt request inputs,
external triggers for the A/D converter, or external triggers for the real-time output port. The port mode or control
mode can be selected bitwise and each pin’s valid edge is specified in the EGP0 and EGN0 registers.
(a) Port mode
P00 to P07 can be set bitwise as input or output according to the contents of port 0 mode register (PM0).
(b) Control modes
P00 to P07 can be set bitwise to port mode or a control mode according to the contents of the external
interrupt rising edge enable register (EGP0) or the external interrupt falling edge enable register (EGN0).
(i)NMI (Non-maskable Interrupt Request) ··· input
This pin accepts input of non-maskable interrupt request signals.
(ii) INTP0 to INTP6 (Interrupt Request from Peripherals) ··· input
These are external interrupt request input pins.
(iii) ADTRG (AD Trigger Input) ··· input
This is the A/D converter’s external trigger input pin. This pin is controlled with A/D converter mode
register (ADM).
(iv) RTPTRG (Real-Time Port Trigger Input) ··· input
This is the real-time output port’s external trigger input pin. This pin is controlled with real-time output
port control register (RTPC).
38
Page 39
CHAPTER 2 PIN FUNCTIONS
(2) P10 to P15 (Port 1) ··· 3-state I/O
Port 1 is a 6-bit I/O port in which input and output pins can be specified bitwise.
P10 to P15 can function as I/O port pins and can also operate as input or output pins for the serial interface.
These pins can be set bitwise to port mode or a control mode.
P10 to P12, P14, and P15 can select normal output and N-ch open drain output.
(a) Port mode
P10 to P15 can be set bitwise as input or output pins according to the contents of port 1 mode register
(PM1).
(b) Control modes
P10 to P15 can be set bitwise to port mode or a control mode according to the contents of the port 1 register
(P1) or port 1 mode register (PM1).
(i)SI0, SI1 (Serial Input 0, 1) ··· input
These pins accept input of the serial receive data of CSI0 and CSI1.
(ii) SO0, SO1 (Serial Output 0, 1) ··· output
These pins accept output of the serial transmit data of CSI0 and CSI1.
These are the serial clock I/O pins for CSI0 and CSI1.
(iv) SDA (Serial Data) ··· I/O
2
This is the serial transmit/receive data I/O pin for I
C (µPD703015Y, 70F3017Y only).
(v) SCL (Serial Clock) ··· I/O
This is the serial clock I/O pin for I2C (µPD703015Y, 70F3017Y only).
(vi) RXD0 (Receive Data 0) ··· input
This is the input pin for UART0 serial receive data.
(vii) TXD0 (Transmit Data 0) ··· output
This is the output pin for UART0 serial transmit data.
(viii)ASCK0 (Asynchronous Serial Clock 0) ··· input
This is the input pin for UART0 serial baud rate clock.
39
Page 40
CHAPTER 2 PIN FUNCTIONS
(3) P20 to P27 (Port 2) ··· 3-state I/O
Port 2 is an 8-bit I/O port in which input and output pins can be specified bitwise.
P20 to P27 can function as I/O port pins and can also operate as input or output pins for the serial interface.
These pins can be set bitwise to port mode or a control mode.
P21 and P22 can select normal output and N-ch open drain output.
(a) Port mode
P20 to P27 can be set bitwise as input or output pins according to the contents of port 2 mode register
(PM2).
(b) Control modes
P20 to P27 can be set bitwise to port mode or a control mode according to the contents of the port 2 register
(P2) and port 2 mode register (PM2).
(i)SI2 (Serial Input 2) ··· input
This pin accepts input of the CSI2 serial receive data.
(ii) SO2 (Serial Output 2) ··· output
This pin accepts output of the CSI2 serial transmit data.
(iii) SCK2 (Serial Clock 2) ··· 3-state I/O
This is the CSI2 serial clock I/O pin.
(iv) RXD1 (Receive Data 1) ··· input
This is the input pin for UART1 serial receive data.
(v) TXD1 (Transmit Data 1) ··· output
This is the output pin for UART1 serial transmit data.
(vi) ASCK1 (Asynchronous Serial Clock 1) ··· input
This is the input pin for UART1 serial clock.
(vii) TI2, TI3 (Timer Input 2, 3) ··· input
These are the external counter clock input pins for timer 2 and timer 3.
(viii)TO2, TO3 (Timer Output 2, 3) ··· output
These are the pulse signal output pins for timer 2 and timer 3.
40
Page 41
CHAPTER 2 PIN FUNCTIONS
(4) P30 to P37 (Port 3) ··· 3-state I/O
Port 3 is an 8-bit I/O port in which input and output pins can be specified bitwise.
P30 to P37 can function as I/O port pins and can also operate as input or output pins for the timer/counter.
These pins can be set bitwise to port mode or a control mode.
(a) Port mode
P30 to P37 can be set bitwise as input or output pins according to the contents of port 3 mode register
(PM3).
(b) Control modes
P30 to P37 can be set bitwise to port mode or a control mode according to the contents of the port 3 register
(P3) and port 3 mode register (PM3).
These pins output pulse signals from timer 0, timer 1, timer 4, and timer 5.
(iii) A13 to A15 (Address 13 to 15) ··· output
These are address bus that is used for external access. These pins operate as A13 to A15 bit address
output pins within a 22-bit address. The output changes in synchronization with the rising edge of the
clock in the T1 state of the bus cycle. When the timing sets the bus cycle as inactive, the previous bus
cycle’s address is retained.
(5) P40 to P47 (Port 4) ··· 3-state I/O
Port 4 is an 8-bit I/O port in which input and output pins can be specified bitwise.
P40 to P47 can function as I/O port pins and can also operate as a time division address/data bus (AD0 to AD7)
when using external memory expansion. These pins can be set bitwise to port mode or a control mode.
DD
The I/O signal level uses the bus interface power supply pins BV
and BVSS as a reference.
(a) Port mode
P40 to P47 can be set bitwise as input or output pins according to the contents of port 4 mode register
(PM4).
41
Page 42
CHAPTER 2 PIN FUNCTIONS
(b) Control mode (external expansion mode)
P40 to P47 can be set as AD0 to AD7 according to the contents of the memory expansion register (MM).
(i)AD0 to AD7 (Address/Data 0 to 7) ··· 3-state I/O
These are multiplexed address/data bus that is used for external access. Under address timing (T1
state), these pins operate as AD0 to AD7 (22-bit address) output pins. Under data timing (T2, TW, T3),
they operate as low-order 8-bit I/O bus pins for 16-bit data. The output changes in synchronization with
the rising edge of the clock in each state within the bus cycle. When the timing sets the bus cycle as
inactive, these pins are set for high impedance.
(6) P50 to P57 (Port 5) ··· 3-state I/O
Port 5 is an 8-bit I/O port in which input and output pins can be specified bitwise.
P50 to P57 can function as I/O port pins and can also operate as a time division address/data bus (AD8 to AD15)
when using external memory expansion. These pins can be set bitwise to port mode or a control mode.
DD
The I/O signal level uses the bus interface power supply pins BV
and BVSS as a reference.
(a) Port mode
P50 to P57 can be set bitwise as input or output pins according to the contents of port 5 mode register
(PM5).
(b) Control mode (external expansion mode)
P50 to P57 can be set as AD8 to AD15 according to the contents of the memory expansion register (MM).
(i)AD8 to AD15 (Address/Data 8 to 15) ··· 3-state I/O
These are multiplexed address/data bus that is used for external access. Under address timing (T1
state), these pins operate as AD8 to AD15 (22-bit address) output pins. Under data timing (T2, TW,
T3), they operate as high-order 8-bit I/O bus pins for 16-bit data. The output changes in
synchronization with the rising edge of the clock in each state within the bus cycle. When the timing
sets the bus cycle as inactive, these pins are set for high impedance.
(7) P60 to P65 (Port 6) ··· 3-state I/O
Port 6 is a 6-bit I/O port in which input and output pins can be specified bitwise.
P60 to P65 can function as I/O port pins and can also operate as an address bus (A16 to A21) when using
external memory expansion. These pins can be set bitwise to port mode or a control mode.
The I/O signal level uses the bus interface power supply pins BVDD and BVSS as a reference.
42
Page 43
CHAPTER 2 PIN FUNCTIONS
(a) Port mode
P60 to P65 can be set bitwise as input or output pins according to the contents of port 6 mode register
(PM6).
(b) Control mode (external expansion mode)
P60 to P65 can be set as A16 to A21 according to the contents of the memory expansion register (MM).
(i)A16 to A21 (Address 16 to 21) ··· output
These are address bus that is used for external access. These pins operate as the high-order 6-bit
address output pins within a 22-bit address. The output changes in synchronization with the rising edge
of the clock in the T1 state of the bus cycle. When the timing sets the bus cycle as inactive, the
previous bus cycle’s address is retained.
(8) P70 to P77 (Port 7), P80 to P83 (Port 8) ··· input
Port 7 is an 8-bit input-only port in which all pins are fixed as input pins. Port 8 is a 4-bit input-only port.
P70 to P77 and P80 to P83 can function as input ports and can also function as analog input pins for the A/D
converter when under control mode. However, they cannot be switched between these input port and analog
input pin.
(a) Port mode
P70 to P77 and P80 to P83 are input-only pins.
(b) Control mode (external expansion mode)
P70 to P77 are shared as pins ANI0 to ANI7 and P80 to P83 are shared as ANI8 to ANI11, but these
alternate functions are not switchable.
(i)ANI0 to ANI11 (Analog Input 0 to 11) ··· output
These are analog input pins for the A/D converter.
SS
Connect a capacitor between these pins and AV
not apply voltage that is outside the range for AVSS and AV
the A/D converter. If it is possible for noise above the AV
to prevent noise-related operation faults. Also, do
REF
to pins that are being used as inputs for
REF
range or below the AVSS to enter, clamp
using a diode that has a small VF value.
43
Page 44
CHAPTER 2 PIN FUNCTIONS
(9) P90 to P96 (Port 9) ··· 3-state I/O
Port 9 is a 7-bit I/O port in which input and output pins can be specified bitwise.
P90 to P96 can function as I/O port pins and can also operate as control signal output pins and bus hold control
signal output pins when using external memory expansion.
During 8-bit access of port 9, the highest-order bit is ignored during a write operation and is read as a “0” during
a read operation. Port mode or a control mode can be specified bitwise.
DD
The I/O signal level uses the bus interface power supply pins BV
and BVSS as a reference.
(a) Port mode
P90 to P96 can be set bitwise as input or output pins according to the contents of port 9 mode register
(PM9).
(b) Control modes (external expansion mode)
P90 to P96 can be set to operate as control signal outputs for external memory expansion according to the
contents of the memory expansion register (MM).
(i)LBEN (Lower Byte Enable) ··· output
This is a lower byte enable (LBEN) signal output pin for an external 16-bit data bus. The output
changes in synchronization with the rising edge of the clock in the T1 state of the bus cycle. When the
timing sets the bus cycle as inactive, the previous bus cycle’s address is retained.
(ii) UBEN (Upper Byte Enable) ··· output
This is an upper byte enable (UBEN) signal output pin for an external 16-bit data bus. During byte
access of even-numbered addresses, these pins are set as inactive (high level). The output changes in
synchronization with the rising edge of the clock in the T1 state of the bus cycle. When the timing sets
the bus cycle as inactive, the previous bus cycle’s address is retained.
AccessUBENLBENA0
Word access000
Half word access000
Byte accessEven-numbered address100
Odd-numbered address011
44
Page 45
CHAPTER 2 PIN FUNCTIONS
(iii) R/W (Read/Write Status) ··· output
In this mode, this pin is output for the status signal that indicates whether the bus cycle is a read cycle
or write cycle during external access. High level is set during the read cycle and low level is set during
the write cycle. The output changes in synchronization with the rising edge of the clock in the T1 state
of the bus cycle. High level is set when the timing sets the bus cycle as inactive.
(iv) DSTB (Data Strobe) ··· output
In this mode, this pin is output pin for the external data bus’s access strobe signal. Output becomes
active (low level) during the T2 and TW states of the bus cycle. Output becomes inactive (high level)
when the timing sets the bus cycle as inactive.
(v) ASTB (Address Strobe) ··· output
In this mode, this pin is output pin for the external address bus’s latch strobe signal. Output becomes
active (low level) in synchronization with the falling edge of the clock during the T1 state of the bus
cycle, and becomes inactive (high level) in synchronization with the falling edge of the clock during the
T3 state of the bus cycle. Output becomes inactive when the timing sets the bus cycle as inactive.
(vi) HLDAK (Hold Acknowledge) ··· output
In this mode, this pin is output pin for the acknowledge signal that indicates high impedance status for
the address bus, data bus, and control bus when the V850/SA1 receives a bus hold request.
The address bus, data bus, and control bus are set to high impedance status when this signal is active.
(vii) HLDRQ (Hold Request) ··· input
In this mode, this pin is input pin by which an external device requests the V850/SA1 to release the
address bus, data bus, and control bus. This pin accepts asynchronous input for CLKOUT. When this
pin is active, the address bus, data bus, and control bus are set to high impedance status. This occurs
either when the V850/SA1 completes execution of the current bus cycle or immediately if no bus cycle
is being executed, then the HLDAK signal is set as active and the bus is released.
In this mode, this is write strobe signal output pin for the low-order data in an external 16-bit data bus.
Output occurs during the write cycle, similar to DSTB.
45
Page 46
CHAPTER 2 PIN FUNCTIONS
(ix) WRH (Write Strobe High Level Data) ··· output
In this mode, this is write strobe signal output pin for the high-order data in an external 16-bit data bus.
Output occurs during the write cycle, similar to DSTB.
(x) RD (Read) ··· output
In this mode, this is read strobe signal output pin for an external 16-bit data bus. Output occurs during
the read cycle, similar to DSTB.
(10) P100 to P107 (Port 10) ··· 3-state I/O
Port 10 is an 8-bit I/O port in which input and output pins can be specified bitwise.
P100 to P107 can function as I/O port pins and can also operate as a real-time output port.
P100 to P107 can select normal output and N-ch open drain output.
(a) Port mode
P100 to P107 can be set bitwise as input or output pins according to the contents of port 10 mode register
(PM10).
(b) Control mode
P100 to P107 can be set bitwise to port mode or control mode according to the contents of the port 10
register (P10) and port 10 mode register (PM10).
(i)RTP0 to RTP7 (Real-time Port 0 to 7) ··· output
In this mode, these pins comprise a real-time output port.
(ii) A5 to A12 (Address 5 to 12) ··· output
These are address bus that is used for external access. These pins operate as A5 to A12 bit address
output pins within a 22-bit address. The output changes in synchronization with the rising edge of the
clock in the T1 state of the bus cycle. When the timing sets the bus cycle as inactive, the previous bus
cycle’s address is retained.
(11) P110 to P114 (Port 11) ··· 3-state I/O
Port 11 is a 5-bit I/O port in which input and output pins can be specified bitwise. However, P114 is fixed as the
XT1 input pin.
(a) Port mode
P110 to P114 can be set bitwise as inputs or outputs according to the contents of port 11 mode register
(PM11). However, P114 is fixed as an input.
(b) Control mode
P110 to P114 can be set bitwise to port mode or control mode according to the contents of the port 11
register (P11) and port 11 mode register (PM11).
P114 is fixed as the XT1 pin.
46
Page 47
CHAPTER 2 PIN FUNCTIONS
(i)A1 to A4 (Address 1 to 4) ···output
These are address bus that is used for external access. These pins operate as the low-order 4-bit
address output pins within a 22-bit address. The output changes in synchronization with the rising
edge of the clock in the T1 state of the bus cycle. When the timing sets the bus cycle as inactive, the
previous bus cycle’s address is retained.
(ii) XT1 (Crystal for Sub-Clock) ··· input
This is the sub-clock input pin.
(12) P120 (Port 12) ··· 3-state I/O
Port 12 is an I/O port in which the input or output pin can be specified bitwise. P120 can function as an I/O port
and can also operate as a control signal (WAIT) pin when a wait is inserted in the bus cycle. This pin can be set
to port mode or control mode.
DD
The I/O signal level uses the bus interface power supply pins BV
and BVSS as a reference.
(a) Port mode
P120 can be set as an input or output pin according to the contents of port 12 mode register (PM12).
(b) Control mode
P120 can operate as the WAIT pin according to the contents of port 12 mode control register (PMC12).
(i)WAIT (Wait) ··· input
This is the input pin for the control signal used to insert waits into the bus cycle. This pin is sampled at
the falling edge of the clock during the T2 or TW state of the bus cycle.
(13) RESET (Reset) ··· input
RESET input is asynchronous input for a signal that has a constant low level width regardless of the operating
clock’s status. When this signal is input, a system reset is executed as the first priority ahead of all other
operations.
In addition to being used for ordinary initialization/start operations, this pin can also be used to cancel a standby
mode (HALT, IDLE, or STOP mode).
(14) X1, X2 (Crystal) … input
These pins are used to connect the resonator that generates the system clock.
These pins can also be used to input an external clock. When inputting an external clock, connect the X1 pin
and leave the X2 pin unconnected.
(15) XT2 (Crystal for Sub-Clock) ··· input
This pin is used to connect the resonator that generates the sub clock (subsystem clock).
47
Page 48
CHAPTER 2 PIN FUNCTIONS
(16) AVDD (Analog VDD)
This is the analog power supply pin for the A/D converter.
(17) AVSS (Analog VSS)
This the ground pin for the A/D converter.
(18) AV
(Analog Reference Voltage) … input
REF
This is the reference voltage supply pin for the A/D converter.
(19) BVDD (Power Supply for Bus Interface)
This is the positive power supply pin for the bus interface.
(20) BVSS (Ground for Bus Interface)
This is the ground pin for the bus interface.
(21) VDD (Power Supply)
DD
These are the positive power supply pins. Both V
(22) V
(23) V
(Ground)
SS
These are the ground pins. Both V
(Programming Power Supply)
PP
SS
pins should be grounded.
pins should be connected to a positive power source.
This is the positive power supply pin used for flash memory programming mode.
µ
This pin is used in the
PD70F3017 and 70F3017Y.
(24) IC (Internally Connected)
This is an internally connected pin. This pin is used in the µPD703015 and 703015Y.
48
Page 49
CHAPTER 2 PIN FUNCTIONS
2.4Pins’ I/O Circuit Types and Handling When Not Used
The program register set includes general registers and a program counter.
(1) General registers
Thirty-two general registers, r0 to r31, are available. Any of these registers can be used as a data variable or
address variable.
However, r0 and r30 are implicitly used by instructions, and care must be exercised when using these registers.
Also, r1 to r5 and r31 are implicitly used by the assembler and C compiler. Therefore, before using these
registers, their contents must be saved so that they are not lost. The contents must be restored to the registers
after the registers have been used.
Table 3-1. Program Registers
NameUsageOperation
r0Zero registerAlways holds 0
r1Assembler-reserved registerWorking register for generating 32-bit immedi ate
r2Interrupt stack pointerStack pointer for interrupt handler
r3Stack pointerUs ed t o generate st ack frame when function is called
r4Global pointerUsed to access global variable in data area
r5Text pointer
r6 to r29
r30El e m ent poi nterBase pointer register when memory is accessed
r31Link pointerUsed by compiler when calling funct ion
PCProgram counterHolds instruct i on address during program execut i on
−
Register to indicate the start of the text area
Address/data variable registers
Note
Note
Area in which program code is mapped.
(2) Program counter
This register holds the address of the instruction under execution. The lower 24 bits of this regist e r a r e v a li d , a n d
bits 31 to 24 are fixed to 0. If a carry occurs from bit 23 to 24, it is ignored.
Bit 0 is fixed to 0, and branching to an odd address cannot be performed.
After reset: 00000000H
Symbol31242310
PCFixed to 0Instruction address under execution0
55
Page 56
CHAPTER 3 CPU FUNCTIONS
3.2.2 System register set
System registers control the status of the CPU and hold interrupt information.
Table 3-2. System Register Numbers
No.System Regist er NameUsageOperation
0EIPC
EIPSW
1
2FEPC
3FEPSW
4ECRInterrupt source registerIf exception, maskable interrupt, or NMI occurs, this
5PSWProgram status wordProgram status word is collect i on flags that indicate
6 to 31Reserved
Status saving registers during
interrupt
Status saving registers for NMIThese registers save PC and PSW when NMI occurs.
These registers save the PC and PSW when an
exception or interrupt occurs. Because only one set of
these registers is available, their contents must be
saved when multiple interrupts are enabled.
register will contain information referenci ng the
interrupt source. The high-order 16 bits of this register
are called FECC, to which exception code of NMI is
set. The low-order 16 bits are called EICC, to which
exception code of exception/interrupt is set.
program status (instruction execution resul t) and CPU
status.
To read/write these system registers, specify a system register number indicated by the system register load/store
instruction (LDSR or STSR instruction).
(1) Interrupt Source Register (ECR)
After reset: 00000000H
Symbol3116150
ECRFECCEICC
FECC
EICCException code of excepti on/i nterrupt.
Exception code of NMI. (For exception code, refer to
Table 5-1
.)
56
Page 57
CHAPTER 3 CPU FUNCTIONS
(2) Program Status Word (PSW)
After reset: 00000020H
Symbol31876543210
PSWRFUNPEPIDSAT CYOVSZ
RFURes erved field (fixed to 0).
NPIndicates that NMI processing is in progress. This flag is set when NMI is accepted, and
disables multiple interrupts.
EPIndicates that an exception processing is in progress. This flag is set at the generation of
exception. The interrupt request is acknowledged even if this bit is set.
IDIndic ates that accepting external interrupt request is disabled.
SATThis fl ag is set if resul t of executing saturated operation instruction overflows. If overflow
does not occur, value of previous operation is held.
CYThis flag is set if carry or borrow occurs as result of operation. If carry or borrow does not
occur, it is reset.
OVThi s f l ag is set if overflow occurs during operation (if overflow does not occur, it is reset).
SThis flag is set if result of operation is negative. It is reset if result is positive.
ZThis f l ag is set if result of operation is zero. If result is not zero, it is reset.
57
Page 58
CHAPTER 3 CPU FUNCTIONS
3.3 Operation Modes
The V850/SA1 has the following operations modes.
(1) Normal operation mode (Single-chip mode)
After the system has been released from the reset status, the pins related to the bus interface are set for port
mode, execution branches to the reset entry address of the internal ROM, and instruction processing written in
the internal ROM is started. However, external expansion mode that connects external device to external
memory area is enabled by setting in the memory expansion mode register (MM) by instruction.
(2) Flash memory programming mode
This mode is provided only to the
erasable when the VPP voltage is applied to VPP pin . The state transition to the programming or erasing of the
flash memory is under investigation.
µ
PD70F3017 and 70F3017Y. The internal flash memory is programmable or
PP
V
0Normal-operation mode
7.8 VFlash memory programming mode
DD
V
Setting prohibited
Operation Mode
58
Page 59
CHAPTER 3 CPU FUNCTIONS
3.4 Address Space
3.4.1 CPU address space
The CPU of the V850/SA1 is of 32-bit architecture and supports up to 4 Gbytes of linear address space (data
space) during operand addressing (data access). When referencing instruction addresses, a linear address space
(program space) of up to 16 Mbytes is supported.
Figure 3-1 shows the CPU address space.
Figure 3-1. CPU Address Space
CPU address space
FFFFFFFFH
01000000H
00FFFFFFH
00000000H
Data area
(4-Gbyte linear)
Program area
(16-Mbyte linear)
59
Page 60
CHAPTER 3 CPU FUNCTIONS
3.4.2 Image (virtual address space)
The core CPU supports 4 Gbytes of “virtual” addressing space, or 256 memory blocks, each containing 16-Mbyte
memory locations. In actuality, the same 16-Mbyte block is accessed regardless of the values of bits 31 to 24 of the
CPU address. Figure 3-2 shows the image of the virtual addressing space.
Because the higher 8 bits of a 32-bit CPU address are ignored and the CPU address is only seen as a 24-bit
external physical address, the physical location xx000000H is equally referenced by multiple address values
00000000H, 01000000H, 02000000H... through FE000000H, FF000000H.
Figure 3-2. Image on Address Space
CPU address space
FFFFFFFFH
Image
FF000000H
FEFFFFFFH
FE000000H
FDFFFFFFH
02000000H
01FFFFFFH
01000000H
00FFFFFFH
00000000H
Image
Image
Image
Image
Physical address space
On-chip peripheral I/O
Internal RAM
(Access prohibited)
Internal ROM
xxFFFFFFH
xx000000H
60
Page 61
CHAPTER 3 CPU FUNCTIONS
3.4.3 Wrap-around of CPU address space
(1) Program space
Of the 32 bits of the PC (program counter), the higher 8 bits are set to “0”, and only the lower 24 bits are valid.
Even if a carry or borrow occurs from bit 23 to 24 as a result of branch address calculation, the higher 8 bits
ignore the carry or borrow and remain “0”.
Therefore, the lower-limit address of the program space, address 00000000H, and the upper-limit address
00FFFFFFH are contiguous addresses, and the program space is wrapped around at the boundary of these
addresses.
Caution No instruction can be fetched from the 4-Kbyte area of 00FFF000H to 00FFFFFFH because
this area is defined as peripheral I/O area. Therefore, do not execute any branch operation
instructions in which the destination address will reside in any part of this area.
Program space
00FFFFFEH
00FFFFFFH
00000000H
00000001H
Program space
(+) direction(–) direction
(2) Data space
The result of operand address calculation that exceeds 32 bits is ignored.
Therefore, the lower-limit address of the program space, address 00000000H, and the upper-limit address
FFFFFFFFH are contiguous addresses, and the data space is wrapped around at the boundary of these
addresses.
Data space
FFFFFFFEH
FFFFFFFFH
00000000H
00000001H
(+) direction(–) direction
Data space
61
Page 62
3.4.4 Memory map
The V850/SA1 reserves areas as shown below.
CHAPTER 3 CPU FUNCTIONS
Figure 3-3. Memory Map
Mask ROM
internal version
xxFFFFFFH
xxFFF000H
xxFFEFFFH
xxFFE000H
xxFFDFFFH
xx100000H
xx0FFFFFH
Flash memory
internal version
xxFFFFFFH
xxFFF000H
xxFFEFFFH
xxFFC000H
xxFFBFFFH
xx100000H
xx0FFFFFH
Single-chip modeSingle-chip mode
(external expansion mode)
On-chip peripheral
I/O area
Internal RAM area
(access prohibited)
On-chip peripheral
I/O area
Internal RAM area
External memory
area
4 KB
4 KB: Mask ROM internal version
12KB: Flash memory internal version
16 MB
xx000000H
xx000000H
Internal
ROM area
Internal
ROM area
1 MB
62
Page 63
CHAPTER 3 CPU FUNCTIONS
3.4.5 Area
(1) Internal ROM area
A 1-Mbyte area corresponding to addresses 000000H to 0FFFFFH is reserved for the internal ROM area. The
V850/SA1 is provided with physical internal ROM as follows:
Physical internal ROM: 000000H to 01FFFFH (128 Kbytes) − Mask ROM internal version
000000H to 03FFFFH (256 Kbytes) − Flash memory internal version
The image is seen in the rest of the area.
Figure 3-4. Internal ROM Area (with Mask ROM Internal Version)
xx0FFFFFH
Image
xx0E0000H
xx0DFFFFH
Physical internal ROM
01FFFFH
xx040000H
xx03FFFFH
Image
xx020000H
xx01FFFFH
Image
xx000000H
Internal ROM
Interrupt/exception table
000000H
Interrupt/exception table
The V850/SA1 increases the interrupt response speed by assigning handler addresses corresponding to
interrupts/exceptions.
The collection of these handler addresses is called an interrupt/exception table, which is located in the internal
ROM area. Wh en an interrupt/e xception request is granted, execut ion jumps to the co rresponding destin ation
address, and the program written at that memory address is executed. Table 3-3 shows the sources of
interrupts/exceptions, and the corresponding addresses.
The internal RAM is incorporated in the following area.
Physical internal RAM: FFE000H to FFEFFFH (4 Kbytes) … Mask ROM internal version
FFD000H to FFEFFFH (8 Kbytes) … Flash memory internal version
In the flash memory internal version, 12 Kbytes of FFC000H to FFEFFFH is reserved as an internal RAM area.
The image of FFE000H to FFEFFFH can be seen in the addresses of FFC000H to FFCFFFH.
Mask ROM
internal version
xxFFEFFFHxxFFEFFFH
Internal RAM
xxFFE000H
Note
The address FFC000H to FFCFFFH cannot be used.
Flash memory
internal version
Internal RAM
Note
Image
xxFFD000H
xxFFCFFFH
xxFFC000H
65
Page 66
CHAPTER 3 CPU FUNCTIONS
(3) On-chip peripheral I/O area
A 4-Kbyte area of addresses FFF000H to FFFFFFH is reserved as an on-chip peripheral I/O area. The V850/SA1
is provided with a 1-Kbyte area of addresses FFF000H to FFF3FFH as a physical on-chip peripheral I/O area,
and its image can be seen on the rest of the area (FFF400H to FFFFFFH).
Peripheral I/O registers as sociated with the operation mode specification and the state monitoring for the on-chip
peripherals are all memory-mapped to the on chip peripheral I/O area. Program fetches are not allowed in this
area.
xxFFFFFFH
Image
xxFFFC00H
xxFFFBFFH
Image
xxFFF800H
xxFFF7FFH
Image
xxFFF400H
xxFFF3FFH
Image
xxFFF000H
Physical peripheral I/O
3FFH
Peripheral I/O
000H
Cautions 1. The least significant bit of an address is not decoded since all registers reside on an even
address. If an odd address (2n + 1) in the peripheral I/O area is referenced, the register at
the next lowest even address (2n) will be accessed.
2. If a register that can be accessed in byte units is accessed in half-word units, the higher 8
bits become undefined, if the access is a read operation. If a write access is made, only
the data in the lower 8 bits is written to the register.
3. If a register with n address that can be accessed only in halfword units is accessed with a
word operation, the operation is replaced with two halfword operations. The first
operation (lower 16 bits) accesses to the register with n address and the second
operation (higher 16 bits) accesses to the register with n + 2 address.
4. If a register with n address that can be accessed in word units is accessed with a word
operation, the operation is replaced with two halfword operations. The first operation
(lower 16 bits) accesses to the register with n address and the second operation (higher
16 bits) accesses to the register with n + 2 address.
5. Addresses that are not defined as registers are reserved for future expansion. If these
addresses are accessed, the operation is undefined and not guaranteed.
66
Page 67
CHAPTER 3 CPU FUNCTIONS
(4) External memory area
The V850/SA1 can use an area of up to 100000H to FFBFFFH (16 Mbytes) for external memory accesses.
64 K, 256 K, 1 M, or 4 Mbytes of physical external memory can be allocated when the external expansion mode is
specified. In the area of other than the physical external memory, the image of the physical external memory can
be seen.
The internal RAM area and on-chip peripheral I/O area are not subject to external memory access.
Figure 3-5. External Memory Area (when expanded to 64 K, 256 K, or 1 Mbytes)
Mask ROM
internal version
xxFFFFFFH
xxFFDFFFH
xx100000H
Flash memory
internal version
xxFFFFFFH
xxFFBFFFH
xx100000H
On-chip peripheral I/O
Internal RAM
Image
Image
Image
Physical external memory
xFFFFH
External memory
x0000H
xx000000H
Internal ROM
xx000000H
67
Page 68
CHAPTER 3 CPU FUNCTIONS
Figure 3-6. External Memory Area (when expanded to 4 Mbytes)
Mask ROM
internal version
xxFFFFFFH
xxFFDFFFH
xx100000H
Flash memory
internal version
xxFFFFFFH
xxFFBFFFH
xx100000H
On-chip peripheral I/O
Internal RAM
Image
Image
Image
Physical external memory
3FFFFFH
External memory
000000H
xx000000H
Internal ROM
xx000000H
68
Page 69
CHAPTER 3 CPU FUNCTIONS
3.4.6 External expansion mode
The V850/SA1 allows external devices to be connected to the external memory space by using the pins of ports 4,
5, 6, and 9. To connect an external device, the port pins must be set in the external expansion mode by using the
memory expansion mode register (MM).
The address bus (A1 to A15) is set to maltiplexed output with data bus (D1 to D15), though separate output is also
available by setting the memory address output mode register (MAM) (See the User’s Manual of relevant in-circuit
emulator about debagging when using the separate bus).
Because the V850/SA1 is fixed to single-chip mode in the normal operation mode, the port/control mode alternate
pins become the port mode, thereby the external memory cannot be used. When the external memory is used
(external expansion mode), specify the MM register by the program.
(1) Memory expansion mode register (MM)
This register sets the mode of each pin of ports 4, 5, 6, and 9. In the external expansion mode, an external
device can be connected to the external memory area of up to 4 Mbytes. However, the external device cannot be
connected to the internal RAM area, on-chip peripheral I/O area, and internal ROM area in the single-chip mode
(access is restricted to external locations 100000H through FFE00H).
The MM register can be read/written in 8- or 1-bit units. However, bits 4 to 7 are fixed to 0.
69
Page 70
CHAPTER 3 CPU FUNCTIONS
Figure 3-7. Memory Expansion Mode Register (MM) Format
After reset: 00HR/WAddress: FFFFF04CH
Symbol76543210
MM0000MM3MM2MM1MM0
MM3P95 and P96 Operation Modes
0Port mode
1E xternal expansion mode (HLDAK: P95, HLDRQ: P96)
MM2MM1MM 0Addres s SpacePort 4Port 5Port 6Port 9
000−Port mode
01164-KBAD0 toAD8 toLBEN,
expansion modeAD7AD15UBEN,
100256-KB
expansion mode
1011-MB
expansion mode
11×4-MB
expansion mode
OthersRFU (reserved)
A16
A17
A18
A19
A20
A21
R/W, DSTB,
ASTB,
WRL,
WRH, RD
Remark
For the details of the operation of each port pin, refer to
2.3 Description of Pin Functions
.
70
Page 71
CHAPTER 3 CPU FUNCTIONS
(2) Memory address output mode register (MAM)
Sets the mode of ports 3, 10, and 11. Separate output can be set for the address bus (A1 to A15) in the external
expansion mode.
Only writing in 8-bit units is available for the MAM register. If read is performed, undefined values will be read.
Bits 3 to 7 are fixed to 0.
Figure 3-8. Memory Address Output Mode Register (MAM) Format
After reset: 00H WAddress: FFFFF068H
Symbol76543210
MAM00000MAM2MAM1MAM0
MAM2MAM1MAM0Address SpacePort 11Port 10Port 3
000
01032 bytesA1-A4
−
Port mode
011512 bytes
100 8 Kbytes
10116 Kbytes
11032 Kbytes
11164 Kbytes
A5-A8
A9-A12
A13
A14
A15
CautionDebugging the memory address output mode register (MAM) an in-circuit emulator is not
available. Also, setting the MAM register by software cannot switch to the separate bus.
Fordetails, refer to the relevant User’s Manual of in-circuit emulator.
Remark
For details of the operation of each port, see
2.3 Description of Pin Functions
.
71
Page 72
CHAPTER 3 CPU FUNCTIONS
3.4.7 Recommended use of address space
The architecture of the V850/SA1 requires that a register that serves as a pointer be secured for address
generation in operand data accessing for data space. The address in this pointer register ±32 Kbytes can be
accessed directly from instruction. However, general register used as a pointer register is limited. Therefore, by
minimizing the deterioration of address calculation performance when changing the pointer value, the number of
usable general registers for handling variables is maximized, and the program size can be saved because instructions
for calculating pointer addresses are not requir ed.
To enhance the efficiency of using the pointer in connection with the memory map of the V850/SA1, the following
points are recommended:
(1) Program space
Of the 32 bits of the PC (program counter), the higher 8 bits are fixed to "0", and only the lower 24 bits are valid.
Therefore, a contiguous 16-Mbyte space, starting from address 00000000H, unconditionally corresponds to the
memory map of the program space.
(2) Data space
For the efficient use of resources to be performed through the wrap-around feature of the data space, the
continuous 8-Mbyte address spaces 00000000H to 007FFFFFH and FF800000H to FFFFFFFFH of the 4-Gbyte
CPU are used as the data space. With the V850/SA1, 16-Mbyte physical address space is seen as 256 images
in the 4-Gbyte CPU address space. The highest bit (bit 23) of this 24-bit address is assigned as address signextended to 32 bits.
72
Page 73
CHAPTER 3 CPU FUNCTIONS
Application of wrap-around
For example, when R = r0 (zero register) is specified for the LD/ST disp16 [R] instruction, an addressing range of
00000000H ± 32 Kbytes can be referenced with the sign-extended, 16-bit displacement value. By mapping the
external memory in the 24-Kbyte area in the figure, all resources including on-chip hardware can be accessed
with one pointer.
The zero register (r0) is a register set to 0 by the hardware, and eliminates the need for additional registers for the
pointer.
Flash memory internal versionMask ROM internal version
Resetting initializes registers to input mode and 00H cannot actually be read.
75
Page 76
CHAPTER 3 CPU FUNCTIONS
AddressFunction Regist er Nam eS ym bolR/W
FFFFF080HPull-up resistor option register 0PU0R/W
FFFFF082HPull-up resistor option register 1PU1
FFFFF084HPull-up resistor option register 2PU2
FFFFF086HPull-up resistor option register 3PU3
FFFFF094HPull-up resistor option register 10PU10
FFFFF096HPull-up resistor option register 11PU11
FFFFF0A2HPort 1 function registerPF1
FFFFF0A4HPort 2 function registerPF2
FFFFF0B4HPort 10 function registerPF10
FFFFF0C0HRising edge specification register 0EGP0
FFFFF0C2HFalling edge specification register 0EGN0
FFFFF100HInterrupt control registerWDTIC
FFFFF102HInterrupt control registerPIC0
FFFFF104HInterrupt control registerPIC1
FFFFF106HInterrupt control registerPIC2
FFFFF108HInterrupt control registerPIC3
FFFFF10AHInterrupt control registerPIC4
FFFFF10CHInterrupt control registerPIC5
FFFFF10EHInterrupt control registerPIC6
FFFFF110HInterrupt control registerWTIIC
FFFFF112HInterrupt control registerTMIC00
FFFFF114HInterrupt control registerTMIC01
FFFFF116HInterrupt control registerTMIC10
FFFFF118HInterrupt control registerTMIC11
FFFFF11AHInterrupt control registerTMIC2
FFFFF11CHInterrupt control registerTMIC3
FFFFF11EHInterrupt control registerTMIC4
FFFFF120HInterrupt control registerTMIC5
FFFFF122HInterrupt control registerCSIC0
FFFFF124HInterrupt control registerSERIC0
FFFFF126HInterrupt control registerCSIC1
FFFFF128HInterrupt control registerSTIC0
FFFFF12AHInterrupt control registerCSIC2
FFFFF12CHInterrupt control registerSERIC1
FFFFF12EHInterrupt control registerSRIC1
Specific registers are registers that are protected from being written wi th illegal data due to erroneous program
execution, etc. The write access of these specific registers is executed in a specific sequence, and if abnormal store
operations occur, it is notified by the system status register (SYS). The V850/SA1 has two specific registers, the
power save control regis ter (PSC) and processor clock control register (PCC). For details of the PSC register, refer to
6.3.1 (2),
and for details of the PCC register, refer to
The following sequence shows the data setting of the specific registers.
<1> DMA operation is disabled.
<2> Set the PSW NP bit to 1 (interrupt disabled).
<3> Write any 8-bit data in the command register (PRCMD).
<4> Write the set data in the specific registers (by the following instructions).
• Store instruction (ST/SST instruction)
• Bit manipulation instruction (SET1/CLR1/NOT1 instruction)
<5> Return the PSW NP bit to 0 (interrupt disable canceled).
<6> Insert the NOP instructions (2 or 5 instructions).
<7> Enable DMA operation if required.
6.3.1 (1).
No special sequence is required when reading the specific registers.
Caution 1. If an interrupt request is accepted between the time PRCMD is issued <3> and the specific
register write operation <4> that follows immediately after, the write operation to the specific
register is not performed and a protection error (PRERR bit of SYS register is “1”) may occur.
Therefore, set the NP bit of PSW to 1 <2> to disable the acceptance of INT/NMI.
The above also applies when a bit manipulation instruction is used to set a specific register.
Moreover, to ensure that the execution routine following release of the STOP/IDLE mode is
performed correctly, insert the NOP instruction as a dummy instruction <6>. If the value of
the ID bit of PSW does not change as the result of execution of the instruction to return the NP
bit to 0 <5>, insert two NOP instructions, and if the value of the ID bit of PSW changes, insert
five NOP instructions.
80
Page 81
CHAPTER 3 CPU FUNCTIONS
A description example is given below.
[Description example]: In case of PSC register
LDSR rX,5; NP bit = 1
ST.B r0,PRCMD [r0]; Write to PRCMD
ST.B rD,PSC [r0]; PSC register setting
LDSR rY,5; NP bit = 0
NOP; Dummy instruction (2 or 5 instructions)
NOP
(next instruction); Execution routine following cancellation of STOP/IDLE mode
When saving the value of PSW, the value of PSW prior to setting the NP bit must be
transferred to the rY register.
.
.
.
.
.
.
rX: Value to be written to PSW
rY: Value to be written back to PSW
rD: Value to be set to PSC
Caution2. The instructions (<5> interrupt disable cancel, <6> NOP instruction) following the store
instruction for the PSC register for setting the software STOP mode and IDLE mode are
executed before a power save mode is entered.
3. Be sure to stop DMA before a specific register is accessed.
81
Page 82
CHAPTER 3 CPU FUNCTIONS
(1) Command register (PRCMD)
The command register (PRCMD) is a register used when write-accessing the specific register to prevent incorrect
writing to the specific registers due to the erroneous program execution.
This register can be written in 8-bit units. It becomes undefined values in a read cycle.
Occurrence of illegal store operations can be checked by the PRERR bit of the SYS register.
After reset: Undefined WAddress: FFFFF170H
Symbol76543210
PRCMDREG7REG6REG5REG4REG3REG2REG1REG0
REGnRegistration Code
0/1Any 8-bit data
(2) System status register (SYS)
This register is allocated with status flags showing the operating state of the entire system. This register can be
read/written in 8- or 1-bit units.
After reset: 00HR/WAddress: FFFFF078H
Symbol76543210
SYS000PRERR0000
PRERRDetection of Protection Error
0Protection error does not occur
1Protection error occurs
Operation conditions of PRERR flag are shown as follows.
(a) Set conditions (PRERR = “1”)
(1) If the store instruction most recently executed to peripheral I/O does not write data to the PRCMD
register, but to the specific register.
(2) If the first store instruction executed after the write operation to the PRCMD register is to a peripheral I/O
register other than the specific registers.
(b) Reset conditions: (PRERR = “0”)
(1) When “0” is written to the PRERR flag of the SYS register.
(2) At system reset.
82
Page 83
CHAPTER 4 BUS CONTROL FUNCTION
The V850/SA1 is provided with an external bus interface function by which external memories such as ROM and
RAM, and I/O can be connected.
4.1 Features
•16-bit data bus
•External devices connected through multiplexed I/O port pins
•Wait function
• Programmable wait function, capable of inserting up to 3 wait states per 2 blocks
• External wait control through WAIT input pin
•Idle state insertion function
•Bus mastership arbitration function
•Bus hold function
4.2 Bus Control Pins and Control Register
4.2.1 Bus control pins
The following pins are used for interfacing to external devices:
External Bus Interf ace FunctionCorresponding Port (pins)
Address/data bus (AD0 to AD7)Port 4 (P40 to P47)
Address/data bus (AD8 to AD15)Port 5 (P 50 to P57)
Address bus (A16 to A21)Port 6 (P60 to P65)
Read/write control (LBEN, UBEN, R/W, DSTB, WRL, WRH, RD)Port 9 (P90 to P93)
Address strobe (ASTB )Port 9 (P94)
Bus hold control (HLDRQ, HLDAK)Port 9 (P95, P96)
External wait control (WA IT)Port 12 (P120)
The bus interface function of each pin is enabled by specifying the memory expansion mode register (MM). For
the details of specifying an operation mode of the external bus interface, refer to
register (MM)
.
3.4.6 (1) Memory expansion mode
Caution For debugging using the separate bus, refer to the user’s manual of corresponding in-circuit
emulator.
83
Page 84
CHAPTER 4 BUS CONTROL FUNCTION
4.2.2 Control register
(1) System control register (SYC)
This register switches control signals for bus interface.
The system control register can be read/written in 8- or 1-bit units.
After reset: 00HR/WAddres s: FFFFF064H
Symbol
SYC0000000BIC
76
BICBus Interface Control
0DSTB, R/W, UBEN, LBEN signal outputs
1RD, WRL, WRH, UBEN signal outputs
54
3210
4.3 Bus Access
4.3.1 Number of access clocks
The number of basic clocks necessary for accessing each resource is as follows:
Peripheral I/O (bus width)
Bus Cycle TypeInternal ROM
(32 bits)
Instruction fetch13Disabled3 + n
Operand data access3133 + n
Remarks 1.
Unit : Clock/access
2.
n: Number of wait insertions
Internal RAM
(32 bits)
Peripheral I/O
(16 bits)
External Memory
(16 bits)
84
Page 85
CHAPTER 4 BUS CONTROL FUNCTION
4.3.2 Bus width
CPU carries out peripheral I/O access and external memory access in 8-, 16-, or 32-bit. The following shows the
operation for each access.
(1) Byte access (8 bits)
Byte access is divided into two types, the access to even address and the access to odd address.
(a) Access to even address
15
7
0
Byte dataExternal data bus
8
7
0
(b) Access to odd address
15
7
0
Byte dataExternal data bus
8
7
0
(2) Halfword access (16 bits)
In halfword access to external memory, data is dealt with as it is because the data bus is fixed to 16 bits.
1515
00
Halfword data External data bus
(3) Word access (32 bits)
In word access to external memory, lower halfword is accessed first and then the upper halfword is accessed.
First
31
16
15
0
Word dataExternal data bus
15
0
Second
31
16
15
0
Word dataExternal data bus
15
0
85
Page 86
CHAPTER 4 BUS CONTROL FUNCTION
4.4 Memory Block Function
The 16-Mbyte memory space is divided into memory blocks of 1-Mbyte units. The programmable wait function
and bus cycle operation mode can be independently controlled for every two memory blocks.
FFFFFFH
F00000H
EFFFFFH
E00000H
DFFFFFH
D00000H
CFFFFFH
C00000H
BFFFFFH
B00000H
AFFFFFH
A00000H
9FFFFFH
900000H
8FFFFFH
800000H
7FFFFFH
700000H
6FFFFFH
600000H
5FFFFFH
500000H
4FFFFFH
400000H
3FFFFFH
300000H
2FFFFFH
200000H
1FFFFFH
100000H
0FFFFFH
000000H
Block 15
Block 14
Block 13
Block 12
Block 11
Block 10
Block 9
Block 8
Block 7
Block 6
Block 5
Block 4
Block 3
Block 2
Block 1
Block 0
Peripheral I/O area
Internal RAM area
External memory area
Internal ROM area
86
Page 87
CHAPTER 4 BUS CONTROL FUNCTION
4.5 Wait Function
4.5.1 Programmable wait function
To facilitate interfacing with low-speed memories and I/O devices, up to 3 data wait states can be inserted in a bus
cycle for two memory blocks. The number of wait states can be programmed by using data wait control register
(DWC). Immediately after the system has been reset, three data wait states are automatically programmed for all
memory blocks.
(1) Data wait control register (DWC)
This register can be read/written in 16-bit units.
nBlocks into Which Wait States Are Inserted
0Blocks 0/1
1Blocks 2/3
2Blocks 4/5
3Blocks 6/7
4Blocks 8/9
5Blocks 10/11
6Blocks 12/13
7Blocks 14/15
Number of Wait States t o be I nserted
Block 0 is reserved for the internal ROM area. It is not subject to programmable wait control, regardless of the
setting of DWC, and is always accessed without wait states.
The internal RAM area of block 15 is not subject to programmable wait control and is always accessed without
wait states. The on-chip peripheral I/O area of this block is not subject to programmable wait control, either. The
only wait control is dependent upon the execution of each peripheral function.
87
Page 88
CHAPTER 4 BUS CONTROL FUNCTION
4.5.2 External wait function
When an extremely slow device, I/O, or asynchronous system is connected, any number of wait states can be in-
serted in a bus cycle by sampling the external wait pin (WAIT) to synchronize with the external device.
The external WAIT signal does not affect the access times of the internal ROM, internal RAM, and on-chip peripheral I/O areas. Input of the external WAIT signal can be done asynchronously to CLKOUT and is sampled at the falling edge of the clock in the T2 and TW states of a bus cycle. If the setup/hold time of the WAIT input are not satisfied, the wait state may or may not be inserted in the next state.
4.5.3 Relations between programmable wait and external wait
A wait cycle is inserted as a result of an OR operation between the wait cycle specified by the set value of programmable wait and the wait cycle controlled by the WAIT pin. In other words, the number of wait cycles is determined by the programmable wait value or the length of evaluation at the WAIT input pin.
Programmable wait
Wait control
Wait by WAIT pin
For example, if the number of programmable wait and the timing of the WAIT pin input signal is as illustrated below, three wait states will be inserted in the bus cycle.
Figure 4-1. Example of Inserting Wait States
T2TWTWTWT3
Remark
T1
CLKOUT
WAIT pin
Wait by WAIT pin
Programmable wait
Wait control
{: valid sampling timing
88
Page 89
CHAPTER 4 BUS CONTROL FUNCTION
4.6 Idle State Insertion Function
To facilitate interfacing with low-speed memory devices and meeting the data output float delay time on memory
read accesses, one idle state (TI) can be inserted into the current bus cycle after the T3 state. The bus cycle following continuous bus cycles starts after one idle state.
Specifying insertion of the idle state is programmable by using the bus cycle control register (BCC).
Immediately after the system has been reset, idle state insertion is automatically programmed for all memory
blocks.
(1) Bus cycle control register (BCC)
This register can be read/written in 16-bit units.
After reset: AAAAHR/WAddress: FFFFF062H
Symbol1514131211109876543210
BCC
BCn1
0Not inserted
1Inserted
nBlocks into Which Idle State Is Inserted
0Blocks 0/1
1Blocks 2/3
2Blocks 4/5
3Blocks 6/7
4Blocks 8/9
5Blocks 10/11
6Blocks 12/13
7Blocks 14/15
Idle State Insert S pecification
Block 0 is reserved for the internal ROM area; therefore, no idle state is specified regardless of the BCC setting.
The internal RAM area and on-chip peripheral I/O area of block 15 are not subject to insertion of the idle state.
Be sure to set bits 0, 2, 4, 6, 8, 10, 12, and 14 to 0. If these bits are set to 1, the operation is not guaranteed.
0BC010BC110BC210BC310BC410BC510BC610BC71
89
Page 90
CHAPTER 4 BUS CONTROL FUNCTION
4.7 Bus Hold Function
4.7.1 Outline of function
MM3 bit of the memory expansion register (MM) is set (1), the HLDRQ and HLDAK pin functions of P95 and P96
become valid.
When the HLDRQ pin becomes active (low) indicating that another bus master is requesting acquisition of the bus,
the external address/data bus and strobe pins go into a high-impedance state
status). When the HLDRQ pin becomes inactive (high) indicating that the request for the bus is cleared, these pins
are driven again.
During bus hold period, the internal operation continues until the next external memory access.
In the bus hold status, the HLDAK pin becomes active (low).
This feature can be used to design a system where two or more bus masters exist, such as when multi-processor
configuration is used and when a DMA controller is connected.
Bus hold request is not acknowledged between the first and the second word access. Bus hold request is also not
acknowledged between read access and write access in read modify write access of bit manipulation instruction.
Note
A1 to A15 pins are retained when the separate bus is used.
Note
, and the bus is released (bus hold
90
Page 91
CHAPTER 4 BUS CONTROL FUNCTION
4.7.2 Bus hold procedure
The procedure of the bus hold function is illustrated below.
<1>HLDRQ = 0 accepted
<2>All bus cycle start request pending
<3>End of current bus cycle
<4>Bus idle status
<5>HLDAK = 0
<6>HLDRQ = 1 accepted
<7>HLDAK = 1
<8>Clears bus cycle start request pending
<9>Start of bus cycle
HLDRQ
HLDAK
<1><2><3><4><5><
4.7.3 Operation in power save mode
Nomal status
Bus hold status
Normal status
7
><8><9><6>
In the STOP or IDLE mode, the system clock is stopped. Consequently, the bus hold status is not set even if the
HLDRQ pin becomes active.
In the HALT mode, the HLDAK pin immediately becomes active when the HLDRQ pin becomes active, and the
bus hold status is set. When the HLDRQ pin becomes inactive, the HLDAK pin becomes inactive. As a result, the
bus hold status is cleared, and the HALT mode is set again.
91
Page 92
CHAPTER 4 BUS CONTROL FUNCTION
4.8 Bus Timing
The V850/SA1 can execute the read/write control for an external device by the following two modes.
• Mode using DSTB, R/W, LBEN, UBEN, and ASTB signals
• Mode using RD, WRL, WRH, and ASTB signals
Set these modes by using the BIC bit of the system control register (SYC).
(1) Memory read (0 wait)
T1T2T3
CLKOUT (input)
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
WRH, WRL (output)
DSTB, RD (output)
Address
Address
DataAddress
H
92
Remarks 1.
UBEN, LBEN (output)
WAIT (input)
{ indicates the sampling timing when the number of programmable waits is set to 0.
2.
The broken line indicates the high-impedance state.
Page 93
(2) Memory read (1 wait)
CHAPTER 4 BUS CONTROL FUNCTION
CLKOUT (input)
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
T1T2TW
Address
Address
Address
T3
Data
WRH, WRL (output)
DSTB, RD (output)
UBEN, LBEN (output)
WAIT (input)
Remarks 1.
{ indicates the sampling timing when the number of programmable waits is set to 0.
2.
The broken line indicates the high-impedance state.
H
93
Page 94
(3) Memory read (0 wait, idle state)
CHAPTER 4 BUS CONTROL FUNCTION
CLKOUT (input)
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
T1T2T3
Address
Address
Address
Data
TI
WRH, WRL (output)
DSTB, RD (output)
UBEN, LBEN (output)
WAIT (input)
Remarks 1.
{ indicates the sampling timing when the number of programmable waits is set to 0.
2.
The broken line indicates the high-impedance state.
H
94
Page 95
(4) Memory read (1 wait, idle state)
CHAPTER 4 BUS CONTROL FUNCTION
CLKOUT (input)
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
T1T2TW
Address
Address
Address
Data
T3
TI
WRH, WRL (output)
DSTB, RD (output)
UBEN, LBEN (output)
WAIT (input)
Remarks 1.
2.
H
{ indicates the sampling timing when the number of programmable waits is set to 0.
The broken line indicates the high-impedance state.
95
Page 96
(5) Memory write (0 wait)
CLKOUT (input)
CHAPTER 4 BUS CONTROL FUNCTION
T1T2T3
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
RD (output)
H
Address
Address
Address
Data
Note
96
UBEN, LBEN (output)
Note
AD0 to AD7 output invalid data when odd address byte data is accessed.
AD8 to AD15 output invalid data when even address byte data is accessed.
Remarks 1.
DSTB (output)
WRH, WRL (output)
WAIT (input)
{ indicates the sampling timing when the number of programmable waits is set to 0.
2.
The broken line indicates the high-impedance state.
Page 97
(6) Memory write (1 wait)
CHAPTER 4 BUS CONTROL FUNCTION
CLKOUT (input)
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
T1T2TW
Address
Address
Address
Data
T3
Note
RD (output)
DSTB (output)
WRH, WRL (output)
UBEN, LBEN (output)
WAIT (input)
Note
AD0 to AD7 output invalid data when odd address byte data is accessed.
H
AD8 to AD15 output invalid data when even address byte data is accessed.
Remarks 1.
{ indicates the sampling timing when the number of programmable waits is set to 0.
2.
The broken line indicates the high-impedance state.
97
Page 98
(7) Bus hold timing
CLKOUT (input)
CHAPTER 4 BUS CONTROL FUNCTION
T2T3THTHTHTHTIT1
HLDRQ (input)
HLDAK (output)
A16 to A21 (output)
A1 to A15 (output)
AD0 to AD15
(input/output)
ASTB (output)
R/W (output)
DSTB, RD,
WRH, WRL (output)
Address
Address
Data
Note1
Note2
Address
Undefined
Address
Address
UBEN, LBEN (output)
WAIT (input)
Notes 1.
2.
Remarks 1.
98
If HLDRQ signal is inactive (high-level) at the sampling timing, bus hold state is not entered.
If transmitted to bus hold status after write cycle, high-level may be output momentarily from R/W
pin immediately before HLDAK signal transmits from high-level to low-level.
{ indicates the sampling timing when the number of programmable waits is set to 0.
2.
The broken line indicates the high-impedance state.
Page 99
CHAPTER 4 BUS CONTROL FUNCTION
4.9 Bus Priority
There are four external bus cycles: bus hold, operand data access, instruction fetch (branch), and instruction fetch
(continuous). The bus hold cycle is given the highest priority, followed by operand data access, instruction fetch
(branch), and instruction fetch (continuous) in that order.
The instruction fetch cycle may be inserted in between the read access and write access of read-modify-write access.
No instruction fetch cycle and bus hold are inserted between the lower half-word access and higher half-word access of word operations.
Table 4-1. Bus Priority
External Bus CyclePriority
Bus hold1
Operand data access2
Instruction fetch (branch)3
Instruction fetch (continuous)4
4.10 Memory Boundary Operation Condition
4.10.1 Program space
(1) Do not execute branch to the on-chip peripheral I/O area or continuous fetch from the internal RAM area to pe-
ripheral I/O area. Of course, it is impossible to fetch from external memory. If branch or instruction fetch is executed nevertheless, the NOP instruction code is continuously fetched.
(2) A prefetch operation straddling over the on-chip peripheral I/O area (invalid fetch) does not take place if a branch
instruction exists at the upper-limit address of the internal RAM area.
4.10.2 Data space
Only the address aligned at the half-word (when the least significant bit of the address is “0”)/word (when the low-
est 2 bits of the address are “0”) boundary is accessed for data half-word (16 bits)/word (32 bits) long.
Therefore, access that straddles over the memory or memory block boundary does not take place.
For the details, refer to
V850 Family User’s Manual Architecture
.
99
Page 100
[MEMO]
100
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.