32MS250 UART failure
Posted: Sun Sep 18, 2016 10:27 pm
Hello
CPU 32MS250
My config settings are as follows:
#pragma config FNOSC = FRCPLL
#pragma config FPLLIDIV = DIV_2
#pragma config FPLLMUL = MUL_20
#pragma config FPLLODIV = DIV_2
#pragma config FPBDIV = DIV_1
#pragma config DEBUG = OFF
#define GetSystemClock() (40000000ul)
#define GetPeripheralClock() (GetSystemClock())
#include <plib.h>
My config settings for UART are as follows:
channel 2, Baud_List = 9600, DBit = 8bit,TXRemap = PORT B4, RXRemap = PORT A1.
The bits are too slow on Port B4.
With my settings
U2MODEbits.BRGH = 1;
U2BRG = 84;
The data is transferred with 9600 baud
What I am doing as wrong.
Please Can You help me
CPU 32MS250
My config settings are as follows:
#pragma config FNOSC = FRCPLL
#pragma config FPLLIDIV = DIV_2
#pragma config FPLLMUL = MUL_20
#pragma config FPLLODIV = DIV_2
#pragma config FPBDIV = DIV_1
#pragma config DEBUG = OFF
#define GetSystemClock() (40000000ul)
#define GetPeripheralClock() (GetSystemClock())
#include <plib.h>
My config settings for UART are as follows:
channel 2, Baud_List = 9600, DBit = 8bit,TXRemap = PORT B4, RXRemap = PORT A1.
The bits are too slow on Port B4.
With my settings
U2MODEbits.BRGH = 1;
U2BRG = 84;
The data is transferred with 9600 baud
What I am doing as wrong.
Please Can You help me