Handling Epa Overruns - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
Table 10-5. Action Taken when a Valid Edge Occurs
Status of
Overwrite Bit
Capture Buffer
(EPA x _CON.0)
& EPAx_TIME
0
empty
0
1
empty
1
An input capture event does not set the interrupt pending bit until the captured time value actually
moves from the capture buffer into the EPAx_TIME register. If the buffer contains data and the
PTS is used to service the interrupts, then two PTS interrupts occur almost back-to-back (that is,
with one instruction executed between the interrupts).
10.4.1.1

Handling EPA Overruns

Overruns occur when an EPA input transitions at a rate that cannot be handled by the EPA inter-
rupt service routine. If no overrun handling strategy is in place, and if the following three condi-
tions exist, a situation may occur where both the capture buffer and the EPAx_TIME register
contain data, and no EPA interrupt is generated.
an input signal with a frequency high enough to cause overruns is present on an enabled
EPA pin, and
the overwrite bit is set (EPAx_CON.0 = 1; old data is overwritten on overrun), and
the EPAx_TIME register is read at the exact instant that the EPA recognizes the captured
edge as valid.
10-12
Event 1
2 State
Times
Event 2
2 State
Times
Figure 10-7. Valid EPA Input Events
Edge is captured and event time is loaded into the capture buffer and
EPA x _TIME register.
full
New data is ignored — no capture, EPA interrupt, or transfer occurs;
OVR x interrupt pending bit is set.
Edge is captured and event time is loaded into the capture buffer and
EPA x _TIME register.
full
Old data is overwritten in the capture buffer; OVR x interrupt pending
bit is set.
2 State
Times
2 State
Times
Action taken when a valid edge occurs
A3130-01

Advertisement

Table of Contents
loading

Table of Contents