|
|
|
Component
Init_CMT for HCS08
Carrier Modulator Timer (CMT)
Device Initialization
(Description of the component parameters.)
-
Device - CMT device module name
-
Settings - Common CMT module settings
-
Clock settings - Clock/timing settings of the module
-
Settings only if CMT support bus-clock prescaler
-
Bus-clock prescaler - This property sets bus-clock prescaler value.
The item modifies CMT_CLK_SEL bit in SOPT2 register.
-
Prescaler - The property sets prescaler value.
This item modifies the CMTDIV1, CMTDIV2 bits in the CMTMSC register
-
Clock frequency - The property shows CMT module operating frequency (for information only).
This item is influenced by the following properties: Prescaler.
-
Carrier generator - The group contains settings of carrier generator values
-
Primary carrier period timer - Name of the counter used to generate primary carrier frequency.
-
Primary carrier period data low - The property sets values of primary carrier period low data register.
This item modifies the PL0-PL7 bits in the CMTCGL1 register
-
Primary carrier period data high - The property sets values of primary carrier period low data register.
This item modifies the PH0-PH7 bits in the CMTCGH1 register
-
Primary carrier period - This property shows carrier period (for information only).
This item is influenced by the following properties: Primary carrier period data low, Primary carrier period data high.
-
Secondary carrier period timer - Name of the counter used to generate secondary carrier frequency.
-
Secondary carrier period data low - The property sets values of secondary carrier period low data register.
This item modifies the SL0-SL7 bits in the CMTCGL2 register
-
Secondary carrier period data high - The property sets values of secondary carrier period low data register.
This item modifies the SH0-SH7 bits in the CMTCGH2 register
-
Secondary carrier period - This property shows secondary carrier period (for information only).
This item is influenced by the following properties: Secondary carrier period data low, Secondary carrier period data high.
-
Modulator - The groups contain settings of modulator values
-
Mark period data - Set mark period data value.
If user selects Time or Baseband mode - The property sets mark pulse length values
If user selects FSK mode - The property sets number of pulse mark periods.
This item modifies the MB0-MB7 bits in the CMTCMD2 register and MB8-MB15 bits in the CMTCMD1 register
-
Mark pulse length - Value of the mark pulse length (for information only).
If user selects time or baseband mode, this property shows mark pulse length. If user selects FSK mode, the property shows mark pulse length of primary and secondary carrier generator.
This item is influenced by the following properties: Mark period data, Primary carrier generator low, Primary carrier generator high, Secondary carrier generator low and Secondary carrier generator high.
-
Space period data - Set space period data value.
If user selects Time or Baseband mode - the property sets mark space length values.
If user selects FSK mode - the property sets number of pulse space periods.
This item modifies the SB[7:0] bits in the CMTCMD4 register and SB[15:8] bits in the CMTCMD3 register.
-
Space pulse length - Value of the space pulse length (for information only).
If user selects time or baseband mode, this property shows space pulse length. If user selects FSK mode, the property shows space pulse length of primary and secondary carrier generator.
This item is influenced by the following properties: Space period data, Primary carrier generator low, Primary carrier generator high, Secondary carrier generator low and Secondary carrier generator high.
-
Mode - The property sets module mode.
This item modifies the FSK and BASE bits in the CMTMSC register
-
Extended space operation - The property enables extended space operation.
This item modifies the EXSPC bit in the CMTMSC register
-
Pins - Module pins/signals settings
-
Output pin - Pin used for infrared communication
-
Output pin enabled - The property enables or disables IRO pin.
This item modifies the IROPEN bit in the CMTOC register
-
Output pin active polarity - The property sets polarity of output pin.
This item modifies the CMTPOL bit in the CMTOC register
-
Init output pin latch value - The property set the state of IRO pin.
This item modifies the IROL bit in the CMTOC register
-
Settings only if output pin support drive strength
-
Drive strength high - This property selects high drive strength for CMT pad.
The item modifies CMT_PAD bit in SOPT3 register.
-
Interrupts - Interrupts settings of the module
-
End of cycle interrupt - End of cycle interrupt settings
-
Interrupt - Interrupt vector (for information only).
-
End of cycle interrupt - Enable/disable end of cycle interrupt.
This item modifies the EOCIE bit in the CMTMSC register.
-
Settings only if CPU supports interrupt priority.
-
Priority - Priority of the end of cycle interrupt.
-
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
|