上传者: kevintang82
|
上传时间: 2021-07-15 12:07:55
|
文件大小: 2KB
|
文件类型: C
EM78P153 C语言唤醒范例
#include "EM78x153xx.h"
#define ENWDT 1
#define DSWDT 0
#define WATCHDOG ENWDT
void Pin_Wake_up(void)
{
_asm
{
mov a,@0x0e
contw
}
WDTCR=0x3f; //disable wdt
_asm
{
mov 0x6,0x6
disi
}
IMR=0xfa;