- 3
- 0
- 约1.56万字
- 约 13页
- 2017-02-15 发布于江苏
- 举报
自动化专业毕业设计翻译正文
Universal Serial Communication Interface – SPI Mode
The universal serial communication interface (USCI) supports multiple serial communication modes withone hardware module. This chapter discusses the operation of the synchronous peripheral interface (SPI)
16.1 mode.Universal Serial Communication Interface (USCI) Overview
The universal serial communication interface (USCI) modules support multiple serial communication modes. Different USCI modules support different modes. Each different USCI module is named with a different letter. For example, USCI_A is different from USCI_B, etc. If more than one identical USCI module is implemented on one device, those modules are named with incrementing numbers. For example, if one device has two USCI_A modules, they are named USCI_A0 and USCI_A1. See the device-specific data sheet to determine which USCI modules, if any, are implemented on which devices.
USCI_Ax modules support:
? UART mode
? Pulse shaping for IrDA communications
? Automatic baud-rate detection for LIN communications
? SPI mode
USCI_Bx modules support:
? mode
? SPI mode
16.2 USCI Introduction – SPI Mode
In synchronous mode, the USCI connects the device to an external system via three or four pins:UCxSIMO, UCxSOMI, UCxCLK, and UCxSTE. SPI mode is selected when the UCSYNC bit is set, and SPI mode (3-pin or 4-pin) is selected with the UCMODEx bits.
SPI mode features include:
? 7-bit or 8-bit data length
? LSB-first or MSB-first data transmit and receive
? 3-pin and 4-pin SPI operation
? Master or slave modes
? Independent transmit and receive shift registers
? Separate transmit and receive buffer registers
? Continuous transmit and receive operation
? Selectable clock polarity and phase control
? Programmable clock frequency in master mode
? Independent interrupt capability for receive and transmit
? Slave operation in LPM4
Figure16-1 shows the USCI when configured for SPI mode.
16.3 USCI Operation – SPI Mode
In SPI mode, serial data is transmitted and receive
原创力文档

文档评论(0)