|
|
|
Component
Init_MTIM for COLDFIREV1
Modulo Timer (MTIM)
Device Initialization
(Description of the component parameters.)
-
Device - Selection of the MTIM device module.
-
Settings - Common MTIM module settings.
-
Clock settings - Clock/timing settings of the module.
-
Clock source - The property selects clock source of the module.
This item modifies the CLKS0 and CLKS1 bits in the MTIMxCLK register.
There are 4 modes:
-
Prescaler - The property sets clock rate of the module.
This item modifies the PS[3:0] bits in the MTIMxCLK register.
-
Modulo register value - The property sets modulo register.
This item modifies the MTIMxMOD register.
-
Period - Period of the interrupts generation (for information only).
This item is influenced by the following properties: Prescaler, Modulo register value, Clock source and optionally External clock.
-
Pins - Module pins/signals settings.
-
External clock source - External clock source pin.
This item is influenced by the following properties: Clock source.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Interrupts - Interrupts settings of the module.
-
Settings only if CPU supports interrupts
-
Interrupt - Interrupt vector (for information only).
-
Overflow interrupt - Enable/disable MTIM overflow interrupt.
This item modifies the TOIE bit in the MTIMxSC register.
-
Settings only if CPU supports interrupt priority.
-
Priority - Priority of the overflow interrupt.
-
Settings only if CPU supports interrupts
-
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.
-
Counter Reset - Writing 1 to write-only TRST bit in the MTIMxSC register causes reset of counter register and TOF flag.
-
Enable MTIM module - Select yes/no to enable MTIM module.
This item modifies the TSTP bit in the MTIMxSC register.
|