mc68hc912bl16 Freescale Semiconductor, Inc, mc68hc912bl16 Datasheet - Page 99

no-image

mc68hc912bl16

Manufacturer Part Number
mc68hc912bl16
Description
16-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
SP0BR — SPI Baud Rate Register
SPR[2:0] — SPI Clock (SCK) Rate Select Bits
SP0SR — SPI Status Register
SPIF — SPI Interrupt Request
WCOL — Write Collision Status Flag
MC68HC912BL16TS/D
RESET:
RESET:
Read anytime. Write anytime.
At reset, E Clock divided by 2 is selected.
These bits are used to specify the SPI clock rate.
Read anytime. Write has no meaning or effect.
SPIF is set after the eighth SCK cycle in a data transfer and it is cleared by reading the SP0SR register
(with SPIF set) followed by an access (read or write) to the SPI data register.
The MCU write is disabled to avoid writing over the data being transferred. No interrupt is generated
because the error status flag can be read upon completion of the transfer that was in progress at the
NOTES:
#1
#2
#3
#4
1. The serial pin control 0 bit enables bidirectional configurations.
2. Slave output is enabled if DDS4 = 1, SS = 0 and MSTR = 0. (#1, #3)
3. Master output is enabled if DDS5 = 1 and MSTR = 1. (#2, #4)
4. SCK output is enabled if DDS6 = 1 and MSTR = 1. (#2, #4)
5. SS output is enabled if DDS7 = 1, SSOE = 1 and MSTR = 1. (#2, #4)
Pin Mode
SPIF
Bidirectional
Bit 7
Bit 7
0
0
0
Normal
SPR2
0
0
0
0
1
1
1
1
WCOL
6
0
0
6
0
SPR1
Freescale Semiconductor, Inc.
SPC0
0
0
1
1
0
0
1
1
For More Information On This Product,
0
1
1
Table 32 SPI Clock Rate Selection
SPR0
5
0
0
5
0
0
0
1
0
1
0
1
0
1
Go to: www.freescale.com
MSTR
0
1
0
1
E Clock
MODF
Divisor
128
256
4
0
0
4
0
16
32
64
2
4
8
Slave Out
Master In
Slave I/O
MISO
GPI/O
E Clock = 4 MHz
Frequency at
3
0
0
3
0
0
62.5 kHz
31.3 kHz
15.6 kHz
2.0 MHz
1.0 MHz
500 kHz
250 kHz
125 kHz
2
Master Out
Master I/O
Slave In
MOSI
SPR2
GPI/O
2
0
2
0
0
E Clock = 8 MHz
3
Frequency at
62.5 kHz
31.3 kHz
4.0 MHz
2.0 MHz
1.0 MHz
500 kHz
250 kHz
125 kHz
SPR1
SCK Out
SCK Out
SCK In
SCK In
SCK
1
0
1
0
0
4
SPR0
Bit 0
Bit 0
0
0
0
SS I/O
SS I/O
SS In
SS In
SS
5
$00D2
$00D3
99

Related parts for mc68hc912bl16