Dariusz Makowski

Doubled status flags of GPT, MCF5282

Discussion created by Dariusz Makowski on Oct 25, 2006
Latest reply on Oct 25, 2006 by Dariusz Makowski
I try to distinguish the difference between CnF flags of GPT Flag Register 1 (GPTFLG1) (bits 0..3) and CnF bits of GPT Flag Register 2 (GPTFLG2) (bits 3..0), documentation MCF5282UM/D, ver. 3.0, page 20-12. What is the difference of the flags? Which flags should I clear in my interrupt subroutine, the flag from GPTFLG1 or GPTFLG2 (e.g. capture flag C0F)? Why the flags are doubled?