All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).
R01UH0076ED0103, Rev. 1.03
www.renesas.com
November 07, 2012
Page 2
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Notice
1. All information included in this document is current as of the date this document is issued. Such
information, however, is subject to change without any prior notice. Before purchasing or using any
Renesas Electronics products listed herein, please confirm the latest product information with a
Renesas Electronics sales office. Also, please pay regular and careful attention to additional and
different information to be disclosed by Renesas Electronics such as that disclosed through our
website.
2. Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other
intellectual property rights of third parties by or arising from the use of Renesas Electronics
products or technical information described in this document. No license, express, implied or
otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of
Renesas Electronics or others.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product,
whether in whole or in part.
4. Descriptions of circuits, software and other related information in this document are provided only to
illustrate the operation of semiconductor products and application examples. You are fully
responsible for the incorporation of these circuits, software, and information in the design of your
equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third
parties arising from the use of these circuits, software, or information.
5. When exporting the products or technology described in this document, you should comply with the
applicable export control laws and regulations and follow the procedures required by such laws and
regulations. You should not use Renesas Electronics products or the technology described in this
document for any purpose relating to military applications or use by the military, including but not
limited to the development of weapons of mass destruction. Renesas Electronics products and
technology may not be used for or incorporated into any products or systems whose manufacture,
use, or sale is prohibited under any applicable domestic or foreign laws or regulations.
6. Renesas Electronics has used reasonable care in preparing the information included in this
document, but Renesas Electronics does not warrant that such information is error free. Renesas
Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors
in or omissions from the information included herein.
7. Renesas Electronics products are classified according to the following three quality grades:
“Standard”, “High Quality”, and “Specific”. The recommended applications for each Renesas
Electronics product depends on the product’s quality grade, as indicated below. You must check the
quality grade of each Renesas Electronics product before using it in a particular application. You
may not use any Renesas Electronics product for any application categorized as “Specific” without
the prior written consent of Renesas Electronics. Further, you may not use any Renesas
Electronics product for any application for which it is not intended without the prior written consent
of Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or
losses incurred by you or third parties arising from the use of any Renesas Electronics product for
an application categorized as “Specific” or for which the product is not intended where you have
failed to obtain the prior written consent of Renesas Electronics.
R01UH0076ED0103 Rev. 1.032
Nov 07, 2012
Page 3
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Notice
The quality grade of each Renesas Electronics product is “Standard” unless otherwise expressly
specified in a Renesas Electronics data sheets or data books, etc.
“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.
“High Quality”: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”:Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control
systems; medical equipment or systems for life support (e.g. artificial life support
devices or systems), surgical implantations, or healthcare intervention (e.g.
excision, etc.), and any other applications or purposes that pose a direct threat to
human life.
8. You should use the Renesas Electronics products described in this document within the range
specified by Renesas Electronics, especially with respect to the maximum rating, operating supply
voltage range, movement power voltage range, heat radiation characteristics, installation and other
product characteristics. Renesas Electronics shall have no liability for malfunctions or damages
arising out of the use of Renesas Electronics products beyond such specified ranges.
9. Although Renesas Electronics endeavors to improve the quality and reliability of its products,
semiconductor products have specific characteristics such as the occurrence of failure at a certain
rate and malfunctions under certain use conditions. Further, Renesas Electronics products are not
subject to radiation resistance design. Please be sure to implement safety measures to guard them
against the possibility of physical injury, and injury or damage caused by fire in the event of the
failure of a Renesas Electronics product, such as safety design for hardware and software including
but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for
aging degradation or any other appropriate measures. Because the evaluation of microcomputer
software alone is very difficult, please evaluate the safety of the final products or system
manufactured by you.
10. Please contact a Renesas Electronics sales office for details as to environmental matters such as
the environmental compatibility of each Renesas Electronics product. Please use Renesas
Electronics products in compliance with all applicable laws and regulations that regulate the
inclusion or use of controlled substances, including without limitation, the EU RoHS Directive.
Renesas Electronics assumes no liability for damages or losses occurring as a result of your
noncompliance with applicable laws and regulations.
11. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior
written consent of Renesas Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the
information contained in this document or Renesas Electronics products, or if you have any other
inquiries.
(Note 1)“Renesas Electronics” as used in this document means Renesas Electronics
Corporation and also includes its majority-owned subsidiaries.
(Note 2)“Renesas Electronics product(s)” means any product developed or manufactured by or
for Renesas Electronics.
R01UH0076ED0103 Rev. 1.033
Nov 07, 2012
Page 4
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
General Precautions in the Handling of MPU/MCU Products
The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage
notes on the products covered by this manual, refer to the relevant sections of the manual. If the
descriptions under General Precautions in the Handling of MPU/MCU Products and in the body of the
manual differ from each other, the description in the body of the manual takes precedence.
1. Handling of unused Pins
Handle unused pins in accord with the directions given under Handling of Unused Pins in the
manual.
– The input pins of CMOS products are generally in the high-impedance state. In operation with an
unused pin in the open-circuit state, extra electromagnetic noise is induced in the vicinity of LSI,
an associated shoot-through current flows internally, and malfunctions occur due to the false
recognition of the pin state as an input signal become possible. Unused pins should be handled
as described under Handling of Unused Pins in the manual.
2. Processing at power-on
The state of the product is undefined at the moment when power is supplied.
– The states of internal circuits in the LSI are indeterminate and the states of register settings and
pins are undefined at the moment when power is supplied.
In a finished product where the reset signal is applied to the external reset pin, the states of pins
are not guaranteed from the moment when power is supplied until the reset process is
completed.
In a similar way, the states of pins in a product that is reset by an on-chip power-on reset function
are not guaranteed from the moment when power is supplied until the power reaches the level at
which resetting has been specified.
3. Prohibition of access to reserved addresses
Access to reserved addresses is prohibited.
– The reserved addresses are provided for the possible future expansion of functions. Do not
access these addresses; the correct operation of LSI is not guaranteed if they are accessed.
4. Clock signals
After applying a reset, only release the reset line after the operating clock signal has become
stable. When switching the clock signal during program execution, wait until the target clock signal
has stabilized.
– When the clock signal is generated with an external resonator (or from an external oscillator)
during a reset, ensure that the reset line is only released after full stabilization of the clock
signal. Moreover, when switching to a clock signal produced with an external resonator (or by an
external oscillator) while program execution is in progress, wait until the target clock signal is
stable.
5. Differences between products
Before changing from one product to another, i.e. to one with a different part number, confirm that
the change will not lead to problems.
– The characteristics of MPU/MCU in the same group but having different part numbers may differ
because of the differences in internal memory capacity and layout pattern. When changing to
products of different part numbers, implement a system-evaluation test for each of the products.
R01UH0076ED0103 Rev. 1.034
Nov 07, 2012
Page 5
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
29.9.17 Continuous transfer mode (arbitration loss operation (IICBnSTR0.IICBnALDF
bit = 1) (when address was transferred during reception): non-participation in
communications after arbitration loss (during extension code transfer)). . 2283
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
How to use this manual
Purpose and target readers
This manual is designed to provide the user with an understanding of the
hardware functions of the microcontroller. It is intended for users designing
application systems incorporating the microcontroller. A basic knowledge of
electric circuits, logical circuits, and microcontrollers is necessary in order to
use this manual.
Special notations
Following special notations are used throughout this document:
NoteAdditional remark or tip
CautionItem deserving extra attention
Electrical specifications
This manual does not present any electrical specifications.
Refer to the "Electrical Target Specification" for detailed definitions of all
electrical properties.
For information about the "Electrical Target Specification" document, refer to
the section “Related Documents” in the chapter “Introduction”.
Additional documents
Following types of documents are available for the V850E2/Fx4
microcontrollers. Make sure to refer to the latest versions of these documents.
The newest versions of the documents listed may be obtained from the
Renesas Electronics Web site.
Document TypeDescriptionDocument
Data sheetHardware overview and electrical characteristicsRefer to the section
User manual:
Hardware
User manual:
32-bit Microprocessor
Core Architecture
Hardware specifications (pin assignments, memory maps,
functional modules specifications and operation description)
Note: Refer to the application notes for details on using
functional modules.
Description of CPU, its instruction set and processor
protection functions
“Related Documents” in
the chapter “Introduction”
R01UH0076ED0103 Rev. 1.0330
Nov 07, 2012
Page 31
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
How to use this manual
Document TypeDescriptionDocument
Application noteInformation on using peripheral functions and application
examples, sample programs and information on writing
programs in assembly language and C
Renesas technical
update
Product specifications, updates on documents, etc.
Available from Renesas
Electronics Web site
Content of this manual
In the following brief hints are given where to find certain information about the
V850E2/Fx4 microcontrollers.
Product overviewRefer to the chapter “Introduction” for an overview of the features of all target
microcontrollers and their block diagrams.
Order codes for all devices and a list of related documents is given here as
well.
CPU core functionsThe functions of the CPU core (e.g. instruction set, processor protection
functions, etc.) are not subject to this manual. Refer to the separate CPU core
manual, shown in the section “Related Documents” in the chapter
“Introduction”.
CPU Subsystem
functions
Port functionsThe chapter “Port Functions” describes all input/output port related functions,
Interrupt functionsRefer to the chapter “Interrupt Controller”.
The functions of the CPU Subsystem (including address map, operation
modes, etc.) are described in the chapter “CPU System Function”.
The section “Write protected Registers” in this chapter describes how to deal
with registers, that feature special write protection facilities.
If the microcontroller has separate bus systems beside the CPU Subsystem to
connect certain functional modules, refer to the chapter “Bus Architecture”.
such as port sharing, I/O buffer control, port filters.
The features and electrical properties of the I/O buffers are not subject to this
manual, but are described in the "Electrical Target Specification".
Note that the function of each interrupt source is not described here, but in the
related chapter of the module, that generates the interrupt.
DMA/DTS functionsRefer to the chapter “DMA/DTS Controller” or “DMA Controller”, if the target
microcontroller does not feature DTS functions.
Note that the function of each DMA/DTS trigger source is not described here,
but in the related chapter of the module, that generates the trigger signal.
Flash memoryFor microcontrollers with on-chip flash memory refer to the chapter “Flash
Memory” for information about the flash memories structure and features,
programming facilities, etc.
R01UH0076ED0103 Rev. 1.0331
Nov 07, 2012
Page 32
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
How to use this manual
Stand-by functionsHow to set the microcontroller in stand-by modes and wake it up again is
described in the chapter “Stand-by Controller (STBC)”.
Code protection
and security
Clock supplyThe chapter “Clock Controller” describes the generation and operation of all
ResetsThe sources that can generate reset signals to all or dedicated internal
Functional modulesThe description of most functional modules, like timers, serial interfaces, etc. is
DebuggingThe main features on the On-Chip Debug Unit of the microcontroller is
Facilities to protect program code in on-chip flash memory (if available) from
illegal read-out via external flash programming equipment or debuggers is
described in the chapter “Code Protection and Security”.
clocks, provide to the entire microcontroller.
modules and how to control them is described in the chapter “Reset
Controller”.
provided in separate chapters. These chapters have a certain structure of
information presentation. Refer to the section “Functional modules descriptions”.
described in the chapter “On-chip Debug Unit (OCD)”.
Note that the description of the external debugger tool is not subject to this
manual.
Power supplyThe chapter “Power Supply” provides information which modules of the
microcontrollers are supplied by which external power supply pins.
Note that the specification of the external power supply is not subject to this
manual. Refer to the "Electrical Target Specification" for detailed definitions of
the power supply.
Boundary scanIf the target microcontroller supports boundary scan testing, refer to the
chapter “Boundary Scan” for information about available Boundary Scan
features.
Notation of numbers and symbols
SymbolsSymbols and notation are used as follows:
• Weight in data notation:Left is high order column, right is low order
column
• Active low notation:xxx (pin or signal name is over-scored) or
/xxx (slash before signal name)
• Memory map address:High order at high stage and low order at low
stage
Numeric notation• Binary:xxxx or xxx
• Decimal:xxxx
• Hexadecimal:xxxxH or 0x xxxx
R01UH0076ED0103 Rev. 1.0332
Nov 07, 2012
B
Page 33
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
How to use this manual
Numeric prefixesrepresent different factors, depending on the measure:
PrefixPowers of 2Powers of 10
k (kilo)–103 = 1000
K (Kilo)210 = 1024–
M (Mega)220 = 10242 = 1,048,576106 = 10002 = 1,000,000
G (Giga)230 = 10243 = 1,073,741,824109 = 10003 = 1,000,000,000
m (milli)–10-3 = 0.001
µ (micro)–10-6 = 0.0012 = 0.000,001
p (piko)–10-9 = 0.0013 = 0.000,000,001
For example used for
• address and memory spaces in
bytes: KB, MB, GB
For example used for
• frequencies: kHz, MHz, GHz
• times: ms, µs
• resistance: kΩ, MΩ
• capacitance: µF, pF
Register contentsX, x = don’t care
Diagrams
Block diagrams do not necessarily show the exact wiring in hardware but the
functional structure.
Timing diagrams are for functional explanation purposes only, without any
relevance to the real hardware implementation.
Trademarks
All trademarks are the property of their respective owners.
R01UH0076ED0103 Rev. 1.0333
Nov 07, 2012
Page 34
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
How to use this manual
Functional modules descriptions
Most of the chapters provide a technical description of a certain functional
module.
These chapters are split into two parts:
• The first section describes all properties of the functional module specific to
the target product of the user manual, such as instances, register base
addresses, input/output signal names, etc.
• The subsequent sections describe the features of the functional module as
a generic description. The generic description is common to all user
manuals of products, that feature this module.
Functional modules abbreviation convention
Each functional module has a unique abbreviation, for instance
TAUA for the Timer Array Unit A
This shortcut is used in names for various purposes:
• The module registers and their bits names are preceded by this shortcut, for
instance
TAUAnTS for the TAUAn channel start trigger register
The index “n” denotes the instance number of the module, refer to the next
section and the key words “Instances” and “Instances index n”.
• The base address of the module registers include the by this shortcut, for
instance
<TAUAn_base> for the base address of the TAUAn registers
• The input/output signals of the module are preceded by this shortcut, for
instance
TAUAnTTIN0 for the TAUAn channel 0 input signal
• The names of the module interrupts includes the module shortcut, for
instance
INTTAUAnI0 for the TAUAn channel 0 interrupt
Product specific features
The product specific section is always structured by a set of identical key
words.
For the naming of signals product specific section serves also as some kind of
interface between the generic module description and all other parts of the
document.
This means that the names of signals, used in the generic module description,
may be translated to other names, that are used in the other document
chapters.
This name translation is given in form of tables, as the following as an example:
R01UH0076ED0103 Rev. 1.0334
Nov 07, 2012
Page 35
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Table 0-1Example: Instances of TAUAn
Timer Array Unit ADevice_1Device_2Device_3
Instance242
NameTAUA0 to TAUA1TAUA0 to TAUA3TAUA0 to TAUA1
How to use this manual
Module signalsFunctionConnected to
Module shortcut:
Name used in
generic module
description
The following lists the key words for product specific definitions. As examples,
definitions of different modules are used.
Cautions1. The following product specific definitions are only used as examples and do
not define any properties of the target product of this document.
2. Consequently the functional modules, used for examples purposes, may not
be available with the target product of this document.
Brief functional descriptionName used in remaining
document
InstancesThe devices of the target product may contain different numbers of the
functional module, so called instances. The “Instances” paragraph specifies
the number of instances for all devices of the target product.
R01UH0076ED0103 Rev. 1.0335
Nov 07, 2012
Page 36
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Channel index mTimer Array Unit A has 16 channels. Throughout this chapter, the
individual channels are identified by the index “m” (m = 0 to 15), thus a
certain channel is denoted as CHm.
The even numbered channels (m = 0, 2, 4, 6, 8, 10, 12, 14) are denoted as
CHm_even.
The odd numbered channels (m = 1, 3, 5, 7 , 9, 11, 13, 15) are denoted as
CHm_odd.
Table 0-2Example: Register base addresses <TAUAn_base>
TAUAn instance<TAUAn_base> address
TAUA0FF80 8000
H
TAUA1FF80 9000
H
TAUA2FF80 A000
H
TAUA3FF80 B000
H
TAUA4FF80 C000
H
How to use this manual
Instances index nThroughout the following generic module description, an instance of a module
is identified by the index "n", for instance
TAUAnTS for the TAUAn channel start trigger register
“n” counts from 0 to the number of instances minus one.
Other indicesIn case other indices, except “n” for instances, are used throughout the generic
module description, they are specified here.
Register addressesAll module register addresses in the generic description are given as address
offsets to a base address, that is individual to a certain module instance n.
For each module instance n the individual base address is given here.
R01UH0076ED0103 Rev. 1.0336
Nov 07, 2012
Page 37
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Operating Temperature-40° C … +125° C
Package208-pin QFP
a)
Refer to the Data Sheet.
Maskable (INTPn)16
Non-maskable (NMI)1
Voltage Comparators (VCPC)2 channels
Clock Monitors (CLMA)provided for MainOsc, HS IntOsc, PLL0
Random Number Generator (RNGA)1 channel
Data CRC (DCRA)1 channel
Key Return (KR)8 channels
Wake-up signal outputprovided
Auxiliary frequency output (FOUT)provided
On-Chip debug (OCD)provided
Boundary Scanprovided
Port supply3.0 V to 5.5 V
µPD70F3559
µPD70F4011
1 channel (128 messages buffer)
• µPD70F4011 - µPD70F4012:
1 unit (2 channels)
supervision
µPD70F3560
µPD70F4012
a
a
a
R01UH0076ED0103 Rev. 1.0350
Nov 07, 2012
Page 51
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
PBUS
AWO:
TAUJ0 - TAUJ1
WDTA0
VCPC0 (2 chn.)
RTCA0
KR0
URTE/LMA10 URTE/LMA11
Iso0:
TAUA0
CSIG4
TAPA0
ENCA0
WDTA1
ADCA0 (24 chn.)
Power and Reset:
UARTA0
UARTA1
UARTA0
UARTA1
UARTA1UARTA1
AWO:
Reset
POC
Power
CPU Subsystem
CPU
DMAINTC
PBUS I/F
Iso0:
AWO:
STBC
Iso0:
MEMC
On-Chip Debug:
AWO:
OCD
Note: Available on µPD70F4011 to µPD70F4012
FPU
Port groups P12,
P13, P21, P24, P25,
P27, P28
Port groups P1 - P4,
P10, P11
Port group P0, JP0
OSTM0
Iso1:
RNG0CSIG0
FCN0 - FCN3
(2 x 64, 1 x 128
msg. buf.)
IICB0
DCN0
(128 msg. buf)
FLXA0
Note
ADCA1 (24 chn.)
PMCA0 (56 chn.)
DLYA0
CSIH0 - CSIH2
(8 + 8 + 8 CS)
URTE/LMA0 URTE/LMA9
TAUC2 - TAUC7
TAUB1
Memory
Iso0:
Instruction flash
Data flash
RAM
BURAM
DCRA0
Clock Generator:
AWO:
MainOsc
CLMA0
LS IntOscFOUT
Iso0:
PLL0 (SSCG0)
CLMA3
PLL1
PLL2 (SSCG2)
Note
CLMA2
HS IntOsc
Clock Selectors
CKSC_An
A
Clock Selectors
CKSC_0n
0
Iso1:
Clock Selectors
CKSC_1n
1
SubOsc
Chapter 1Introduction
R01UH0076ED0103 Rev. 1.0351
Nov 07, 2012
Figure 1-4V850E2/FL4 block diagram
Page 52
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
This chapter contains a generic description of the Port control functions.
The first section describes all properties specific to the V850E2/Fx4, such as
port groups, register base addresses, etc.
The second section describes the features of the port control functions that
apply to all ports.
The third section summarizes the individual functions of all pins of V850E2/Fx4
microcontrollers.
Finally the function of analog and digital filters, which are implemented at some
pins, are described.
2.1V850E2/Fx4 Port Features
Port groupsThe V850E2/Fx4 microcontrollers have following number of port groups:
Table 2-1Port groups of V850E2/Fx4
Port
groups
Number7111214
NamesP0, P1, P3, P4, P10,
Port groups index nThroughout this chapter, the individual port groups are identified by the index
Register addressesAll port and JTAG port control register addresses are given as address offsets
V850E2/FG4V850E2/FJ4V850E2/FK4V850E2/FL4
P0 to P4, P10, P11,
P11, JP0
“n”, for example, PMCn for the port mode control register of Pn.
from the individual base addresses <PORTn_base> and <JPORT0_base>.
The base addresses <PORTn_base> and <JPORT0_base> are specified in
the following table:
Table 2-2Port base addresses <PORTn_base> and <JPORT0_base>
P21, P25, P27, JP0
<PORTn_base> address<JPORT0_base> address
FF40 0000
H
P0 to P4, P10 to P12,
P21, P25, P27, JP0
P0 to P4, P10 to P13,
P21, P24, P25, P27,
FF44 0000
JP0
H
R01UH0076ED0103 Rev. 1.0355
Nov 07, 2012
Page 56
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.2Overview
The microcontroller has various pins for input/output functions, known as ports.
The ports are organized in port groups.
The microcontroller also has several control registers to allocate other than
general purpose input/output functions to the pins.
For a description of the terms pin, port, or port group, see the following section
“Terms”.
Features summary• Configuration possible for individual pins.
• The following features can be selected for most of the pins:
– One out of four input buffer characteristics
– Output current limit
– Open drain emulation
– Pull-up or pull-down resistor connection
• The following registers are offered for most of the ports:
– Direct register for reading the pin values
– Port register
– Port set/reset register
– Register for output inversion
R01UH0076ED0103 Rev. 1.0356
Nov 07, 2012
Page 57
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.2.1Terms
In this chapter, the following terms are used:
• Pin
Denotes the physical pin. Every pin is denoted by a unique pin number.
The pin numbers depend on the package and are given in the Data Sheet.
Most of the pins can be used in several modes. Thus the pin name depends
on the selected mode.
• Port group
Denotes a group of ports. The ports of a port group have a common set of
port mode control registers.
• Port mode / Port
A pin in port mode works as a general purpose input/output pin. It is then
called “port”.
The corresponding name is Pn_m. For example, P0_7 denotes port 7 of port
group 0. It is referenced as “port P0_7”.
• Alternative mode
In alternative mode, a pin can be used for various non-general purpose
input/output functions, for example as the input/output pin of on-chip
peripherals.
The corresponding pin name depends on the selected function. For
example, pin INTP0 denotes the pin for one of the external interrupt inputs.
Note that two different names can refer to the same physical pin, for
example P0_0 and INTP0. The different names indicate the function in
which the pin is being operated.
JTAG portsThe JTAG port group JP0 is used for connecting the debugger for on-chip
debugging purposes. Therefore it present a special port group, as the ports of
JP0 are not available for application purposes during a debug session.
During normal operation, i.e. without debugger, the JP0 ports can be used in
the same way as all others.
The JTAG port group JP0 control registers and their control bits have the same
names as the other port groups, registers and bits, but are identified by a “J”
prefix.
NoteThroughout this chapter the description of all ports and their registers apply
also to the JTAG ports, unless otherwise noted.
R01UH0076ED0103 Rev. 1.0357
Nov 07, 2012
Page 58
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.2.2Pin function configuration
The pins can operate in three different general modes:
• Port mode (PMCn.PMCn_m = 0)
In port mode the pin operates as a general purpose I/O port. PMn.PMn_m
selects input or output.
• S/W I/O control alternative mode (PMCn.PMCn_m = 1,
PIPCn.PIPCn_m = 0)
In S/W I/O control alternative mode the pin is operated by an alternative
function. The selection between input or output is done by S/W via the
PMn.PMn_m control bits.
• Direct I/O control alternative mode (PMCn.PMCn_m = 1,
PIPCn.PIPCn_m = 1)
In direct I/O control alternative mode the pin is operated by an alternative
function. In contrast to the S/W I/O control alternative mode the input/output
control is also handled by the alternative function, thus the S/W doesn’t have
to care about.
An overview of the register settings is given in the tables below.
Table 2-3Pin function configuration (overview)
Mode
Port00XO
S/W I/O control alternative100O
Direct I/O control alternativeX1controlled by
a)
The input buffer must be enabled (PIBCn.PIBCn_m = 1)
If a pin is operated in an alternative mode (PMCn.PMCn_m = 1), one out of up
to four different alternative functions can be selected by the PFCn and PFCEn
registers.
Selection of one of the alternative input and output functions:
• S/W I/O control alternative functions (PIPCn.PIPCn_m = 0):
– outputs (PMn_m = 0): ALT-OUT1 to ALT-OUT4
– inputs (PMn_m = 1): ALT-IN1 to ALT-IN4
PMCn_mPMn_mPIPCn_m
Control bits
a
1
10I
I/O
I
alternative
function
• Direct I/O control alternative functions (PIPCn.PIPCn_m = 1):
– input/out of ALT-OUT1 to ALT-OUT4 and ALT-IN1 to ALT-IN4 is directly
controlled by the alternative function
R01UH0076ED0103 Rev. 1.0358
Nov 07, 2012
Page 59
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Alternative output mode 1 (ALT-OUT1)0000O
Alternative input mode 1 (ALT-IN1)1I
Alternative output mode 2 (ALT-OUT2)001O
Alternative input mode 2 (ALT-IN2)1I
Alternative output mode 3 (ALT-OUT3)010O
Alternative input mode 3 (ALT-IN3)1I
Alternative output mode 4 (ALT-OUT4)011O
Alternative input mode 4 (ALT-IN4)1I
a)
If PIPCn.PIPCn_m = 1, the I/O direction is directly controlled by the alternative
function and PM is ignored.
CautionIn case a certain alternative input function is available via multiple ports, only
one port must be configured to use this alternative input function. All other
ports must be configured to use other signals.
PMn/PMCn
register write
The port mode register PMn and port mode control register PMCn can be
manipulated in two different ways:
PIPC
Registers
a
PMaPFCEPFC
I/O
• Direct PMn/PMCn write
New value can be written directly to the PMn/PMCn register.
• Indirect PMn/PMCn bit set/reset
An indirect way to set or reset a PMn/PMCn bit is possible by using following
registers:
– Port mode set reset register PMSRn
If the bit PMSRn.PMSRn(m+16) = 1, the value of bit PMSRn.PMSRn_m
determines the value of PMn.PMn_m.
Thus PMn_m can be set/reset without a direct write to PMn.
– Port mode control set reset register PMCSRn
If the bit PMCSRn.PMCSRn(m+16) = 1, the value of bit
PMCSRn.PMCSRn_m determines the value of PMCn.PMn_m.
Thus PMn_m can be set/reset without a direct write to PMCn.
The indirect PMn/PMCn set/reset operation provides access to single bits of
the PMn/PMCn register, while leaving all other register bits untouched.
Both ways to manipulate a PMn/PMCn bit can be used concurrently.
NoteIt is recommended to use the indirect PMn/PMCn bit set/reset method for
changing a single bit or concurrently several bits of the PMn/PMCn register,
since all other bits are not modified and can be independently treated by other
S/W modules, for instance in interrupt service routines.
R01UH0076ED0103 Rev. 1.0359
Nov 07, 2012
Page 60
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.2.3Pin data input/output
In the following the registers are described, used for data input and output.
Depending on the pin mode, the source of the data to be output and the data
read via the PPRn register differs.
Output dataIn port mode (PMCn.PMCn_m = 0) the data of Pn.Pn_m is output to pin Pn_m.
In alternative mode (PMCn.PMCn_m = 1) the pin Pn_m output is determined
by the alternative function.
Input dataA read operation of the PPRn register returns either the value of the Pn_m pin,
the associated bit of the port register Pn.Pn_m or the data output by an
alternative function.
The source of the data read via PPRn depends on the pin mode and the
setting of several control bits.
The table below summarizes the different PPRn read modes.
NotePBDCn_m is not included in the table, as it can be set to 1 for reading the
If PBDCn_m = 1, Pn_m pin level is read via PPRn_m.
PIBC
n_m
0X0Port push-pull outputPn.Pn_m register
00S/W I/O control alternative
X10Direct I/O control alternative
PIPC
n_m
1XPort input, input buffer enabledPn_m pin
PODC
n_m
1Port open-drain output
push-pull output
1S/W I/O control alternative
open-drain output
input/ push-pull output
1Direct I/O control alternative
input/ open-drain output
ModePPRn_m read value
Alternative function output
If alternative functions sets port in
• input: PPRn_m = Pn_m pin
• output: PPRn_m = alternative
function output
a
a
a
The control registers in the table above have following effects:
• PBDCn.PBDCn_m (see table footnote)
This bit forces to read the Pn_m pin level via PPRn_m, thus enabling a bidirectional mode, where the level of pin Pn_m can also be read back if the
port is operated in an output mode.
• PMCn.PMCn_m
This bit selects port mode (PMCn_m = 0) or alternative mode
(PMCn_m = 1).
R01UH0076ED0103 Rev. 1.0360
Nov 07, 2012
Page 61
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
• PMn.PMn_m
This bit selects input (PMn_m = 1) or output (PMn_m = 0) in port mode
(PMCn_m = 0) and S/W I/O control alternative function mode
(PMCn_m = 1, PIPCn_m = 0).
• PIBCn.PIBCn_m
This bit disables (PIBCn_m = 0) or enables (PIBCn_m = 1) the input buffer
in input port mode (PMCn_m = 0 and PMn_m = 1). If the input buffer is
disabled, PPRn_m reads the Pn.Pn_m bit, otherwise the Pn_m pin level is
returned.
• PIPCn.PIPCn_m
This bit selects between the S/W and direct I/O control alternative mode.
• PODCn.PODCn_m
This bit selects between push-pull (PODCn_m = 0) and open-drain
(PODCn_m = 1) output.
Pn register writeThe data to be output via port Pn_m in port mode (PMCn.PMCn_m = 0) is held
in the port register Pn. The Pn data can be manipulated in two different ways:
• Direct Pn write
New data can be written directly to the Pn register.
• Indirect Pn bit set/reset/not
An indirect way to set (Pn_m = 1), reset (Pn_m = 0), or invert
(Pn_m→Pn_m) a Pn bit is possible using two registers:
– Port set reset register PSRn
If the bit PSRn.PSRn(m+16) = 1, the value of bit PSRn.PSRn_m
determines the value of Pn.Pn_m.
Thus Pn_m can be set/reset without a direct write to Pn.
– Port NOT register PNOTn
Setting PNOTn.PNOTn_m = 1 inverts the bit Pn.Pn_m without a direct
write to Pn_m.
The indirect Pn set/reset/not operation provides access to single bits of the
Pn register, while leaving all other Pn bits untouched.
Both ways to manipulate a Pn bit can be used concurrently.
NoteIt is recommended to use the indirect Pn bit set/reset/not method for changing
a single bit or concurrently several bits of the Pn register, since all other bits
are not modified and can independently be treated by other S/W modules, for
instance in interrupt service routines.
CautionIf a port Pn_m
• provides an alternative output ALT_OUTx and input function ALT_INx
• and is used in alternative output mode ALT_OUTx (PMCn.PMCn_m = 1,
PMn.PMn_m = 0)
• and the bi-directional mode is enabled (PBDCn.PBDCn_m = 1) for reading
the Pn_m level via PPRn.PPRn_m,
the Pn_m output, i.e. of ALT_OUTx, is internally fed back to the alternative
input function ALT_INx.
R01UH0076ED0103 Rev. 1.0361
Nov 07, 2012
Page 62
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
PBDC
PBDC
PBDCn_m
PM
PM
PMn_m
PMSRn_m
PIBC
PIBC
PIBCn_m
PMC
PMC
PMCn_m
PMCSRn_m
PSR
PSR
P
P
Pn_m
PSRn_m
PPR
PPR
PPRn_m
PFC
PFC
PFCn_m
PFCE
PFCE
PFCEn_m
PU
PU
PUn_m
PD
PD
PDn_m
PODC
PODC
PODCn_m
PIS
PISn_m
PISE
PISEn_m
1
1
0
0
ALT_OUT
ALT_OUT
control
PUON
PDON
ENO
DIN
DOUT
I/O Buffer
ALT_IN
ALT_IN
control
IS
ISE
1 2341 234
0 1 0 1
0 1 0 1
0 0 1 1
0 0 1 1
0
0
1
1
0
0
1
1
PNOTn_m
PIPC
PIPC
PIPCn_m
ENI
Chapter 2Port Functions
2.2.4Port control logic diagram
The following diagram shows the logical circuitry of the port control functions.
NoteThe diagram is only a logical reference and does not show the real circuitry.
Figure 2-1Port control logic diagram
The signals to the I/O buffer in the diagram above have the following general
function:
Buffer control signalGeneral function
DSport drive strength control
IS, ISEinput buffer selection
PUON/PDONpull-up/-down register control
ENO/ENIoutput/input buffer enable
DIN/DOUTport data in/out
R01UH0076ED0103 Rev. 1.0362
Nov 07, 2012
Page 63
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.3Port Group Configuration Registers
This section starts with an overview of all configuration registers and then
presents all registers in detail. The configuration registers are grouped as
follows:
• “Pin function configuration registers”
• “Pin data input/output”
• “Configuration of electrical characteristics registers”
2.3.1Writing to protected registers
Write protected registers are protected from inadvertent write access due to
erroneous program execution, etc.
Following port registers feature this special write protection:
• Port drive strength control registers PDSCn, JPDSC0
• Port open drain control registers PODCn, JPODC0
Refer to the section “Write protected Registers” in the chapter “CPU System Functions” for a detailed description how to write to write protected registers.
2.3.2Port control registers overview
The following registers are used for the configuration of the individual pins of
the port groups:
NoteSome of the registers, listed in the table below, are not available for all port
groups n. Refer to the section “V850E2/Fx4Port Group Configuration” below
for information which registers are available for the individual port groups.
Table 2-6Registers for port group configuration (1/2)
Register nameShortcutAddress
Port function configuration:
Port mode control registerPMCn<PORTn_base> + 0400H + n x 4
Port mode control set reset
register
Port IP control registerPIPCn<PORTn_base> + 4200H + n x 4
Port mode registerPMn<PORTn_base> + 0300H + n x 4
Port mode set reset registerPMSRn<PORTn_base> + 0800H + n x 4
Port input buffer control registerPIBCn<PORTn_base> + 4000H + n x 4
Port function control register PFCn<PORTn_base> + 0500H + n x 4
JPMC0<JPORT0_base> + 0040
PMCSRn<PORTn_base> + 0900H + n x 4
JPMCSR0<JPORT0_base> + 0090
JPM0<JPORT0_base> + 0030
JPMSR0<JPORT0_base> + 0080
JPIBC0<JPORT0_base> + 0400
JPFC0<JPORT0_base> + 0050
H
H
H
H
H
H
R01UH0076ED0103 Rev. 1.0363
Nov 07, 2012
Page 64
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
Table 2-6Registers for port group configuration (2/2)
Register nameShortcutAddress
Port function control expansion
register
Data input/output:
Port bi-direction control registerPBDCn<PORTn_base> + 4100H + n x 4
Port pin read register PPRn<PORTn_base> + 0200H + n x 4
Port registerPn<PORTn_base> + 0000H + n x 4
Port NOT registerPNOT0<PORTn_base> + 0700H + n x 4
Port set reset register PSRn<PORTn_base> + 0100H + n x 4
Configuration of electrical characteristics:
Pull-up option registerPUn<PORTn_base> + 4300H + n x 4
Pull-down option registerPDn<PORTn_base> + 4400H + n x 4
Port drive strength control
register
Port open drain control register PODCn<PORTn_base> + 4500H + n x 4
Port input buffer selection
register
Port input buffer selection
expansion register
PFCEn<PORTn_base> + 0600H + n x 4
JPFCE0<JPORT0_base> + 0060
JPBDC0<JPORT0_base> + 0410
JPPR0<JPORT0_base> + 0020
JP0<JPORT0_base> + 0000
JPNOT0<JPORT0_base> + 0070
JPSR0<JPORT0_base> + 0010
JPU0<JPORT0_base> + 0430
JPD0<JPORT0_base> + 0440
PDSCn<PORTn_base> + 4600H + n x 4
JPDSC0<JPORT0_base> + 0460
JPODC0<JPORT0_base> + 0450
PISn<PORTn_base> + 4700H + n x 4
JPIS0<JPORT0_base> + 0470
PISEn<PORTn_base> + 4800H + n x 4
JPISE0<JPORT0_base> + 0480
H
H
H
H
H
H
H
H
H
H
H
H
<PORTn_base>The base address <PORTn_base> of the port contorl registers is defined in
the first section of this chapter under the key word “Register addresses”.
JTAG port registersThe following register descriptions do not explicitely reference the JTAG port
registers. However all description apply also to the respective JTAG port
registers, but the base address of the JTAG port registers is different:
<JPORT0_base>The base addresses <JPORT0_base> of the JTAG port control registers is
defined in the first section of this chapter under the key word “Register
addresses”.
Initial register
values
The initial values after reset release depend on the port, and are not described
in the following register descriptions, but are given in the section “V850E2/Fx4 Port Groups Configuration”.
R01UH0076ED0103 Rev. 1.0364
Nov 07, 2012
Page 65
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.3.3Port function configuration registers
(1)PMCn/JPMC0 - Port mode control register
This register specifies whether the individual pins of port group n are in port
mode or in alternative mode.
AccessPMCn: This register can be read/written in 16-bit units.
JPMC0: This register can be read/written in 8-bit units.
AddressPMCn: <PORTn_base> + 0400H + n x 4
JPMC0: <JPORT0_base> + 0040
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PMC
PMC
PMC
PMC
PMC
PMC
PMC
PMC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
NoteThe control bits of the JTAG port register JPMC0 are named JPMC0_[7:0].
PMC
n_7
H
PMC
n_6
PMC
n_5
PMC
n_4
PMC
n_3
PMC
n_2
PMC
n_1
PMC
n_0
Table 2-7PMCn/JPMC0 register contents
Bit positionBit nameFunction
15 to 0PMC
n_[15:0]
Specifies the operation mode of the corresponding pin:
0: Port mode
1: Alternative mode
Cautions1. Setting PMCn.PMCn_m = 1 to use a port in alternative mode does not hand
over I/O control to the alternative function. If the alternative function requires
direct I/O control, PIPCn.PIPCn_m must also be set to 1.
2. Setting PMCn.PMCn_m = 1 to use a port in alternative mode may also
require to configure a port filter, if this port is used as a signal input.
The input signal may be passed through a noise filter, that may need to be
configured. Refer to the section “Port Filters” in this chapter.
R01UH0076ED0103 Rev. 1.0365
Nov 07, 2012
Page 66
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(2)PMCSRn/JPMCSR0 - Port mode control set reset register
This register provides an alternative method to write data to the PMCn register.
The register’s upper 16 bit PMCSRn_[31:16] specify which PMCn.PMCn_m bit
will be modified by the corresponding bit of the lower 16 bit PMCSRn_[15:0].
AccessThese registers can be read/written in 32-bit units.
Bits 31 to 16 are always read as 0000H.
Reading bits 15 to 0 returns the value of register PMCn/JPMC0.
AddressPMCSRn: <PORTn_base> + 0900H + n x 4
JPMCSR0: <JPORT0_base> + 0090
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
31302928272625242322212019181716
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
n_31
n_30
n_29
n_28
n_27
n_26
n_25
n_24
n_23
n_22
n_21
n_20
n_19
n_18
n_17
n_16
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
1514131211109876543210
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
PMCSR
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPMCSR0 are named
JPMCSR0_[31:0].
Table 2-8PMCSRn/JPMCSR0 register contents
Bit positionBit nameFunction
31 to 16PMCSR
n_[31:16]
15 to 0PMCSR
n_[15:0]
PMCSRn_m specifies whether the value of the corresponding lower bit
PMCSRn_m value is written to PMCn_m:
0: PMCn_m is independent of PMCSRn_m
1: PMCn_m is PMCSRn_m
Example:
If PMCSRn.PMCSRn_31 = 1, the value of bit PMCSRn.PMCSRn_15 is written
to bit PMCn.PMCn_15 and output.
Specifies the PMCn_m value if the corresponding upper bit PMCSRn_(m+16)
is 1:
0: PMCn_m = 0
1: PMCn_m = 1
R01UH0076ED0103 Rev. 1.0366
Nov 07, 2012
Page 67
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(3)PIPCn - Port IP control register
This register specifies whether the I/O direction of pin Pn_m is controlled by
the port mode register PMn.PMn_m or by an alternative function.
If pin Pn_m is operated in alternative mode (PMCn.PMCn_m = 1) and the
alternative function requires to directly control the I/O direction of Pn_m,
PIPCn.PIPCn_m must be set to 1 as well. This hands over I/O control to the
alternative function and overrules the PMn.PMn_m setting.
AccessPIPCn: This register can be read/written in 16-bit units.
AddressPIPCn: <PORTn_base> + 4200H + n x 4
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
PIPC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
Table 2-9PIPCn register contents
Bit positionBit nameFunction
15 to 0PIPC
n_[15:0]
Specifies the I/O control mode:
0: I/O mode is selected by PMn.PMn_m (S/W I/O control)
1: I/O mode is selected by peripheral function
(direct I/O control)
R01UH0076ED0103 Rev. 1.0367
Nov 07, 2012
Page 68
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(4)PMn/JPM0 - Port mode register
The PMn register specifies whether the individual pins of the port group n are
in input mode or in output mode.
AccessPMn: This register can be read/written in 16-bit units.
JPM0: This register can be read/written in 8-bit units.
AddressPMn: <PORTn_base> + 0300H + n x 4
JPM0: <JPORT0_base> + 0030
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
NoteThe control bits of the JTAG port register JPM0 are named JPM0_[7:0].
Table 2-10PMn/JPM0 register contents
Bit positionBit nameFunction
15 to 0PM
n_[15:0]
Specifies input/output mode of the corresponding pin:
0: Output mode (output enabled)
1: Input mode (output disabled)
H
Notes1. To use a port in input port mode (PMCn.PMCn_m = 0 and
PMn.PMn_m = 1), the input buffer must be enabled (PIBCn.PIBCn_m = 1).
2. By default, PMn_m specifies the I/O direction in port mode
(PMCn.PMCn_m = 0) and alternative mode (PMCn.PMCn_m=1), since
PIPCn.PIPCn_m = 0 after reset.
R01UH0076ED0103 Rev. 1.0368
Nov 07, 2012
Page 69
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(5)PMSRn/JPMSR0 - Port mode set reset register
This register provides an alternative method to write data to the PMn register.
The register’s upper 16 bit PMSRn_[31:16] specify which PMn.PMn_m bit will
be modified by the corresponding bit of the lower 16 bit PMSRn_[15:0].
AccessThese registers can be read/written in 32-bit units.
Bits 31 to 16 are always read as 0000H.
Reading bits 15 to 0 returns the value of register PMn/JPM0.
AddressPMSRn: <PORTn_base> + 0800H + n x 4
JPMSR0: <JPORT0_base> + 0080
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
31302928272625242322212019181716
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
n_31
n_30
n_29
n_28
n_27
n_26
n_25
n_24
n_23
n_22
n_21
n_20
n_19
n_18
n_17
n_16
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
1514131211109876543210
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
PMSR
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPMSR0 are named JPMSR0_[31:0].
Table 2-11PMSRn/JPMSR0 register contents
Bit positionBit nameFunction
31 to 16PMSR
n_[31:16]
15 to 0PMSR
n_[15:0]
PMSRn_m specifies whether the value of the corresponding lower bit
PMSRn_m value is written to PMn_m:
0: PMn_m is independent of PMSRn_m
1: PMn_m is PMSRn_m
Example:
If PMSRn.PMSRn_31 = 1, the value of bit PMSRn.PMSRn_15 is written to bit
PMn.PMn_15 and output.
Specifies the PMn_m value if the corresponding upper bit PMSRn_(m+16) is 1:
0: PMn_m = 0
1: PMn_m = 1
R01UH0076ED0103 Rev. 1.0369
Nov 07, 2012
Page 70
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(6)PIBCn/JPIBC0 - Port input buffer control register
In input port mode (PMCn.PMCn_m = 0 and PMn.PMn_m = 1) this register
enables/disables the port pin’s input buffer.
AccessPIBCn: This register can be read/written in 16-bit units.
JPIBC0: This register can be read/written in 8-bit units.
AddressPIBCn: <PORTn_base> + 4000H + n x 4
JPIBC0: <JPORT0_base> + 0400
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
PIBC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPIBC0 are named JPIBC0_[7:0].
Table 2-12PIBCn/JPIBC0 register contents
Bit positionBit nameFunction
15 to 0PIBC
n_[15:0]
Enables/disables the input buffer:
0: Input buffer disabled
1: Input buffer enabled
NoteWhen the input buffer is disabled, it does not consume current even when the
pin level is Hi-Z state. Thus the pin does not need to be fixed to a high or low
level externally.
R01UH0076ED0103 Rev. 1.0370
Nov 07, 2012
Page 71
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(7)PFCn/JPFC0 - Port function control register
This register, together with register PFCEn, specifies an alternative function of
the pins.
Some alternative functions require direct I/O control of pin Pn_m. For such
alternative functions PIPCn.PIPCn_m must be set to 1 as well.
For other alternative functions, input/output must be specified by PMn.PMn_m.
AccessPFCn: This register can be read/written in 16-bit units.
JPFC0: This register can be read/written in 8-bit units.
AddressPFCn: <PORTn_base> + 0500H + n x 4
JPFC0: <JPORT0_base> + 0050
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
PFC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPFC0 are named JPFC0_[7:0].
Table 2-13PFCn/JPFC0 register contents
Bit positionBit nameFunction
15 to 0PFC
n_[15:0]
Specifies the alternative function of a pin.
See Table 2-4 “Alternative mode selection overview (PMCn.PMCn_m = 1)” on page 59 for details.
R01UH0076ED0103 Rev. 1.0371
Nov 07, 2012
Page 72
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(8)PFCEn/JPFCE0 - Port function control expansion register
This register, together with register PFCn, specifies an alternative function of
the pins.
Some alternative functions require direct I/O control of pin Pn_m. For such
alternative functions PIPCn.PIPCn_m must be set to 1 as well.
For other alternative functions, input/output must be specified by PMn.PMn_m.
AccessPFCEn: This register can be read/written in 16-bit units.
JPFCE0: This register can be read/written in 8-bit units.
AddressPFCEn: <PORTn_base> + 0600H + n x 4
JPFCE0: <JPORT0_base> + 0060
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
PFCE
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPFCE0 are named JPFCE0_[7:0].
Table 2-14PFCEn/JPFCE0 register contents
Bit positionBit nameFunction
15 to 0PFCE
n_[15:0]
Specifies the alternative function of a pin.
See Table 2-4 “Alternative mode selection overview (PMCn.PMCn_m = 1)” on page 59 for details.
R01UH0076ED0103 Rev. 1.0372
Nov 07, 2012
Page 73
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.3.4Data input/output registers
(1)PBDCn/JPBDC0 - Port bi-direction control register
This register enables the input buffer of Pn_m, if its output buffer is enabled as
well.
Thus the concerned port Pn_m is operated in bi-directional mode and the
Pn_m pin level is read via PPRn.PPRn_m.
NoteIf Pn_m is not configured as output, the input buffer can not be activated via
the PBDCn/JPBDCn register.
AccessPBDCn: This register can be read/written in 16-bit units.
JPBDC0: This register can be read/written in 8-bit units.
AddressPBDCn: <PORTn_base> + 4100H + n x 4
JPBDC0: <JPORT0_base> + 0410
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PBDC
PBDC
PBDC
PBDC
PBDC
PBDC
PBDC
PBDC
PBDC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
H
PBDC
n_6
PBDC
n_5
PBDC
n_4
PBDC
n_3
PBDC
n_2
PBDC
n_1
PBDC
n_0
NoteThe control bits of the JTAG port register JPBDC0 are named JPBDC0_[7:0].
Table 2-15PBDCn/JPBDC0 register contents
Bit positionBit nameFunction
15 to 0PBDC
n_[15:0]
Enables/disables bi-directional mode of the corresponding pin:
0: Bi-directional mode disabled
1: Bi-directional mode enabled
R01UH0076ED0103 Rev. 1.0373
Nov 07, 2012
Page 74
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(2)PPRn/JPPR0 - Port pin read register
This register reflects the actual level of pin Pn_m, the value of the Pn.Pn_m bit
or the level of an alternative output function. The value which is read depends
on various control settings as described in Table 2-5 “PPRn_m read values” on page 60 .
AccessPPRn: This register can be read/written in 16-bit units.
JPPR0: This register can be read/written in 8-bit units.
AddressPPRn: <PORTn_base> + 0200H + n x 4
JPPR0: <JPORT0_base> + 0020
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
PPR
n_15
n_14
n_13
n_12
n_11
n_10
RRRRRRRRRRRRRRRR
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPPR0 are named JPPR0_[7:0].
Table 2-16PPRn/JPPR0 register contents
Bit positionBit nameFunction
15 to 0PPR
n_[15:0]
Pin Pn_m, Pn.Pn_m value or alternative function output.
R01UH0076ED0103 Rev. 1.0374
Nov 07, 2012
Page 75
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(3)Pn/JP0 - Port register
This register holds the data Pn.Pn_m to be output via the related port Pn_m in
output port mode (PMCn.PMCn_m = 0 and PMn.PMn_m = 0).
AccessPn: This register can be read/written in 16-bit units.
JP0: This register can be read/written in 8-bit units.
AddressPn: <PORTn_base> + 0000H + n x 4
JP0: <JPORT0_base> + 0000
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
NoteThe control bits of the JTAG port register JP0 are named JP0_[7:0].
Table 2-17Pn/JP0 register contents
Bit positionBit nameFunction
15 to 0P
n_[15:0]
Sets the output level of pin m (m = 0 to 15):
0: Outputs low level
1: Outputs high level
H
NoteThe bits of this register can be manipulated by different means, refer to 2.2.3
“Pin data input/output” on page 60 under the keyword “Pn register write”.
R01UH0076ED0103 Rev. 1.0375
Nov 07, 2012
Page 76
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(4)PNOTn/JPNOT0 - Port NOT register
This register allows to invert a bit Pn_m of the port register Pn without directly
writing to Pn.
AccessPNOTn: This register can be read/written in 16-bit units.
JPNOT0: This register can be read/written in 8-bit units.
These registers are always read as 0000H.
AddressPNOTn: <PORTn_base> + 0700H + n x 4
JPNOT0: <JPORT0_base> + 0070
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
PNOT
n_15
n_14
n_13
n_12
n_11
n_10
WWWWWWWWWWWWWWWW
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPNOT0 are named JPNOT0_[7:0].
Table 2-18PNOTn/JPNOT0 register contents
Bit positionBit nameFunction
15 to 0PNOT
n_[15:0]
Specifies if Pn.Pn_m is inverted:
0: Pn.Pn_m is not inverted (Pn_m → Pn_m)
1: Pn.Pn_m is inverted (Pn_m → Pn_m)
R01UH0076ED0103 Rev. 1.0376
Nov 07, 2012
Page 77
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(5)PSRn/JPSR0 - Port set reset register
This register provides an alternative method to write data to the Pn register.
The register’s upper 16 bit PSRn_[31:16] specify which Pn.Mn_m bit will be
modified by the corresponding bit of the lower 16 bit PSRn_[15:0].
AccessThese registers can be read/written in 32-bit units.
Bits 31 to 16 are always read as 0000H.
Reading bits 15 to 0 returns the value of register Pn/JP0.
AddressPSRn: <PORTn_base> + 0100H + n x 4
JPSR0: <JPORT0_base> + 0010
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
31302928272625242322212019181716
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
n_31
n_30
n_29
n_28
n_27
n_26
n_25
n_24
n_23
n_22
n_21
n_20
n_19
n_18
n_17
n_16
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
1514131211109876543210
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
PSR
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPSR0 are named JPSR0_[31:0].
Table 2-19PSRn/JPSR0 register contents
Bit positionBit nameFunction
31 to 16PSR
n_[31:16]
15 to 0PSR
n_[15:0]
PSRn_m specifies whether the value of the corresponding lower bit PSRn_m
value is written to Pn_m:
0: Pn_m is independent of PSRn_m
1: Pn_m is PSRn_m
Example:
If PSRn.PSRn31 = 1, the value of bit PSRn.PSRn_15 is written to bit Pn.Pn_15
and output.
Specifies the Pn_m value if the corresponding upper bit PSRn_(m+16) is 1:
0: Pn_m = 0
1: Pn_m = 1
R01UH0076ED0103 Rev. 1.0377
Nov 07, 2012
Page 78
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.3.5Configuration of electrical characteristics registers
(1)PUn/JPU0 - Pull-up option register
This register specifies whether a pull-up resistor is connected to an input pin.
AccessPUn: This register can be read/written in 16-bit units.
JPU0: This register can be read/written in 8-bit units.
AddressPUn: <PORTn_base> + 4300H + n x 4
JPU0: <JPORT0_base> + 0430
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
NoteThe control bits of the JTAG port register JPD0 are named JPD0_[7:0].
Table 2-21PDn/JPD0 register contents
Bit positionBit nameFunction
15 to 0PD
n_[15:0]
Specifies whether a pull-down resistor is connected to the corresponding pin:
0: No pull-down resistor connected
1: Pull-down resistor connected
H
Notes1. If a pin is configured that both a pull-up resistor (PUn.PUn_m = 1) and a
pull-down resistor (PDn.PDn_m = 1) are connected, the pull-down resistor
is automatically selected and the pull-up resistor is not connected.
2. The pull-down resistor has no effect when the pin is operated in output
mode.
R01UH0076ED0103 Rev. 1.0379
Nov 07, 2012
Page 80
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(3)PDSCn/JPDSC0 - Port drive strength control register
This register enables the driver strength control function.
ProtectionWriting to this register is protected by a special sequence of instructions.
Refer to the section “Write protected Registers” in the chapter “CPU System
Functions” for a detailed description how to write to write protected registers.
AccessThese registers can be read/written in 32-bit units.
The bits 31 to 16 must always be written with “0” and “0” is returned when
read.
AddressPDSCn: <PORTn_base> + 4600H + n x 4
JPDSC0: <JPORT0_base> + 0460
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
31302928272625242322212019181716
0000000000000000
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
1514131211109876543210
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
PDSC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPDSC0 are named JPDSC0_[31:0].
Table 2-22PDSCn/JPDSC0 register contents
Bit positionBit nameFunction
15 to 0PDSC
n_[15:0]
Enables/disables output current limiting function:
0: Current limitation enabled
1: Current limitation disabled
R01UH0076ED0103 Rev. 1.0380
Nov 07, 2012
Page 81
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(4)PODCn/JPODC0 - Port open drain control register
This register selects push-pull or open-drain as output buffer function.
ProtectionWriting to this register is protected by a special sequence of instructions.
Refer to the section “Write protected Registers” in the chapter “CPU System
Functions” for a detailed description how to write to write protected registers.
AccessThese registers can be read/written in 32-bit units.
The bits 31 to 16 must always be written with “0” and “0” is returned when
read.
AddressPODCn: <PORTn_base> + 4500H + n x 4
JPODC0: <JPORT0_base> + 0450
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
31302928272625242322212019181716
0000000000000000
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
1514131211109876543210
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
PODC
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPODC0 are named JPODC0_[31:0].
Table 2-23PODCn/JPODC0 register contents
Bit positionBit nameFunction
15 to 0PODC
n_[15:0]
Specifies the output buffer function:
0: Push-pull
1: Open-drain
R01UH0076ED0103 Rev. 1.0381
Nov 07, 2012
Page 82
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(5)PISn/JPIS0 - Port input buffer selection register
This register specifies the input buffer characteristics.
A port can have up to four different input buffer characteristics.
The type of input characteristic is selected by the
• port input buffer selection register PISn
• port input buffer selection expansion register PISEn
Refer to the Data Sheet for electrical characteristics of the different types and
which types are available for each port.
AccessPISn: This register can be read/written in 16-bit units.
JPIS0: This register can be read/written in 8-bit units.
AddressPISn: <PORTn_base> + 4700H + n x 4
JPIS0: <JPORT0_base> + 0470
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
PIS
n_8
PIS
n_7
PIS
n_6
PIS
n_5
PIS
n_4
PIS
n_3
PIS
n_2
PIS
n_1
PIS
n_0
1514131211109876543210
PIS
PIS
PIS
PIS
PIS
PIS
PIS
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
NoteThe control bits of the JTAG port register JPIS0 are named JPIS0_[7:0].
Table 2-25PISn/JPIS0 register contents
Bit positionBit nameFunction
15 to 0PIS
n_[15:0]
Specifies the input buffer characteristic of port m (m = 0 to 15) together with the
bits PISEn[15:0].
R01UH0076ED0103 Rev. 1.0382
Nov 07, 2012
Page 83
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(6)PISEn/JPISE0 - Port input buffer selection expansion register
This register specifies the input buffer characteristics together with the port
input selection register PISn.
If a port has up to five input buffer characteristics, the port input selection
advanced register PISAn is also valid.
AccessPISEn: This register can be read/written in 16-bit units.
JPISE0: This register can be read/written in 8-bit units.
AddressPISEn: <PORTn_base> + 4800H + n x 4
JPISE0: <JPORT0_base> + 0480
H
Initial ValueRefer to the section “V850E2/Fx4 Port Groups Configuration”.
1514131211109876543210
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
PISE
n_15
n_14
n_13
n_12
n_11
n_10
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
n_9
n_8
n_7
n_6
n_5
n_4
n_3
n_2
n_1
n_0
NoteThe control bits of the JTAG port register JPISE0 are named JPISE0_[7:0].
Table 2-26PISEn/JPISE0 register contents
Bit positionBit nameFunction
15 to 0PISE
n_[15:0]
Specifies the input buffer characteristic of port m (m = 0 to 15) together with the
bits PISn[15:0].
Refer to the PISn register description for how to select the input buffer
characteristic.
R01UH0076ED0103 Rev. 1.0383
Nov 07, 2012
Page 84
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.4V850E2/Fx4 Port Group Configuration
This section provides
• an overview of the port register protection clusters, refer to the section “Port
registers protection clusters”
• general information for all ports , refer to the section “Common port
functions”
• details of all port groups and their associated control registers for each
device, refer to the sections
– “V850E2/FG4 port functions”
– “V850E2/FJ4 port functions”
– “V850E2/FK4 port functions”
– “V850E2/FL4 port functions”
• a list of input/output signals with port functionality, refer to the section “Nonport input/putput signals”
• an alphabetic pin functions list and the ports, the functions can be assigned
to, refer to the section “Alphabetic pin function list”
• a description of the port status during and after reset and in stand-by
modes, refer to the section “Port functions during/after reset and in stand-by
modes”
• recommendations concerning unused pins, refer to the section
“Recommended connection of unused pins”.
2.4.1Port register protection clusters
Several registers of certain port groups n are bundled in port protection
clusters:
For further information concerning port register protection refer to the section
“Write protected Registers” in the chapter “CPU System Functions” for a
detailed description how to write to write protected registers.
R01UH0076ED0103 Rev. 1.0384
Nov 07, 2012
Page 85
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.4.2Common port functions
This section provides information about special port functions, common to all
devices.
(1)Initialization of port control registers
The port control registers are initialized by the following reset signals:
• Stand-by Controller: DPSTPWU_0
(Isolated-Area-0 wake-up from DEEPSTOP mode)
P12, P13, P21, P22,
P24 to P29
Isolated-Area-1• Reset Controller: SYSRES
• Stand-by Controller: DPSTPWU_1
(Isolated-Area-1 wake-up from DEEPSTOP mode)
(2)P0_0: RESETOUT
After reset release P0_0 outputs a RESETOUT signal, which is low level
during and after reset release. P0_0 is configured as follows after reset
release:
• PM0.PM0_0 = 0: port output
• PODC0.PODC0_0 = 1: open-drain output
Since P0.P0_0 = 0 after reset, low level is output.
Any change of the P0_0 configuration terminates the RESETOUT output.
NoteSince the RESETOUT signal is activated by all reset events, thus also when an
internal reset is applied, it can be used for reset of external devices.
CautionOnce asserted the RESETOUT remains on low level. It must be de-asserted
by changing the port configuration of P0_0 after reset release.
(3)JP_0 to JP_5: Debug interface
If the debug reset DCUTRST is at high level at reset release, the port of the
JP0 port group are used for the debugger interface:
• JP0_0: DCUTDI input
• JP0_1: DCUTDO output
• JP0_2: DCUTCK input
• JP0_3: DCUTMS
• JP0_4: DCUTRST
• JP0_5: DCUTRDY
Consequently all port and alternative modes on these pins can not be used
while the debugger is connected.
R01UH0076ED0103 Rev. 1.0385
Nov 07, 2012
Page 86
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
Refer to the chapter “On-chip Debug Unit (OCD)” and the section “Operation Modes” of chapter “CPU System Functions” for details.
NoteIn order to connect the debugger via the JP0 pins the flash mask option
OPBT0.OPBT0[31] has to be set to 1.
(4)JP0_0, JP0_1, JP0_2: Flash programmer
These ports are used for connecting a flash programmer.
Refer to the chapter “Flash Memory” and the section “Operation Modes” of
chapter “CPU System Functions” for details.
(5)Mode pins
Following ports are used as mode setting signals in combination with the
FLMD0 pin:
• P0_1: FLMD1
• P0_2: MODE0
• P0_3: MODE1
Refer to the section “Operation Modes” of chapter “CPU System Functions” for
details.
(6)Permanent inputs
Permanent input means, that the input to a port is unconditionally connected to
another module. Thus settings of the port control registers do not impact this
connection.
Following ports are permanently connected to dedicated function modules:
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
Notes1. If the ports of the port groups P10 to P13 shall be used in input port mode,
set
• ADCA0CTL1.ADCA0GPS = 1 to use P10 or P11 in input port mode
• ADCA1CTL1.ADCA1GPS = 1 to use P12 or P13 in input port mode
2. The input pins of the ADCA0 simultaneous sampling channels ADCA0I0 to
ADCA0I5 do not provide port functionality.
(7)Direct I/O control (PIPC)
Some modules take over the input and output control of the used ports
automatically.
These ports have to be set in alternative mode by setting PMCn.PMCn_m,
PFCn.PFCn_m and PFCEn.PFCEn_m accordingly and I/O control has to be
handed over to the module by setting
PIPCn.PIPCn_m = 1.
The setting of PMn.PMn_m has no more effect for these ports.
The following table lists all alternative modes, where PIPCn.PIPCn_m has to
be set to 1.
Note that not all functions in the table below are available for all devices.
Table 2-30Alternative modes with PIPCn.PIPCn_m = 1 (1/2)
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.4.3V850E2/FG4 port functions
This section summarizes all port functions of the V850E2/FG4 devices and its
port control registers.
(1)V850E2/FG4 general I/O functions
The table below shows all alternative functions, that can be applied to the
V850E2/FG4 ports.
It also gives the settings of the control bits PMCn_m, PFCn_m, PFCEn_m and
PMn_m to the respective port into the different modes.
When using this alternative mode, set PIPCn.PIPCn_m = 1. The module controls the I/O setting and PMn_m
has no effect.
b)
Refer to the section “I2C Interface Port Settings” in the “I2C Interface (IICB)” chapter for details about the
correct configuration of the I2C Interface ports.
c)
Port P4_0 is not available for V850E2/FG4-M2 devices.
d)
The ports of port groups 10 and 11 are also used as permanent inputs to the A/D Converter ADCA0.
If the P10 or P11 ports shall be used as port inputs, set ADCA0CTL1.ADCA0GPS = 1.
e)
JP0_0 to JP0_2 are used during flash programming.
JP0_0 to JP0_5 are used during debugging.
Refer to the section “Common port functions” above for details.
Alternative mode
PMCn_m = 1
d
e
R01UH0076ED0103 Rev. 1.0391
Nov 07, 2012
Page 92
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(2)V850E2/FG4 port control registers
The following table summarizes all V850E2/FJ4 port control registers, their
addresses and intitial values.
Tables legendA:Register address
I:Initial value
B:Available bits
- 1: available, x: not available
- right: bit 0, left: bit 15
Table 2-32V850E2/FG4 port (groups 0, 1, 3, 4) control registers (1/2)
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
2.4.4V850E2/FJ4 port functions
This section summarizes all port functions of the V850E2/FJ4 devices and its
port control registers.
(1)V850E2/FJ4 general I/O functions
The table below shows all alternative functions, that can be applied to the
V850E2/FJ4 ports.
It also gives the settings of the control bits PMCn_m, PFCn_m, PFCEn_m and
PMn_m to the respective port into the different modes.
When using this alternative mode, set PIPCn.PIPCn_m = 1. The module controls the I/O setting and PMn_m
has no effect.
b)
Refer to the section “I2C Interface Port Settings” in the “I2C Interface (IICB)” chapter for details about the
correct configuration of the I2C Interface ports.
c)
The ports of port groups 10 and 11 are also used as permanent inputs to the A/D Converter ADCA0.
If the P10 or P11 ports shall be used as port inputs, set ADCA0CTL1.ADCA0GPS = 1.
d)
Port P25_1 is not available for V850E2/FJ4-M2 devices.
e)
JP0_0 to JP0_2 are used during flash programming.
JP0_0 to JP0_5 are used during debugging.
Refer to the section “Common port functions” above for details.
Alternative mode
PMCn_m = 1
e
MSEL0
MSEL1
MSEL2
b
b
TAUC5O9
TAUC5O10
R01UH0076ED0103 Rev. 1.0399
Nov 07, 2012
Page 100
Under development: Preliminary document. Specifications in this document are tentative and subject to change.
Chapter 2Port Functions
(2)V850E2/FJ4 port control registers
The following table summarizes all V850E2/FJ4 port control registers, their
addresses and intitial values.
Tables legendA:Register address
I:Initial value
B:Available bits
- 1: available, x: not available
- right: bit 0, left: bit 15
Table 2-35V850E2/FJ4 port (groups 0 to 3) control registers (1/2)