Doubled status flags of GPT, MCF5282

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Doubled status flags of GPT, MCF5282

1,532件の閲覧回数
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?
ラベル(1)
0 件の賞賛
2 返答(返信)

405件の閲覧回数
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 件の賞賛

405件の閲覧回数
dmakow
Contributor I
Thank you very much. Finally, I used GPTFLG1 in my IRQ subroutine. However, I was really confused.
0 件の賞賛