Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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
 

arthur0

Full Member level 2
Joined
Nov 28, 2003
Messages
131
Helped
49
Reputation
98
Reaction score
36
Trophy points
1,308
Location
Stockholm, Sweden
Activity points
1,218
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top