Doubled status flags of GPT, MCF5282

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Doubled status flags of GPT, MCF5282

1,533 次查看
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 回复数

406 次查看
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 项奖励

406 次查看
dmakow
Contributor I
Thank you very much. Finally, I used GPTFLG1 in my IRQ subroutine. However, I was really confused.
0 项奖励