English
Language : 

SMJ320F240 Datasheet, PDF (43/99 Pages) Texas Instruments – DSP CONTROLLER
SMJ320F240
DSP CONTROLLER
SGUS029 – APRIL 1999
serial peripheral interface (SPI) module
The SMJ320F240 devices include the four-pin serial peripheral interface (SPI) module. The SPI is a high-speed
synchronous serial-I/O port that allows a serial bit stream of programmed length (one to eight bits) to be shifted
into and out of the device at a programmable bit-transfer rate. Normally, the SPI is used for communications
between the DSP controller and external peripherals or another processor. Typical applications include external
I/O or peripheral expansion through devices such as shift registers, display drivers, and ADCs. Multidevice
communications are supported by the master/slave operation of the SPI.
The SPI module features include the following:
D Four external pins:
– SPISOMI: SPI slave-output/master-input pin, or general-purpose bidirectional I/O pin
– SPISIMO: SPI slave-input/master-output pin, or general-purpose bidirectional I/O pin
– SPISTE: SPI slave-transmit-enable pin, or general-purpose bidirectional I/O pin
– SPICLK: SPI serial-clock pin, or general-purpose bidirectional I/O pin
D Two operational modes: master and slave
D Baud rate: 125 different programmable rates / 2.5 Mbps at 10-MHz SYSCLK
D Data word format: one to eight data bits
D Four clocking schemes controlled by clock polarity and clock-phase bits include:
– Falling edge without phase delay: SPICLK active high. SPI transmits data on the falling edge of the
SPICLK signal and receives data on the rising edge of the SPICLK signal.
– Falling edge with phase delay: SPICLK active high. SPI transmits data one half-cycle ahead of the
falling edge of the SPICLK signal and receives data on the falling edge of the SPICLK signal.
– Rising edge without phase delay: SPICLK inactive low. SPI transmits data on the rising edge of the
SPICLK signal and receives data on the falling edge of the SPICLK signal.
– Rising edge with phase delay: SPICLK inactive low. SPI transmits data one half-cycle ahead of the
falling edge of the SPICLK signal and receives data on the rising edge of the SPICLK signal.
D Simultaneous receive and transmit operations (transmit function can be disabled in software)
D Transmitter and receiver operations are accomplished through either interrupt-driven or polled algorithms.
D Ten SPI module control registers: Located in control register frame beginning at address 7040h.
NOTE: All registers in this module are 8-bit registers that are connected to the 16-bit peripheral bus. When a register is accessed, the register
data is in the lower byte (7 – 0), and the upper byte (15 – 8) is read as zeros. Writing to the upper byte has no effect.
Figure 13 is a block diagram of the SPI in slave mode.
• POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443
43