how to initializatize/re-configure usart?




Hi. I want to change reset uart and change baud rate with an interface
(combobox) on windows. At the beginning default baud rate is 2400.

ME2 |= UTXE1 + URXE1; // Enable USART1 TXD/RXD

UCTL1 |= CHAR; // 8-bit character
UTCTL1 |= SSEL0; // UCLK = ACLK
UBR01 = 0x0D; // 32k/2400 - 13.65
UBR11 = 0x00;
UMCTL1 = 0x6B; // Modulation
UCTL1 &= ~SWRST; // Initialize USART state machine
IE2 |= URXIE1; // Enable USART1 RX interrupt

...

how can i reset this later? I tried something like this but it doesn't
work

....
case 3: // set baud rate 9600
UCTL1 |= CHAR; // 8-bit character
UTCTL1 |= SSEL0; // UCLK = ACLK
UBR01=0x03;
UBR11=0x00;
UMCTL1=0x29;
UCTL1 &= ~SWRST;
IE2 |= URXIE1;
default;
.....


How can I do it?



.



Relevant Pages

  • Re: how to initializatize/re-configure usart?
    ... I want to change reset uart and change baud rate with an interface ... on windows. ... At the beginning default baud rate is 2400. ...
    (comp.arch.embedded)
  • Re: Local Printing with IE
    ... the baud rate etc. are right. ... Did you check Windows CE ... Windows CE 5.0-based device which includes printing support. ... Can anyone confirm successfully printing to a local serial printer from ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Com Port error
    ... message in a command prompt window in a dialogue box titled MS-DOS ... "Driver doesn't support baud rate. ... Windows 98 allows such direct hardware access, ...
    (microsoft.public.windowsxp.basics)
  • Re: Problems with lircd
    ... Mabye something to do with the baud rate? ... I'm going to jump into ... windows and see what I have girder set to. ...
    (comp.os.linux.misc)