TomE,
Thanks for the clarification. The manual chapter 15 misses theory of operation.
Actually, the better title of my post will be "Unclear item in 5270 EPORT documentation"
"It is ESSENTIAL to clear the EPFR bit in order to "arm" the logic to be able to detect the next edge."
Significant (and not so evident) clarification. At least, this behavior cannot be deduced from the EPORT block diagram.
"The EPIER bits enable a set EPFR bit to cause an interrupt."
Possibly, this phrase is more clear in the following form: "Interrupt request is generated, if both EPIER and EPFR related bits are set." At least, this form prevents incorrect understanding (especially for non-native English readers) like "The EPIER bits enable to set EPFR bit".
"As the manual states, a pending interrupt can be made to "go away" by clearing the EPIER bit."
But, the interrupt returns with re-enable interrupt by EPIER, if EPFR isn't cleared previously.
While programming EPORT, I previously understood word "negate" in the referenced post as "clear".
"So in most cases, all you need to do is clear the EPFR bit in your interrupt and ignore EPIER.
Clearing the EPIER bit on a "pending interrupt" can only be done if the CPU is ignoring interrupts at the time. There are some situations in which this may be necessary, but in simple "get an interrupt, service it, go back to something else" code this isn't something you should need to do."
Agree for "most cases". But, my application receives the EPORT IRQ signals from a dry relay contact . By disable the interrupt for the bouncing intervaI, numerous bounce caused interrupts are eliminated.