| 전자부품 데이터시트 검색엔진 |
|
AN4228 데이터시트(PDF) 62 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4228 데이터시트(HTML) 62 Page - STMicroelectronics |
|
62 / 90 page ![]() 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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |