FLT - Fault inputs

At the hardware level, FLT inputs are special-purpose digital inputs that can be configured to generate a “hardware fault” in order to instantly disable all PWM outputs in case of inadequate operation (similar to an analog input limit fault or any other fault). This block and the associated C/C++ routine control the activation of these inputs. They also provide means to read the value of the corresponding pin at the CPU execution rate.

FLT inputs are typically useful to retrieve fault feedback information from imperix modules (if needed) or custom-designed gate drivers. When optical fibers are used, the optical expansion board can be useful for that purpose. More information about the hardware protections present on imperix controllers is provided in PN263.

The table below outlines the location and logic-voltage levels of the FLT input across imperix controllers. Detailed information is available in the product datasheets.

Param.B-Box 4B-Box 3B-Box microB-Board 3 PRO
Location and count24x VHDCI A16x VHDCI AUnavailable32x JX1 (bottom)
Logic level3.3V / 5V3.3VN/A1.8V
Shared withGPIN/AN/AN/A
Reaction time8 – 16 ns50 – 60 nst.b.d.t.b.d.
Product datasheetB-Box 4B-Box 3B-Box 3 microB-Board 3

Simulink block

Signal specification

The output signal returns the value of one FLT pin.

Fault inputs block Simulink

Parameters

  • Device ID selects which device to address when used in a multi-device configuration.
  • Fault input(s) (vectorizable) selects the pin(s) to read.
  • Activate fault input enables the generation of a “hardware fault” if the pin goes high, immediately blocking all PWM outputs.
Fault inputs Simulink dialog parameters

PLECS block

Signal specification

The output signal returns a vector containing the values of the FLT pins. The vector size is defined by the number of FLT pin(s) read, which is specified by the parameter Fault input(s).

Fault inputs PLECS block

Parameters

  • Device ID selects which device to address when used in a multi-device configuration.
  • Fault input(s) (vectorizable) selects the pin(s) to read.
  • Activate fault input enable the generation of a “hardware fault” if the pin goes high and immediately disable all the PWM outputs.

C++ functions

void Flt_ActivateFaultInput(tFaultInput input, unsigned int device=0);Code language: C++ (cpp)

Enables the generation of a “hardware fault” if the addressed pin goes high. On a B-Box 4 device, this function also determines the active input type, since these pins are shared with GPI.

Can only be called in UserInit().

Parameters

  • input: the fault input pin number
  • device: the ID of the addressed device (optional, used in multi-device configuration only)
int Flt_GetBit(unsigned int bit, unsigned int device=0);Code language: C++ (cpp)

Returns the fault input pin value (0 or 1).

Can only be called in the interrupt routine.

Parameters

  • input: the fault input pin number
  • device: the ID of the addressed device (optional, used in multi-device configuration only)
int Flt_Get(unsigned int device=0);Code language: C++ (cpp)

Returns the status of all fault inputs.

Can only be called in the interrupt routine.

Parameters

  • device: the ID of the addressed device (optional, used in multi-device configuration only)