数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN3422 数据表(PDF) 31 Page - STMicroelectronics

部件名 AN3422
功能描述  Migration of microcontroller applications from STM32F1 to STM32L1 series
PDF  52 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3422 数据表(HTML) 31 Page - STMicroelectronics

Back Button AN3422 Datasheet HTML 27Page - STMicroelectronics AN3422 Datasheet HTML 28Page - STMicroelectronics AN3422 Datasheet HTML 29Page - STMicroelectronics AN3422 Datasheet HTML 30Page - STMicroelectronics AN3422 Datasheet HTML 31Page - STMicroelectronics AN3422 Datasheet HTML 32Page - STMicroelectronics AN3422 Datasheet HTML 33Page - STMicroelectronics AN3422 Datasheet HTML 34Page - STMicroelectronics AN3422 Datasheet HTML 35Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 52 page
background image
AN3422
Peripheral migration
Doc ID 018976 Rev 2
31/52
Alternate function mode
In STM32F1 series
1.
The configuration to use an I/O as alternate function depends on the peripheral mode
used, for example the USART Tx pin should be configured as alternate function push-
pull while USART Rx pin should be configured as input floating or input pull-up.
2.
To optimize the number of peripheral I/O functions for different device packages
(especially with those with low pin count), it is possible to remap some alternate
functions to other pins by software, for example the USART2_RX pin can be mapped
on PA3 (default remap) or PD6 (by software remap).
In STM32L1 series
1.
Whatever the peripheral mode used, the I/O must be configured as alternate function,
then the system can use the I/O in the proper way (input or output).
2.
The I/O pins are connected to on-chip peripherals/modules through a multiplexer that
allows only one peripheral’s alternate function to be connected to an I/O pin at a time.
In this way, there can be no conflict between peripherals sharing the same I/O pin.
Each I/O pin has a multiplexer with sixteen alternate function inputs (AF0 to AF15) that
can be configured through the GPIOx_AFRL and GPIOx_AFRH registers:
After reset all I/Os are connected to the system’s alternate function 0 (AF0)
The peripheral alternate functions are mapped by configuring AF1 to AF13
Cortex-M3 EVENTOUT is mapped by configuring AF15
3.
In addition to this flexible I/O multiplexing architecture, each peripheral has alternate
functions mapped on different I/O pins to optimize the number of peripheral I/O
functions for different device packages, for example the USART2_RX pin can be
mapped on PA3 or PD6 pin
Note:
Please refer to the “Alternate function mapping” table in the STM32L15x datasheet for the
detailed mapping of the system and the peripheral alternate function I/O pins.
4.
Configuration procedure
Configure the desired I/O as an alternate function in the GPIOx_MODER register
Select the type, pull-up/pull-down and output speed via the GPIOx_OTYPER,
GPIOx_PUPDR and GPIOx_OSPEEDER registers, respectively
Connect the I/O to the desired AFx in the GPIOx_AFRL or GPIOx_AFRH register
4.8
EXTI source selection
In STM32F1 the selection of EXTI line source is performed through EXTIx bits in
AFIO_EXTICRx registers, while in L1 series this selection is done through EXTIx bits in
SYSCFG_EXTICRx registers.
Only the mapping of the EXTICRx registers has been changed, without any changes to the
meaning of the EXTIx bits. However, the maximum range of EXTIx bits values is 0b0101 as
only 6 GPIO ports are supported in L1 (in F1 series the maximum value is 0b0110).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com