当前位置:网站首页>Dp83848+ network cable hot plug
Dp83848+ network cable hot plug
2022-07-04 04:35:00 【pingxiaozhao】
Process description
1 Power failure and interruption
The power down and interrupt functions are in the 7 Foot reuse . By default , This pin As power-off input , The interrupt function is disabled . Set up MICR position 0 (INT_OE)(0x11h) Configure the pin as an active low-level interrupt output .
2 Power down control mode
PWRDOWN_INT The pin can be asserted as low to place the device in Power Down Pattern . This is equivalent to the basic mode control register BMCR (0x00h) Set the 11 position ( Power on ). An external control signal is used to drive the pin low , It overcomes the disadvantage of weak internal pull-up resistance . in addition , By using an external pull-down resistor , The device can be configured to initialize to Power Down State in PWRDOWN_INT On the pin . Because the device will still respond to the access of the management register , Set up MICR In the register INT_OE Bit will be disabled PWRDOWN_INT Input , Allow the device to exit the power-off state .
3 Interrupt mechanism
The interrupt function is controlled by register access . By default , All interrupt sources are disabled . take MICR(0x11h) Bit 1(INTEN) Set up 1 Will make the interrupt output , It depends on MISR(0x12h) Interrupt mask set in the low byte of . When an interrupt condition occurs ,PWRDOWN_INT Pin asynchronously set to low level . Can be read through MISR To determine the interrupt source . MISR One or more of them will be set to 1, Indicates all currently pending interrupts . Read MISR Will clear all pending interrupts .
Example : To generate an interrupt when the link state changes or the energy detection power state changes , Steps are as follows :
• take 0003h write in MICR Set up INTEN and INT_OE
• towards MISR write in 0060h Set up ED_INT_EN and LINK_INT_EN
• monitor PWRDOWN_INT Pin
When PWRDOWN_INT Pin for low level , The user will read MISR Register to see ED_INT or LINK_INT Location 1, for example , The source of the interrupt . Read MISR after , Interrupt reset ,PWRDOWN_INT Pin will be set to invalid .
register
Code instructions
1. DP83848 Of 7 foot INT Access MCU Of IO mouth ,IO Configured as an external interrupt ,
2. Set up MICR(0x11) Of INTEN and INT_OE Position as 1,
3. Set up MISR(0x12) Of ED_INT_EN and LINK_INT_EN Position as 1,
4. View in external interrupt MISR(0x12) in ED_INT and LINK_INT Whether the bit is set 1,
5. if ED_INT and LINK_INT position by 1, Further view BMSR(0x01) Of LINK STATUS and AUTO-NEGOTIATION Whether a is 1, if 1 It means that the network cable has been inserted , Initialize the network and create tcp link ; If not 1 It means that the network cable has been unplugged , close tcp link .
边栏推荐
- Deep parsing structured exception handling (SEH) - by Matt Pietrek
- Exercises in quantum mechanics
- Ppt tutorial, how to save a presentation as a PDF file in PowerPoint?
- 苹果CMS仿西瓜视频大气响应式视频模板源码
- 5张图告诉你:同样是职场人,差距怎么这么大?
- 架构实战营 - 第 6 期 模块九之毕业设计
- 沃博联结束战略评估,决定保留表现优异的博姿业务
- Experience sharing of epidemic telecommuting | community essay solicitation
- [Yugong series] go teaching course 002 go language environment installation in July 2022
- AcWing第 58 场周赛
猜你喜欢
Leetcode skimming: binary tree 09 (minimum depth of binary tree)
深入解析结构化异常处理(SEH) - by Matt Pietrek
Application scheme of Puyuan ds1000z series digital oscilloscope in communication principle experiment
精品网址导航主题整站源码 wordpress模板 自适应手机端
What is context?
Wechat brain competition answer applet_ Support the flow main belt with the latest question bank file
Leetcode skimming: binary tree 08 (maximum depth of n-ary tree)
Asahi Kasei participated in the 5th China International Import Expo (5th ciie) for the first time
MySQL 索引和事务
Keysight n9320b RF spectrum analyzer solves tire pressure monitoring scheme
随机推荐
博朗与Virgil Abloh于2021年为纪念博朗品牌100周年而联合打造的“功能性艺术”将在博物馆展出Abloh作品期间首次亮相
Rhcsa 08 - automount configuration
Leetcode 121 best time to buy and sell stock (simple)
Precautions for accompanying driving these 23 points should be paid attention to!
Architecture training graduation design + summary
What is context?
Touch and take you to implement an EventEmitter
微信脑力比拼答题小程序_支持流量主带最新题库文件
[cloud native] those lines of code that look awesome but have a very simple principle
网络 - VXLAN
分布式CAP理论
leetcode:1314. 矩阵区域和【二维前缀和模板】
Eig launched Grupo Cerro, a renewable energy platform in Chile
(pointeur) Écrivez - vous une fonction qui compare la taille de la chaîne et fonctionne comme strcmp.
Y55. Chapter III kubernetes from entry to proficiency -- HPA controller and metrics server (28)
[security attack and Defense] how much do you know about serialization and deserialization?
GUI 应用:socket 网络聊天室
Experience sharing of epidemic telecommuting | community essay solicitation
多位科技公司创始人向Entrepreneur First提供高达1.58亿美元的C轮融资,协助其投资下一代全球创新者
R语言中如何查看已安装的R包