MC68HC12 MOTOROLA [Motorola, Inc], MC68HC12 Datasheet - Page 294

no-image

MC68HC12

Manufacturer Part Number
MC68HC12
Description
The MC68HC912DT128A microcontroller unit (MCU) is a 16-bit device composed of standard on-chip peripherals including a 16-bit central processing unit
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
SP0CR1 — SPI Control Register 1
Multiple Serial Interface
16.5.4 Bidirectional Mode (MOMI or SISO)
16.5.5 Register Descriptions
Technical Data
294
RESET:
When SPE=1
Bidirectional
SPC0=0
SPC0=1
Normal
Mode
Mode
SPIE
Bit 7
0
SWOM enables open drain output. PS4 becomes GPIO.
Figure 16-6. Normal Mode and Bidirectional Mode
Serial Out
Serial Out
Serial In
Serial In
SPI
SPI
SPE
SWOM enables open drain output.
6
0
In bidirectional mode, the SPI uses only one serial data pin for external
device interface. The MSTR bit decides which pin to be used. The MOSI
pin becomes serial data I/O (MOMI) pin for the master mode, and the
MISO pin becomes serial data I/O (SISO) pin for the slave mode. The
direction of each serial I/O pin depends on the corresponding DDRS bit.
Control and data registers for the SPI subsystem are described below.
The memory address indicated for each register is the default address
that is in use after reset. For more information refer to
Read or write anytime.
SPIE — SPI Interrupt Enable
Master Mode
DDRS5
DDRS5
MSTR=1
0 = SPI interrupts are inhibited
SWOM
5
0
Multiple Serial Interface
MSTR
MOMI
4
0
PS4
MO
MI
CPOL
3
0
SWOM enables open drain output. PS5 becomes GPIO.
Serial Out
Serial Out
Serial In
Serial In
SPI
SPI
SWOM enables open drain output.
CPHA
2
1
Slave Mode
DDRS4
DDRS4
MSTR=0
MC68HC912DT128A — Rev 4.0
SSOE
1
0
Operating
LSBF
Bit 0
SISO
PS5
SO
0
SI
MOTOROLA
Modes.
$00D0

Related parts for MC68HC12