//#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 Timer2 No Prescaler
setup_timer_2(T2_DIV_BY_1,255,1);
printf("*** Timer2 ***\r\n");
set_timer2(0);
delay_us(25);
time = get_timer2();
printf("Time1: %lu us\r\n",time);
set_timer2(0);
delay_us(250);
time = get_timer2();
printf("Time2: %lu us\r\n",time);
while(1); //Loop here
}