English
Language : 

MC68HC08AS32A Datasheet, PDF (217/296 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Serial Peripheral Interface (SPI)
Functional Description
The generic names of the SPI I/O registers are:
• SPI control register (SPCR)
• SPI status and control register (SPSCR)
• SPI data register (SPDR)
Table 15-2 shows the names and the addresses of the SPI I/O registers.
Table 15-2. I/O Register Addresses
Register Name
SPI control register
SPI status and control register
SPI data register
Address
$0010
$0011
$0012
15.4 Functional Description
Figure 15-2 summarizes the SPI I/O registers and Figure 15-3 shows the structure
of the SPI module.
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.
Addr.
$0010
$0011
$0012
Register Name
SPI Control Register Read:
(SPCR) Write:
See page 234. Reset:
SPI Status and Control Register Read:
(SPSCR) Write:
See page 236. Reset:
SPI Data Register Read:
(SPDR) Write:
See page 238. Reset:
Bit 7
SPRIE
0
SPRF
0
R7
T7
6
5
R SPMSTR
0
ERRIE
1
OVRF
0
0
R6
R5
T6
T5
= Unimplemented
4
CPOL
0
MODF
3
CPHA
1
SPTE
0
1
R4
R3
T4
T3
Unaffected by reset
2
SPWOM
0
MODFEN
0
R2
T2
1
SPE
0
SPR1
0
R1
T1
Figure 15-2. SPI I/O Register Summary
Bit 0
SPTIE
0
SPR0
0
R0
T0
MC68HC08AS32A — Rev. 1
MOTOROLA
Serial Peripheral Interface (SPI)
For More Information On This Product,
Go to: www.freescale.com
Data Sheet
217