欢迎访问ic37.com |
会员登录 免费注册
发布采购

C8051F363 参数 Datasheet PDF下载

C8051F363图片预览
型号: C8051F363
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 288 页 / 2659 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F363的Datasheet PDF文件第237页浏览型号C8051F363的Datasheet PDF文件第238页浏览型号C8051F363的Datasheet PDF文件第239页浏览型号C8051F363的Datasheet PDF文件第240页浏览型号C8051F363的Datasheet PDF文件第242页浏览型号C8051F363的Datasheet PDF文件第243页浏览型号C8051F363的Datasheet PDF文件第244页浏览型号C8051F363的Datasheet PDF文件第245页  
C8051F360/1/2/3/4/5/6/7/8/9  
20.6. SPI Special Function Registers  
SPI0 is accessed and controlled through four special function registers in the system controller: SPI0CN  
Control Register, SPI0DAT Data Register, SPI0CFG Configuration Register, and SPI0CKR Clock Rate  
Register. The four special function registers related to the operation of the SPI0 Bus are described in the  
following figures.  
SFR Definition 20.1. SPI0CFG: SPI0 Configuration  
SFR Page:  
all pages  
SFR Address: 0xA1  
R
R/W  
R/W  
CKPHA  
Bit5  
R/W  
R
R
R
R
Reset Value  
SPIBSY MSTEN  
CKPOL SLVSEL  
NSSIN  
Bit2  
SRMT  
Bit1  
RXBMT 00000111  
Bit7  
Bit6  
Bit4  
Bit3  
Bit0  
Bit 7:  
SPIBSY: SPI Busy (read only).  
This bit is set to logic ‘1’ when a SPI transfer is in progress (Master or slave Mode).  
MSTEN: Master Mode Enable.  
0: Disable master mode. Operate in slave mode.  
1: Enable master mode. Operate as a master.  
CKPHA: SPI0 Clock Phase.  
Bit 6:  
Bit 5:  
This bit controls the SPI0 clock phase.  
*
0: Data centered on first edge of SCK period.  
*
1: Data centered on second edge of SCK period.  
Bit 4:  
Bit 3:  
CKPOL: SPI0 Clock Polarity.  
This bit controls the SPI0 clock polarity.  
0: SCK line low in idle state.  
1: SCK line high in idle state.  
SLVSEL: Slave Selected Flag (read only).  
This bit is set to logic ‘1’ whenever the NSS pin is low indicating SPI0 is the selected slave. It  
is cleared to logic ‘0’ when NSS is high (slave not selected). This bit does not indicate the  
instantaneous value at the NSS pin, but rather a de-glitched version of the pin input.  
NSSIN: NSS Instantaneous Pin Input (read only).  
This bit mimics the instantaneous value that is present on the NSS port pin at the time that  
the register is read. This input is not de-glitched.  
SRMT: Shift Register Empty (Valid in Slave Mode, read only).  
This bit will be set to logic ‘1’ when all data has been transferred in/out of the shift register,  
and there is no new information available to read from the transmit buffer or write to the  
receive buffer. It returns to logic ‘0’ when a data byte is transferred to the shift register from  
the transmit buffer or by a transition on SCK.  
Bit 2:  
Bit 1:  
NOTE: SRMT = 1 when in Master Mode.  
Bit 0:  
RXBMT: Receive Buffer Empty (Valid in Slave Mode, read only).  
This bit will be set to logic ‘1’ when the receive buffer has been read and contains no new  
information. If there is new information available in the receive buffer that has not been read,  
this bit will return to logic ‘0’.  
NOTE: RXBMT = 1 when in Master Mode.  
*Note: In slave mode, data on MOSI is sampled in the center of each data bit. In master mode, data on MISO is  
sampled one SYSCLK before the end of each data bit, to provide maximum settling time for the slave  
device. See Table 20.1 for timing parameters.  
Rev. 1.0  
241  
 复制成功!