Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN4124 Datasheet(PDF) 14 Page - STMicroelectronics

Part # AN4124
Description  Using SPC56EL60x fault collection and control unit
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4124 Datasheet(HTML) 14 Page - STMicroelectronics

Back Button AN4124 Datasheet HTML 10Page - STMicroelectronics AN4124 Datasheet HTML 11Page - STMicroelectronics AN4124 Datasheet HTML 12Page - STMicroelectronics AN4124 Datasheet HTML 13Page - STMicroelectronics AN4124 Datasheet HTML 14Page - STMicroelectronics AN4124 Datasheet HTML 15Page - STMicroelectronics AN4124 Datasheet HTML 16Page - STMicroelectronics AN4124 Datasheet HTML 17Page - STMicroelectronics AN4124 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 32 page
background image
FCCU settings
AN4124
14/32
Doc ID 023294 Rev 2
Code
After the core initialization in main function the code is (NMI masked):
if (ME.GS.B.S_CURRENT_MODE == 2){
/* SAFE MODE */
if((FCCU_Clear_CRITICAL_Fault()) == PASS){
/* Test PASS */
}else{
while(1);
/* Test FAIL */
}
}else{
/* DRUN MODE */
/* ----------------- Test INIT --------------------- */
if((tc0_INIT()) == PASS){
/* ----------------- Fake Fault --------------------- */
FCCU.CFF.R = 0;
/* First Fault injection */
}else{
while(1);
/* Test FAIL */
}
/* -----------------END
Test INIT --------------------- */
}
Description
At the beginning the microcontroller is in DRUN mode, the “else” condition is asserted, by
tc0_INIT procedure. In the tc0_INIT, the FCCU will be configured. When the injection fault is
asserted (FCCU.CFF.R = 0), the system will reset. After the start up, in main function the
system is in SAFE mode (the NMI is masked). Then the “if” condition is asserted, and all
faults are cleared.
5.1.1
FCCU init
uint16_t tc0_INIT(void){
/* ----------------- CONFIG State --------------------- */
FCCU_CONFIG_STATE();/* CONFIG state */
FCCU.CFG.B.SM = 1; /* EOUT protocol (dual-rail, time-switching)
fast switching mode*/
FCCU.CFG.B.PS = 1; /* fcc_eout[1] active low, fcc_eout[0] active low */
FCCU_CFG_FOM_Config(CFG_FOM0); /* CFG_FOM0 = Dual-Rail (default state)
[fccu_eout[1:0]= outputs] */
FCCU_CFG_FOP_Config(0); * Fault Output Prescaler= Input clock frequency
(ipg_clk_safe clock) is divided by 2 x 1024 */
/* ----------------- NORMAL State --------------------- */
FCCU_NORMAL_STATE();
/* NORMAL state */
return(PASS);
}



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


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