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

X  

AN4231 bảng dữ liệu(PDF) 11 Page - STMicroelectronics

tên linh kiện AN4231
Giải thích chi tiết về linh kiện  Standby mode exit from FLASH to RAM configuration settings
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4231 bảng dữ liệu(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


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