#include "extern.h"
void FPPA0 (void)
{
.ADJUST_IC SYSCLK=IHRC/2, IHRC=15MHz, VDD=5V;
// WatchDog Disable, RAM 0 ~ 0xF temporary be used
// You can add the follow code :
// CLKMD.En_WatchDog = 1; // WatchDog Enable
$ tm2c ihrc,pa3,pwm;
//tm2ct //tim2计数寄存器
//tm2b //上限寄存器
$ tm2s 6bit,/1,/2; //117.64khz
tm2b =31;//127;
while (1)
{
}
}
/*
void Interrupt (void)
{
pushaf;
if (Intrq.T16)
{ // T16 Trig
// User can add code
Intrq.T16 = 0;
//...
}
popaf;
}
*/
|