參數(shù)資料
型號: TriCore
廠商: SIEMENS AG
英文描述: 32-bit microcontrollers(32位微控制器)
中文描述: 32位微控制器(32位微控制器)
文件頁數(shù): 14/17頁
文件大?。?/td> 117K
代理商: TRICORE
How to use the
Watchdog Timer of the TriCore
14 of 17
AP3219 Rel.02
6.3
The following procedure is nearly the same as the procedure used in chapter Password
Access. The great difference is the variable hand over to the procedure. If these variable
does not match with the password already stored in WDTCON0.WDTPW a Watchdog
Timer Access Error (WDTSR.WDTAE) will occur.
In all error cases, the Watchdog Timer:
Generates an NMI trap request
Enters the Reset Pre-warning Mode
Sets the Watchdog Reset Pre-warning Flag, WDTSR.WDTPR and Watchdog Time-out
Period Indication Flag, WDTSR.WDTTO
Password Access using the Extended Security Thoughts
//Password Access to unlock WDTCON0 using the Extended Security Thoughts
//include this in your project
void WDT_Pass_Secure(unsigned char oldpass)
{
#define
WDTCON0 *((volatile unsigned int*) 0xF0000020)
#define
WDTCON1 *((volatile unsigned int*) 0xF0000024)
unsigned int passwd;
passwd = WDTCON0;
//load value from WDTCON0 in variable
passwd = passwd & 0xffff00ff;
passwd = passwd | (oldpass << 8);
//value from variable included
passwd = passwd | 0x0f0;
//sets bit 7:4 to 1
passwd =
WDTCON1 & 0x00c)
//bit 2:3 loaded from WDTCON1
| (passwd & 0xfffffff3);
//and bit 2:3 cleared from WDTCON0
passwd = (passwd ^ 0x00000002);
//invert bit 1
WDTCON0 = passwd;
//write password to register WDTCON0
//bits from the WDTPW cleared
}
The following procedure call will unlock the WDTCON0 register if the value of the variable
Oldpassword does match with the password already stored in WDTCON0.WDTPW. If not,
an error will occur and the WDT will enter in the Reset Pre-warning Mode.
//Procedure call
WDT_Pass_Secure(Oldpassword);
相關PDF資料
PDF描述
TRR-8A33 Connectorized High-speed GaAs PIN
TRS1722 KIT INSULATED TERMINAL
TRS1755 33+3/4X66FT PLSTC TAPE
TRS1766 HIGH SENSITIVITY REFLECTIVE COLOR SENSOR WITH LIGHTTOVOLTAGE CONVERTERS
TRU-600 TRU-600
相關代理商/技術參數(shù)
參數(shù)描述
TRIDENT SAMPLE CASE 制造商:ITT Interconnect Solutions 功能描述:TRIDENT SAMPLE CASE / 192993-3000 / Trident
TRIG26362-I 制造商:Pass & Seymour/Legrand 功能描述:IG TR DECOR RECEPT 20A 125V IV
TRIG5362-REDSP 制造商:Pass & Seymour/Legrand 功能描述:IG SPD RECP TR 20A/125V ALARM RED
TRIG8300-RED 制造商:Pass & Seymour/Legrand 功能描述:HG IG TR DUP RECEPT 20A 125V RED
TRIG8300-W 制造商:Pass & Seymour/Legrand 功能描述:HG IG TR DUP RECEPT 20A 125V WH