O'Reilly logo

Microcontroller Programming and Interfacing Texas Instruments MSP430 by Daniel J. Pack, Steven F. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9.3. MSP430 UART 273
0x_0
0x_1
0x_2
0x_3
0x_4
0x_5
0x_6
0x_7
0x_8
0x_9
0x_A
0x_B
0x_C
0x_D
0x_E
0x_F
0x0_
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI
0x1_
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
0x2_
SP
!
#
$
%
&
(
)
*
+
-
.
/
0x3_
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
0x4_
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
0x5_
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
0x6_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
0x7_
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
DEL
Most significant digit
Least significant digit
Figure 9.2: ASCII Code.The ASCII code is used to encode alphanumeric characters.The “0x indicates
hexadecimal notation in the C programming language.
9.3 MSP430 UART
The UART system is located within the USCI module A. In this section, we discuss UART features,
provide an overview of the UART hardware operation and character format, discuss how to set
the UART Baud rate, provide an overview of UART related registers, and conclude with several
examples.
9.3.1 UART FEATURES
The MSP430 microcontroller is equipped with a powerful and flexible UART system. To select the
UART mode the Synchronous Mode Enable bit (UCSYNC bit) located in the UCSI_Ax Control
Register 0 must be cleared to 0. This places the system in the asynchronous mode when, in this
mode, serial data is transmitted outside of the microcontroller via the UCAxTXD pin and received
via the UCAxRXD pin. (Note: The “x designates which USCI A module is employed (e.g., 0, 1,
2).)
The UART system provides a number of features that allow the MSP430 to communicate with
a wide variety of peripheral devices or another microcontroller. These features include [slau208g]:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required