Hi Ray,
pin interrupt works always only for one type of edge, despite on fact whether this interrupt is handled by CPU or XGATE.
So, you could modify edge settings at every edge or externally route these signals to port T pins and use input capture feature for ECT.
Could you please share here your configuration of ECT and XGATE interrupt routines for a short check?
The typical issue in the case of multiple timer channels is flag clearing mechanism.
Please use “ECT_TFLG1 = 0x01;” or “ECT_TFLG1 = ECT_TFLG1_C0F_MASK;” instead “ECT_TFLG1_C0F=1;” command. The command “ECT_TFLG1_C0F=1;” is read/modify/write command which will clear all pending flags in this register.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------