C8051F340/1/2/3/4/5/6/7
20.1. Signal Descriptions
The four signals used by SPI0 (MOSI, MISO, SCK, NSS) are described below.
20.1.1. Master Out, Slave In (MOSI)
The
20.1.2. Master In, Slave Out (MISO)
The
20.1.3. Serial Clock (SCK)
The serial clock (SCK) signal is an output from the master device and an input to slave devices. It is used to synchronize the transfer of data between the master and slave on the MOSI and MISO lines. SPI0 gen- erates this signal when operating as a master. The SCK signal is ignored by a SPI slave when the slave is not selected (NSS = 1) in
20.1.4. Slave Select (NSS)
The function of the
1.NSSMD[1:0] = 00:
2.NSSMD[1:0] = 01:
3.NSSMD[1:0] = 1x:
See Figure 20.2, Figure 20.3, and Figure 20.4 for typical connection diagrams of the various operational modes. Note that the setting of NSSMD bits affects the pinout of the device. When in
230 | Rev. 0.5 |