These timer peripherals provide multiple channels and allow several modes of operation.
The following devices are members of this group:
- HC08:
TIM (Timer Interface Modules)
- HCS08, RS08, ColdFire V1:
TPM and
FTM (Timer/PWM modules)
Processor Expert shows each of these timer peripherals as multiple devices that can be used by the components. The name of such device (shown in the peripheral selection list) consists of the peripheral and a suffix specifying the part of the peripheral or it's specific function. These named devices represent the whole peripheral or parts of the peripheral set to work in a specific mode. Using only a part of the timer allows to share the timer by multiple components.
The following devices are usually defined for the complex timer peripherals:
(the examples are for the MC68HC908AZ60 processor)
-
TIMx (e.g. TIMA)
- The whole timer including counter, all channels and control registers. Name of the device should be same as name listed in datasheet. (Sometimes the 'x' is omitted if there is only one such timer on the chip). This device blocks all other devices defined for this timer.
-
TIMxy (e.g. TIMA0)
- Channel 'y' of the timer TIMx.
-
TIMxfree (e.g. TIMAfree)
- This device represents the overflow flag and the interrupt capabilities of the counter. The range of the counter is not limited and it is determined by the size of the counter register so the timing is controlled only by the prescaler selection.
-
TIMx_PPG (e.g. TIMA_PPG)
- The whole timer in a programmable pulse generation mode. If the timer is used in this mode, it is not possible to use any of the TIMx, TIMxy and TIMxfree devices.
-
TIMxPP (e.g. TIMAPP)
- modulo register of the timer in a programmable pulse generation mode, that controls period of the generated signal.
-
TIMxyPPG (e.g. TIMA0PPG)
- channel 'y' of the timer 'TIMx' in the programmable pulse generation mode.
Note:
Even though the multiple devices defined for a timer are configured independently, they can be mutually dependent. For example, they share one common prescaler. Processor Expert instantly checks components configuration and only valid combinations are allowed. See
Timing settings for details.