FPGA / ARM / DSP Wishbone SoC
< WB+LINUX+USB+TCPIP+WEBServer >
Lab6 : TCP/IP Stepping Motor Control
▋Introduction
Lab.6本節有實驗所使用的FPGA Configuration為Wishbon3, 在ARM9 Linux Kernel上, 應用ARM週邊模組的Ethernet Controller與Linux核心的 protocal stack與檔案系統, 進行以TCP/IP為基礎的Stepping Motor 步進馬達控制。
實驗是像是於Lab.4(TCP/IP LED/DipSW控制) , 以Client/Server的形式, Client端發送命令要求, 設定Server端的Output, 在此例為步進馬達的目標角度(即相位)與轉動方向及速度, 並讀取Server端Input, 在此例為馬達轉前的角度相位。
▋ Design Codes
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
文章標籤
全站熱搜
