TMS320F280025C: LIN当成SCI使用问题

Part Number: TMS320F280025C

我根据LIN例程设置SCI,发送的数据波特率不正确,请问哪里出问题了,代码如下

//
// Included Files
//
#include "app.h"

#define CHAR_LENGTH 8
#define FRAME_LENGTH 1

//
// Configure the Baud Rate to 19200Hz
//
uint32_t PRESCALER=0x00000A1;
uint32_t DIVIDER=0x0012;

void BSP_Tick_Init(void);
void sIdleTask(void);
void OSTickISR(void);
void OSCtxSw(void);
void configureSCIMode(void);
void InitLinb(void);
/**********************************************************************
* FUNCION :
* PURPOSE :
* CALLED BY:
**********************************************************************/
void main(void)
{
Device_init();

//
// Initialize device clock and peripherals
//
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);

Device_initGPIO();

Interrupt_initModule();

Interrupt_initVectorTable();

Board_init();

// BSP_Tick_Init();

// InitLinb();
//
// Configure the LIN module to operate in SCI mode
//
configureSCIMode();

SciFlashCallbackFunc();

for (;;)
{

}

}
/**********************************************************************
* FUNCION :
* PURPOSE :
* CALLED BY:
**********************************************************************/
//
// Configure SCI Mode - This function configures the LIN module to operate as
// an SCI with the specified settings.
//
void configureSCIMode(void)
{
//
// Enter LIN reset state to perform configurations
//
LIN_enterSoftwareReset(LINB_BASE);

//
// Switch LIN into SCI mode
//
LIN_enableSCIMode(LINB_BASE);

//
// Set the SCI communication mode to idle line
//
LIN_setSCICommMode(LINB_BASE, LIN_COMM_SCI_ADDRBIT);

//
// Set SCI to transmit one stop bit
//
LIN_setSCIStopBits(LINB_BASE,LIN_SCI_STOP_ONE);

//
// Disable parity check
//
LIN_disableSCIParity(LINB_BASE);

//
// Disable multi-buffer mode
//
LIN_disableMultibufferMode(LINB_BASE);

//
// Module set to complete operations when halted by debugger
//
LIN_setDebugSuspendMode(LINB_BASE, LIN_DEBUG_COMPLETE);

//
// Set character length as 8-bits
//
LIN_setSCICharLength(LINB_BASE, CHAR_LENGTH);

//
// Set to 1 character in response field
//
LIN_setSCIFrameLength(LINB_BASE, FRAME_LENGTH);

//
// Set the Baud Rate
//
// LIN_setBaudRatePrescaler(LINB_BASE, PRESCALER, DIVIDER);
LIN_setBaudRatePrescaler(LINB_BASE, 161, 12);
//
// disable Internal Loopback mode
//
LIN_disableIntLoopback(LINB_BASE);

//
// Enable interrupt for when a frame has been completely received
//
//LIN_enableSCIInterrupt(LINB_BASE, LIN_SCI_INT_RX);

//
// Set the interrupt priority to line 0 (high)
//
//LIN_setSCIInterruptLevel0(LINB_BASE, LIN_SCI_INT_RX);

//
// Exit LIN reset state
//
LIN_exitSoftwareReset(LINB_BASE);
}
//===========================================================================
// No more.
//===========================================================================