English
Language : 

MC68HC05P4A Datasheet, PDF (33/72 Pages) Advanced Analogic Technologies – Microcontrollers
SIOP Registers
MSTR — Master Mode Bit
When set, this bit configures the SIOP for master mode. This means that the transmission is initiated
by a write to the data register and the SCK pin becomes an output providing a synchronous data clock
at a fixed rate of E (bus clock) divided by four. While the device is in master mode, the SDO and SDI
pins do not change function. These pins behave exactly as they would in slave mode. Reset clears this
bit and configures the SIOP for slave operation. MSTR may be set at any time regardless of the state
of SPE. Clearing MSTR will abort any transmission in progress.
7.3.2 SIOP Status Register
This register is located at address $000B and contains only two bits.
Address: $000B
Bit 7
6
5
4
3
2
1
Bit 0
Read:
DCOL
0
0
0
0
0
0
SPIF
Write:
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 7-4. SIOP Status Register (SSR)
SPIF — Serial Peripheral Interface Flag Bit
This bit is set upon occurrence of the last rising clock edge and indicates that a data transfer has taken
place. It has no effect on any further transmissions and can be ignored without problem. SPIF is
cleared by reading the SSR with SPIF set followed by a read or write of the serial data register. If it is
cleared before the last edge of the next byte, it will be set again. Reset clears this bit.
DCOL — Data Collision Bit
This is a read-only status bit which indicates that an invalid access to the data register has been made.
This can occur any time after the first falling edge of SCK and before SPIF is set. A read or write of the
data register during this time will result in invalid data being transmitted or received.
NOTE
DCOL is cleared by reading the status register with SPIF set followed by a
read or write of the data register. If the last part of the clearing sequence is
done after another transmission has been started, DCOL will be set again.
If the DCOL bit is set and the SPIF is not set, clearing the DCOL requires
turning the SIOP off then turning it back on. Reset also clears this bit.
MC68HC05P4A Data Sheet, Rev. 7.1
Freescale Semiconductor
33