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

MC68331CPV16 参数 Datasheet PDF下载

MC68331CPV16图片预览
型号: MC68331CPV16
PDF下载: 下载PDF文件 查看货源
内容描述: 用户手册 [User’s Manual]
分类和应用: 微控制器和处理器外围集成电路时钟
文件页数/大小: 254 页 / 1319 K
品牌: MOTOROLA [ MOTOROLA ]
 浏览型号MC68331CPV16的Datasheet PDF文件第142页浏览型号MC68331CPV16的Datasheet PDF文件第143页浏览型号MC68331CPV16的Datasheet PDF文件第144页浏览型号MC68331CPV16的Datasheet PDF文件第145页浏览型号MC68331CPV16的Datasheet PDF文件第147页浏览型号MC68331CPV16的Datasheet PDF文件第148页浏览型号MC68331CPV16的Datasheet PDF文件第149页浏览型号MC68331CPV16的Datasheet PDF文件第150页  
can be prevented by clearing SPIFIE, but SPIFIE is buffered. Clearing it does not abort  
a current request.  
There are two recommended methods of exiting wraparound mode: clearing the  
WREN bit or setting the HALT bit in SPCR3. Exiting wraparound mode by clearing  
SPE is not recommended, as clearing SPE may abort a serial transfer in progress. The  
QSPI sets SPIF, clears SPE, and stops the first time it reaches the end of the queue  
after WREN is cleared. After HALT is set, the QSPI finishes the current transfer, then  
stops executing commands. After the QSPI stops, SPE can be cleared.  
6.3.5.3 Slave Mode  
Clearing the MSTR bit in SPCR0 selects slave mode operation. In slave mode, the  
QSPI is unable to initiate serial transfers. Transfers are initiated by an external bus  
master. Slave mode is typically used on a multi-master SPI bus. Only one device can  
be bus master (operate in master mode) at any given time.  
Before QSPI operation is initiated, QSM register PQSPAR must be written to assign  
necessary pins to the QSPI. The pins necessary for slave mode operation are MISO  
and MOSI, SCK, and PCS0/SS. MISO is used for serial data output in slave mode, and  
MOSI is used for serial data input. Either or both may be necessary, depending on the  
particular application. SCK is the serial clock input in slave mode. Assertion of the ac-  
tive-low slave select signal (SS) initiates slave mode operation.  
6
Before slave mode operation is initiated, DDRQS must be written to direct data flow  
on the QSPI pins used. Configure the MOSI, SCK and PCS0/SS pins as inputs. The  
MISO pin must be configured as an output.  
After pins are assigned and configured, write data to be transmitted into transmit RAM.  
Command RAM is not used in slave mode and does not need to be initialized. Unused  
portions of QSPI RAM can be used by the CPU as general-purpose RAM. Initialize the  
queue pointers as appropriate.  
When SPE is set and MSTR is clear, a low state on the slave select (PCS0/SS) pin  
begins slave mode operation at the address indicated by NEWQP. Data that is re-  
ceived is stored at the pointer address in receive RAM. Data is simultaneously loaded  
into the data serializer from the pointer address in transmit RAM and transmitted.  
Transfer is synchronized with the externally generated SCK. The CPHA and CPOL  
bits determine on which SCK edge to latch incoming data from the MISO pin and to  
drive outgoing data from the MOSI pin.  
Because the command control segment is not used, the command control bits and pe-  
ripheral chip-select codes have no effect in slave mode operation. The PCS0/SS pin  
is used only as an input.  
The SPBR, DT and DSCK bits are not used in slave mode. The QSPI drives neither  
the clock nor the chip-select pins and thus cannot control clock rate or transfer delay.  
Because the BITSE option is not available in slave mode, the BITS field specifies the  
number of bits to be transferred for all transfers in the queue. When the number of bits  
MOTOROLA  
6-20  
QUEUED SERIAL MODULE  
MC68331  
USER’S MANUAL  
 复制成功!