rangerskm
Full Member level 4
- Joined
- Jan 23, 2013
- Messages
- 199
- Helped
- 0
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,663
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.
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;
}
(C(APC(APC(AC(CHC(ÿHCHC(aHCHCH¡4C(CHHHAC(ÿÿ(APC(ACHC(óCHC(AC(ACHC(HCHC(CHÃ(CHCHC(HaHCC(CHC(C(CHCHC(C(CHC(!HCHC(Ãÿ(C(CHC(HCHC(
0CHC(AC(CHC(ÁCHC(AACHC(CHÿ,CHC(CH`CHC(CHûCHC(CHAACHCHCHC(APAPC(CHCPCHAAC(C(CHÿÿ4C(AP@C(AC(C(APHC(CHCHû,C(CHC(C(AC(ÃC(CHC(HCHC(ÃAC(A C(CHaHaHCHC(CEACHC(ACHC(Áÿ$CHC(HHCHC(CHÿ
CHC(CHCHC(AûCHC(CHAAAÃCHC(CHCHC(CHCH
0C(CHC(!HAC(ÿÿ$C(CHHhC(CHC(ÿÿ$C(CHC(HAC(ÿÿ
C(CHC(aHCHC(óAPH!HCHC(ÃCHC(AACHC(CHCHC(APACHC(CHÿ
CHAXC(C(CHÿÿ,C(APHC(ACÿ
C(APCHC(CHCùC(CHC(HAC(ÃC(CHC(HCHC(ÃEACHC(HCHC(C4CHCHC(CHA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