196
9.4
Timer F
9.4.1
Overview
Timer F is a 16-bit timer with a built-in output compare function. As well as counting external
events, timer F also provides for counter resetting, interrupt request generation, toggle output, etc.,
using compare match signals. Timer F can also be used as two independent 8-bit timers (timer FH
and timer FL).
1. Features
Features of timer F are given below.
Choice of four internal clock sources (
/32,
/16,
/4,
w/4) or an external clock (can be used
as an external event counter)
TMOFH pin toggle output provided using a single compare match signal (toggle output initial
value can be set)
Counter resetting by a compare match signal
Two interrupt sources: one compare match, one overflow
Can operate as two independent 8-bit timers (timer FH and timer FL) (in 8-bit mode).
Timer FH 8-Bit Timer
*
Timer FL 8-Bit Timer/Event Counter
Internal clock
Choice of 4 (
/32,
/16,
/4,
w/4)
Event input
—
TMIF pin
Toggle output
One compare match signal,
output to TMOFH pin
(initial value settable)
One compare match signal,
output to TMOFL pin
(initial value settable)
Counter reset
Counter can be reset by compare match signal
Interrupt sources
One compare match
One overflow
Note:
*
When timer F operates as a 16-bit timer, it operates on the timer FL overflow signal.
Operation in watch mode, subactive mode, and subsleep mode
When
w/4 is selected as the internal clock, timer F can operate in watch mode, subactive
mode, and subsleep mode.
Use of module standby mode enables this module to be placed in standby mode independently
when not used.