|
|
|
Component
Capture
Timer capture encapsulation
Properties:
-
Component name - Name of the component.
-
Capture device - Capture device used by this component.
-
Counter - Name of the Counter used by this component (for information only).
-
Settings only if capture supports trigger
-
Capture input pin - Input capture pin (or internal signal).
-
Capture input signal - Signal name of the capture input pin.
-
Settings only if Capture device is FTM and the chanel supports input capture filter.
-
Capture input filter - Non-zero value of selects filtering of input signal. When there is a state change in the input signal, 5-bit counter is reset and start to increment. If the counter overflows the value of Capture input filter, the change of input signal is validated and send to edge detector. If oposite edge appears before validation, the counter is reset. Any pulse that is shorter than (Capture input filter x 4 system clocks) is regarded as a glitch and is not passed to the edge detector. If Capture input filter is zero, the filter is disabled.
-
Settings not supported for MCF derivatives.
-
Pull resistor - Setting of pull resistor.
There are 6 options:
- no pull resistor: Input without pull resistor is required
- pull up: Input with pull-up resistor is required
- pull down: Input with pull-down resistor is required
- pull up or no pull: Input with pull-up resistor is preferred, but no-pull is acceptable
- pull down or no pull: Input with pull-down resistor is preferred, but no-pull is acceptable
- autoselected pull: There are no special requirements for pull resistors
-
Edge - Types of the signal edges that are captured.
There are 4 options:
- rising or falling edge: One of the following edge type will be selected: rising or falling
- rising edge: Rising edge required
- falling edge: Falling edge required
- both edges: Both edges (rising and falling) required
-
Interrupt service/event - Component uses the interrupt service for the capture function.
Events OnCapture and OnOverflow are available only if Interrupt service is enabled. If this property is set to "Enabled", the component functionality depends on the interrupt service and will not operate if the CPU interrupts are disabled. For details please refer to chapter "interrupt service in the component's generated code".
The following items are available only if the group is enabled (the value is "Enabled"):
-
Maximum time of event - Guaranteed time before timer overflow.
-
Initialization - Initial settings (after power-on or reset).
-
CPU clock/speed selection - Settings for the CPU speed modes: identifies whether the component is supported or not.
|