Use the PWM Generators to generate pulse width modulated signals on the FPGA. These signals can be mapped directly
...
...
channels or circuit model Switches.
Configuration Page
In
...
the System Explorer
...
window configuration tree, expand
...
the Power Electronics Add-On
...
custom device and
...
select Circuit Model >> PWM Generators
...
to display this page. Use this page to configure the PWM generators.
For each PWM Generator, the following parameters are available at edit-time.
PWM Generator Settings | |||
Units | Default Value | Description | |
---|---|---|---|
Frequency | Hz | 0 | Defines the frequency of the carrier signal that is used to generate PWM. |
Duty Cycle | % | 0% | Fraction of one period for which the PWM signal is active, as a percentage. Changing this value will update the default value of the Duty Cycle channel that corresponds to the selected PWM generator. |
Dead Time | Seconds | 0s | Time during which both the PWM signal and its complementary are held in an inactive state, immediately before the PWM signal goes active. |
Phase Shift | Degrees | 0 deg | Phase offset of the generated PWM relative to the other PWMs using the same frequency engine. |
Polarity | High | The polarity of the signal.
| |
Wave Mode | Asymmetric | Defines the location of the signal pulse within the PWM period.
|
...
Update Moment | Beginning | Defines when the Duty Cycle is updated to a commanded value.
|
PWM Generators Section Channels
In
...
the System Explorer
...
window configuration tree, expand
...
the Power Electronics Add-On
...
custom device, then Circuit Model >> PWM Generators to display the following subsections and custom device channels. Assign values to the channels to configure the PWM Generators. The value of an input channel can be modified dynamically at execution time.
PWM Generator X | |||||
Channel Name | Type | Units | Default Value | Description | |
---|---|---|---|---|---|
Duty Cycle | Input | % | 0% | Fraction of one period for which the PWM signal is active, as a percentage | |
PWM Reset | |||||
Channel Name | Type | Units | Default Value | Description | |
PWM Reset | Input | 0 (False) |
|