例程源码是这样的,跑不起来,会是哪里有问题?
void Timer3_ISR (void) interrupt 16
{
clr_TF3;
P12 = ~P12; //P0.2 toggle when TF3 interrupt
printf("\n TM3 INT 0x%bX", RH3);
}
/************************************************************************************************************
* Main function
************************************************************************************************************/
void main (void)
{
Set_All_GPIO_Quasi_Mode;
InitialUART0_Timer1(115200);
RH3 = RELOAD_VALUE_H; //initial counter values
RL3 = RELOAD_VALUE_L;
set_ET3; //enable Timer3 interrupt
set_EA; //enable interrupts
set_TR3; //Timer3 run
while(1);
} |