Multiple Serial Interface
68HC(9)12DG128 Rev 1.0
248
Multiple Serial Interface
MOTOROLA
Read anytime (normally only after SPIF flag set). Write anytime (see
WCOL write collision flag).
Reset does not affect this address.
This 8-bit register is both the input and output register for SPI data.
Reads of this register are double buffered but writes cause data to be
written directly into the serial shifter. In the SPI system the 8-bit data
register in the master and the 8-bit data register in the slave are linked
by the MOSI and MISO wires to form a distributed 16-bit register. When
a data transfer operation is performed, this 16-bit register is serially
shifted eight bit positions by the SCK clock from the master so the data
is effectively exchanged between the master and the slave. Note that
some slave devices are very simple and either accept data from the
master without returning data to the master or pass data to the master
without requiring data from the master.
Port S
In all modes, port S bits PS[7:0] can be used for either general-purpose
I/O, or with the SCI and SPI subsystems. During reset, port S pins are
configured as high-impedance inputs (DDRS is cleared).
Read anytime (inputs return pin level; outputs return pin driver input
level). Write data stored in internal latch (drives pins only if configured
for output). Writes do not change pin state when pin configured for SPI
or SCI output.
SP0DR
— SPI Data Register
$00D5
Bit 7
Bit 7
0
6
6
0
5
5
0
4
4
0
3
3
0
2
2
0
1
1
0
Bit 0
Bit 0
0
RESET:
PORTS
— Port S Data Register
$00D6
Bit 7
PS7
SS
CS
6
5
4
3
2
1
Bit 0
PS0
RXD0
PS6
SCK
PS5
MOSI
MOMI
PS4
MISO
SISO
PS3
TXD1
PS2
RXD1
PS1
TXD0
Pin
Function
22-msi