|
MC9S12HY64 Datasheet, PDF (511/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers | |||
|
◁ |
Timer Module (TIM16B8CV2) Block Description
NOTE
The pulse accumulator counter can operate in event counter mode even
when the timer enable bit, TEN, is clear.
14.4.6 Gated Time Accumulation Mode
Setting the PAMOD bit conï¬gures the pulse accumulator for gated time accumulation operation. An active
level on the PACNT input pin enables a divided-by-64 clock to drive the pulse accumulator. The PEDGE
bit selects low levels or high levels to enable the divided-by-64 clock.
The trailing edge of the active level at the IOC7 pin sets the PAIF. The PAI bit enables the PAIF ï¬ag to
generate interrupt requests.
The pulse accumulator counter register reï¬ect the number of pulses from the divided-by-64 clock since the
last reset.
NOTE
The timer prescaler generates the divided-by-64 clock. If the timer is not
active, there is no divided-by-64 clock.
14.5 Resets
The reset state of each individual bit is listed within Section 14.3, âMemory Map and Register Deï¬nitionâ
which details the registers and their bit ï¬elds.
14.6 Interrupts
This section describes interrupts originated by the TIM16B8CV2 block. Table 14-25 lists the interrupts
generated by the TIM16B8CV2 to communicate with the MCU.
Table 14-25. TIM16B8CV1 Interrupts
Interrupt
Offset1 Vector1 Priority1
Source
Description
C[7:0]F
â
â
PAOVI
â
â
PAOVF
â
â
TOF
â
â
1 Chip Dependent.
â
Timer Channel 7â0
Active high timer channel interrupts 7â0
â
Pulse Accumulator Active high pulse accumulator input interrupt
Input
â
Pulse Accumulator
Overï¬ow
Pulse accumulator overï¬ow interrupt
â
Timer Overï¬ow
Timer Overï¬ow interrupt
The TIM16B8CV2 uses a total of 11 interrupt vectors. The interrupt vector offsets and interrupt numbers
are chip dependent.
MC9S12HY/HA-Family Reference Manual Rev. 1.04
Freescale Semiconductor
511
|
▷ |