打印

移植Lwip-1.3.0到LPC2106+ENC28J60及其Proteus仿真

[复制链接]
3510|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
jiaojinxing|  楼主 | 2009-5-20 17:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

工程使用经典的ADS1.2建立,改为MDK也是很容易的,只是我用惯了ADS1.2,顺手、稳定、高性能。 
http://2679049580633512744-a-1802744773732722657-s-sites.googlegroups.com/site/jiaojinxing/lwip-1-3-0yi-zhi-daolpc2106-enc28j60ji-qiproteus-fang-zhen/%E6%9C%AA%E5%91%BD%E5%90%8D6.jpg?attredirects=0&auth=ANoY7crEc8bV6R4dAJ1J5eTfSjlWa1s75uNVKUpY6i5-QtYXFmg5EcwuBZG5NPKO4SHT9BwbcLiRWZeNeDI3aiJIGQK657cC2QhJViXdNszleOu71VNH3uh0RFbnj9ELTLYtddCBMFqIWv1vaMRoff072nLj0Gc9F79gySFAQgfIN3_ENMQH2BEvV-ryYIDbWhwUYl4inQCFt42TagT1WAqeAYb-UKx6I5-PEMHRCEb1F8MX8fd51Xh3aHMWuySRn_LeFapGBnBsMcINTRqMx7OvQD3BnVgbdLmnoIYunWHKM4HKatc5OX0%3D

  呵,虽然手头上有块公板44b0和mini2440开发板,但也忍不住仿真一把,使用Proteus 7.1 SP2这个电路仿真软件,低版本的proteus没有enc28j60芯片,请用较高版本的(7.1以上吧),至于proteus自己上网找好了,网上大把的;仿真时还请安装一个叫wincap的软件,不然proteus会提醒你出错了,最后要把主机的IP改为192.168.0.XX。
http://2679049580633512744-a-1802744773732722657-s-sites.googlegroups.com/site/jiaojinxing/lwip-1-3-0yi-zhi-daolpc2106-enc28j60ji-qiproteus-fang-zhen/%E6%9C%AA%E5%91%BD%E5%90%8D2.jpg?attredirects=0&auth=ANoY7crKkvyfowbouaJRQu218ymJAK4-WNNFR2t1MFm8QGhQo8M0ikAaVDvhYqeW1F1da-hUOYOvHBmylzSl-UWTw_gEaOAhivrPHGeielk6PpIDxBctBF0PexYX3JhJiCoPZALoCObT5u8n3FS6jQesr_SZ8bVVdRoG6qgPprEuV1mfxHBQFkljtvWD2mJyQe62zoYHgMifqFuOurFaev_J7lz_EkpLDRNkBpU1i1QRxaHOD6OuIN9XNOiIQVuoSxFNuBj7z0Gc3veaOkdFb7DVfefSS-52zGh54ea5BrHwZTGkCt-_er4%3D
这是程序运行的过程中,串口终端输出的内容:
http://2679049580633512744-a-1802744773732722657-s-sites.googlegroups.com/site/jiaojinxing/lwip-1-3-0yi-zhi-daolpc2106-enc28j60ji-qiproteus-fang-zhen/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg?attredirects=0&auth=ANoY7cpyrIbXonJVQJATS2Pz3ocDWcW3Okx10SOKLQMg9Xudqw5YR7hluoJHcSAWx_fSv3HnB-wBszZjumOSKx218sjUt4TBUOXW2rLXvuZrIHvwRj-F9uM7-pZaTugXG4e9e_aQBQId2mAKIj2iezkyg6oXT0AerBmAnNneWSGcZLFYehIj8ACuFWoUaUsjnd1Wt05TfYXICRVDZJ0tVKtGsoGo-nTvuMeNk7fPtaVTrmgWjtqtOtdi_YUuJHaq6eQfWmaQJzWLJksZnSXRQwPheU1NUVMrRS1ayZPkNadsbuHzoe56Txs%3D
来个ping测试,在主机的运行里输入ping -t 192.168.0.60,平均延时8ms,有点高,不过这是仿真,要求不能太高^_^也许与enc28j60驱动用了查询方式也有关系吧!
http://2679049580633512744-a-1802744773732722657-s-sites.googlegroups.com/site/jiaojinxing/lwip-1-3-0yi-zhi-daolpc2106-enc28j60ji-qiproteus-fang-zhen/%E6%9C%AA%E5%91%BD%E5%90%8D5.jpg?attredirects=0&auth=ANoY7crQIp0Oeo2BQJHjHTqxzlPhByVTldJDjL7ElvWKnKfL6fek1LyTMezMROWMv1b47QJxqN6F0nfbiOVNvNJtV9sWfXnYD7Xu7qb9d4HdGzzmZRRG7hrM6T2KidnZd0hRbwT9dozYw_kiHp4W1ZWzu_ZSKimgUJD7RoE0PAGkOTHET7uX5GFREy6JgNdtPetnppCKe6IK3KIbgcK7umNzCG5izMelNJ_K4mdBEVPTyf8maM4Q-WyWjFodACh_VDKZPkfeR8VTEd4C2kqOLRc7TjIcp8RafvUY8CAFFFrvLa81i2cEw6w%3D
写了一个小型的远程登录服务器,在主机的运行里输入telnet 192.168.0.60,目前支持的命令有限,如有必要,请自行添加,很简单的。输入ps,可以查询uCOS-II的任务的运行情况:
http://2679049580633512744-a-1802744773732722657-s-sites.googlegroups.com/site/jiaojinxing/lwip-1-3-0yi-zhi-daolpc2106-enc28j60ji-qiproteus-fang-zhen/%E6%9C%AA%E5%91%BD%E5%90%8D3.jpg?attredirects=0&auth=ANoY7coH5vGV5zusFsgbGrXVRZ_EfQ4rUjeZwozlrgGeZS5YQjx11trwT6EiJRZmJqWr_ytPDY1e_7fT4QNDvxV1J1JJY6lKV8-9QZV-Fnb-fR1H8sM_k7sfz0Ii6ito_QMyfmnZ2y_eQVefrgnbxLAzt_-bbTK7uWupXXR4CAM7c_W5HGIigS7NgDxpXlFPa2JvFQS2B4lCJgR_SMAR7a9Grbua4ixBEwUhp9nqBcZvIyUHyrH0UOhEPXPs6KZHJ5wufpeOf-LX3_YKHnN3eOLV-W8ExDcuhJw0L4zwqK4TfsShkQrSJ1U%3D
哈哈,这是个超简单的嵌入式网页服务器,IE输入192.168.0.60即可,难的我还不会做^_^ http://2679049580633512744-a-1802744773732722657-s-sites.googlegroups.com/site/jiaojinxing/lwip-1-3-0yi-zhi-daolpc2106-enc28j60ji-qiproteus-fang-zhen/%E6%9C%AA%E5%91%BD%E5%90%8D4.jpg?attredirects=0&auth=ANoY7cowZdobuHa5KvE2nFPMIW4evGpiSLFh-GL1pMT8gPcQYUGv_jMbxjr9yPR-hOLNkusKPr2GzOKPIEEH2zSQVq-6rXTGZN10crxYNt8KsjJ-6VuKaiir6deWyEjI3A6A_zwPR24J8q4ASqoqpKln2eXme8IzYGtEG7cubn_hrsQ69LJXiKO4tb309AYgmE_YB8c3Cz_XqVl602DtR0X56nnI0m0QYgmaNuIPP9MUC9t5Jq9ix5lRV48fgyIhC8tpJScsuAB9lgLkuAYegjcIqy4OqMFOf-NaS4-s3DKi05SOeR5Y5h8%3D
 
完整代码与仿真送给大家,欢迎光临我的小站,问题探讨与更新会在那里进行 http://sites.google.com/site/jiaojinxing/ 
https://bbs.21ic.com/upfiles/img/20095/2009520174232978.rar

相关帖子

沙发
wxw123321| | 2010-4-14 17:41 | 只看该作者
谢了

使用特权

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

本版积分规则

2

主题

18

帖子

0

粉丝