
10/31/95
SECTION 1: OVERVIEW
UM Rev 1
MOTOROLA
MC68341 USER'S MANUAL
xv
TABLE OF CONTENTS (Continued)
Paragraph
Page
Number
Title
Number
Section 8
Timer Module
8.1
Module Overview ................................................................................. 8-1
8.1.1
Timer and Counter Functions ...........................................................8-2
8.1.1.1
Prescaler and Counter .................................................................. 8-2
8.1.1.2
Time-Out Detection ....................................................................... 8-2
8.1.1.3
Comparator ...................................................................................8-2
8.1.1.4
Clock Selection Logic ....................................................................8-3
8.1.2
Internal Control Logic ....................................................................... 8-3
8.1.3
Interrupt Control Logic ......................................................................8-4
8.2
Timer Modules Signal Definitions.........................................................8-4
8.2.1
Timer Input (TIN) .............................................................................. 8-5
8.2.2
Timer Gate (TGATE) ........................................................................ 8-5
8.2.3
Timer Output (TOUT) .......................................................................8-5
8.3
Operating Modes..................................................................................8-5
8.3.1
Input Capture/Output Compare ........................................................8-5
8.3.2
Square-Wave Generator .................................................................. 8-7
8.3.3
Variable Duty-Cycle Square-Wave Generator.................................. 8-8
8.3.4
Variable-Width Single-Shot Pulse Generator ...................................8-10
8.3.5
Pulse-Width Measurement ...............................................................8-11
8.3.6
Period Measurement ........................................................................ 8-12
8.3.7
Event Count ...................................................................................... 8-13
8.3.8
Timer Bypass.................................................................................... 8-15
8.3.9
Bus Operation ................................................................................... 8-16
8.3.9.1
Read Cycles..................................................................................8-16
8.3.9.2
Write Cycles ..................................................................................8-16
8.3.9.3
Interrupt Acknowledge Cycles ...................................................... 8-16
8.4
Register Description ............................................................................. 8-16
8.4.1
Module Configuration Register (MCR) ............................................. 8-17
8.4.2
Interrupt Register (IR) .......................................................................8-18
8.4.3
Control Register (CR) .......................................................................8-19
8.4.4
Status Register (SR).........................................................................8-22
8.4.5
Counter Register (CNTR) .................................................................8-24
8.4.6
Preload 1 Register (PREL1) .............................................................8-24
8.4.7
Preload 2 Register (PREL2) .............................................................8-25
8.4.8
Compare Register (COM) ................................................................. 8-25
8.5
Timer Module Initialization Sequence ..................................................8-26
8.5.1
Timer Module Configuration .............................................................8-26
8.5.2
Timer Module Example Configuration Code.....................................8-27
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.