Coder Social home page Coder Social logo

eth_io's Introduction

ETH IO模块

/*********************************************************************************************/

本程序适用于野火STM32F407霸天虎开发板

本I/O模块具有2个输入3个输出

输入模块支持事件触发自动向上位机发送状态,按按键即可看到实验现象,上升沿和下降沿会各触发一次

输入模块支持每秒自动向上位机发送一次状态

上位机可以通过网络发送命令:“query”来查询一次输入状态

可通过网络发送命令:“LED1”、“LED2”、“LED3”来控制输出状态

可通过串口配置上位机的IP端口,示例192.168.2.187:5000

配置信息保存在EEPROM中,初次设置完后请重启生效

/*********************************************************************************************/

【 !】串口设置: 115200-N-8-1

/*********************************************************************************************/

默认情况:

默认使用DHCP动态分配IP地址,如果不需要则在lwipopts.h中将LWIP_DHCP定义为0

/*********************************************************************************************/

【*】 引脚分配

串口(TTL-USB TO UART): CH340的收发引脚与STM32的发收引脚相连。 RX<--->PA9 TX<--->PA10 以太网: PC1 ------> ETH_MDC PA1 ------> ETH_REF_CLK PA2 ------> ETH_MDIO PA7 ------> ETH_CRS_DV PC4 ------> ETH_RXD0 PC5 ------> ETH_RXD1 PB11 ------> ETH_TX_EN PG13 ------> ETH_TXD0 PG14 ------> ETH_TXD1

/*********************************************************************************************/

【*】 时钟

A.晶振: -外部高速晶振:25MHz -RTC晶振:32.768KHz

B.各总线运行时钟: -系统时钟 = SYCCLK = 180Mhz -HCLK = 180Mhz -PLLCLK = 180Mhz -PCLK2 = 90MHz -PCLK1 = 45MHz

C.浮点运算单元: 使能

eth_io's People

Contributors

anal-kh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.