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 sheet.
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
= 16.67 ns, then the duration of the sampling window is:
t
w
(IQSW) = 5 × 2 × 16.67 ns =166.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 + 166.67 ns = 500.1 ns
• In
, the glitch (A) is shorter then the qualification window and will be ignored by the input qualifier.
GPIO Signal
1
Sampling Window
Output From
Qualifier
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
SYSCLKOUT
QUALPRD = 1
(SYSCLKOUT/2)
(SYSCLKOUT cycle * 2 * QUALPRD) * 5
(C)
)
(A)
GPxQSELn = 1,0 (6 samples)
Sampling Period determined
by GPxCTRL[QUALPRD]
(B)
A. This glitch will be ignored by the input qualifier. The QUALPRD bit field specifies the qualification sampling period. It can vary from 00 to
0xFF. If QUALPRD = 00, then the sampling period is 1 SYSCLKOUT cycle. For any other value “n”, the qualification sampling period in 2n
SYSCLKOUT cycles (i.e., at every 2n SYSCLKOUT cycles, the GPIO pin will be sampled).
B. The qualification period selected via the GPxCTRL register applies to groups of 8 GPIO pins.
C. The qualification block can take either three or six samples. The GPxQSELn Register selects which sample mode is used.
D. In the example shown, for the qualifier to detect the change, the input should be stable for 10 SYSCLKOUT cycles or greater. In other words,
the inputs should be stable for (5 x QUALPRD x 2) SYSCLKOUT cycles. That would ensure 5 sampling periods for detection to occur. Since
external signals are driven asynchronously, an 13-SYSCLKOUT-wide pulse ensures reliable recognition.
(D)
t
w(SP)
t
w(IQSW)
Figure 1-64. Input Qualifier Clock Cycles
System Control and Interrupts
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
119
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......