Hello!
So it means you have an MSP430 with a serial port chip,
for instance MAX3232, and you try to send data with the PC, right?
Just in case: can you check that:
- The bitrate you set (apparently 2400) is also the same on the PC.
- Check the SMClock with a scope to check that it's really the value you
intended to use. There is something unclear: why do you check the
DCO calibration values if you use a 3.39 MHz crystal?
Basically in your code, you don't set any frequency, you just check
the calibration values. So the frequency should be the default DCO.
This means around 1 MHz. So the fastest way to get a start: output
SMCLOCK on one pin (check the data sheet for your device). Then
adapt the UCBRs accordingly.
Another thing: did you check TI's sample codes? I am sure there are
programs pretty close to what you want to do.
Dora.