FX3 use of SPI and 32 bits words GPIF

    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

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

这里写图片描述

Most of the IO pins on the FX3 device are multi-purpose with the specific
configuration being selected at system start-up. This enumeration lists the
various IO operating modes relating to Serial peripheral interfaces.

The I2C interface is always available. If the GPIF data bus is configured as
32-bit wide, only one of the SPI, UART and I2S interfaces are available. In
this 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 of
the SPI, UART and I2S interfaces. However, the peripheral pins can be relocated
in this case. Refer to the FX3 datasheet for more details and choose the desired
configuration accordingly.

In the case of the FX3S device, none of the UART, SPI and I2S interfaces are
available 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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值