C28 General-Purpose Input/Output (GPIO)
382
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
General-Purpose Input/Output (GPIO)
Table 4-42. Case 1: Three-Sample Sampling Window Width
Total Sampling Window Width
If GPxCTRL[QUALPRDn] = 0
2 × T
SYSCLKOUT
If GPxCTRL[QUALPRDn]
≠
0
2 × 2 × GPxCTRL[QUALPRDn] × T
SYSCLKOUT
Where T
SYSCLKOUT
is the period in time of SYSCLKOUT
Table 4-43. Case 2: Six-Sample Sampling Window Width
Total Sampling Window Width
If GPxCTRL[QUALPRDn] = 0
5 × T
SYSCLKOUT
If GPxCTRL[QUALPRDn]
≠
0
5 × 2 × GPxCTRL[QUALPRDn] × T
SYSCLKOUT
Where T
SYSCLKOUT
is the period in time of SYSCLKOUT
NOTE:
The external signal change is asynchronous with respect to both the sampling period and
SYSCLKOUT. Due to the asynchronous nature of the external signal, the input should be
held stable for a time greater than the sampling window width to make sure the logic detects
a change in the signal. The extra time required can be up to an additional sampling
T
SYSCLKOUT
.
The required duration for an input signal to be stable for the qualification logic to detect a
change is described in the device specific data manual.
Example Qualification Window:
For the example shown in
, the input qualification has been configured as follows:
•
GPxQSEL1/2 = 1,0. This indicates a six-sample qualification.
•
GPxCTRL[QUALPRDn] = 1. The sampling period is t
w
(SP) = 2 × GPxCTRL[QUALPRDn] × T
SYSCLKOUT
.
This configuration results in the following:
•
The width of the sampling window is: .
t
w
(IQSW) = 5 × t
w
(SP) = 5 × 2 × GPxCTRL[QUALPRDn] × T
SYSCLKOUT
or 5 × 2 × T
SYSCLKOUT
•
If, for example, T
SYSCLKOUT
= 6.67 ns, then the duration of the sampling window is:
t
w
(IQSW) = 5 × 2 × 6.67 ns =66.7 ns.
•
To account for the asynchronous nature of the input relative to the sampling period and SYSCLKOUT,
up to an additional sampling period, t
w
(SP), + T
SYSCLKOUT
may be required to detect a change in the
input signal. For this example:
t
w
(SP) + T
SYSCLKOUT
= 333.4 ns + 66.67 ns = 400.1 ns
•
In
, the glitch (A) is shorter then the qualification window and will be ignored by the input
qualifier.