參數(shù)資料
型號: ST52513F3
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: MICROCONTROLLER, PDSO20
封裝: ROHS COMPLIANT, SOP-20
文件頁數(shù): 86/136頁
文件大?。?/td> 2791K
代理商: ST52513F3
7.5 Alternate Functions
The Alternate Function allows the pins to be
connected with the peripheral signals or NMI. Not
all Port pins have an Alternate Function
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
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 I2C peripheral, directly drive the
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
Registers
PORT_x_PULLUP,
PORT_x_OR
and
PORT_x_DDR
must
be
configured. The combination of these three
registers
determine the pin’s configuration,
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).
CONF. REG.
D
E
C
O
D
E
R
FF
REGISTER
FILE
ALTERNATE
FUNCTION
INTERRUPT
POLARITY
IRQ
TO INPUT
REGISTER
Vdd
DIGITAL
PORT PIN
INT
PU
SEL
EN
ENABLE
DATA
CONF. REG.
相關(guān)PDF資料
PDF描述
ST72361AR6TA 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP64
ST72361AR9TC 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP64
ST72P361J4TA 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP44
ST72F321BAR7TARE 8-BIT, FLASH, 16 MHz, MICROCONTROLLER, PQFP64
ST72P321B(AR6)TCXXXE 8-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST52513G2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513G3 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513K2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513K3 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH
ST52513Y2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH 10-BIT ADC. TWO TIMERS/PWM. I2C. SPI. SCI. UP TO 8K FLASH