![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 385](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602385.webp)
MC9S12ZVM Family Reference Manual Rev. 1.3
Freescale Semiconductor
385
Chapter 11
Timer Module (TIM16B4CV3) Block Description
11.1
Introduction
The basic scalable timer consists of a 16-bit, software-programmable counter driven by a flexible
programmable prescaler.
This timer can be used for many purposes, including input waveform measurements while simultaneously
generating an output waveform.
This timer could contain up to 4 input capture/output compare channels . The input capture function is used
to detect a selected transition edge and record the time. The output compare function is used for generating
output signals or for timer software delays.
A full access for the counter registers or the input capture/output compare registers should take place in
one clock cycle. Accessing high byte and low byte separately for all of these registers may not yield the
same result as accessing them in one word.
11.1.1
Features
The TIM16B4CV3 includes these distinctive features:
•
Up to 4 channels available. (refer to device specification for exact number)
•
All channels have same input capture/output compare functionality.
•
Clock prescaling.
•
16-bit counter.
11.1.2
Modes of Operation
Stop:
Timer is off because clocks are stopped.
Freeze:
Timer counter keeps on running, unless TSFRZ in TSCR1 is set to 1.
Wait:
Counters keeps on running, unless TSWAI in TSCR1 is set to 1.
Normal:
Timer counter keep on running, unless TEN in TSCR1 is cleared to 0.
Table 11-1.
V03.03
Jan,14,2013
-single source generate different channel guide