FCC
Libraries:
Embedded Coder Support Package for Infineon AURIX TC4x
Microcontrollers /
AURIX TC4x
Description
The FCC block models a fast compare comparator (FCC) that detects when the value crossings of an analog input signal crosses a programmable 10-bit threshold value. The block outputs the status of the boundary flag as a Boolean value.
Ports
Input
Specify the reference threshold value for comparison at this port.
Dependencies
To enable this port, set the Mode parameter to
Normal
or
Hysteresis
and select the Enable
threshold input parameter.
Data Types: single
Specify the step width of the ramp at this port.
Dependencies
To enable this parameter, set the Mode parameter to
Ramp
and select the Enable ramp
configuration inputs parameter.
Data Types: single
Specify the step size of the ramp at this port.
Dependencies
To enable this parameter, set the Mode parameter to
Ramp
and select the Enable ramp
configuration inputs parameter.
Data Types: single
Specify the start value of the ramp at this port.
Dependencies
To enable this parameter, set the Mode parameter to
Ramp
and select the Enable ramp
configuration inputs parameter.
Data Types: single
Specify the end value of the ramp at this port.
Dependencies
To view this parameter, select the Mode parameter as
Ramp
and ensure the Enable ramp
configuration inputs parameter is enabled.
Data Types: single
Output
The block outputs the status of the boundary flag during a threshold update as one of these values:
0 —
Boundary flag is inactive1 —
Boundary flag is active
Data Types: Boolean
This port returns the threshold value that the FCC reaches at the end of the ramp mode.
Dependencies
To enable this port, set the Mode parameter to
Ramp
and select the Enable threshold
output parameter.
Data Types: single
Parameters
Select one of these operation modes:
Normal—
Compare the threshold reference value against the analogue input signal. If you enable the Enable threshold input parameter, the comparator uses a threshold value until a hardware or software trigger occurs. If not enabled, the block sets the initial threshold value to 5V.Hysteresis—
Compare the upper and lower limit threshold values against the analogue input signal. In this mode, you can update the new threshold limit values using threshold trigger or software trigger events.Ramp—
Compare the ramp threshold signal against the analogue input signal. You can configure the start value, end value, step size (indicating the increment in voltage for every step) and step width (indicating the increment in time for every step) of the ramp signal. Control the start and end of ramp mode using below cases:Start ramp on software trigger and end on reaching the End of Threshold Value (ETV)
Start ramp on software trigger and end on receiving a hardware trigger or reaching the ETV value
Start ramp on software trigger and end on Boundary flag transition or reaching the ETV value
Start ramp on hardware trigger and end on reaching the ETV value
Start ramp on hardware trigger and end on receiving another hardware trigger or reaching the ETV value
You can use this mode of operation to control input signal behavior during system soft start or power-down operation without software intervention.
Normal
, Hysteresis
or
Ramp
.
Selecting an operation mode enables options in the Threshold tab of the FCC Peripheral Configuration.
Select this parameter to configure the threshold input port.
Dependencies
To enable this parameter, set the Mode parameter to
Normal
or
Hysteresis
.
Select this parameter to enable the input ports for configuring the ramp mode.
When you select this parameter, the block configures the stepWidth, stepSize, rampStart, and rampEnd input ports.
Dependencies
To enable this parameter, set the Mode parameter to
Ramp
.
Select this parameter to configure the threshold output port.
Dependencies
To enable this parameter, set the Mode parameter to
Ramp
.
Version History
Introduced in R2024a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)