Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

AN4253 Datenblatt(PDF) 28 Page - STMicroelectronics

Teilenummer AN4253
Bauteilbeschribung  SPC564Lx device startup flow
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4253 Datenblatt(HTML) 28 Page - STMicroelectronics

Back Button AN4253 Datasheet HTML 24Page - STMicroelectronics AN4253 Datasheet HTML 25Page - STMicroelectronics AN4253 Datasheet HTML 26Page - STMicroelectronics AN4253 Datasheet HTML 27Page - STMicroelectronics AN4253 Datasheet HTML 28Page - STMicroelectronics AN4253 Datasheet HTML 29Page - STMicroelectronics AN4253 Datasheet HTML 30Page - STMicroelectronics AN4253 Datasheet HTML 31Page - STMicroelectronics AN4253 Datasheet HTML 32Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 44 page
background image
HW resource initialization
AN4253
28/44
DocID024255 Rev 2
Code sequence
1.
Set DRUN bit in ME_RUN_PC1 register (enable DRUN in ME_RUN_PC1
configuration)
2.
Set RUN_CFG bit field to 1 in ME_PCTL register of peripherals to
be activated
3.
Peripherals will be activated with next Mode Transition to DRUN
Switch system clock to FMPLL0 (mode transition)
In order to change system clock another mode transition is required. This transition will be
used for enabling the clock gated peripherals that were prepared in previous step.
Code sequence
1.
Set SYSCLK field to 6 in ME_DRUN_MC register (PLL as system
clock)
2.
Write DRUN with Key_1 in ME_MCTL register
3.
Write DRUN with Key_2 in ME_MCTL register
4.
Wait mode transition to finish (ME_GS.MTRANS bit = 0)
5.
Read ME.GS register and check that SYSCLK field equals to 4
(FMPLL0)
6.
If not > go to CLK_Fault_Handler
7.7
CLK fault handler
It is up to an application what to do in case of a problem with system clock initialization.
There might be several reasons for the failure of the initialization
Crystal oscillator does not start
Crystal oscillator starts at wrong frequency
FMPLL0 does not lock (here software watchdog expires and trigger reset earlier than
going to CLK fault handler)
The standard solution might be to ask for reset to try initialization from the very beginning
again.
7.8
Software Watchdog Timer (SWT) disable
Depending on the Option byte configuration in the shadow Flash memory the software
watchdog is enabled after the reset or disabled. SWT module always runs on IRC_16 MHz
clock base.
It is recommended to leave it enabled after the reset up to this point as it monitors
progression of the startup code and hardware initialization. Any fault leading to lockup
situation in the previous steps will finish in a reset event caused by SWT expiration event.
The reason why the software watchdog is going to be disabled here is time needed for HW
initialization (mainly contribution of clock initialization) plus RAM memory initialization that
takes significant time. Both contributors can take longer than it is a default SWT expiration
time.



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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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