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

X  

AN4231 데이터시트(PDF) 11 Page - STMicroelectronics

부품명 AN4231
상세설명  Standby mode exit from FLASH to RAM configuration settings
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4231 데이터시트(HTML) 11 Page - STMicroelectronics

Back Button AN4231 Datasheet HTML 7Page - STMicroelectronics AN4231 Datasheet HTML 8Page - STMicroelectronics AN4231 Datasheet HTML 9Page - STMicroelectronics AN4231 Datasheet HTML 10Page - STMicroelectronics AN4231 Datasheet HTML 11Page - STMicroelectronics AN4231 Datasheet HTML 12Page - STMicroelectronics AN4231 Datasheet HTML 13Page - STMicroelectronics AN4231 Datasheet HTML 14Page - STMicroelectronics AN4231 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 22 page
background image
DocID024130 Rev 2
11/22
AN4231
Application code structure
3.2
Code implementation
The application configures the device to:
Disable the Software Watchdog
Add a RAM wait state due to the fact that one wait state is required when the System
Frequency is >64 MHz
he WKUP Configure all modes and activate all clocks for all peripherals
Configure the PLL to work at 120 MHz with an external oscillator of 40 MHz
Set the GPIO in order to turn on some LEDs
Set the PLL as output clock on the PA0 pin
Set the RMG STANDBY bit to exit from the STANDBY with the Z4 core in RAM
Set the LED 2 (PE5) to toggle five times before to enter in STANDBY
Set tmodule to:
–
clear the WKUP
–
enable the WKUP for a wake up event on the KEY1 (PE0)
–
enable the WKUP interrupt
–
enable the Falling Edge
–
enable the Filter
–
enable pullups on all WKUP pins to stop leakage on unconnected pins
–
wait until the KEY4 (PE3) is pulled low
Enter the STANDBY mode from the Mode entry MCTL register.
Configure the locator file to copy from FLASH to RAM the boot code
Configure the boot code for the Z4 core in order to:
–
Configure the MMU for SRAM, BAM, Peripheral Bridge.
–
Disable the Software Watchdog again
–
Initialize the stack pointer, sdata base and sdata2 base
–
Enable the SPE in MSR register
–
Configure the internal Flash
–
Set the address to return from standby code in RAM to toggle some LEDs
3.2.1
Disable Software Watchdog
This function allows disabling the Software Watchdog using a key word to permit the access
to the control register of the SWT module.
The SWT is disabled in order to avoid that the period execution of watchdog service could
release a system reset.
Figure 5. Software Watchdog function



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


데이터시트 다운로드

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