搜索
bottom↓
回复: 9

SPI演示文件,两个595对接

[复制链接]

出0入0汤圆

发表于 2006-7-13 14:42:27 | 显示全部楼层 |阅读模式
点击此处下载armok01123151.rar

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

发表于 2006-7-13 17:15:11 | 显示全部楼层
朋友!我用6.9 sp4仿真时出现如下错误信息:

Compiling source files...

Build completed OK.

Compiling netlist...

Linking netlist...

ERROR [U1] : Value '74HC595' of VALUE not found in parameter mapping table.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U1.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U1.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U1.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U1.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U3.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U3.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U3.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U3.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U9.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U9.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U9.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U9.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U11.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U11.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U11.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U11.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U12.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U12.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U12.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U12.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U14.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U14.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U14.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U14.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U15.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U15.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U15.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U15.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U17.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U17.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U17.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U17.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U18.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U18.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U18.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U18.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U20.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U20.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U20.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U20.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U21.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U21.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U21.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U21.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U23.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U23.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U23.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U23.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U24.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U24.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U24.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U24.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U26.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U26.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U26.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U26.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U27.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U27.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U27.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U27.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U29.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U29.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U29.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U29.

WARNING [ROOT10] : Parameter <TDCQ> not defined in TDCQ of U30.

WARNING [ROOT10] : Parameter <TDCQB> not defined in TDCQB of U30.

WARNING [ROOT10] : Parameter <TDRQ> not defined in TDRQ of U30.

WARNING [ROOT10] : Parameter <TDRQB> not defined in TDRQB of U30.

WARNING [LINKER] : Unresolved module pin 'U1_SH_CP'.

WARNING [LINKER] : Unresolved module pin 'U1_ST_CP'.

Simulation FAILED due to netlist linker error(s).

能帮忙解决一下吗?

出0入0汤圆

 楼主| 发表于 2006-7-13 19:42:35 | 显示全部楼层
我这儿是正常的。我又下载试了一次。

你要感兴趣就自己按这意思画一遍吧。反正也没代码。很简单的。

或者是那个U?应该有个具体的编号?比如U5。就是左边那个595。

出0入0汤圆

发表于 2006-7-14 10:44:31 | 显示全部楼层
不错,如果楼主加一些注释就更好了。

二楼的是因为库不全。

出0入0汤圆

 楼主| 发表于 2006-8-19 10:08:13 | 显示全部楼层
例子之二.  mcu发一个字节,收一个字节.

芯片m128+595

编译winavr

仿真6.9sp3



点击此处下载armok01126813.rar

出0入0汤圆

 楼主| 发表于 2006-8-27 14:46:50 | 显示全部楼层
例子之三.

通过串口0发送数据到m128,该数据经过spi口发送到m8,并收回m8的数据,

m8将收到数据显示在一个串口上面,m128将spi收回的数据显示在串口1上面.



芯片m128+m8

编译winavr新版

仿真6.9sp3



点击此处下载armok01127353.rar

出0入0汤圆

 楼主| 发表于 2006-8-28 20:23:55 | 显示全部楼层
我想编辑上一帖,发现帖子发表一小时后,就不能编辑了.

所以只能继续写.不是故意灌水.



对以上程序的修改.



在m8的程序中的第80行.

if ( i==21 ) i=0;

改成

if ( i==sizeof(welcom)-1 ) i=0;



另,welcome还丢个e,呵呵,书写文字虽有错误,交流诚意却是真的.

出0入0汤圆

发表于 2008-6-6 09:31:04 | 显示全部楼层
passerby:你真热心,支持!

出0入0汤圆

发表于 2009-12-15 20:07:08 | 显示全部楼层
顶起来!

出0入4汤圆

发表于 2009-12-15 20:34:54 | 显示全部楼层
顶,顶,顶!
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-16 04:01

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表