FX3 use of SPI and 32 bits words GPIF

来源:互联网 发布:解析域名多久生效 编辑:程序博客网 时间:2024/06/08 15:19
    io_cfg.isDQ32Bit = CyTrue;    io_cfg.useSpi    = CyTrue;
FX3 use of SPI and 32 bits words GPIF不能共存。如果必须用32 bits words GPIF,必须:   
io_cfg.useSpi    = CyFalse;

可以使用模拟spi接口。
参考:cyfxusbspigpiomode

CyFxGpioInitio_cfg.gpioSimpleEn[1]  = 0x01E00000;io_cfg.useUart   = CyFalse;

这里写图片描述

Most of the IO pins on the FX3 device are multi-purpose with the specificconfiguration being selected at system start-up. This enumeration lists thevarious IO operating modes relating to Serial peripheral interfaces.The I2C interface is always available. If the GPIF data bus is configured as32-bit wide, only one of the SPI, UART and I2S interfaces are available. Inthis case, the configuration chosen should be CY_U3P_IO_MATRIX_LPP_DEFAULT.If the GPIF data bus is 8, 16 or 24 bits wide; it is possible to use all ofthe SPI, UART and I2S interfaces. However, the peripheral pins can be relocatedin this case. Refer to the FX3 datasheet for more details and choose the desiredconfiguration accordingly.In the case of the FX3S device, none of the UART, SPI and I2S interfaces areavailable if the second storage port (S1) is used in 8-bit mode. In this case,the configuration chosen should CY_U3P_IO_MATRIX_LPP_NONE.
原创粉丝点击