MPC5554 watchdog

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5554 watchdog

1,516件の閲覧回数
boyfighting
Contributor I

I want to close the watchdog in MPC554. so I checked the reference manual. I found RCHW register enable the watchdog. But i dont know what is the register's address. what should I do ?

   Thanks

0 件の賞賛
返信
1 返信

1,427件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, a watchdog you can disable this way:

static void DisableWatchdog(void)
{    
    asm
    {
        mfhid0  r11                /* Move from spr HID0 to r11 (copies HID0) */
        li      r12, 0xBFFF  /* Load immed. data of ~0x4000 to r12 */
        oris    r12, r12, 0xFFFF
        and     r11, r12, r11  /* OR r12 (~0x00004000) with r11 (HID0 value) */
        mthid0  r11          /* Move result to HID0 */

        lis     r12, 0x00
        mtspr   tcr, r12  /* clear SPR TCR register */
    }
}

0 件の賞賛
返信