Hello,
What am loading to the TXREG is 'u' (0x75) but what it displays on the C Kermit is 'Q' (0x51), and am not sure how to fix this ?
Sample code is,
Code:
Code:
#include<xc.h>
#define _XTAL_FREQ 20000000
//#define Baud_Rate 19200
__CONFIG (1, OSC_HS);
__CONFIG (2, WDTDIS & PWRTEN & BORDIS & LVPDIS);
void main()
{
// Initialization set up of UART Transmission
TRISCbits.RC6 = 0;
TRISCbits.RC7 = 1;
SPBRG = 64;
TXSTAbits.BRGH = 1;
TXSTAbits.SYNC = 0;
RCSTAbits.SPEN = 1;
TXSTAbits.TXEN = 1;
while(1)
{
TXREG = 'u';
while(TXIF==0);
}
}