C8051F340/1/2/3/4/5/6/7
20. Enhanced Serial Peripheral Interface (SPI0)
The Enhanced Serial Peripheral Interface (SPI0) provides access to a flexible,
SPI0CKR
SCR7SCR6SCR5SCR4SCR3SCR2SCR1SCR0
Clock Divide
SYSCLK
Logic
SFR Bus
SPI0CFG |
SPIBSY MSTEN CKPHA CKPOL SLVSEL NSSIN SRMT RXBMT |
SPI0CN
SPIFWCOLMODFRXOVRNNSSMD1NSSMD0TXBMTSPIEN
SPI CONTROL LOGIC
SPI IRQ
Data Path | Pin Interface |
Control | Control |
Tx Data |
SPI0DAT |
Transmit Data Buffer |
MOSI
C
SCK R O
|
|
| Shift Register | Rx Data | ||||||||
|
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|
| |
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
Pin
Control
Logic
S
S MISO B
A
Port I/O
|
|
| Receive Data Buffer |
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write |
|
| Read | |||
|
| |||||
|
| SPI0DAT | ||||
SPI0DAT |
|
| ||||
|
|
|
|
R
NSS
SFR Bus
Figure 20.1. SPI Block Diagram
Rev. 0.5 | 229 |