UART(UniversalAsynchronous ReceiverTransmitter:通用异步收发器) RXD/TXD/GND; (1) 特点
Master mode and slavemode
Bi-directionalmode
Slaveselect output
Modefault error flag with CPU interruptcapability
Double-buffereddata register
Serialclock with programmable polarity and phase
Controlof SPI operation during wait mode
SPI 有两种模式,Normal Mode and BidirectionalMode,包括以下几根线:
SS Slave Select
SCK Serial Clock
MOSI Master Output, Slave Input
MISO Master Input, Slave Output
MOSI
This pin is used to transmit data out of the SPI module when itis configured as a Master and receive data
when it is configured as Slave.
MISO
This pin is used to transmit data out of the SPI module when itis configured as a Slave and receive data
when it is configured as Master.
SS
This pin is used to output the select signal from the SPImodule to another peripheral with which a data
transfer is to take place when its configured as a Masterandits used as an input to receive the slave select
signal when the SPI is configured as Slave.
SCK
This pin is used to output the clock with respect to which theSPI transfers data or receive clock in case of
Slave.