数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4124 数据表(PDF) 14 Page - STMicroelectronics

部件名 AN4124
功能描述  Using SPC56EL60x fault collection and control unit
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4124 数据表(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


数据表 下载

Go To PDF Page


链接网址



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