JAJSFZ4E March 2009 – August 2018 TMS320C28341 , TMS320C28342 , TMS320C28343 , TMS320C28344 , TMS320C28345 , TMS320C28346
PRODUCTION DATA.
デバイスごとのパッケージ図は、PDF版データシートをご参照ください。
The device includes the four-pin serial peripheral interface (SPI) module. Two SPI modules (SPI-A and SPI-D) are available. The SPI is a high-speed, synchronous serial I/O port that allows a serial bit stream of programmed length (1 to 16 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 MCU 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:
NOTE
All four pins can be used as GPIO if the SPI module is not used.
Baud rate: 125 different programmable rates.
NOTE
See Section 5 for maximum I/O pin toggling speed.
NOTE
All registers in this module are 16-bit registers that are connected to Peripheral Frame 2. 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.
Enhanced features:
The SPI port operation is configured and controlled by the registers listed in Table 6-14 and Table 6-15.
NAME | ADDRESS | SIZE (x16) | DESCRIPTION(1) |
---|---|---|---|
SPICCR | 0x7040 | 1 | SPI-A Configuration Control Register |
SPICTL | 0x7041 | 1 | SPI-A Operation Control Register |
SPISTS | 0x7042 | 1 | SPI-A Status Register |
SPIBRR | 0x7044 | 1 | SPI-A Baud Rate Register |
SPIRXEMU | 0x7046 | 1 | SPI-A Receive Emulation Buffer Register |
SPIRXBUF | 0x7047 | 1 | SPI-A Serial Input Buffer Register |
SPITXBUF | 0x7048 | 1 | SPI-A Serial Output Buffer Register |
SPIDAT | 0x7049 | 1 | SPI-A Serial Data Register |
SPIFFTX | 0x704A | 1 | SPI-A FIFO Transmit Register |
SPIFFRX | 0x704B | 1 | SPI-A FIFO Receive Register |
SPIFFCT | 0x704C | 1 | SPI-A FIFO Control Register |
SPIPRI | 0x704F | 1 | SPI-A Priority Control Register |
NAME | ADDRESS | SIZE (x16) | DESCRIPTION(1) |
---|---|---|---|
SPICCR | 0x7780 | 1 | SPI-D Configuration Control Register |
SPICTL | 0x7781 | 1 | SPI-D Operation Control Register |
SPISTS | 0x7782 | 1 | SPI-D Status Register |
SPIBRR | 0x7784 | 1 | SPI-D Baud Rate Register |
SPIRXEMU | 0x7786 | 1 | SPI-D Receive Emulation Buffer Register |
SPIRXBUF | 0x7787 | 1 | SPI-D Serial Input Buffer Register |
SPITXBUF | 0x7788 | 1 | SPI-D Serial Output Buffer Register |
SPIDAT | 0x7789 | 1 | SPI-D Serial Data Register |
SPIFFTX | 0x778A | 1 | SPI-D FIFO Transmit Register |
SPIFFRX | 0x778B | 1 | SPI-D FIFO Receive Register |
SPIFFCT | 0x778C | 1 | SPI-D FIFO Control Register |
SPIPRI | 0x778F | 1 | SPI-D Priority Control Register |
Figure 6-14 is a block diagram of the SPI in slave mode.