//#include <16F628.h>
#include <16F648A.h>
#use delay(clock=4000000)
#define TxD PIN_A0
#define RxD PIN_A1
#use rs232(baud=9600, xmit=TxD,rcv=RxD)
#fuses XT,PUT,BROWNOUT,MCLR,NOWDT,NOPROTECT,NOLVP
void main(void)
{
long time;
//Set Timer0 intertal clock No Prescaler
setup_timer_0(RTCC_INTERNAL | RTCC_DIV_1);
printf("*** Timer0 ***\r\n");
set_timer0(0);
delay_us(10);
time = get_timer0();
printf("Time1: %lu us\r\n",time);
set_timer0(0);
delay_us(255);
time = get_timer0();
printf("Time2: %lu us\r\n",time);
while(1); //Loop here
}