void fun12(void)
{
CCON=0; //Initial PCA control register
//PCA time stop running
//clear CF flag
//Clear all module interrupt flag
CL=0; //Reset PCA base time
CH=0;
CMOD=0X00; //Set PCA time clock source as Fose/12
//Disable PCA time overflow interrupt
value=T100HZ;
CCAPM0=0X49; //PCA Module-0 work in 16-bit timer Mode
//And enable PCA interrupt
CR=1;
EPCAI=1;
EA=1;
cnt=0;
}
main()
{
fun12();
/*CCON=0; //Initial PCA control register
//PCA time stop running
//clear CF flag
//Clear all module interrupt flag
CL=0; //Reset PCA base time
CH=0;
CMOD=0X00; //Set PCA time clock source as Fose/12
//Disable PCA time overflow interrupt
value=T100HZ;