MC68HC708XL36 FREESCALE [Freescale Semiconductor, Inc], MC68HC708XL36 Datasheet - Page 205

no-image

MC68HC708XL36

Manufacturer Part Number
MC68HC708XL36
Description
HCMOS Microcontroller Unit
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Master Mode
5-spi_c
MOTOROLA
SPI Status and Control Register (SPSCR)
Register Name
SPI Control Register (SPCR)
SPI Data Register (SPDR)
NOTE:
Register
Address
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, and the
transmitter empty (SPTE) and receiver full (SPRF) flags can also be
configured for DMA service.
During DMA transmissions, the DMA fetches data from memory for the
SPI to transmit and/or the DMA stores received data in memory.
The following paragraphs describe the operation of the SPI module.
The SPI operates in master mode when the SPI master bit, SPMSTR, is
set.
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.
Table 2. I/O Register Address Summary
Freescale Semiconductor, Inc.
Figure 2. SPI I/O Register Summary
For More Information On This Product,
Reset:
Reset:
Reset:
Read:
Write:
Read:
Write:
Read:
Write:
SPCR
$0010
Go to: www.freescale.com
SPRIE
Bit 7
SPRF
R7
T7
0
0
= Unimplemented
ERRIE
DMAS
R6
T6
6
SPI
0
0
SPSCR
$0011
SPMSTR
OVRF
R5
T5
5
1
0
Unaffected by Reset
MODF
CPOL
R4
T4
4
0
0
SPDR
$0012
CPHA
SPTE
R3
T3
3
0
1
MODFEN
SPWOM
R2
T2
2
0
0
Functional Description
MC68HC708XL36
SPR1
SPE
R1
T1
1
0
0
SPTIE
Bit 0
SPR0
R0
T0
0
0
205
SPI

Related parts for MC68HC708XL36