전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN4088 데이터시트(PDF) 45 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) 45 Page - STMicroelectronics

Back Button AN4088 Datasheet HTML 41Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 45 / 71 page
background image
DocID023072 Rev 3
45/71
AN4088
Firmware migration using the library
70
4.5
GPIO configuration update
This section explains how to update the configuration of the various GPIO modes when
porting the application code from STM32F1 series to STM32F0 series.
4.5.1
Output mode
The example below shows how to configure an I/O in output mode (for example to drive a
LED) in STM32F1 series:
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_xxMHz; /* 2, 10 or 50 MHz */
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
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_OUT;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; /* Push-pull or open drain
*/
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; /* None, Pull-up or pull-down
*/
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_xxMHz; /* 10, 2 or 50MHz */
GPIO_Init(GPIOy, &GPIO_InitStructure);
4.5.2
Input mode
The example below shows how to configure an I/O in input mode (for example to be used as
an EXTI line) in STM32F1 series:
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
GPIO_Init(GPIOy, &GPIO_InitStructure);
In STM32F0 series, you have to update this code as follows:
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_x;
void CRC_SetIDRegister(uint8_t CRC_IDValue);
void CRC_SetIDRegister(uint8_t CRC_IDValue);
uint8_t CRC_GetIDRegister(void);
uint8_t CRC_GetIDRegister(void);
Note:
(*) This function is only applicable for STM32F07x, STM32F04x and STM32F091 devices.
Table 22. STM32F10xx and STM32F0xx CRC driver API correspondence (continued)
STM32F10xx CRC driver API
STM32F0xx CRC driver API
Color key:
= New function
= Same function, but API was changed
= Function not available (NA)



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



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