XMC4800 EtherCAT Process Data Watchdog event

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User11870
Level 1
Level 1
First like given 5 replies posted Welcome!
Hello team,
I am trying to catch the Process Data (PD) timeout event when connection lost. When I unplug EtherCAT cable, I can see updating of 'Watchdog Status Process Data register (WD_STAT_PDATA)' and 'Watchdog Counter Process Data register(WD_COUNT_PDATA)'.
My question is, can we generate an interrupt for PD timeout event instead of polling these WD registers? If we can, is there any example?
Thank you,
0 Likes
1 Reply
MichaelIFX
Employee
Employee
50 replies posted 25 replies posted 10 replies posted
Hi mophong,
you can check the status inside SYNC0 ISR. Then you still do polling, but the overhead is minor.

Kind Regards

Michael
0 Likes