công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN3427 bảng dữ liệu(PDF) 49 Page - STMicroelectronics

tên linh kiện AN3427
Giải thích chi tiết về linh kiện  Migrating a microcontroller application from STM32F1 to STM32F2 series
PDF  52 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3427 bảng dữ liệu(HTML) 49 Page - STMicroelectronics

Back Button AN3427 Datasheet HTML 44Page - STMicroelectronics AN3427 Datasheet HTML 45Page - STMicroelectronics AN3427 Datasheet HTML 46Page - STMicroelectronics AN3427 Datasheet HTML 47Page - STMicroelectronics AN3427 Datasheet HTML 48Page - STMicroelectronics AN3427 Datasheet HTML 49Page - STMicroelectronics AN3427 Datasheet HTML 50Page - STMicroelectronics AN3427 Datasheet HTML 51Page - STMicroelectronics AN3427 Datasheet HTML 52Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 49 / 52 page
background image
AN3427
Firmware migration using the library
Doc ID 019001 Rev 1
49/52
4.8
Backup data registers
In STM32 F1 series the Backup data registers are managed through the BKP peripheral,
while in F2 series they are a part of the RTC peripheral (there is no BKP peripheral).
The example below shows how to write to/read from Backup data registers in STM32 F1
series:
uint16_t BKPdata = 0;
...
/* Enable APB2 interface clock for PWR and BKP */
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE);
/* Enable write access to Backup domain */
PWR_BackupAccessCmd(ENABLE);
/* Write data to Backup data register 1 */
BKP_WriteBackupRegister(BKP_DR1, 0x3210);
/* Read data from Backup data register 1 */
BKPdata = BKP_ReadBackupRegister(BKP_DR1);
In F2 series you have to update this code as follows:
uint16_t BKPdata = 0;
...
/* PWR Clock Enable */
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
/* Enable write access to Backup domain */
PWR_RTCAccessCmd(ENABLE);
/* Write data to Backup data register 1 */
RTC_WriteBackupRegister(RTC_BKP_DR1, 0x3220);
/* Read data from Backup data register 1 */
BKPdata = RTC_ReadBackupRegister(RTC_BKP_DR1);
The main changes in the source code in F2 series vs. F1 are described below:
1.
There is no BKP peripheral
2.
Write to/read from Backup data registers are done through RTC driver
3.
Backup data registers naming changed from BKP_DRx to RTC_BKP_DRx, and
numbering starts from 0 instead of 1
4.9
Miscellaneous
4.9.1
Ethernet PHY interface selection
In STM32 F1 series the Ethernet PHY interface selection is made in the AFIO peripheral,
while in F2 series this configuration is made in the SYSCFG peripheral.
The example below shows how to configure the Ethernet PHY interface in STM32 F1 series:
/* Configure Ethernet MAC for connection with an MII PHY */
GPIO_ETH_MediaInterfaceConfig(GPIO_ETH_MediaInterface_MII);



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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