Hello,
I am trying to increase the baud rate on uca3 from 9600 to 115200. Here is the current code that I have for the 9600 configuration( which works fine ):
unsigned divider = 104;
unsigned char fM = 1;
unsigned char sM = 0;
/* Place UCA3 in Reset to be configured */
UCA3CTL1 = UCSWRST;
/* Configure */
UCA3CTL1 = UCSSEL1;
UCA3BR0 = divider & 0xFF;
UCA3BR1 = divider >> 8;
UCA3MCTL = ( (fM & 0xF) << 4 |(sM & 0x7) << 1);
/* Take UCA3 out of reset */
UCA3CTL1 &= ~UCSWRST;
I attempted to increase the baud rate to 115200. from the baud rate calculator i got the following settings:
UCA3CTL1 |= UCSSEL1;
UCA3BR0 = 0x08;
UCA3BR1 = 0x00;
UCA3MCTL = UCBRS_0 + UCBRF_0;
but i am unable to send character streams to the usca3 ports and trigger the appropriate interrupts. can you confirm that my settings are right for the 115200? if not what should they be and how can I figure them out in the future. specifically, how would i go about calculating the modulation for the baud rate and setting the UCAxMCTL register?
thanks.