English
Language : 

MC908AZ60ACFUER Datasheet, PDF (206/414 Pages) Freescale Semiconductor, Inc – To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to:
Serial Peripheral Interface (SPI)
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 19-2 shows the names and the addresses of the SPI I/O registers.
Table 19-2. I/O Register Addresses
Register Name
SPI Control Register (SPCR)
SPI Status and Control Register (SPSCR)
SPI Data Register (SPDR)
Address
$0010
$0011
$0012
19.4 Functional Description
Figure 19-1 summarizes the SPI I/O registers and Figure 19-2 shows the structure of the SPI module.
Addr
Register Name
R/W Bit 7
6
5
4
3
2
$0010
SPI Control Register
(SPCR)
Read:
Write:
SPRIE
R
SPMSTR CPOL CPHA SPWOM
Reset: 0
0
1
0
1
0
$0011
SPI Status and Control Register
(SPSCR)
Read:
Write:
SPRF
ERRIE
OVRF
MODF
SPTE
MODFEN
Reset: 0
0
0
0
1
0
$0012
SPI Data Register Read: R7
R6
R5
R4
R3
R2
(SPDR) Write: T7
T6
T5
T4
T3
T2
Reset:
Unaffected by Reset
R = Reserved
= Unimplemented
Figure 19-1. SPI I/O Register Summary
1
SPE
0
SPR1
0
R1
T1
Bit 0
SPTIE
0
SPR0
0
R0
T0
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.
MC68HC908AZ60A • MC68HC908AS60A • MC68HC908AS60E Data Sheet, Rev. 6
206
Freescale Semiconductor