5 Serial Ports
5 – 30
IMASK = 6;
{enable SPORT1 interrupts}
{enable SPORT1}
AX0 = 0x0C1F;
{enable SPORT1 leave PWAIT,}
DM(0x3FFF) = AX0;
{BWAIT as default}
{Place first transfer value into TX1}
AX0 = DM(I0,M0);
TX1 = AX0;
RTS;
.ENDMOD;
Figure 5.24 Autobuffering Example Configuration Code
5.12
MULTICHANNEL FUNCTION
SPORT0 supports a multichannel function. In the multichannel mode of
operation, serial data is time-division multiplexed. Each subsequent word
belongs to the next consecutive channel so that, for example, a 24-word
block of data contains one word for each of 24 channels. SPORT0 supports
32 or 24 channels and can automatically select words for particular
channels while ignoring the others.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SPORT0 Control Register (Multichannel Version)
0x3FF6
MCE
(Multichannel Enable)
1 = Multichannel Operation
MCL (Multichannel Length)
0 = 24 Words
1 = 32 Words
1
MFD
(Multichannel
Frame Delay)
INVTDV (Invert Transmit Data Valid)
In single-channel mode, receive and transmit framing identifies the start of