当前位置:网站首页>About reconnection of STM32 using lan8720a plug-in network cable
About reconnection of STM32 using lan8720a plug-in network cable
2022-06-25 14:02:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
About STM32 Use LAN8720A Plug in and reconnect the network cable
In fact, when doing this function, we must be calm , Don't think it's too complicated , See more DATASHEET, Of course, there will be some problems later , So after stepping through the pit , It's been almost a year , It can also be regarded as going back and making a record . 1. About LAN8720 Interpretation of the manual By looking up lan8720 Data collection :
Yellow part , In register mapping, the first register is the basic status register , Then we look up this register and find ,
In the register bit2 It says , When detecting the insertion of network cable, this bit is 1, Otherwise 0. If you know this, it's easy to do , We can judge the access status of the network cable according to this status bit , Then decide whether to operate on Ethernet .
2. Program realization In my program planning, I mainly involve functions : 1. This function is put into While In circulation , Or in the interrupt function of a time base :
2. The function is placed in Net_Rest_Connect Function
3.Net_Rest_Connect function
Here, after judging the connection to the network cable , Initialize the protocol stack and TCP Initialization of the server .
4. Attach project link :https://download.csdn.net/download/tiange1996/85045262
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/151704.html Link to the original text :https://javaforall.cn
边栏推荐
- 腾讯云搭建Socks5多IP代理服务器实现游戏单窗口单IP完美搭建教程附带工具「建议收藏」
- Unity 2D游戏中的抛物运动
- Discriminative v.s.Generative
- Rust, the best choice for programmers to start a business?
- How to configure aliases for typescript + vite projects
- 英语中的九大词性与九大时态
- 如何在 2022 年为 Web 应用程序选择技术堆栈
- Related examples of data storage in memory
- Mise en place d'un Cluster kubernets avec plusieurs serveurs Cloud
- Suanli & NFT trading platform f3 The exclusive NFT project of XYZ, hash eagle, will be grandly launched
猜你喜欢
Win7显示屏幕亮度在哪里可以调节
Experts' suggestions | 8 measures to accelerate your innovative career planning and growth
K-line diagram 24 classic diagrams (shadow)
Problems encountered in debugging botu TCP connection with debugging tool
Getting started with numpy Library
On the simple realization of Sanzi chess game and the method of judging the victory of n-zi chess
sql导入这样怎么解决
触觉智能分享-RK3568在金融自助终端的应用
Network remote access using raspberry pie
Beego--- notes
随机推荐
语法'陷阱'
sql导入这样怎么解决
阻止深度神经网络过拟合(Mysteries of Neural Networks Part II)
分类器与cross entropy loss函数
数据库中显示error1822,error1824
Syntax 'trap'
Discuz仿今日头条模板/Discuz新闻资讯商业版GBK模板
国信证券股票账户开户安全吗?请问。
打新债是不是不安全
Asp.net WebForm使用NPOI导出Excel
Unity 2D游戏中的抛物运动
Some knowledge of the initial C language
通达信股票账户开户安全吗
英语中的九大词性与九大时态
如何在 2022 年为 Web 应用程序选择技术堆栈
API in Nova
Preventing overfitting of deep neural networks (mysteries of neural networks Part II)
Is it safe for Guosen Securities to open an account?
Why should programmers be softer?
Application of tactile intelligent sharing-rk3568 in financial self-service terminal