| 전자부품 데이터시트 검색엔진 |
|
AN4124 데이터시트(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4124 데이터시트(HTML) 24 Page - STMicroelectronics |
|
24 / 32 page ![]() Redundancy and functions AN4124 24/32 Doc ID 023294 Rev 2 /* Retun from FCCU SAFE mode reset */ FCCU_NCFS_Clear(Num_Fault); /* Clear the fault */ RGM.FES.R = 0xFFFF; /* Clear FER register */ ME.MCTL.R = (DRUN_MODE << 28 | 0x00005AF0);/* Mode & Key */ ME.MCTL.R = (DRUN_MODE << 28 | 0x0000A50F);/* Mode & Key */ /* Wait for mode entry to complete */ while(ME.GS.B.S_MTRANS==1); /* Check DRUN mode has been entered */ while(ME.GS.B.S_CURRENT_MODE!=DRUN_MODE); tc1_error = 0; /* Error counter */ }else{ /* Not NON-Critical fault was latched */ } }else{ /* Read State ERROR */ } } if(tc1_error == 0) return(PASS); return(FAIL); } A.2.8 Read FCCU - state machine uint32_t FCCU_STATUS_Read(uint32_t* STATUS_Value){ uint32_t exit_value= 0; /* Returned value = ERROR */ FCCU.CTRL.B.OPR = CTRL_OPR3; /* Set the OP3 */ while(FCCU.CTRL.B.OPS != CTRL_OPS3); /* wait for the completion of the operation */ *STATUS_Value = FCCU.STAT.R; /* Read the STATUS Register */ exit_value = 1; /* Returned value = SUCCESS */ return(exit_value); } A.2.9 Non-critical fault - enable uint32_t FCCU_NCF_Enable(uint32_t NCFE_number, uint32_t NCFE_Value){ uint32_t exit_value= 0; /* Returned value = ERROR */ uint32_t Reg_Selection = 0;/* Register Selection [0..3] */ if (NCFE_number <= 127){ Reg_Selection = (NCFE_number/32); /* INT(NCFE_number/32)*/ if (NCFE_Value == NCFE_En){ switch (Reg_Selection){ case 0 : FCCU.NCFE0.R |= (uint32_t) (NCFE_En << (NCFE_number%32)); /* Enable the non-critical fault */ break; case 1 : FCCU.NCFE1.R |= (uint32_t) (NCFE_En << (NCFE_number%32)); /* Enable the non-critical fault */ break; case 2 : FCCU.NCFE2.R |= (uint32_t) (NCFE_En << (NCFE_number%32)); /* Enable the non-critical fault */ break; case 3 : FCCU.NCFE3.R |= (uint32_t) (NCFE_En << (NCFE_number%32)); /* Enable the non-critical fault */ break; default: FCCU.NCFE3.R |= (uint32_t) (NCFE_En << (NCFE_number%32)); /* Enable the non-critical fault */ break; } }else{ |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |