Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 63683

Forum Post: RE: msp432 baud rate

$
0
0
Ok thanks for the explanation. Another question: If my uart clock is set to 12Mhz (SMCLK), reading the table i can choose different baud rate changing parameters. 1)Different baud rate change only the communication speed right? 2)If i want baudrate = 38400 i have (from table): UCOS16=1, UCBRx=19, UCBRFx=8, UCBRSx=0x65. Is it correct write as the code written below? // Configure UART (...) UCA0CTLW0 |= UCSSEL__SMCLK; // 12Mhz UCA0BR0 = 19; // 12000000/16/38400 UCA0BR1 = 0x00; UCA0MCTLW = 0x6500 | UCOS16 | 0x0080; (...)

Viewing all articles
Browse latest Browse all 63683

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>