AVRVi Ethernet IO Kit avr 单片机上网方案
主控芯片:mega32(可升级为mega644)网络控制器:Enc28j60 SPI接口 使用便捷扩展了4M dataflash AT45DB041 和 SD卡,便于用户存放数据和网页代码1路RS232标准串口2路2A单刀继电器输出2路P521光耦输入8路10bit AD转换输入预留SPI接口预留TWI接口预留PWM接口
本商城提供了相关商品和模块,http://shop.avrvi.com/category-17-b0.html。AVRVi Ethernet IO 开发板板子原理图 AVRVi Ethernet IO 开发板效果图 AVRVi Ethernet IO 开发板照片 板子早就做回来了,首先检测ENC28J60 是否配置正确——ping software
AVR Ethernet IO PCB照片
正面
反面
加上外壳后
附件是原理图 PCB 等
移植了 德国爱好者写的 avrETH1
avrETH1 是2006年AVR 设计大赛 (AVR Design Contest 2006)优秀获得者的作品 http://www.circuitcellar.com/avr2006/winners/DE/AT2616.htm
从中可以看出德国人做事的态度-认真、细致、敬业...
这是WebServer 首页
远程控制IO口状态及检测IO口状态
加入了AVR Webcam 可以远程拍照
http://avr.auctionant.de/avrETH1/
原理图
项目照片
项目简介
项目完整文档
软件代码
Ethernet Io 可以透过以太网络或者Internet实现远程控制和数据传输。
国外对于嵌入式以太网的应用研究较热,好多公司鼓励爱好者开发此类产品。
德国和日本在这方面做的不错,国内也有好多Diyer在做。不过国内风气浮躁,没人能静下心来写出向uIP lwIP之类的经典开源协议栈的,大都停留在移植上。其实移植也是一种很好的学习方式。
我从04年开始试着做一些嵌入式网络应用的项目,买过德国的EtherNut 的1.3g 花了2680大洋,买过mirroK(忘了是否是这样写的了)的学习板,做过一些设备,应用在一些国家的重点项目中和安防产品中。近来又看到国外的这种应用趋势进一步升温,所以有心在我们网站推广一下,做个开源
把enc28j60的中文数据手册贴上,需要的朋友不用到处找了哈。 还有enc28j60模块的外型尺寸,需要做板直接用模块的参考参考。 同时附上enc28j60的protel 99se 格式的 PCB库和 SCH。
上个ethernet io中用到的SD卡的读写操作库 这个库是开源的 Embedded Filesystems Library - 0.3
Contents1 Document Outdated! 32 Preface 42.1 Project aims . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.2 Project status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.3 License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Getting started 53.1 On Linux (file) (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . 53.1.1 Download & Compile . . . . . . . . . . . . . . . . . . . . 53.1.2 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.1.3 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2 On AVR (SD-Card) (0.3) . . . . . . . . . . . . . . . . . . . . . . 83.2.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.2.2 Download & Compile . . . . . . . . . . . . . . . . . . . . 93.2.3 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.2.4 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3 On DSP (SD-Card) (0.2) . . . . . . . . . . . . . . . . . . . . . . 133.3.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.3.2 McBSP configuration . . . . . . . . . . . . . . . . . . . . 144 Configuring EFSL (0.2) 154.1 Hardware target . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.2 Memory configuration . . . . . . . . . . . . . . . . . . . . . . . . 154.3 Cache configuration . . . . . . . . . . . . . . . . . . . . . . . . . 164.4 Pre-allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.5 Endianness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.6 Date and time . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.7 Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.8 Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 EFSL Functions 195.1 Date and time support (0.2) . . . . . . . . . . . . . . . . . . . . . 195.2 efs init (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205.3 file fopen (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215.4 file fclose (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235.5 file read (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255.6 file write (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275.7 mkdir (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295.8 ls openDir (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315.9 ls getNext (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Developer notes 346.1 Integer types (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . 346.2 Debugging (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346.2.1 Debugging on Linux . . . . . . . . . . . . . . . . . . . . . 346.2.2 Debugging on AVR . . . . . . . . . . . . . . . . . . . . . . 356.2.3 Debugging on DSP . . . . . . . . . . . . . . . . . . . . . . 3526.3 Adding support for a new endpoint (0.2) . . . . . . . . . . . . . . 356.3.1 hwInterface . . . . . . . . . . . . . . . . . . . . . . . . . . 376.3.2 if initInterface . . . . . . . . . . . . . . . . . . . . . . . . 376.3.3 if readBuf . . . . . . . . . . . . . . . . . . . . . . . . . . . 386.3.4 if writeBuf . . . . . . . . . . . . . . . . . . . . . . . . . . 386.4 I/O Manager (0.2) . . . . . . . . . . . . . . . . . . . . . . . . . . 386.4.1 General operation . . . . . . . . . . . . . . . . . . . . . . 396.4.2 Cache decisions . . . . . . . . . . . . . . . . . . . . . . . . 396.4.3 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 406.5 C library for EFSL (0.2) . . . . . . . . . . . . . . . . . . . . . . . 437 Legal notes 447.1 GNU Lesser General Public License . . . . . . . . . . . . . . . . 44