English
Language : 

MC68HC708MP16 Datasheet, PDF (255/398 Pages) Freescale Semiconductor, Inc – Microcontrollers
Serial Peripheral Interface Module (SPI)
Addr.
$001B
$001C
$001D
Name
Bit 7 6
5
4
Read:
SPI Control Register
(SPCR)
Write:
Reset:
SPRIE
0
DMAS
0
SPMSTR
1
CPOL
0
Read:
SPI Status and Control
Register (SPSCR)
Write:
Reset:
SPRF
0
ERRIE
0
OVRF
0
MODF
0
3
2
1 Bit 0
CPHA SPWOM SPE SPTIE
1
SPTE
0
0
MODFEN SPR1
0
SPR0
1
0
0
0
Read: R7
R6
R5
R4
R3
R2
R1
R0
SPI Data Register
(SPDR)
Write:
T7
T6
T5
T4
T3
T2
T1
T0
Reset:
Indeterminate after reset
= Unimplemented
Figure 13-2. SPI I/O Register Summary
The SPI module allows full-duplex, synchronous, serial communication
between the MCU and peripheral devices, including other MCUs.
Software can poll the SPI status flags or SPI operation can be interrupt-
driven. All SPI interrupts can be serviced by the CPU.
The following paragraphs describe the operation of the SPI module.
13.5.1 Master Mode
The SPI operates in master mode when the SPI master bit, SPMSTR, is
set.
NOTE:
Configure the SPI modules as master or slave before enabling them.
Enable the master SPI before enabling the slave SPI. Disable the slave
SPI before disabling the master SPI. (See 13.14.1 SPI Control
Register.)
MC68HC708MP16 — Rev. 3.1
Freescale Semiconductor
Serial Peripheral Interface Module (SPI)
Technical Data
255