关于Cypress3014的部分笔记
USB3.0概述
USB 3.0除了USB 2.0信号还有两双微分信号,支持双向数据传输
USB的电源状态管理可以由主机或者设备独立启动
FX3 系统图
关于CYPRESS3014部分固件设置的程序(基于SlaveFIFO_Sync)
1. 关于P2U和U2P:在
2. 关于Slave_FIFO_buffer:来源于 cyfxskfifoasync.h
#define CY_FX_SLFIFO_DMA_BUF_COUNT (2) /* Slave FIFO channel buffer count */
3. 关于通道选择:来源于 cyfxskfifoasync.h
#define CY_FX_EP_PRODUCER 0x01 /* EP 1 OUT */
#define CY_FX_EP_CONSUMER 0x81 /* EP 1 IN */
4. 关于Socket:来源于 cyfxskfifoasync.h
#define CY_FX_PRODUCER_USB_SOCKET CY_U3P_UIB_SOCKET_PROD_1 /* USB Socket 1 is producer */
#define CY_FX_CONSUMER_USB_SOCKET CY_U3P_UIB_SOCKET_CONS_1 /* USB Socket 1 is consumer */ 既是用socket 1做双向传输线:关于3、4的区别还需要考虑!!
5. 关于总线大小:来源于 cyfxskfifoasync.h
/* 16/32 bit GPIF Configuration select */
/* Set CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT = 0 for 16 bit GPIF data bus.
* Set CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT = 1 for 32 bit GPIF data bus.
*/
#define CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT (0) /*设置为16Bit总线*/
6. 关于部分名称的索引:来源于 cyu3pid.h & AN65974(P23)
PIB:<1>The Processor Interface Block (PIB) on the FX3 device contains the GPIF-II controller and the associated DMA sockets and configuration registers.
<2>The P-port interface block (PIB) of the FX3 device can encounter various errors during data transfers performed across the GPIF interface.
P2U:PIB_SOCKET_x to UIB_SOCKET_x /*个人猜测*/
U2P:UIB_SOCKET_x to PIB_SOCKET_x /*个人猜测*/
7.