Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Use the PWM Generators to generate pulse width modulated signals on the FPGA. These signals can be mapped directly to Digital Output channels or circuit model Switches.
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 | | | Phase offset of the generated PWM relative to the other PWMs using the same frequency engine. |
Polarity |
| High | The polarity of the signal. - Active High - Outputs a HIGH voltage when the signal is True and a LOW voltage when the signal is False.
- Active Low - Outputs a HIGH voltage when the signal is False and a LOW voltage when the signal is True.
|
Wave Mode |
| Asymmetric | Defines the location of the signal pulse within the PWM period. - Symmetric - The pulse is centered within the PWM period.
- Asymmetric - The rising edge of the pulse is aligned with beginning of the PWM period.
|
Update Moment |
| Beginning | Defines when the Duty Cycle is updated to a commanded value. - Beginning - The PWM duty cycle is updated to a new value at the beginning of the PWM period.
- Middle - The PWM duty cycle is updated to a new value and the middle of the PWM period.
- Both - The PWM duty cycle is updated to a new value at the beginning and middle of the PWM period.
|
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) | - False - Normal operation
- True - Resets all PWMs
|