just trying to work out what speeds are theritically capable. but looking at base.c either the formular im using is wrong of the numbers mentioned are wrong.
//Initialize the terminal UART for the speed currently set in bpConfig.termSpeed
static unsigned int UARTspeed[]={13332,3332,1666,832,416,207,103,68,34,};//BRG:300,1200,2400,4800,9600,19200,38400,57600,115200
void InitializeUART1(void){
U1BRG = UARTspeed[bpConfig.termSpeed];//13332=300, 1666=2400, 416=9600, 34@32mhz=115200....
U1MODE = 0;
U1MODEbits.BRGH = 1;
U1STA = 0;
U1MODEbits.UARTEN = 1;
U1STAbits.UTXEN = 1;
IFS0bits.U1RXIF = 0;
}
according to the datasheet it should be brg = ((frquency/baud)/4)-1
by my calcs i get a brg value of 68 for 115200, where you seem to have 34.
am i doing something wrong?