Hardware Reference
In-Depth Information
The HCS12 standard timer module is illustrated in Figure 8.1. The block diagram in Figure 8.1
shows that the timer module has eight channels of input-capture and output-compare modules.
Each channel can be configured to perform input-capture or output-compare, but not both at the
same time. The 16-bit counter serves as the base timer for these eight channels. The 16-bit counter
needs a clock signal to operate. The clock signal is derived by dividing the E-clock by a prescaler.
Channel 0
E-clock
Prescaler
Input-capture
IOC0
Output-compare
Channel 1
Timer overflow
interrupt
Input-capture
16-bit counter
IOC1
Output-compare
Channel 2
Input-capture
IOC2
Output-compare
TC0 interrupt
Channel 3
TC1 interrupt
Input-capture
IOC3
Output-compare
TC2 interrupt
Registers
Channel 4
TC3 interrupt
Input-capture
IOC4
Output-compare
TC4 interrupt
Channel 5
TC5 interrupt
Input-capture
IOC5
Output-compare
TC6 interrupt
Channel 6
TC7 interrupt
Input-capture
Output-compare
IOC6
PA overflow
interrupt
16-bit pulse
accumulator A
Channel 7
PA input
interrupt
Input-capture
IOC7
Output-compare
Figure 8.1
■
HCS12 standard timer (TIM) block diagram
Search WWH ::
Custom Search