嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
LAN9252 EtherCAT DEMO TestEasyCATPro V2.0
//********************************************************************************************
// *
// EasyCAT PRO custom example for Microchip PIC18F26K22 *
// VERSION 2.0 16-09-18 *
// *
//********************************************************************************************
TempLong.Long = SPIReadRegisterIndirect (WDOG_STATUS, 1); // read the watchdog status
if ((TempLong.Byte[0] & 0x01) == 0x01) //
WatchDog = 0; // set/reset the corrisponding flag
else //
WatchDog = 1; //
TempLong.Long = SPIReadRegisterIndirect (AL_STATUS, 1); // read the EtherCAT State Machine status
Status = TempLong.Byte[0] & 0x0F; // to see if we are in operational state
if (Status == ESM_OP) //
Operational = 1; //
else // set/reset the corrisponding flag
Operational = 0; //
├── TestEasyCATPro_Custom_V2_0
│ ├── TestEasyCATPro_Custom_V2_0.cof
│ ├── TestEasyCATPro_Custom_V2_0.hex
│ ├── TestEasyCATPro_Custom_V2_0.map
│ ├── TestEasyCATPro_Custom_V2_0.mcp
│ ├── TestEasyCATPro_Custom_V2_0.mcs
│ ├── TestEasyCATPro_Custom_V2_0.mcw
│ ├── TestEasyCAT_Custom.h
│ ├── easycat.c
│ ├── easycat.h
│ ├── easycat.o
│ ├── main.c
│ ├── main.h
│ └── main.o
├── Win32Project6.v12.suo
└── 好例子网_TestEasyCATPro_Custom_V2_0.zip
1 directory, 15 files