|
|
|
Bean
PWMMC
|
Pulse width modulation for motor control
Parameters of the bean.
|
Properties:
-
Bean name - Name of the bean.
-
Device - Selection of the PWM module.
-
Align - Determines if the motor control PWM will operate in edge-aligned mode or center-aligned mode. Period in the center-aligned mode is two times longer than in edge-aligned mode.
For more information see Application Notes
-
Settings supported for HC08 and HCS12 derivatives only.
-
Mode - Determines if the motor control PWMs will be six independent PWMs or three complementary PWM pairs.
For more information see Application Notes
-
Top-Side PWM Polarity - Determines if the top-side PWMs will have positive or negative polarity. For positive polarity active state is logic high, inactive logic low. For negative polarity active state is logic low, inactive logic high.
-
Bottom-Side PWM Polarity - Determines if the bottom-side PWMs will have positive or negative polarity.
-
Settings supported for 56800 and HCS12 derivatives only.
-
Reload - Select from 1 to 16 PWM cycles, rate after which new modulus will be reloaded
For more information see Application Notes
-
Half cycle reload - Enables half-cycle reloads in center-aligned PWM mode.
For more information see Application Notes
-
Hardware acceleration - If enabled swap and mask channel operations can be used.
-
Load mode - Determine the way the value registers are being loaded.
- mode 1 : PWM duties loaded independently.
- mode 2 : writing to PWM0 duty also writes to duties of the PWM 1-5.
- mode 3 : writing to PWM0 duty also writes to duties of the PWM 1- 3.
Not available for devices PMFA_PWM, PMFB_PWM, PMFC_PWM.
-
Swap PWM output 0 and 1 - Swap outputs 0 and 1 if improved Swap and mask operation is no. Not available if PWM pair 0 is disabled.
-
Swap PWM output 2 and 3 - Swap outputs 2 and 3 if improved Swap and mask operation is no. Not available if PWM pair 1 is disabled.
-
Swap PWM output 4 and 5 - Swap outputs 4 and 5 if improved Swap and mask operation is no. Not available if PWM pair 2 is disabled.
-
Frequency - Frequency of the output signal. In center-aligned mode frequency is twice smaller than in edge-aligned mode. It is necessary to type here both value and unit (see Timing Setting Syntax). The setting may be made with the help of the Timing dialog box that gets open when clicking on button
(...).
For more information see Application Notes
-
Output Frequency - PWMMC output frequency (for information only). In center-aligned mode frequency is twice smaller than in edge-aligned mode.
For more information see Application Notes
-
Same frequency in modes - Frequency is exactly the same in all speed modes (high, low, slow). If you select 'Yes' timing will keep with tolerance 1 tick. If you select 'No' timing will keep with setting precision only.
-
Settings supported for HC08, HCS12 and 56800 derivatives only.
-
Dead-time - In the complementary mode, deadtime generators automatically insert software-selectable activation delays into each pair of PWM outputs. It is necessary to type here both value and unit (see Timing Setting Syntax). The setting may be made with the help of the Timing dialog box that gets open when clicking on button
(...).
For more information see Application Notes
-
Correction - For information only. Correction selects according correction method either the top or the bottom PWM value to use in the next PWM cycle.
Correction is enabled if any PWM pair is in complementary mode otherwise is disabled.
-
Settings for HC08MR16/32 derivatives, HCS12 and 56800 family.
-
Correction - Correction method:
- method 1: manual correction or no correction, bits IPOL1, IPOL2, and IPOL3 are used for correction
- method 2: current sensing on pins IS1, IS2 and IS3 occurs during dead-time
- method 3: pins ISx at the half cycle in center aligned mode and at the end of the cycle in edge-aligned mode
-
Settings for HC08MR16/32 derivatives, HCS12 and 56800 family.
-
Pins - For information only. Pins used in case of correction methods 2 and 3.
-
Current sensing pin - For information only. Correction pin IS0. Pin value selects either the top or the bottom PWM value are used in the next PWM cycle.
-
Current sensing pin name - Name of signal connected with pins IS0.
-
Current sensing pin - For information only. Correction pin IS1. Pin value selects either the top or the bottom PWM value are used in the next PWM cycle.
-
Current sensing pin name - Name of signal connected with pins IS1.
-
Current sensing pin - For information only. Correction pin IS2. Pin value selects either the top or the bottom PWM value are used in the next PWM cycle.
-
Current sensing pin name - Name of signal connected with pins IS2.
-
PWM pairs - The using PWM pairs to correction of the PWMMC.
There are 5 modes:
- Disabled - There are no items in this mode.
- PWM Pair 0, 1, 2 - The following items are displayed in this mode:
-
PWM Pair 0 - Correction used in case of correction method 1 for PWM Pair 0 (channels 0 and 1). Either the top or the bottom PWM value to use in the next PWM cycle. Not available if PWM pair 0 is disabled.
-
PWM Pair 1 - Correction used in case of correction method 1 for PWM Pair 1 (channels 2 and 3). Either the top or the bottom PWM value to use in the next PWM cycle. Not available if PWM pair 1 is disabled.
-
PWM Pair 2 - Correction used in case of correction method 1 for PWM Pair 2 (channels 4 and 5). Either the top or the bottom PWM value to use in the next PWM cycle. Not available if PWM pair 2 is disabled.
- PWM Pair 0 - The following items are displayed in this mode:
-
PWM Pair 0 - See previous modes for more details
- PWM Pair 1 - The following items are displayed in this mode:
-
PWM Pair 1 - See previous modes for more details
- PWM Pair 2 - The following items are displayed in this mode:
-
PWM Pair 2 - See previous modes for more details
-
Interrupt service/event - Support of interrupt service.
-
Channel 0 - Channel 0 of the PWM (PWM pair 0)
-
Channel 1 - Channel 1 of the PWM (PWM pair 0). For information only if PWM pair 0 is in complementary mode.
-
Channel 2 - Channel 2 of the PWM (PWM pair 1)
-
Channel 3 - Channel 3 of the PWM (PWM pair 1). For information only if PWM pair 1 is in complementary mode.
-
Channel 4 - Channel 4 of the PWM (PWM pair 2)
-
Channel 5 - Channel 5 of the PWM (PWM pair 2). For information only if PWM pair 2 is in complementary mode.
-
Fault protection - Fault protections settings of the PWMMC bean. Property is available only for Freescale HCS12 derivatives.
There are 2 modes:
- controlled by this bean - The fault pins will be controlled by this bean. The following items are displayed in this mode:
-
HC08MR16/32 HCS12 DSP56800 - Settings for HC08MR16/32, HCS12, DSP56800 derivatives.
-
Fault 0 - Fault protections settings of the pin 0
-
Fault pin - For information only. Fault pin 0.
-
Fault pin signal - Signal name of the fault pin 0.
-
Fault clearing mode - Selection between automatic and manual mode faults. Property is available only if interrupt service/event is enabled. For more information see Application Notes
-
HCS12 - The settings are supported only for HCS12 derivatives.
-
Qualifying samples - The number of consecutive samples taken at the FAULT pin every four CPU cycles to determine if a fault is detected.
-
HC08MR16/32 HCS12 DSP56800 - Settings for HC08MR16/32, HCS12, DSP56800 derivatives.
-
Fault 1 - Fault protections settings of the pin 1
-
Fault pin - For information only. Fault pin 1.
-
Fault pin signal - Signal name of the fault pin 1.
-
Fault clearing mode - Selection between automatic and manual mode faults. Property is available only if interrupt service/event is enabled. For more information see Application Notes
-
HCS12 - The settings are supported only for HCS12 derivatives.
-
Qualifying samples - The number of consecutive samples taken at the FAULT pin every four CPU cycles to determine if a fault is detected.
-
Fault 2 - Fault protections settings of the pin 2
-
Fault pin - For information only. Fault pin 2.
-
Fault pin signal - Signal name of the fault pin 2.
-
Fault clearing mode - Selection between automatic and manual mode faults. Property is available only if interrupt service/event is enabled. For more information see Application Notes
-
HCS12 - The settings are supported only for HCS12 derivatives.
-
Qualifying samples - The number of consecutive samples taken at the FAULT pin every four CPU cycles to determine if a fault is detected.
-
HC08MR8/32 HCS12 DSP56800 - Settings for HC08MR8/32, HCS12, DSP56800 derivatives.
-
Fault 3 - Fault protections settings of the pin 3
-
Fault pin - For information only. Fault pin 3.
-
Fault pin signal - Signal name of the fault pin 3.
-
Fault clearing mode - Selection between automatic and manual mode faults. Property is available only if interrupt service/event is enabled. For more information see Application Notes
-
HCS12 - The settings are supported only for HCS12 derivatives.
-
Qualifying samples - The number of consecutive samples taken at the FAULT pin every four CPU cycles to determine if a fault is detected.
- controlled by master bean - The fault pins will be controlled by another PWMMC bean. This settings is supported only for Freescale HCS12 derivatives. The following items are displayed in this mode:
-
Initialization - Initial settings (after power-on or reset).
-
CPU clock/speed selection - Settings for the CPU speed modes: if the bean is supported or not.
For details about speed modes please refer to page Speed Modes Support.
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|