www.pudn.com > RL78_G14-Demo.rar > main.c, change:2013-04-25,size:575b


#pragma sfr 
void R_PCLBUZ0_Create(void) 
{ 
    PCLOE0 = 0U;    /* disable PCLBUZ0 operation */ 
    CKS0 =0x05U; 
    /* Set PCLBUZ0 pin */ 
    P14 &= 0xFEU; 
    PM14 &= 0xFEU; 
} 
void R_PCLBUZ0_Start(void) 
{ 
    PCLOE0 = 1U;    /* enable PCLBUZ0 operation */ 
} 
void R_PCLBUZ0_Stop(void) 
{ 
    PCLOE0 = 0U;    /* disable PCLBUZ0 operation */ 
} 
void main(void) 
{ 
 int i,j; 
 R_PCLBUZ0_Create(); 
 while(1U) 
 	{ 
		R_PCLBUZ0_Start(); 
		for(i=0;i<1000;i++) 
		 for(j=0;j<1000;j++); 
		R_PCLBUZ0_Stop(); 
		for(i=0;i<1000;i++) 
		 for(j=0;j<1000;j++); 
  
 	} 
}