EasyManua.ls Logo

Abov MC97F60128 - Timer 012; Overview

Abov MC97F60128
382 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
154
MC97F60128
11.5 Timer 0/1/2
11.5.1 Overview
The 8-bit timer 0/1/2 consists of multiplexer, timer 0/1/2 counter register, timer 0/1/2 data register, timer 0/1/2 capture
data register and timer 0/1/2 control register (TnCNT, TnDR, TnCDR, TnCR).
It has three operating modes:
8-bit timer/counter mode
8-bit PWM output mode
8-bit capture mode
The timer/counter 0/1/2 can be clocked by an internal or an external clock source (ECn). The clock source is selected
by clock selection logic which is controlled by the clock selection bits (TnCK[2:0]).
TIMER 0/1/2 clock source: f
X
/2, 4, 8, 32, 128, 512, 2048 and ECn
In the capture mode, by EINT1n, the data is captured into input capture data register (TnCDR). In timer/counter mode,
whenever counter value is equal to TnDR, TnO port toggles. Also the timer 0/1/2 outputs PWM waveform through
PWMnO port in the PWM mode.
TnEN
TnMS[1:0]
TnCK[2:0]
Timer n
1
00
XXX
8 Bit Timer/Counter Mode
1
01
XXX
8 Bit PWM Mode
1
1X
XXX
8 Bit Capture Mode
Table 11-5 Timer 0/1/2 Operating Modes

Table of Contents

Related product manuals