欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC32MX130F064D 参数 Datasheet PDF下载

PIC32MX130F064D图片预览
型号: PIC32MX130F064D
PDF下载: 下载PDF文件 查看货源
内容描述: 32位微控制器(高达128 KB的闪存和32 KB SRAM)与音频和图形接口, USB接口,以及高级模拟 [32-bit Microcontrollers (up to 128 KB Flash and 32 KB SRAM) with Audio and Graphics Interfaces, USB, and Advanced Analog]
分类和应用: 闪存微控制器静态存储器
文件页数/大小: 320 页 / 6070 K
品牌: MICROCHIP [ MICROCHIP TECHNOLOGY ]
 浏览型号PIC32MX130F064D的Datasheet PDF文件第141页浏览型号PIC32MX130F064D的Datasheet PDF文件第142页浏览型号PIC32MX130F064D的Datasheet PDF文件第143页浏览型号PIC32MX130F064D的Datasheet PDF文件第144页浏览型号PIC32MX130F064D的Datasheet PDF文件第146页浏览型号PIC32MX130F064D的Datasheet PDF文件第147页浏览型号PIC32MX130F064D的Datasheet PDF文件第148页浏览型号PIC32MX130F064D的Datasheet PDF文件第149页  
PIC32MX1XX/2XX
11.3
Peripheral Pin Select
A major challenge in general purpose devices is provid-
ing the largest possible set of peripheral features while
minimizing the conflict of features on I/O pins. The chal-
lenge is even greater on low pin-count devices. In an
application where more than one peripheral needs to
be assigned to a single pin, inconvenient workarounds
in application code or a complete redesign may be the
only option.
Peripheral pin select configuration provides an
alternative to these choices by enabling peripheral set
selection and their placement on a wide range of I/O
pins. By increasing the pinout options available on a
particular device, users can better tailor the device to
their entire application, rather than trimming the
application to fit the device.
The peripheral pin select configuration feature oper-
ates over a fixed subset of digital I/O pins. Users may
independently map the input and/or output of most dig-
ital peripherals to these I/O pins. Peripheral pin select
is performed in software and generally does not require
the device to be reprogrammed. Hardware safeguards
are included that prevent accidental or spurious
changes to the peripheral mapping once it has been
established.
When a remappable peripheral is active on a given I/O
pin, it takes priority over all other digital I/O and digital
communication peripherals associated with the pin.
Priority is given regardless of the type of peripheral that
is mapped. Remappable peripherals never take priority
over any analog functions associated with the pin.
11.3.3
CONTROLLING PERIPHERAL PIN
SELECT
Peripheral pin select features are controlled through
two sets of SFRs: one to map peripheral inputs, and
one to map outputs. Because they are separately con-
trolled, a particular peripheral’s input and output (if the
peripheral has both) can be placed on any selectable
function pin without constraint.
The association of a peripheral to a peripheral-select-
able pin is handled in two different ways, depending on
whether an input or output is being mapped.
11.3.4
INPUT MAPPING
11.3.1
AVAILABLE PINS
The number of available pins is dependent on the
particular device and its pin count. Pins that support the
peripheral pin select feature include the designation
“RPn” in their full pin designation, where “RP”
designates a remappable peripheral and “n” is the
remappable port number.
The inputs of the peripheral pin select options are
mapped on the basis of the peripheral. That is, a control
register associated with a peripheral dictates the pin it
will be mapped to. The
[pin
name]R
registers, where [pin
name]
refers to the peripheral pins listed in
are used to configure peripheral input mapping (see
Each register contains sets of 4 bit
fields. Programming these bit fields with an appropriate
value maps the RPn pin with the corresponding value to
that peripheral. For any given device, the valid range of
values for any bit field is shown in
For example,
illustrates the remappable
pin selection for the U1RX input.
11.3.2
AVAILABLE PERIPHERALS
FIGURE 11-2:
The peripherals managed by the peripheral pin select
are all digital-only peripherals. These include general
serial communications (UART and SPI), general pur-
pose timer clock inputs, timer-related peripherals (input
capture and output compare) and interrupt-on-change
inputs.
In comparison, some digital-only peripheral modules
are never included in the peripheral pin select feature.
This is because the peripheral’s function requires spe-
cial I/O circuitry on a specific port and cannot be easily
connected to multiple pins. These modules include I
2
C
among others. A similar requirement excludes all mod-
ules with analog inputs, such as the Analog-to-Digital
Converter (ADC).
A key difference between remappable and non-remap-
pable peripherals is that remappable peripherals are
not associated with a default I/O pin. The peripheral
must always be assigned to a specific I/O pin before it
can be used. In contrast, non-remappable peripherals
are always available on a default pin, assuming that the
peripheral is active and not conflicting with another
peripheral.
REMAPPABLE INPUT
EXAMPLE FOR U1RX
U1RXR<3:0>
0
RPA2
1
RPB6
2
RPA4
U1RX input
to peripheral
n
RPn
Note:
For input only, peripheral pin select functionality
does not have priority over TRISx settings.
Therefore, when configuring RPn pin for input,
the corresponding bit in the TRISx register must
also be configured for input (set to ‘1’).
©
2011-2012 Microchip Technology Inc.
Preliminary
DS61168D-page 145