|
|
|
Component
Init_HRP for HC08
High Resolution PWM (HRP)
Device Initialization
(Description of the component parameters.)
-
Device - High Resolution PWM device module (for information only).
-
Settings - Common HRP module settings.
-
Clock settings - Clock/timing settings of the module.
-
Dithering clock source - Clock source for the 5-bit dithering counter.
This item modifies CLKSRC bit of the HRPDCR register.
-
Dithering timebase register - This property determines the time base for switching between the two dithering frequencies.
This item modifies all bits of the HRPTB register.
-
Dithering timebase - The real value of the time base (for information only).
This item is influenced by the following properties: Dithering timebase register.
-
Mode select - This property selects between variable frequency and variable duty cycle modes of operation.
This item modifies HRPMODE bit of the HRPCTRL register.
-
Dithering step/Modulus - This property selects the modulus value for the 5-bit dithering counter and also sets the scaling factor for the STEP bits.
This item modifies the SEL bits of the HRPDCR register.
-
Period - This property specifies the 11-bit period value used to generate the HRP module output value.
This item modifies the P[10:0] bits of the HRPPER register.
-
Period step value - This property defines the 5-bit step value, which specifies how much time is spent on the longer period in the variable frequency mode.
This item modifies the STEP bits of the HRPPER register.
-
Period time - The resulting value of the period of the output signal including dithering (for information only).
This item is influenced by the following properties: Mode select, HRP Period, Dithering step/Modulus, Period step value.
-
Period frequency - The resulting value of the frequency of the output signal including dithering (for information only).
This item is influenced by the following properties: Mode select, HRP Period, Dithering step/Modulus, Period step value.
-
Duty - This property specifies the 11-bit duty cycle value used to generate the HRP module output value.
This item modifies the P[10:0] bits of the HRPDC register.
-
Duty step value - This property defines the 5-bit step value, which specifies the percentage of time spent on the larger of two duty cycle values in the variable duty cycle mode.
This item modifies the STEP bits of the HRPDC register.
-
Duty time value - The resulting value of the duty cycle of the output signal including dithering (for information only).
This item is influenced by the following properties: Mode select, HRP Duty, Dithering step/Modulus, Duty step value.
-
Duty % value - The resulting value of the duty cycle of the output signal including dithering (for information only).
This item is influenced by the following properties: Mode select, HRP Duty, Dithering step/Modulus, Duty step value.
-
Dead time - This property defines number of BUSCLKX2 cycles that will be subtracted from the logic 1 level of the TOP and BOT output signals.
This item modifies all bits of the HRPDT register.
-
Dead time value - The real value of the deadtime (for information only).
This item is influenced by the following properties: Dead time.
-
Pins - Module pins/signals settings.
-
Output pins - This property enables output of the HRP module.
This item modifies the HRPOE bit of the HRPCTRL register.
The following items are available only if the group is enabled (the value is "Enabled"):
-
TOP pin - Pin for the TOP output of the HRP module
-
BOT pin - Pin for the BOT output of the HRP module
-
Shutdown pin - This property enables the Shutdown functionality.
This item modifies the SHTEN bit of the HRPCTRL register.
The following items are available only if the group is enabled (the value is "Enabled"):
-
SHTDWN pin - Pin for the SHTDWN input of the HRP module
-
Interrupts - Interrupts settings of the module.
-
Shutdown - Shutdown interrupt settings.
-
Interrupt - Interrupt vector (for information only).
-
Shutdown - Enable/disable shutdown interrupt.
This item modifies the SHTIEN bit of the HRPCTRL 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.
-
Initialization - Initialization options of the module.
-
Enable HRP - Enable the HRP module.
This item modifies the HRPEN bit of the HRPCTRL register.
|