Motorola MCF5281 사용자 설명서

다운로드
페이지 816
20-12
MCF5282 User’s Manual
MOTOROLA
 
Memory Map and Registers  
20.5.12 GPT Flag Register 1 (GPTFLG1)
20.5.13 GPT Flag Register 2 (GPTFLG2)
Note:  When the fast flag clear all bit, GPTSCR1[TFFCA], is set, any access to the GPT counter registers clears GPT 
flag register 2.
7
6
5
4
3
0
Field
CF
Reset
0000_0000
R/W
R/W
Address
IPSBAR + 0x1A_000E, 0x1B_000E
Figure 20-14. GPT Flag Register 1 (GPTFLG1)
Table 20-15. GPTFLG1 Field Descriptions
Bit(s)
Name
Description
7–4
Reserved, should be cleared.
3–0
CnF
Channel flags. A channel flag is set when an input capture or output compare event 
occurs. These bits are read anytime, write anytime (writing 1 clears the flag, writing 0 
has no effect).
Note: When the fast flag clear all bit, GPTSCR1[TFFCA], is set, an input capture read 
or an output compare write clears the corresponding channel flag. When a channel flag 
is set, it does not inhibit subsequent output compares or input captures.
7
6
5
4
3
0
Field
TOF
CF
Reset
0000_0000
R/W
R/W
Address
IPSBAR + 0x1A_000F, 0x1B_000F
Figure 20-15. GPT Flag Register 2 (GPTFLG2)
Table 20-16. GPTFLG2 Field Descriptions
Bit(s)
Name
Description
7
TOF
Timer overflow flag. Set when the GPT counter rolls over from 0xFFFF to 0x0000. If 
the TOI bit in GPTSCR2 is also set, TOF generates an interrupt request. This bit is read 
anytime, write anytime (writing 1 clears the flag, and writing 0 has no effect).
1 Timer overflow
0  No timer overflow
Note: When the GPT channel 3 registers contain 0xFFFF and TCRE is set, TOF does 
not get set even though the GPT counter registers go from 0xFFFF to 0x0000. When 
TOF is set, it does not inhibit subsequent overflow events.
6–4
Reserved, should be cleared.
3–0
CnF
Channel flags. A channel flag is set when an input capture or output compare event 
occurs. These bits are read anytime, write anytime (writing 1 clears the flag, writing 0 
has no effect).