#include"BS84C12A-3.h"
void Time0_Init(void)
{
_ts = 0;//0:fSYS
_ton = 0;
_tpsc2 = 1;
_tpsc1 = 0;
_tpsc0 = 1;//101:fTP/32
_tmr = 5;//从5到255,计数250次 定时1ms
_te = 1;//使能中断
_ton = 1;//使能定时器
_emi=1;
}
#include"BS84C12A-3.h"
void Time0_Init(void)
{
_ts = 0;//0:fSYS
_ton = 0;
_tpsc2 = 1;
_tpsc1 = 0;
_tpsc0 = 1;//101:fTP/32
_tmr = 5;//从5到255,计数250次 定时1ms
_te = 1;//使能中断
_ton = 1;//使能定时器
_emi=1;
}
举报