st52f510 STMicroelectronics, st52f510 Datasheet - Page 51

no-image

st52f510

Manufacturer Part Number
st52f510
Description
8-bit Intelligent Controller Unit Icu Two Timer/pwms, Adc, I2c, Spi, Sci
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st52f510F3M
Manufacturer:
ST
0
Part Number:
st52f510F3M6
Manufacturer:
ST
0
Part Number:
st52f510G3M6
Manufacturer:
ST
0
7.5 Alternate Functions
The Alternate Function allows the pins to be
connected with the peripheral signals or NMI. Not
all
associated.
A Configuration Register (PORT_x_AF) for each
Port is used to switch from the Digital I/O function
or the Alternate Function.
Some pins can have two Alternate Functions: one
input function and one output function. To switch
between the two functions, the PORT_x_AF must
be configured in Alternate Function mode and the
PORT_x_DDR Configuration Register must be
switched in Input mode or in Output mode.
NMI is considered an Alternate Function. For this
reason an NMI interrupt request can’t be
generated unless the PA7 pin is configured in
Alternate Function and in one of the Input modes.
Figure 7.3 Port Pin Architecture
Port
CONF. REG.
CONF. REG.
CONF. REG.
CONF. REG.
ALTERNATE
INTERRUPT
FUNCTION
POLARITY
REGISTER
pins
FILE
have
IRQ
FF
an
Alternate
D
E
C
O
D
E
R
REGISTER
EN
SEL
PU
INT
TO INPUT
Function
When an on-chip peripheral is configured to use a
pin, the correct I/O mode of the related pin should
be selected by selecting one of the appropriate
modes. See the Registers description in order to
obtain the right configurations.Some peripherals,
as for example the I
pin configuration according to the current function,
overriding the user configuration.
7.6 Register Description
In order to configure the Port’s pins, the three
Configuration
PORT_x_OR
configured. The combination of these three
registers
according to the scheme shown in Table 7.1.
In order to select between the digital functions or
Alternate functions PORT_x_AF register must be
configured. Each bit of the configuration registers
configures the pin of the corresponding position
(example: PORT_A_DDR bit 5 configures the pin
PA5).
DATA
ENABLE
determine
and
Registers
2
C peripheral, directly drive the
PORT_x_DDR
the
ST52F510/F513/F514
Vdd
pin’s
PORT_x_PULLUP,
configuration,
must
PORT PIN
DIGITAL
51/106
be

Related parts for st52f510