URGENT PLEASE REPLY .............NCB 1321x baud rate 300

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

URGENT PLEASE REPLY .............NCB 1321x baud rate 300

1,133 Views
bitasobhani
Contributor III

Hi all

I want to connect an optical port with baud rate 300 to 1321x NCB board. But the board baud rate can only be set from 1200 to 38400. I added 300 baud rate to existing table (red lines). It works but receives bytes with error or some bytes are missed. What should I do now?

Thanks

 

#ifndef gSystemClock_d
#define gSystemClock_d     16           /* 16 MHz. */
#endif

typedef uint16_t UartBaudRate_t;
#if gSystemClock_d == 8
#define gUARTBaudRate300_c      ((UartBaudRate_t) 0x0684)
#define gUARTBaudRate1200_c     ((UartBaudRate_t) 0x01A1)
#define gUARTBaudRate2400_c     ((UartBaudRate_t) 0x00D0)
#define gUARTBaudRate4800_c     ((UartBaudRate_t) 0x0068)
#define gUARTBaudRate9600_c     ((UartBaudRate_t) 0x0034)
#define gUARTBaudRate19200_c    ((UartBaudRate_t) 0x001A)
#define gUARTBaudRate38400_c    ((UartBaudRate_t) 0x0011)
#define gUARTBaudRate57600_c    ((UartBaudRate_t) 0x0009)
#define gUARTBaudRate115200_c   ((UartBaudRate_t) 0x0004)   /* Might not work for all clients */
#endif

#if gSystemClock_d == 12
#define gUARTBaudRate300_c      ((UartBaudRate_t) 0x09C4)
#define gUARTBaudRate1200_c     ((UartBaudRate_t) 0x0271)
#define gUARTBaudRate2400_c     ((UartBaudRate_t) 0x0139)
#define gUARTBaudRate4800_c     ((UartBaudRate_t) 0x009C)
#define gUARTBaudRate9600_c     ((UartBaudRate_t) 0x004E)
#define gUARTBaudRate19200_c    ((UartBaudRate_t) 0x0027)
#define gUARTBaudRate38400_c    ((UartBaudRate_t) 0x0014)
#define gUARTBaudRate57600_c    ((UartBaudRate_t) 0x000D)
#define gUARTBaudRate115200_c   ((UartBaudRate_t) 0x0007)
#endif

#if gSystemClock_d == 16
#define gUARTBaudRate300_c      ((UartBaudRate_t) 0x0D04)
#define gUARTBaudRate1200_c     ((UartBaudRate_t) 0x0341)
#define gUARTBaudRate2400_c     ((UartBaudRate_t) 0x01A1)
#define gUARTBaudRate4800_c     ((UartBaudRate_t) 0x00D0)
#define gUARTBaudRate9600_c     ((UartBaudRate_t) 0x0068)
#define gUARTBaudRate19200_c    ((UartBaudRate_t) 0x0034)
#define gUARTBaudRate38400_c    ((UartBaudRate_t) 0x001A)
#define gUARTBaudRate57600_c    ((UartBaudRate_t) 0x0011)
#define gUARTBaudRate115200_c   ((UartBaudRate_t) 0x0009)   /* Might not work for all clients */
#endif

#if gSystemClock_d == 16780
#define gUARTBaudRate300_c      ((UartBaudRate_t) 0x0DA8)
#define gUARTBaudRate1200_c     ((UartBaudRate_t) 0x036A)
#define gUARTBaudRate2400_c     ((UartBaudRate_t) 0x01B5)
#define gUARTBaudRate4800_c     ((UartBaudRate_t) 0x00DA)
#define gUARTBaudRate9600_c     ((UartBaudRate_t) 0x006D)
#define gUARTBaudRate19200_c    ((UartBaudRate_t) 0x0037)
#define gUARTBaudRate38400_c    ((UartBaudRate_t) 0x001B)
#define gUARTBaudRate57600_c    ((UartBaudRate_t) 0x0012)
#define gUARTBaudRate115200_c   ((UartBaudRate_t) 0x0009)
#endif
Labels (1)
0 Kudos
Reply
1 Reply

395 Views
peg
Senior Contributor IV

Hello,

 

This does not deserve a new thread.

This should remain as a continuation of your original thread.

This way the whole story stays together for other searching in the future.

Perhaps a moderator could lock this one.

0 Kudos
Reply