How to choose n calculate the UMCTL0 in msp430????

Status
Not open for further replies.

bettyxyz1028

Newbie level 6
Joined
Sep 25, 2009
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,398
There is a table about commonly used baud rate on user guide.

However the frequency i use is 2.097152Mhz = 1.048576Mhz * 2 which is not in the table...

I want the baud rate to be 9600. So i set:


UBR00 = 218; // 109 *2

UBR01=0;



But i dunt knwo how to set the modulation

UMCTL0=??



Any one can help??? Plus the value of UCBR0 correct? I juz 2 times the UCBR0 of 1.048576Mhz. Tks very much
 

I made this excel file that should be able to compute the bits for you.
You should only edit the yellow cells to suit your needs, then start with bit 0 of UMCTL0 and choose either 1 or 0 so that the absolute error in percent is minimum. Continue down with the following bits.

Arthur
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…