Doubled status flags of GPT, MCF5282

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Doubled status flags of GPT, MCF5282

1,502 Views
dmakow
Contributor I
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?
Labels (1)
0 Kudos
2 Replies

375 Views
SimonMarsden_de
Contributor II
Funnily enough I asked Freescale the same question last week.

Their answer was that you should use the bits in GPTFLG1. The documentation will be revised to remove any mention of the CnF bits from GPTFLG2.

Hope this helps


Simon
0 Kudos

375 Views
dmakow
Contributor I
Thank you very much. Finally, I used GPTFLG1 in my IRQ subroutine. However, I was really confused.
0 Kudos