English
Language : 

MC68HC08AZ32A Datasheet, PDF (257/456 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Freescale Semiconductor, Inc.
Serial Peripheral Interface (SPI)
I/O Registers
MODFEN — Mode Fault Enable
This read/write bit, when set to ‘1’, allows the MODF flag to be set. If
the MODF flag is set, clearing the MODFEN does not clear the MODF
flag. If the SPI is enabled as a master and the MODFEN bit is low,
then the SS pin is available as a general purpose I/O.
If the MODFEN bit is set, then this pin is not available as a general
purpose I/O. When the SPI is enabled as a slave, the SS pin is not
available as a general purpose I/O regardless of the value of
MODFEN. See SS (Slave Select) on page 250.
If the MODFEN bit is low, the level of the SS pin does not affect the
operation of an enabled SPI configured as a master. For an enabled
SPI configured as a slave, having MODFEN low only prevents the
MODF flag from being set. It does not affect any other part of SPI
operation. See Mode Fault Error on page 241.
SPR1 and SPR0 — SPI Baud Rate Select
In master mode, these read/write bits select one of four baud rates as
shown in Table 16-5. SPR1 and SPR0 have no effect in slave mode.
Reset clears SPR1 and SPR0.
Table 16-5. SPI Master Baud Rate Selection
SPR1:SPR0
00
01
10
11
Baud rate divisor (BD)
2
8
32
128
The following formula is used to calculate the SPI baud rate:
Baud rate = C-----G2-----M×-----BO----D-U-----T--
where:
CGMOUT = base clock output of the clock generator module (CGM)
BD = baud rate divisor
MC68HC08AZ32A — Rev 1.0
MOTOROLA
Serial Peripheral Interface (SPI)
For More Information On This Product,
Go to: www.freescale.com
Technical Data
257