Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 1061

Table of Contents

Advertisement

Table A-122. SPICTL Register Bit Descriptions (RW) (Cont'd)
Bit
Name
13
OPD
14
SPIEN
ADSP-214xx SHARC Processor Hardware Reference
www.BDTIC.com/ADI
Description
Open Drain Output Enable. Enables open drain data output enable for MOSI
and MISO pins.
0 = Drive (MOSI and MISO driven)
1 = Open drain (MOSI and MISO three-stated).
In a multimaster/slave SPI system, the data output pins (MOSI and MISO) can
be configured to behave as open drain drivers to prevent contention and possi-
ble damage to pin drivers. An external pull-up resistor is required on both the
MOSI/MISO pins when this option is selected.
When the OPD bit is set and the SPI ports are configured as masters,
the SPI_MOSI_O pin is three-stated. Instead the SPI_MOSI_PBEN_O pin is
driven and act as output enable pin. Note that the corresponding DPI input
buffer pin should be tied to GND.
Similarly, when OPD is set and the SPI ports are configured as slaves, the
SPI_MISO_O pin is three-stated. Instead the SPI_MISO_PBEN_O pin is
driven and act as output enable pin. Note that the corresponding DPI input
buffer pin should be tied to GND. See
page
9-11.
SPI Port Enable. Enables the SPI port. If configured as a master (SPIMS=1)
and SPIEN=0, the MOSI and SPICLK outputs are disabled, and the MISO
input is ignored. If configured as a slave (SPIMS=0) and SPIEN=0, the MOSI
and SPICLK inputs are ignored, and the MISO output is disabled. The SPIEN
and SPIMS bits can be cleared by hardware if the MME-bit is set. For SPI
slaves, the slave-select input (
For this reason, the
SPIDS
The SPIEN bit can also be used as a software reset of the internal SPI logic. An
exception to this is the W1C-type (write 1-to-clear) bits in the SPISTATx regis-
ters. These bits remain set if they are already set.
Note: always clear the W1C-type bits in SPISTATx registers before re-enabling
the SPI, as these bits do not get cleared even if the SPI is disabled. This can be
done by writing 0xFF to the SPISTATx registers. In the case of an MME error,
enable the SPI ports after
0 = SPI module is disabled
1 = SPI module is enabled
Registers Reference
"Pin Buffers as Open Drain" on
) acts like a reset for the internal SPI logic.
SPIDS
line must be error free.
is deasserted.
SPIDS
A-235

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SHARC ADSP-214 Series and is the answer not in the manual?

Table of Contents