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

X  

AN4228 bảng dữ liệu(PDF) 62 Page - STMicroelectronics

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

AN4228 bảng dữ liệu(HTML) 62 Page - STMicroelectronics

Back Button AN4228 Datasheet HTML 58Page - STMicroelectronics AN4228 Datasheet HTML 59Page - STMicroelectronics AN4228 Datasheet HTML 60Page - STMicroelectronics AN4228 Datasheet HTML 61Page - STMicroelectronics AN4228 Datasheet HTML 62Page - STMicroelectronics AN4228 Datasheet HTML 63Page - STMicroelectronics AN4228 Datasheet HTML 64Page - STMicroelectronics AN4228 Datasheet HTML 65Page - STMicroelectronics AN4228 Datasheet HTML 66Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 62 / 90 page
background image
Firmware migration using the library
AN4228
62/90
DocID024110 Rev 5
BKP_WriteBackupRegister(BKP_DR1, 0x3210);
/* Read data from Backup data register 1 */
BKPdata = BKP_ReadBackupRegister(BKP_DR1);
In STM32F3 series, you have to update this code as follows:
uint16_t BKPdata = 0;
...
/* PWR Clock Enable */
_APB1PeriphClockCmd(_APB1Periph_PWR, ENABLE);
/* Enable write access to RTC 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 STM32F3 series versus STM32F1 series are
described below:
There is no BKP peripheral
Write to/read from Backup data registers are performed through the RTC driver
Backup data registers naming changed from BKP_DRx to RTC_BKP_DRx, and
numbering starts from 0 instead of 1.
4.12
CEC application code
You can easily update your CEC application code by replacing STM32F10x functions by the
corresponding function of the STM32F3xx library.
The table below presents the CEC driver API correspondence between STM32F10x and
STM32F37x Libraries.



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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90


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