hi friends my output showing some of unknown values when transmitted character A to the tera term terminal in PC.
i am using PIC16F877A 20 mhz.mplab ide and hi tech c compiler.
please find below code and error file which shows in tera term.say me a solution for this.
Code:
#include <htc.h>
//#if defined(WDTE_OFF)
//__CONFIG(WDTE_OFF & LVP_OFF);
//#elif defined (WDTDIS)
//__CONFIG(WDTDIS & LVPDIS);
//#endif
int main(void)
{
TRISC6 = 0;
TRISC7 = 1;
SPBRG = 25 ;
BRGH =0 ;
SPEN =1 ;
SYNC = 0 ;
SREN =1 ;
TXEN =1;
while (1)
{
TXREG ='A';
while(TXIF == 0);
TXIF=0;
}
return 0;
}