打印

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

[复制链接]
1233|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
bsaver|  楼主 | 2012-4-10 17:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用的芯片是 CY7C63813 里面SPI通信只有个主模块 SPIM,请问怎么修改成从模式。或者是不是有从模块可以加载进来?谢谢!
沙发
Go_PSoC| | 2012-4-10 22:29 | 只看该作者
可以看一下datasheet的41和43页

CY7C63310_CY7C638xx.pdf

2.7 MB

使用特权

评论回复
板凳
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 模块文件  我可以直接拿来用吗?

使用特权

评论回复
5
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系列。

使用特权

评论回复
6
bsaver|  楼主 | 2012-4-13 14:14 | 只看该作者
谢谢 Go_PSoC 的回答。谢谢!

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

51

帖子

1

粉丝