MotoHawk:Blocks:Hbridge Out
HBridge Output
This MotoHawk™ block is configurable for controlling pulse-width modulation (PWM) output specifically for HBridges.
Block ID
HBridge_Output
Library
MotoHawk_lib/Analog I/O Blocks
Description
This block includes the Frequency and Duty Cycle (DC) inputs, DC values range int16 -4096 to 4096, where 0 represents 0% and 4096 is 100%. Positive values have the current flow from H(A/+) to H(B/-) negative values will have current flow from H(B/-) to H(A/+). The Frequency input is uint32 which represents 0.01Hz. This block differs from the [PWMOutput.html PWM] block in that it holds both legs low and PWMs one leg high for current flow. The PWM block will hold both legs high and PWM one of the legs low. The percent braking PWMs both legs low for the duty cycle and will float rest of the time.
Block Parameters
Parameter Field | Values | Comments/Description |
Name | Alpha-numeric text, single-quote enclosed | Name as displayed in MotoTune, for block. No special characters, such as spaces, dashes, commas (underscore allowed) |
Resource | Drop-down list | Select from available resource, per target ECU, such as H-bridge, etc. |
Input Enable | Check box (enable) | When "Input Enable" is checked, the output may be dynamically controlled. When disabled, the output transistors are completely turned off, which will stop all current, but also disable any diagnostics. |
Input Brake | Drop-down list | Select "Off/On" to have a boolean switch for braking, or select "Percent" to PWM the brake at the duty cycle specified at the Brake input. A non-zero value on the Brake input overrides the Duty Cycle input. Note: When using Brake in Percent mode, no faults will be reported. |
Use Minimum Frequency | Check box (enable) | Enables the Minimum Frequency (Hz) field. |
Minimum Frequency (Hz) | Numeric | Setting this value tunes the clocks used for PWM generation and should be set to the minimum expected frequency. The Frequency input is uint32 and each unit represents 0.01Hz. |
Use Maximum Frequency | Check box (enable) | Enables the Maximum Frequency (Hz) field. |
Maximum Frequency (Hz) | Numeric | Setting this value tunes the clocks used for PWM generation and should be set to the maximum expected frequency. The Frequency input is uint32 and each unit represents 0.01Hz. |