Controlling and resetting the port, 3 controlling and resetting the port – Texas Instruments TMS320C2XX User Manual
Page 376

Controlling and Resetting the Port
9-8
9.3
Controlling and Resetting the Port
The synchronous serial port control register (SSPCR) controls the operation
of the synchronous serial port. To configure the serial port, a total of two writes
to the SSPCR are necessary:
1) Write your choices to the configuration bits and place the port in reset by
writing zeros to SSPCR bits XRST and RRST.
2) Write your choices to the configuration bits and take the port out of reset
by writing ones to bits XRST and RRST.
Note:
Set the DLB bit of the SSPCR to zero to disable digital loopback mode, which
is not normally used in serial transfers. See subsection 9.7.1,
Test Bits, for
a description of digital loopback mode.
Make sure you write your configuration choices to the SSPCR during both
writes.
Figure 9–3 shows the 16-bit memory-mapped SSPCR. Following the figure is
a description of each of the bits.
Figure 9–3. Synchronous Serial Port Control Register (SSPCR)
— I/O-Space Address FFF1h
ББ
ББ
БББББ
БББББ
15
ББББ
ББББ
14
ББББББ
ББББББ
13
БББББ
БББББ
12
ББББ
ББББ
11
ББББ
ББББ
10
ББББ
ББББ
9
ББББ
ББББ
8
Б
Б
ББ
ББ
ББ
БББББ
Б
БББ
Б
БББББ
FREE
ББББ
БББ
Б
ББББ
SOFT
ББББББ
Б
ББББ
Б
ББББББ
TCOMP
БББББ
Б
БББ
Б
БББББ
RFNE
ББББ
Б
ББ
Б
ББББ
FT1
ББББ
Б
ББ
Б
ББББ
FT0
ББББ
Б
ББ
Б
ББББ
FR1
ББББ
Б
ББ
Б
ББББ
FR0
Б
Б
Б
ББ
БББББ
R/W–0
ББББ
R/W–0
ББББББ
R–0
БББББ
R–0
ББББ
R/W–0
ББББ
R/W–0
ББББ
R/W–0
ББББ
R/W–0
Б
ББ
ББ
ББ
БББББ
Б
БББ
Б
БББББ
7
ББББ
БББ
Б
ББББ
6
ББББББ
Б
ББББ
Б
ББББББ
5
БББББ
Б
БББ
Б
БББББ
4
ББББ
Б
ББ
Б
ББББ
3
ББББ
Б
ББ
Б
ББББ
2
ББББ
Б
ББ
Б
ББББ
1
ББББ
Б
ББ
Б
ББББ
0
Б
Б
Б
ББ
ББ
БББББ
БББББ
OVF
ББББ
ББББ
IN0
ББББББ
ББББББ
XRST
БББББ
БББББ
RRST
ББББ
ББББ
TXM
ББББ
ББББ
MCM
ББББ
ББББ
FSM
ББББ
ББББ
DLB
Б
Б
ББ
ББ
БББББ
БББББ
R–0
ББББ
ББББ
R–0
ББББББ
ББББББ
R/W–1
БББББ
БББББ
R/W–1
ББББ
ББББ
R/W–0
ББББ
ББББ
R/W–0
ББББ
ББББ
R/W–0
ББББ
ББББ
R/W–0
Б
Б
ББ
ББ
БББББББББББББББББББББББББББББ
БББББББББББББББББББББББББББББ
Note:
R=Read access; W=Write access; value following dash (–) is value after reset.
Б
Б
Bits 15–14
FREE, SOFT. These bits are special emulation bits that determine the state
of the serial port clock when a breakpoint is encountered in the high-level lan-
guage debugger. If the FREE bit is set to 1, then, upon a breakpoint, the clock
continues to run (that is, free runs) and data is shifted out. In this case, SOFT
is a
don’t care. If FREE = 0, then SOFT takes effect. The effects of FREE and
SOFT are summarized in Table 9–2. At reset, immediate stop mode is se-
lected (FREE = 0 and SOFT = 0).