參數(shù)資料
型號(hào): TriCore
廠商: SIEMENS AG
英文描述: 32-bit microcontrollers(32位微控制器)
中文描述: 32位微控制器(32位微控制器)
文件頁(yè)數(shù): 7/17頁(yè)
文件大小: 117K
代理商: TRICORE
How to use the
Watchdog Timer of the TriCore
7 of 17
AP3219 Rel.02
Due to the requirements for some of the password bits, the password can never be
determined just by reading the contents of the Watchdog registers. A modifying step that
alters some of the bits is required in order to get the right password.
This password has to be written to the address location of WDTCON0 in order to unlock
this register for modifications. If the password matches the requirements, register
WDTCON0 is unlocked after this write operation has finished. This unlocked condition is
indicated by WDTCON0.WDTLCK=0.
Now, the following write access can modify register WDTCON0. After this write has
finished, WDTCON0 is automatically locked again. WDTLCK is set to 1 by hardware.
If the password value written to WDTCON0 during the password access does not match
the contents of WDTCON0, a Watchdog access error situation exists. The Watchdog error
situations are detailed in the section entitled “Watchdog Error Conditions" further below.
The following program in C-Code is an example how to unlock the register WDTCON0. It
can be included as a procedure in the mainfunction:
//Password Access to unlock WDTCON0 include this in your project
void WDT_Passwd(void)
{
#define
WDTCON0 *((volatile unsigned int*) 0xF0000020)
#define
WDTCON1 *((volatile unsigned int*) 0xF0000024)
unsigned int passwd;
passwd = WDTCON0;
passwd = passwd | 0x0f0;
passwd = (WDTCON1 & 0x00c)
//bit 2:3 from WDTCON1
| (passwd & 0xfffffff3);
//and bit 2:3 cleared from WDTCON0
passwd = (passwd ^ 0x00000002);
//invert bit 1
WDTCON0 = passwd;
//write password to WDTCON0
//load value from WDTCON0
//sets bit 7:4 to 1
}
//Procedure call
WDT_Passwd();
After this password sequence the WDTCON0 will be unlocked and you can change it by a
modify access.
3.2
During the modifying access, the only strict requirement is that bits 1 and 7:4 are written to
1’s, and bits 3:2 are written to 0’s. All other bits can be set to user-definable values.
If the value written to WDTCON0 during the modifying access does not match these
requirements, a Watchdog access error exists. The Watchdog error situations are detailed
in the section entitled “Watchdog Error Conditions" further below.
Modify Access
相關(guān)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
相關(guān)代理商/技術(shù)參數(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