|
|
|
Component
Init_PWMMC for HC08
Pulse-Width Modulator for Motor Control (PWMMC)
Device Initialization
(Description of the component parameters.)
-
Device - Selection of the PWMMC device module
-
Settings - Common PWMMC module settings.
-
Clock settings - Clock/timing settings of the module.
-
Prescaler - Set value of the prescaler.
This item modifies the PRSC[1:0] bits in the PCTL2 register.
-
PWM counter modulus - Set value of counter modulus that determines the maximum count for up/down or up-only counter.
This item modifies the PMOD register.
-
PWM period - The property shows period of PWM.
This item is influenced by the following properties: Prescaler, PWM counter modulus.
-
Load frequency value - Set value of load frequency.
This item modifies the LDFQ[1:0] bits in the PCTL2 register.
-
Settings supported for HC908MR8/MR16/MR32 derivatives only.
-
Deadtime - Deadtime clock settings
-
Deadtime device - Selected PWMMC deadtime device module (for information only).
-
Deadtime value - Set value of the deadtime.
This item modifies the DEADTM register.
-
Deadtime - The property shows the deadtime (for information only).
This item is influenced by the following properties: Deadtime value.
-
Channel 1 - Channel 1 clock settings
-
PWM value - Set value of the PWM channel 1 duty cycle.
HC908LB8: This item modifies the PVAL0 register.
HC908MR8/16/32: This item modifies the PVAL1 register.
-
PWM duty cycle - Duty cycle value of the PWM channel 1 (for information only).
This item is influenced by the following properties: PWM value.
-
Channel 2 - Channel 1 clock settings
-
PWM value - Set value of the PWM channel 2 duty cycle.
HC908LB8: This item modifies the PVAL1 register.
HC908MR8/16/32: This item modifies the PVAL2 register.
-
PWM duty cycle - Duty cycle value of the PWM channel 2 (for information only).
This item is influenced by the following properties: PWM value.
-
Settings supported for HC908MR8/MR16/MR32 derivatives only.
-
Channel 3 - Channel 3 clock settings
-
PWM value - Set value of the PWM channel 3 duty cycle.
This item modifies the PVAL3 register.
-
PWM duty cycle - Duty cycle value of the PWM channel 3 (for information only).
This item is influenced by the following properties: PWM value.
-
Channel 4 - Channel 4 clock settings
-
PWM value - Set value of the PWM channel 4 duty cycle.
This item modifies the PVAL4 register.
-
PWM duty cycle - Duty cycle value of the PWM channel 4 (for information only).
This item is influenced by the following properties: PWM value.
-
Channel 5 - Channel 5 clock settings
-
PWM value - Set value of the PWM channel 5 duty cycle.
This item modifies the PVAL5 register.
-
PWM duty cycle - Duty cycle value of the PWM channel 5 (for information only).
This item is influenced by the following properties: PWM value.
-
Channel 6 - Channel 6 clock settings
-
PWM value - Set value of the PWM channel 6 duty cycle.
This item modifies the PVAL6 register.
-
PWM duty cycle - Duty cycle value of the PWM channel 6 (for information only).
This item is influenced by the following properties: PWM value.
-
Settings supported for HC908MR8/MR16/MR32 derivatives only.
-
Align - Set PWMMC operate in edge-aligned or centered mode.
This item modifies the EDGE bit in the CONFIG register.
-
Mode - Set PWMMC will be six independent PWMs or three complementary pairs.
This item modifies the INDEP bit in the CONFIG register.
-
Top side polarity - Set top-side PWM's positive or negative polarity.
This item modifies the TOPNEG bit in the CONFIG register.
-
Bottom side polarity - Set bottom-side PWM's positive or negative polarity.
This item modifies the BOTNEG bit in the CONFIG register.
-
Settings supported for HC908MR16/MR32 derivatives only.
-
Current correction - Set current method of correction.
This item modifies the ISENS[1:0] bits in the PCTL1 register.
There are 3 options:
- Method 1: for correction is used bits IPOL1, IPOL2 and IPOL3
- Method 2: for correction is used pins Current sensing pin 1, Current sensing pin 2 and Current sensing pin 3 during deadtime
- Method 3: for correction is used pins Current sensing pin 1, Current sensing pin 2 and Current sensing pin 3 occurs at the half cycle in center aligned mode and at the end of cycle in edge-aligned mode.
-
Settings supported for HC908MR8/MR16/MR32 derivatives only.
-
Output control - Set mode of output pins. If set to Manually option user operates with output pin activity by the hand.
This item modifies the OUTCTL bit in the PWMOUT register.
-
Settings supported for HC908MR8/MR16/MR32 derivatives only.
-
Correction - Correction settings
-
Correction for PWM pair 0 - Select which PWM value register is used for PWM output pins 1 and 2 in complementary mode.
HC908MR16/32: This item modifies the IPOL1 bit in the PCTL2 register.
HC908MR8: This item modifies the SEL12 bit in the PCTL2 register.
-
Correction for PWM pair 1 - Select which PWM value register is used for PWM output pins 3 and 4 in complementary mode.
HC908MR16/32: This item modifies the IPOL2 bit in the PCTL2 register.
HC908MR8: This item modifies the SEL34 bit in the PCTL2 register.
-
Correction for PWM pair 2 - Select which PWM value register is used for PWM output pins 5 and 6 in complementary mode.
HC908MR16/32: This item modifies the IPOL3 bit in the PCTL2 register.
HC908MR8: This item modifies the SEL56 bit in the PCTL2 register.
-
Pins - Module pins/signals settings.
-
Settings supported for HC908MR32 derivatives only.
-
Channel 1 - Channel 1 Pins/Signals
-
Channel 2 - Channel 2 Pins/Signals
-
Settings supported for HC908MR8/16/32 derivatives only.
-
Channel 3 - Channel 3 Pins/Signals
-
Channel - Selection of PWM channel 3
-
Output pin - Selection of channel 3 output pin
-
Output pin active - Set Channel 3 output pin activated or inactivated. This property is available only if the Output control property is set to manually mode.
This item modifies the OUT3 bit in the PWMOUT register.
-
Channel 4 - Channel 4 Pins/Signals
-
Channel - Selection of PWM channel 4
-
Output pin - Selection of channel 4 output pin
-
Output pin active - Set Channel 4 output pin activated or inactivated. This property is available only if the Output control property is set to manually mode.
This item modifies the OUT4 bit in the PWMOUT register.
-
Channel 5 - Channel 5 Pins/Signals
-
Channel - Selection of PWM channel 5
-
Output pin - Selection of channel 5 output pin
-
Output pin active - Set Channel 5 output pin activated or inactivated. This property is available only if the Output control property is set to manually mode.
This item modifies the OUT5 bit in the PWMOUT register.
-
Channel 6 - Channel 6 Pins/Signals
-
Channel - Selection of PWM channel 6
-
Output pin - Selection of channel 6 output pin
-
Output pin active - Set Channel 6 output pin activated or inactivated. This property is available only if the Output control property is set to manually mode.
This item modifies the OUT6 bit in the PWMOUT register.
-
Faults - Faults Pins/Signals
-
Settings supported for HC908MR8/16/32 derivatives only.
-
Pin 1 with bank X - The property sets if Pin 1 is enabled or disabled by Bank X.
This item modifies the Bit 0 bit in the DISMAP register.
-
Pin 2 with bank X - The property sets if Pin 2 is enabled or disabled by Bank X.
This item modifies the Bit 1 bit in the DISMAP register.
-
Pin 2 with bank Y - The property sets if Pin 2 is enabled or disabled by Bank Y.
This item modifies the Bit 2 bit in the DISMAP register.
-
Pin 3 with bank X - The property sets if Pin 3 is enabled or disabled by Bank X.
This item modifies the Bit 3 bit in the DISMAP register.
-
Pin 4 with bank Y - The property sets if Pin 4 is enabled or disabled by Bank Y.
This item modifies the Bit 4 bit in the DISMAP register.
-
Pin 5 with bank X - The property sets if Pin 5 is enabled or disabled by Bank X.
This item modifies the Bit 5 bit in the DISMAP register.
-
Pin 5 with bank Y - The property sets if Pin 5 is enabled or disabled by Bank Y.
This item modifies the Bit 6 bit in the DISMAP register.
-
Pin 6 with bank Y - The property sets if Pin 6 is enabled or disabled by Bank Y.
This item modifies the Bit 7 bit in the DISMAP register.
-
Enable pins in bank X - Select yes/no to enable/disable one or more pins in bank X.
This item modifies the DISX bit in the PCL1 register.
-
Enable pins in bank Y - Select yes/no to enable/disable one or more pins in bank Y.
This item modifies the DISY bit in the PCL1 register.
-
Interrupts - Interrupts settings of the module
-
Initialization - Initialization options of the module
-
Module enabled - Enable PWMMC module. This item modifies the PWMEN bit in the PCTL1 register
|