Serial Peripheral Interface Module (SPI)
MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1
202
Freescale Semiconductor
When CPHA = 1, the first SPSCK cycle begins with an edge on the SPSCK line from its inactive to its
active level. The SPI clock rate (selected by SPR1:SPR0) affects the delay from the write to SPDR and
the start of the SPI transmission. See
Figure 15-8
The internal SPI clock in the master is a free-running
derivative of the internal MCU clock. To conserve power, it is enabled only when both the SPE and
SPMSTR bits are set. SPSCK edges occur halfway through the low time of the internal MCU clock. Since
the SPI clock is free-running, it is uncertain where the write to the SPDR occurs relative to the slower
SPSCK. This uncertainty causes the variation in the initiation delay shown in
Figure 15-8
. This delay is
no longer than a single SPI bit time. That is, the maximum delay is two MCU bus cycles for DIV2, eight
MCU bus cycles for DIV8, 32 MCU bus cycles for DIV32, and 128 MCU bus cycles for DIV128.
Figure 15-8. Transmission Start Delay (Master)
WRITE
TO SPDR
INITIATION DELAY
BUS
MOSI
SPSCK
CPHA = 1
SPSCK
CPHA = 0
SPSCK CYCLE
NUMBER
MSB
BIT 6
1
2
CLOCK
WRITE
TO SPDR
EARLIEST LATEST
SPSCK = INTERNAL CLOCK
÷
2;
EARLIEST
LATEST
2 POSSIBLE START POINTS
SPSCK = INTERNAL CLOCK
÷
8;
8 POSSIBLE START POINTS
EARLIEST
LATEST
SPSCK = INTERNAL CLOCK
÷
32;
32 POSSIBLE START POINTS
EARLIEST
LATEST
SPSCK = INTERNAL CLOCK
÷
128;
128 POSSIBLE START POINTS
WRITE
TO SPDR
WRITE
TO SPDR
WRITE
TO SPDR
BUS
CLOCK
BIT 5
3
BUS
CLOCK
BUS
CLOCK
BUS
CLOCK
INITIATION DELAY FROM WRITE SPDR TO TRANSFER BEGIN
Содержание MC68HC908MR16
Страница 2: ......
Страница 6: ...List of Chapters MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 6 Freescale Semiconductor...
Страница 78: ...Computer Operating Properly COP MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 78 Freescale Semiconductor...
Страница 96: ...External Interrupt IRQ MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 96 Freescale Semiconductor...
Страница 112: ...Input Output I O Ports PORTS MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 112 Freescale Semiconductor...
Страница 114: ...Power On Reset POR MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 114 Freescale Semiconductor...
Страница 180: ...Serial Communications Interface Module SCI MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 180 Freescale Semiconductor...
Страница 194: ...System Integration Module SIM MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 194 Freescale Semiconductor...
Страница 234: ...Timer Interface A TIMA MC68HC908MR32 MC68HC908MR16 Data Sheet Rev 6 1 234 Freescale Semiconductor...
Страница 281: ......