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

MC68331CPV16 参数 Datasheet PDF下载

MC68331CPV16图片预览
型号: MC68331CPV16
PDF下载: 下载PDF文件 查看货源
内容描述: 用户手册 [User’s Manual]
分类和应用: 微控制器和处理器外围集成电路时钟
文件页数/大小: 254 页 / 1319 K
品牌: MOTOROLA [ MOTOROLA ]
 浏览型号MC68331CPV16的Datasheet PDF文件第131页浏览型号MC68331CPV16的Datasheet PDF文件第132页浏览型号MC68331CPV16的Datasheet PDF文件第133页浏览型号MC68331CPV16的Datasheet PDF文件第134页浏览型号MC68331CPV16的Datasheet PDF文件第136页浏览型号MC68331CPV16的Datasheet PDF文件第137页浏览型号MC68331CPV16的Datasheet PDF文件第138页浏览型号MC68331CPV16的Datasheet PDF文件第139页  
Table 6-2 QSPI Pin Function  
Pin/Signal Name  
Mnemonic  
Mode  
Function  
Master In Slave Out  
MISO  
Master  
Slave  
Serial Data Input to QSPI Serial  
Data Output from QSPI  
Master Out Slave In  
Serial Clock  
MOSI  
SCK  
Master  
Slave  
Serial Data Output from QSPI  
Serial Data Input to QSPI  
Master  
Slave  
Clock Output from QSPI  
Clock Input to QSPI  
Peripheral Chip Selects  
Slave Select  
PCS[3:1]  
SS  
Master  
Select Peripherals  
Causes Mode Fault  
Master  
Slave  
Peripheral Chip Select 0  
PCS0  
Master  
Initiates Serial Transfer  
Selects Peripherals  
6.3.4 QSPI Operation  
The QSPI uses a dedicated 80-byte block of static RAM accessible by both the QSPI  
and the CPU to perform queued operations. The RAM is divided into three segments.  
There are 16 command control bytes, 16 transmit data words, and 16 receive data  
words. QSPI RAM is organized so that one byte of command control data, one word  
of transmit data, and one word of receive data correspond to one queue entry, $0–$F.  
6
The CPU initiates QSPI operation by setting up a queue of QSPI commands in com-  
mand RAM, writing transmit data into transmit RAM, then enabling the QSPI. The  
QSPI executes the queued commands, sets a completion flag (SPIF), and then either  
interrupts the CPU or waits for CPU intervention.  
There are four queue pointers. The CPU can access three of them through fields in  
QSPI registers. The new queue pointer (NEWQP), in SPCR2, points to the first com-  
mand in the queue. An internal queue pointer points to the command currently being  
executed. The completed queue pointer (CPTQP), in SPSR, points to the last com-  
mand executed. The end queue pointer (ENDQP), contained in SPCR2, points to the  
final command in the queue.  
The internal pointer is initialized to the same value as NEWQP. During normal opera-  
tion, the command pointed to by the internal pointer is executed, the value in the inter-  
nal pointer is copied into CPTQP, the internal pointer is incremented, and then the  
sequence repeats. Execution continues at the internal pointer address unless the  
NEWQP value is changed. After each command is executed, ENDQP and CPTQP are  
compared. When a match occurs, the SPIF flag is set and the QSPI stops unless wrap-  
around mode is enabled.  
At reset, NEWQP is initialized to $0. When the QSPI is enabled, execution begins at  
queue address $0 unless another value has been written into NEWQP. ENDQP is ini-  
tialized to $0 at reset, but should be changed to show the last queue entry before the  
QSPI is enabled. NEWQP and ENDQP can be written at any time. When the NEWQP  
value changes, the internal pointer value also changes. However, if NEWQP is written  
while a transfer is in progress, the transfer is completed normally. Leaving NEWQP  
and ENDQP set to $0 causes a single transfer to occur when the QSPI is enabled.  
MC68331  
QUEUED SERIAL MODULE  
MOTOROLA  
6-9  
USER’S MANUAL  
 复制成功!