|
|
|
Component
Init_PWMMC for HC08
Pulse-Width Modulator for Motor Control (PWMMC)
Properties:
-
Component name - Name of the component.
-
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.
-
Interrupts - Interrupts settings of the module
-
Settings supported for HC908LB8 derivatives only.
-
Fault even interrupt - Fault even interrupt settings
-
Interrupt - Interrupt vector (for information only).
-
Fault interrupt - Enable/disable Fault even interrupt.
This item modifies the FINT bit in the FSR register.
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
Settings supported for HC908MR8/MR32 derivatives only.
-
Fault even 1 interrupt - Fault even interrupt 1 settings
-
Interrupt - Interrupt vector (for information only).
-
Fault 1 interrupt - Enable/disable Fault even 1 interrupt.
This item modifies the FINT1 bit in the FSR register.
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
Settings supported for HC908MR8 derivatives only.
-
Fault even 2 interrupt - Fault even interrupt 2 settings
-
Interrupt - Interrupt vector (for information only).
-
Fault 2 interrupt - Enable/disable Fault even 2 interrupt.
This item modifies the FINT2 bit in the FSR register
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
Fault even 3 interrupt - Fault even interrupt 3 settings
-
Interrupt - Interrupt vector (for information only).
-
Fault 3 interrupt - Enable/disable Fault even 3 interrupt.
This item modifies the FINT3 bit in the FSR register.
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
Settings supported for HC908MR8 - 32 pins /32 derivatives only.
-
Fault even 4 interrupt - Fault even interrupt 4 settings
-
Interrupt - Interrupt vector (for information only).
-
Fault 4 interrupt - Enable/disable Fault even 4 interrupt.
This item modifies the FINT4 bit in the FSR register.
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
PWM interrupt - PWM interrupt settings
-
Interrupt - Interrupt vector (for information only).
-
PWM interrupt - Enable/disable PWM interrupt.
This item modifies the PWMINT bit in the PCTL1 register
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
Initialization - Initialization options of the module
-
Call Init method - The Init method of the component may be called after power-on or reset (in initialization code) by PE.
yes - The Init method is called by PE
no - The Init method is not called by PE, it should be called in user's code
-
Module enabled - Enable PWMMC module. This item modifies the PWMEN bit in the PCTL1 register
|