#include<htc.h>
#include<pic.h>
//#include <pic16f877a.h>
#define _XTAL_FREQ 4000000
__CONFIG(0x1f3a);
void main(void)
{
ADCON1 =0x06 ; // Changes PORTA and PORTE to digital
TRISA = 0x00 ; // Configure PORTA as output
TRISD = 0X00 ; // Configure PORTD as output
TRISB = 0x00 ; // Configure PORTB as output
TRISC = 0x00 ; // Configure PORTC as output
TRISE = 0x00 ; // Configure PORTE as output
SPBRG=25; //setting the Baud Rate
RCSTA=0X80; //Enabling the Serial Communication
TXSTA=0X26; //Enabling Transmission in Serial Communication, Selecting Mode and Speed
TXREG='H';
while(TXIF==0 || TRMT==0);
TXREG='E';
while(TXIF==0 || TRMT==0);
TXREG='L';
while(TXIF==0 || TRMT==0);
TXREG='L';
while(TXLIF==0 || TRMT==0);
TXREG='O';
while(TXIF==0 || TRMT==0);
TXREG=' ';
while(TXIF==0 || TRMT==0);
TXREG='T';
while(TXIF==0 || TRMT==0);
TXREG='E';
while(TXIF==0 || TRMT==0);
TXREG='C';
while(TXIF==0 || TRMT==0);
TXREG='H';
while(TXIF==0 || TRMT==0);
TXREG='N';
while(TXIF==0 || TRMT==0);
TXREG='O';
while(TXIF==0 || TRMT==0);
TXREG='L';
while(TXIF==0 || TRMT==0);
TXREG='O';
while(TXIF==0 || TRMT==0);
TXREG='G';
while(TXIF==0 || TRMT==0);
TXREG='Y';
while(TXIF==0 || TRMT==0);
while(1);
}