Cypress技术论坛
直播中

赵敏

7年用户 1049经验值
私信 关注
[问答]

CY7C68013的不同功能引脚

可以设置PA0和PA1同时使用PA4和PA5同时fifoaddr中断输入??

以上来自于百度翻译


     以下为原文
    Is it possible to set PA0 and PA1 as interrupt input while using PA4 and PA5 as fifoaddr at the same time ??

回帖(1)

傅姁妮

2019-4-25 13:21:24
嗨,乔治,
在从FIFO模式下,PA4和PA5默认为FIFOADR线路。因此,为了使用PA4和PA5作为FIFOADR线路,您只需要在从FIFO模式中配置FX2LP。一旦在奴隶FIFO模式下,您可以在PA0/1引脚的功能之间进行选择。它可以被用作GPIO或INT引脚。为了将它们用作int引脚,相应地设置了PATAcFG.0/PATAcFFG 1。
也就是说,可以使用PA0/1作为INT引脚,PA4/5可以作为FIFOADR线。为此,设置应如下:
IFCONFIG [ 0∶1 ]=11
PoATACFG〔0〕=1
PoATACFG〔1〕=1
当做,
加亚特里

以上来自于百度翻译


     以下为原文
  Hi George,
     
    In Slave FIFO mode, PA4 and PA5 by default act as FIFOADR lines. Thus, in order to use PA4 & PA5 as FIFOADR lines, you just need to configure FX2LP in Slave FIFO mode. Once in Slave FIFO mode, you can select between the functions of PA0/1 pins. It can either be used as GPIO or INT pins. In order to use them as INT pins set PORTACFG.0/PORTACFG.1 accordingly.
    i.e. It is possible to use PA0/1 as INT pins, and PA4/5 as FIFOADR lines. For that the settings should be as follows:
    IFCONFIG[0:1] = 11
    PORTACFG[0] = 1
    PORTACFG[1] = 1
     
    Regards,
    Gayathri
举报

更多回帖

发帖
×
20
完善资料,
赚取积分