English
Language : 

MC705P6ACPE Datasheet, PDF (43/98 Pages) Freescale Semiconductor, Inc – M68HC05 Microcontrollers
SIOP Registers
7.3 SIOP Registers
The SIOP is programmed and controlled by the SIOP control register (SCR) located at address $000A,
the SIOP status register (SSR) located at address $000B, and the SIOP data register (SDR) located at
address $000C.
7.3.1 SIOP Control Register (SCR)
This register is located at address $000A and contains two bits. Figure 7-3 shows the position of each bit
in the register and indicates the value of each bit after reset.
Address: $000A
Bit 7
6
5
4
3
2
1
Bit 0
Read: 0
0
0
0
0
0
SPE
MSTR
Write:
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 7-3. SIOP Control Register (SCR)
SPE — Serial Peripheral Enable
When set, the SPE bit enables the SIOP subsystem such that SDO/PB5 is the serial data output,
SDI/PB6 is the serial data input, and SCK/PB7 is a serial clock input in the slave mode or a serial clock
output in the master mode. Port B DDR and data registers can be manipulated as usual (except for
PB5); however, these actions could affect the transmitted or received data.
The SPE bit is readable at any time. However, writing to the SIOP control register while a transmission
is in progress will cause the SPIF and DCOL bits in the SIOP status register (see below) to operate
incorrectly. Therefore, the SIOP control register should be written once to enable the SIOP and then
not written to until the SIOP is to be disabled. Clearing the SPE bit while a transmission is in progress
will 1) abort the transmission, 2) reset the serial bit counter, and 3) convert the port B/SIOP port to a
general-purpose I/O port. Reset clears the SPE bit.
MSTR — Master Mode Select
When set, the MSTR bit configures the serial I/O port for master mode. A transfer is initiated by writing
to the SDR. Also, the SCK pin becomes an output providing a synchronous data clock dependent upon
the oscillator frequency. When the device is in slave mode, the SDO and SDI pins do not change
function. These pins behave exactly the same in both the master and slave modes.
The MSTR bit is readable and writeable at any time regardless of the state of the SPE bit. Clearing the
MSTR bit will abort any transfers that may have been in progress. Reset clears the MSTR bit as well
as the SPE bit, disabling the SIOP subsystem.
MC68HC705P6A Advance Information Data Sheet, Rev. 2.1
Freescale Semiconductor
43