Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

delay time for SoftwareSerial in MSP430F5529 launchpad

$
0
0

//formula is roughly rxintra=rxstop=tx = F_CPU / baud / 3 - 5/3
//    so, delay = 16000000 / 3 / baud - 5/3
//      and, rxcenter = 1/2 rxintra
_DELAY_TABLE table[] =
{
  //  baud    rxcenter   rxintra    rxstop    tx
  {115200,   15,        32,        32,       32,      },
  {57600,    38,        78,        78,       78,      },
  {38400,    61,        123,       123,      123,     },
  {31250,    72,        155,       155,      155,     },
  {28800,    80,        170,       170,      170,     },
  {19200,    126,       262,       262,      262,     },
  {14400,    177,       353,       353,      353,     },
  {9600,     265,       540,       540,      540,     },
  {4800,     547,       1095,      1095,     1095,    },
  {2400,     1103,      2190,      2190,     2190,    },
  {1200,     2200,      4400,      4400,     4400,    },
  {300,      8881,      17762,     17762,    17762,   },
};

 

formula given above is not fitting to calculating DELAY_TIME for 16MHz.so how to calculate this value for F_CPU 25Mhz. because i want to using UART at 25Mhz 9600 Baud rate.so please help me to calculate above data for my MSP430F5529 launchpad 25Mhz F_CPU.
 


Viewing all articles
Browse latest Browse all 2077

Trending Articles