Electronic Components Datasheet Search
  English  ▼

X  

AN4253 Datasheet(PDF) 39 Page - STMicroelectronics

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

AN4253 Datasheet(HTML) 39 Page - STMicroelectronics

Back Button AN4253 Datasheet HTML 35Page - STMicroelectronics AN4253 Datasheet HTML 36Page - STMicroelectronics AN4253 Datasheet HTML 37Page - STMicroelectronics AN4253 Datasheet HTML 38Page - STMicroelectronics AN4253 Datasheet HTML 39Page - STMicroelectronics AN4253 Datasheet HTML 40Page - STMicroelectronics AN4253 Datasheet HTML 41Page - STMicroelectronics AN4253 Datasheet HTML 42Page - STMicroelectronics AN4253 Datasheet HTML 43Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 44 page
background image
DocID024255 Rev 2
39/44
AN4253
asm examples
se_b .
// here infinitive loop
me_end:
A.8
AIPS protection
aips_start:
e_lis
r7, AIPS_BASE@h
e_or2i
r7, AIPS_BASE@l
// r7 = AIPS bridge base address
e_lis
r0, AIPS_MPROT_ENABLE@h
e_or2i
r0, AIPS_MPROT_ENABLE@l
// value to write to AIPS MPROT register
se_stw
r0, AIPS_REG_MPROT (r7)
// write the value
A.9
Cache memory initialization
init_cache:
e_li
r0, CACHE_ICE_BIT
// prepare ICE bit to enable the cache
mtspr
CACHE_REG_L1CSR1, r0 // enable Cache
A.10
Branch prediction
mfbucsr
r3
// read BUCSR special function register
e_or2i
r3, 0x1
// set branch prediction bit
mtbucsr
r3
// write value back to enable it
A.11
Clock system initialization
// setup CGM and ME base addresses
e_lis
r6, CGM_BASE@h
e_or2i
r6, CGM_BASE@l
e_lis
r7, ME_BASE@h
e_or2i
r7, ME_BASE@l
// setup EOCV value in XOSC block
e_lhz
r0, XOSC_REG_OSCCTL (r6) // get half word with EOCV bit field
e_and2i. r0, XOSC_EOCV_IMASK
// clear EOCV field
e_or2i
r0, XOSC_EOCV_VALUE
// set new value
e_sth
r0, XOSC_REG_OSCCTL (r6) // write it back
// enable XOSC in DRUN mode
e_lwz
r0, ME_REG_DRUN_MC (r7)
// read ME_DRUN_MC register
se_bseti r0, ME_MC_XOSCON
// set on XOSCON bit
e_stw
r0, ME_REG_DRUN_MC (r7)
// write value back
// mode transition -> DRUN
e_lis
r0, ME_MCTL_DRUN_R1@h
e_or2i
r0, ME_MCTL_DRUN_R1@l
e_stw
r0, ME_REG_MCTL (r7)
// 1. step - normal key
e_lis
r0, ME_MCTL_DRUN_R2@h
e_or2i
r0, ME_MCTL_DRUN_R2@l



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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