поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4088 датащи(PDF) 46 Page - STMicroelectronics

номер детали AN4088
подробное описание детали  Migrating between STM32F1 and STM32F0 series microcontrollers
PDF  71 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4088 датащи(HTML) 46 Page - STMicroelectronics

Back Button AN4088 Datasheet HTML 42Page - STMicroelectronics AN4088 Datasheet HTML 43Page - STMicroelectronics AN4088 Datasheet HTML 44Page - STMicroelectronics AN4088 Datasheet HTML 45Page - STMicroelectronics AN4088 Datasheet HTML 46Page - STMicroelectronics AN4088 Datasheet HTML 47Page - STMicroelectronics AN4088 Datasheet HTML 48Page - STMicroelectronics AN4088 Datasheet HTML 49Page - STMicroelectronics AN4088 Datasheet HTML 50Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 71 page
background image
Firmware migration using the library
AN4088
46/71
DocID023072 Rev 3
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; /* None, Pull-up or pull-
down */
GPIO_Init(GPIOy, &GPIO_InitStructure);
4.5.3
Analog mode
The example below shows how to configure an I/O in analog mode (for example, an ADC or
DAC channel) in STM32F1 series:
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN;
GPIO_Init(GPIOy, &GPIO_InitStructure);
In STM32F0 series, you have to update this code as follows:
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x ;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL ;
GPIO_Init(GPIOy, &GPIO_InitStructure);
4.5.4
Alternate function mode
In STM32F1 series
1.
The configuration to use an I/O as an alternate function depends on the peripheral
mode used; for example, the USART Tx pin should be configured as an alternate
function push-pull while the USART Rx pin should be configured as an input floating or
an input pull-up.
2.
To optimize the number of peripheral I/O functions for different device packages, it is
possible, by software, to remap some alternate functions to other pins. For example,
the USART2_RX pin can be mapped on PA3 (default remap) or PD6 (by software
remap).
In STM32F0 series
1.
Whatever the peripheral mode used, the I/O must be configured as an 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-board peripherals/modules through a multiplexer that
allows only one peripheral 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 GPIO_PinAFConfig () function:
After reset, all I/Os are connected to the system alternate function 0 (AF0)
The peripherals’ alternate functions are mapped by configuring AF1 to AF7.
3.
In addition to this flexible I/O multiplexing architecture, each peripheral has alternate
functions mapped onto different I/O pins to optimize the number of peripheral I/O



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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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