English
Language : 

XC161 Datasheet, PDF (140/419 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Units
17.10 External Input Signal Requirements
The external input signals of a CAPCOM unit are sampled by the CAPCOM logic based
on the module clock and the basic operation mode (staggered or non-staggered mode).
To assure that a signal level is recognized correctly, its high or low level must be held
active for at least one complete sampling period.
The duration of a sampling period is one module clock cycle in non-staggered mode, and
8 module clock cycles in staggered mode. To recognize a signal transition, the signal
needs to be sampled twice. If the level of the first sampling is different to the level
detected during the second sampling, a transition is recognized. Therefore, a minimum
of two sampling periods are required for the sampling of an external input signal. Thus,
the maximum frequency of an input signal must not be higher than half the module clock
frequency in non-staggered mode, and a 1/16th of the module clock frequency in
staggered mode.
Table 17-5 summarizes the requirements and limits for external input signals.
Table 17-5 CAPCOM External Input Signal Limits
Non-Staggered Mode
Maximum Input Frequency fCC/2
Minimum Input Signal Level 1/fCC
Duration
Staggered Mode
fCC/16
8/fCC
In order to use an external signal as a count or capture input, the port pin to which it is
connected must be configured as input.
Note: For example for test purposes a pin used as a count or capture input may be
configured as output. Software or an other peripheral may control the respective
signal and thus trigger count or capture events.
In order to cause a compare output signal to be seen by the external world, the
associated port pin must be configured as output. Compare output signals can either
directly switch the port latch, or the output of the CCx_OUT latch is used as an alternate
output function of a port.
User’s Manual
CC12_X1, V2.1
17-36
V2.2, 2004-01