Other Parts Discussed in Thread: MSP430F247
I have used the same code many times to set up the UART0 at 9600. when using a crystal tied to xin/xout. Now i'm using a MSP430F247 with an external 32Khz clock tied to XIN only. The UART receives data okay at 9600, but when I transmit I get all 0's or all ones? I looked at P5.6(ACLK) and it is at 32KHZ. Am i missing something?.
I use this code to set up the UART.
BCSCTL3=XT2S_3+LFXT1S_3; //clock set up
P3SEL = 0x30; // all pins of PORT3 dio except 4,5 are usbtxrx
P3DIR = 0xF7; //ALL OUT EXCEPT P3.3,4,5 usb
P3OUT = 0xCE;
UCA0CTL1=01;//reset as puc
UCA0CTL1 |= UCSSEL_1; // CLK = ACLK
UCA0BR0 = 0x03; // 32kHz/9600 = 3.41 use 3
UCA0BR1 = 0x00; //
UCA0MCTL = UCBRS1 + UCBRS0; // Modulation UCBRSx = 3
UCA0CTL1 &= ~UCSWRST;