mc68331cpv20b1 Freescale Semiconductor, Inc, mc68331cpv20b1 Datasheet - Page 215

no-image

mc68331cpv20b1

Manufacturer Part Number
mc68331cpv20b1
Description
Mc68331 32 Bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
D.2.7 PACTL — Pulse Accumulator Control Register
PAIS — PAI Pin State (Read Only)
PAEN — Pulse Accumulator Enable
PAMOD — Pulse Accumulator Mode
PEDGE — Pulse Accumulator Edge Control
PCLKS — PCLK Pin State (Read Only)
I4/O5 — Input Capture 4/Output Compare 5
PACLK[1:0] — Pulse Accumulator Clock Select (Gated Mode)
PACNT — Pulse Accumulator Counter
MC68331
USER’S MANUAL
RESET:
PAIS
15
U
PACTL enables the pulse accumulator and selects either event counting or gated
mode. In event counting mode, PACNT is incremented each time an event occurs. In
gated mode, it is incremented by an internal clock.
The effects of PEDGE and PAMOD are shown in the following table.
Eight-bit read/write counter used for external event counting or gated time accumula-
tion.
PACNT — Pulse Accumulator Counter
0 = Pulse accumulator disabled
1 = Pulse accumulator enabled
0 = External event counting
1 = Gated time accumulation
0 = Output compare 5 enabled
1 = Input capture 4 enabled
PAEN
14
0
PAMOD
13
0
PACLK[1:0]
PEDGE
PAMOD
12
0
00
01
10
11
Freescale Semiconductor, Inc.
0
0
1
1
For More Information On This Product,
PCLKS
11
U
Go to: www.freescale.com
I4/O5
REGISTER SUMMARY
10
0
PEDGE
0
1
0
1
9
0
PACLK
Same Clock Used to Increment TCNT
Pulse Accumulator Clock Selected
System Clock Divided by 512
PAI Falling Edge Increments Counter
8
0
PAI Rising Edge Increments Counter
External Clock, PCLK
TOF Flag from TCNT
Zero on PAI Inhibits Counting
One on PAI Inhibits Counting
7
0
0
Effect
0
0
PACNT
0
0
$YFF90C
$YFF90D
0
0
0
D-7
D

Related parts for mc68331cpv20b1