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

Z8F2401VN020SC 参数 Datasheet PDF下载

Z8F2401VN020SC图片预览
型号: Z8F2401VN020SC
PDF下载: 下载PDF文件 查看货源
内容描述: Z8喝采微控制器与闪存和10位A / D转换器 [Z8 Encore Microcontrollers with Flash Memory and 10-Bit A/D Converter]
分类和应用: 转换器闪存微控制器
文件页数/大小: 246 页 / 1767 K
品牌: ZILOG [ ZILOG, INC. ]
 浏览型号Z8F2401VN020SC的Datasheet PDF文件第119页浏览型号Z8F2401VN020SC的Datasheet PDF文件第120页浏览型号Z8F2401VN020SC的Datasheet PDF文件第121页浏览型号Z8F2401VN020SC的Datasheet PDF文件第122页浏览型号Z8F2401VN020SC的Datasheet PDF文件第124页浏览型号Z8F2401VN020SC的Datasheet PDF文件第125页浏览型号Z8F2401VN020SC的Datasheet PDF文件第126页浏览型号Z8F2401VN020SC的Datasheet PDF文件第127页  
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x  
Z8 Encore!®  
105  
Error Detection  
The SPI contains error detection logic to support SPI communication protocols and recog-  
nize when communication errors have occurred. The SPI Status register indicates when a  
data transmission error has been detected.  
Overrun (Write Collision)  
An overrun error (write collision) indicates a write to the SPI Data register was attempted  
while a data transfer is in progress. An overrun sets the OVRbit in the SPI Status register  
to 1. Writing a 1 to OVRclears this error flag.  
Mode Fault (Multi-Master Collision)  
A mode fault indicates when more than one Master is trying to communicate at the same  
time (a multi-master collision). The mode fault is detected when the enabled Master’s SS  
pin is asserted. A mode fault sets the COLbit in the SPI Status register to 1. Writing a 1 to  
COLclears this error flag.  
SPI Interrupts  
When SPI interrupts are enabled, the SPI generates an interrupt after data transmission.  
The SPI in Master mode generates an interrupt after a character has been sent. A character  
can be defined to be 1 through 8 bits by the NUMBITSfield in the SPI Mode register. The  
SPI in Slave mode generates an interrupt when the SS signal deasserts to indicate comple-  
tion of the data transfer. Writing a 1 to the IRQbit in the SPI Status Register clears the  
pending interrupt request. If the SPI is disabled, an SPI interrupt can be generated by a  
Baud Rate Generator time-out.  
SPI Baud Rate Generator  
In SPI Master mode, the Baud Rate Generator creates a lower frequency serial clock  
(SCK) for data transmission synchronization between the Master and the external Slave.  
The input to the Baud Rate Generator is the system clock. The SPI Baud Rate High and  
Low Byte registers combine to form a 16-bit reload value, BRG[15:0], for the SPI Baud  
Rate Generator. The reload value must be greater than or equal to 0002Hfor SPI operation  
(maximum baud rate is system clock frequency divided by 4). The SPI baud rate is calcu-  
lated using the following equation:  
System Clock Frequency (Hz)  
---------------------------------------------------------------------------  
SPI Baud Rate (bits/s) =  
2 × BRG[15:0]  
When the SPI is disabled, the Baud Rate Generator can function as a basic 16-bit timer  
with interrupt on time-out. To configure the Baud Rate Generator as a timer with interrupt  
on time-out, complete the following procedure:  
PS017610-0404  
Serial Peripheral Interface  
 复制成功!