Gpt Status Register (Gsrn) - Freescale Semiconductor MCF5480 Reference Manual

Freescale semiconductor circuit board reference manual
Table of Contents

Advertisement

Bits
Name
7–1
0
LOAD
11.3.4

GPT Status Register (GSRn)

31
30
29
R
W
Reset
0
0
0
15
14
13
R
0
OVF
W
Reset
0
0
0
Reg
Addr
Bits
Name
31–16
CAPTURE Read of internal counter, latch at reference event. This is pertinent only in IC mode, in which case
15
14–12
OVF
11–9
8
PIN
7–4
3
TEXP
Freescale Semiconductor
Table 11-4. GPWMn Field Descriptions (Continued)
Reserved. Should be cleared.
Bit forces immediate period update. Bit auto clears itself. A new period begins immediately with the
current count and width settings.
If LOAD = 0, new count or width settings are not updated until end of current period.
Prescale setting is not part of this process. Changing prescale value while PWM is active causes
unpredictable results for the period in which it was changed. The same is true for PWMOP bit.
28
27
26
25
0
0
0
12
11
10
0
0
0
0
0
MBAR + 0x80C (GSR0), 0x81C (GSR1), 0x82C (GSR2), 0x83C (GSR3)
Figure 11-4. GPT Status Register (GSRn)
Table 11-5. GSRn Field Descriptions
it represents the count value at the time the input event occurred. Capture status does not shadow
the internal counter while an event is pending, it is updated only at the time the input event occurs.
If ICT is set to 11, which is Pulse Capture Mode, the Capture value records the width of the pulse.
Also, the SC bit is irrelevant in Pulse Capture Mode, operation is as if SC were 0.
Reserved. Should be cleared.
Overflow counter. Represents how many times internal counter has rolled over. This is pertinent
only during IC mode and would represent an extremely long period of time between input events.
However, if SC = 1 (indicating cumulative reporting of input events), this field could come into play.
This field is cleared by any "sticky bit" status write in the TEXP, PWMP, COMP, or CAPT bit fields.
Reserved
GPIO input value. This bit reflects the registered state of the TINn pin (all modes). The clock
registers the state of the input. Valid, even if timer is not enabled.
Reserved. Should be cleared.
Timer expired in internal timer mode. Cleared by writing 1 to this bit position. Also cleared if TMS
is 000 (i.e., timer not enabled).
MCF548x Reference Manual, Rev. 3
Description
24
23
22
CAPTURE
0
0
0
0
9
8
7
6
0
PIN
0
0
0
0
0
0
Description
Memory Map/Register Definition
21
20
19
18
0
0
0
0
5
4
3
2
0
0
TEXP PWMP COMP CAPT
0
0
0
0
17
16
0
0
1
0
0
0
11-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mcf5481Mcf5482Mcf5483Mcf5484Mcf5485

Table of Contents