sc9s12hy64j0vllr Freescale Semiconductor, Inc, sc9s12hy64j0vllr Datasheet - Page 465

no-image

sc9s12hy64j0vllr

Manufacturer Part Number
sc9s12hy64j0vllr
Description
S12 Microcontrollers Mcu 16-bit Hcs12 Cisc 32kb Flash 5v Tray
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1
Freescale Semiconductor
MODFEN
n is used later in this document as a placeholder for the selected transfer width.
BIDIROE
SPISWAI
XFRW
SPC0
Field
6
4
3
1
0
Transfer Width — This bit is used for selecting the data transfer width. If 8-bit transfer width is selected, SPIDRL
becomes the dedicated data register and SPIDRH is unused. If 16-bit transfer width is selected, SPIDRH and
SPIDRL form a 16-bit data register. Please refer to
information about transmit/receive data handling and the interrupt flag clearing mechanism. In master mode, a
change of this bit will abort a transmission in progress and force the SPI system into idle state.
0 8-bit Transfer Width (n = 8)
1 16-bit Transfer Width (n = 16)
Mode Fault Enable Bit — This bit allows the MODF failure to be detected. If the SPI is in master mode and
MODFEN is cleared, then the SS port pin is not used by the SPI. In slave mode, the SS is available only as an
input regardless of the value of MODFEN. For an overview on the impact of the MODFEN bit on the SS port pin
configuration, refer to
force the SPI system into idle state.
0 SS port pin is not used by the SPI.
1 SS port pin with MODF feature.
Output Enable in the Bidirectional Mode of Operation — This bit controls the MOSI and MISO output buffer
of the SPI, when in bidirectional mode of operation (SPC0 is set). In master mode, this bit controls the output
buffer of the MOSI port, in slave mode it controls the output buffer of the MISO port. In master mode, with SPC0
set, a change of this bit will abort a transmission in progress and force the SPI into idle state.
0 Output buffer disabled.
1 Output buffer enabled.
SPI Stop in Wait Mode Bit — This bit is used for power conservation while in wait mode.
0 SPI clock operates normally in wait mode.
1 Stop SPI clock generation when in wait mode.
Serial Pin Control Bit 0 — This bit enables bidirectional pin configurations as shown in
mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state.
Bidirectional
Bidirectional
Pin Mode
Normal
Normal
SPC0
0
1
0
1
MC9S12HY/HA-Family Reference Manual Rev. 1.04
Table
Table 13-5. Bidirectional Pin Configurations
Table 13-4. SPICR2 Field Descriptions
BIDIROE
13-3. In master mode, a change of this bit will abort a transmission in progress and
1
X
X
0
1
0
1
1
Master Mode of Operation
Slave Mode of Operation
MISO not used by SPI
Slave Out
Master In
Slave I/O
Description
Slave In
MISO
Section 13.3.2.4, “SPI Status Register (SPISR)
MOSI not used by SPI
Serial Peripheral Interface (S12SPIV5)
Master Out
Master I/O
Master In
Slave In
MOSI
Table
13-5. In master
for
465

Related parts for sc9s12hy64j0vllr