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

Forum Post: RE: Baud Rate for the MSP430FG4618/F2013 experimenter board

$
0
0
I guess that something is wrong regarding MCLK (measure it) / baudrate setup on micro side. Why you don't use calibrated 8MHz DCO? You have MSP-FET , so you can try same thing with MSP-FET UART / CDC bridge. And here you can see part of the source code and my bridge in action with 2xx target device running on 16 MHz and UART on 4 Mbps. 288kbps should not be a problem for msp430. http://forum.43oh.com/topic/2972-sbw-msp430f550x-based-programmer/page-4#entry53730 mov.w #WDTPW + WDTHOLD, &WDTCTL mov.b &CALBC1_16MHZ, &BCSCTL1 mov.b &CALDCO_16MHZ, &DCOCTL bis.b #UCSWRST, &UCA0CTL1 bis.b #(BIT5 + BIT4), &P3SEL ; P3.4/P3.5 = TXD/RXD bis.b #UCSSEL_2, &UCA0CTL1 ; SMCLK ; 16000000 Hz 4000000 bps mov.b #004h, &UCA0BR0 mov.b #000h, &UCA0BR1 bis.b #(UCBRS_0 + UCBRF_0), &UCA0MCTL bic.b #UCSWRST, &UCA0CTL1 mov.w #70, R14 mov.b #32, R15 Loop bit.b #UCA0TXIFG, &IFG2 jnc Loop mov.b R15, &UCA0TXBUF add.b #1, R15 cmp.b #127, R15 jne Loop mov.b #32, R15 sub.w #1, R14 jnz Loop

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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