Psoc designer5.2中怎么修改 SPIM主模块为从模式

[复制链接]
2052|5
 楼主| bsaver 发表于 2012-4-10 17:16 | 显示全部楼层 |阅读模式
我用的芯片是 CY7C63813 里面SPI通信只有个主模块 SPIM,请问怎么修改成从模式。或者是不是有从模块可以加载进来?谢谢!
Go_PSoC 发表于 2012-4-10 22:29 | 显示全部楼层
可以看一下datasheet的41和43页

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
Go_PSoC 发表于 2012-4-10 22:31 | 显示全部楼层
另外,enCoRe III和enCoRe V就有SPIS了
 楼主| bsaver 发表于 2012-4-10 22:40 | 显示全部楼层
本帖最后由 bsaver 于 2012-4-10 22:42 编辑

请教一下,将模块修改为从模式时候,在模块页[chip],连线需要怎么修改?因为我将引脚设置为从模式时候,原本的连线状态会丢失。
还一个问题:encoreⅢ,Ⅴ中的SPIS 模块文件  我可以直接拿来用吗?
Go_PSoC 发表于 2012-4-11 15:49 | 显示全部楼层
我在datasheet看到这样一句话"When configured for SPI (SPI Use = 1 and Comm Modes [1:0] = SPI Master or SPI Slave mode), the input and output direction of pins P1.5, and P1.6 is set automatically by the SPI logic. However, pin P1.4's input and output direction is NOT automatically set; it must be explicitly set by firmware. For SPI Master mode, pin P1.4 must be configured as an output; for SPI Slave mode, pin P1.4 must be configured as an input."


encoreⅢ,Ⅴ中的SPIS 模块,在CY7C63813里是没有的,CY7C63813是encoreII系列。
 楼主| bsaver 发表于 2012-4-13 14:14 | 显示全部楼层
谢谢 Go_PSoC 的回答。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

51

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部