目录
1 引言 ..........................................................................................................................................5
1.1 编写目的 ......................................................................................................................5
1.2 定义 ..............................................................................................................................5
1.3 参考资料 ......................................................................................................................5
2 W5300 控制器的实现流程......................................................................................................6
2.1 实现流程图 ..................................................................................................................6
2.2 流程简要说明 ..............................................................................................................6
3 流程控制 ..................................................................................................................................7
3.1 W5300 RESET .............................................................................................................7
3.2 W5300 初始化..............................................................................................................7
3.2.1 数据位宽设置...................................................................................................7
3.2.2 主机接口模式和时序设置...............................................................................7
3.2.3 host 主机中断设置...........................................................................................9
3.2.4 基本网络信息设置.........................................................................................10
3.2.5 重新发送参数设置.........................................................................................11
3.2.6 SOCKETn 的内部 TX/RX 存储器空间分配设置.......................................11
3.3 数据通信 ....................................................................................................................12
3.3.1 SOCKET 初始化 ............................................................................................13
3.3.2 SOCKET 建链................................................................................................15
3.3.3 SOCKET 数据通信 ........................................................................................18
3.3.4 SOCKET 关闭................................................................................................19
4 逻辑实现方案 ........................................................................................................................19
4.1 逻辑架构 ....................................................................................................................19
4.2 接口控制模块 ............................................................................................................20
4.2.1 读时序实现 ....................................................................................................20
4.2.2 写时序实现 ....................................................................................................21
4.2.3 实现状态机 ....................................................................................................22
4.2.4 接口定义 ........................................................................................................23
4.3 主控制模块 ................................................................................................................23
4.3.1 实现状态机 ....................................................................................................23
4.3.2 接口定义 ........................................................................................................24
4.4 初始化配置模块 ........................................................................................................24
4.4.1 实现状态机 ....................................................................................................24
4.4.2 接口定义 ........................................................................................................25
4.5 SOCKET 驱动模块....................................................................................................25
4.5.1 实现状态机 ....................................................................................................25
4.5.2 接口定义 ........................................................................................................26
5 性能指标 ................................................................................................................................26
5.1 支持 SOCKET 数以及协议 .......................................................................................26
5.2 网络延时 ....................................................................................................................26
5.3 传输带宽 ....................................................................................................................26