The peripheral names and numbers used within this chapter are related
to MC68HC908AZ60 CPU. Other derivatives of HC08 family contain
analogous timers (with different name or structure). The 68HC908AZ60
contains two timer modules TIMA and TIMB. Each one of these modules is
based on a 16-bit counter that can operate as a free-running counter or a
modulo up-counter. TIMA module has six channels and TIMB has two channels
that can be programmed independently as input capture or output capture
channels. Please see more details on timer modules in the CPU manual. For
details on another HC08/HCS08 family members please use CPU
Parameters Overview window or see a documentation of the appropriate
CPU.
Timer peripheral selection, allocation and timing settings are
available in the Bean Inspector of the selected bean and overview of
peripheral allocation is also available in Target CPU or Peripheral
Usage windows. Please see chapters Bean
Inspector, Target CPU and Peripherals
Usage for details. The PWM bean requires counter register, modulo register and one or two
compare registers according to the selected mode. It is possible to use
TIMA and TIMB devices. For the TIMA device up to 3 beans can use the
device in buffered mode, up to 6 beans can use it in unbuffered mode and
for the TIMB 1 bean can use the device in buffered mode and up to 2 in
unbuffered mode. Example 1: Allocation of two PWM beans on the timer TIMA. Table 1 - TIMA Regiters Allocation For Example 1 PWM bean can also share a timer peripheral with another timer beans:
TimerInt, RTIshared, TimeDate, FreeCntr8, FreeCntr16, FreeCntr32. The
limitation of the PWM when sharing the timer device with these beans is
that the period of the PWM must be equal to the full range of the counter
(The timing dialog for 'Period' property offers only values corresponding
to this condition). Shared beans cannot use the same channels of a timer. The PPG bean requires counter register, modulo register and one or two
compare registers according the selected mode. There it is possible to use
TIMA and TIMB devices. It is not possible to share the un-allocated
channels with other beans which means that the PPG bean allocated the
whole peripheral. Example: Allocation of registers of the PPG bean in buffered mode on
the timer TIMA. The TimerOut bean requires counter register, modulo register and one or
two compare registers according the selected mode. It is possible to use
TIMA and TIMB devices. For the TIMA device 3-6 TimerOut beans can be used
and for the TIMB device 1-2 TimerOut beans can be used. Example:Allocation of registers with one TimerOut bean in buffered
mode on the timer TIMA. These beans require counter register, modulo register and eventually
compare register according the selected mode. There it is possible to use
TIMmod (PITmod), TIMA, TIMB and RTI devices. The TIMA device can use 3-6
TimerOut beans and the TIMB device can use 1-2 TimerOut beans. Example:Allocation of registers with one Timer Int bean on the timer
TIMA. Multiple TimerInt, RTIshared, TimeDate, FreeCntr8, FreeCntr16 and
FreeCntr32 beans can share the selected timer device. The limitation is
that the prescaler value needed to achieve a desired timing must be equal
for individual beans. Example:Allocation of registers with more beans on the timer TIMA. These beans require counter register and modulo register. It is
possible to use the beans for TIMA and TIMB devices. These beans allocate
whole peripheral, it is not possible to share unallocated channels with
other beans. Example:Allocation of registers with EventCntr16 bean on the timer
TIMA. These beans require counter register, modulo register and compare
register as input capture latch. It is possible to use the beans for TIMA
and TIMB devices. Example:Allocation of registers with Capture bean on the timer TIMA.
|