MC68HC912B32MFU8 MOTOROLA [Motorola, Inc], MC68HC912B32MFU8 Datasheet - Page 95

no-image

MC68HC912B32MFU8

Manufacturer Part Number
MC68HC912B32MFU8
Description
16-Bit Microcontroller
Manufacturer
MOTOROLA [Motorola, 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
MC68HC912B32
MC68HC912B32TS/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
time of the error. Automatically cleared by a read of the SP0SR (with WCOL set) followed by an access
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
SPC0
0
0
1
1
0
0
1
1
0
1
1
Table 31 SPI Clock Rate Selection
SPR0
5
0
0
5
0
0
0
1
0
1
0
1
0
1
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
MOTOROLA
5
$00D2
$00D3
95

Related parts for MC68HC912B32MFU8