MotoHawk:Blocks:Synchronized PWM Child
Contents
Synchronized PWM Child
This MotoHawk™ block references a PWM parent block, and drives the output with a square wave with a specified phase offset relative to the parent.
Block ID
motohawk_pwm_child
Library
MotoHawk_lib/Analog I/O Blocks
Description
A synchronized PWM child has an independent duty cycle, but has a defined phase relationship with a parent.
The MotoHawk block help topic Synchronized PWM Child provides up to date help content for this block.
Limitations
This block currently only works for 5xx processor targets, each parent can only have two or fewer child PWMs, and the parent and child resources must reside on the same [../MotoHawk_topics/TPU.html TPU bank].
If the resource is not behaving as exspected there are a few common errors. To check the common errors look at the resource creation status in the display(System|Debug|Resources|PWM|"ResourceName").
Common Errors
Error Enum | Common Causes |
---|---|
TPU Config | Check parent PWM is enabled as parent PWM. Check parent and child are on same TPU bank. |
TPU Primative Usage | Use 2 or fewer child PWM per parent PWM. |
TPU Primative Count | Use 2 or fewer child PWM per parent PWM. |
Hardware not Supported | Check that resource is on a TPU bank. |
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Resource | Drop-down list | Select from available resource, per target ECU, such as H-bridge, etc. |
Parent Reference Type | Select Method for choosing resource of Parent | |
By Resource | Enable Drop-down list | |
By VarDec Name | Open Parent Name field | |
Parent Resource | Drop-down list | Select Parent Resource from available resource, per target ECU, such as H-bridge, etc. |
Parent Name | Alpha-numeric text, single-quote enclosed | Indicate exact Name of Parent Resource. No special characters, such as spaces, dashes, commas (underscore allowed). |
Output Current | Check box (enable) | When "Output Current" is checked, the drive current in milliamps is provided. |
Output Fault Status | Check box (enable) |
When "Output Fault Status" is checked, a value indicating fault status is provided. This value is one of: |
Allow I/O pin to be calibrated from MotoTune | Check box (enable) | Name, Access Levels and MotoTune Group Strings fields available |
Name | Alpha-numeric text, single-quote enclosed | Name as displayed in MotoTune, for block. No special characters, such as spaces, dashes, commas (underscore allowed) |
Read Access Level | 1-4 | Sets security level 1 lowest, 4 highest, for user access to read value |
Write Access Level | 1-4 | Sets security level 1 lowest, 4 highest, for user access to write value |
MotoTune Group String | Alpha-numeric text, single-quote enclosed | Determines Folder name and hierarchy as displayed in MotoTune. Use "|" character between folder names to delineate subfolder structure |