pca82c200t NXP Semiconductors, pca82c200t Datasheet - Page 22

no-image

pca82c200t

Manufacturer Part Number
pca82c200t
Description
8-bit Microcontroller With On-chip Can
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PCA82C200T
Manufacturer:
TI
Quantity:
75
Philips Semiconductors
11 TIMERS/COUNTERS
The P8xCE598 contains:
11.1
Timer 0 and Timer 1 may be programmed to carry out the
following functions:
Timer 0 and Timer 1 can be programmed independently to
operate in 3 modes:
Mode 0 8-bit timer or 8-bit counter each with divide-by-32
Mode 1 16-bit timer-interval or event counter.
Mode 2 8-bit timer-interval or event counter with
Timer 0 can be programmed to operate in an additional
mode as follows:
Mode 3 one 8-bit time-interval or event counter and one
When Timer 0 is in Mode 3, Timer 1 can be programmed
to operate in Modes 0, 1 or 2 but cannot set an interrupt
flag or generate an interrupt. However, the overflow from
Timer 1 can be used to pulse the Serial Port baud-rate
generator.
The frequency handling range of these counters with a
16 MHz crystal is as follows:
Both internal and external inputs can be gated to the
counter by a second external source for directly measuring
pulse durations. When configured as a counter, the
register is incremented on every falling edge on the
corresponding input pin, T0 or T1.
The earliest moment, when the incremented register value
can be read is during the second machine cycle following
the machine cycle within which the incrementing pulse
occurred.The counters are started and stopped under
software control. Each one sets its interrupt request flag
1996 Jun 27
Three 16-bit timer/event counters:
Timer 0, Timer 1 and Timer 2
One 8-bit timer, T3 (Watchdog WDT).
Measure time intervals and pulse durations
Count events
Generate interrupt requests.
In the timer function, the timer is incremented at a
frequency of 1.33 MHz (
0 Hz to an upper limit of 0.66 MHz (
frequency) when programmed for external inputs.
8-bit microcontroller with on-chip CAN
Timer 0 and Timer 1
prescaler.
automatic reload upon overflow.
8-bit timer-interval counter.
1
12
of the oscillator frequency)
1
24
of the oscillator
22
when it overflows from all HIGHs to all LOWs
(or automatic reload value), with the exception of Mode 3
as previously described.
11.2
Timer T2 is a 16-bit timer/counter which has capture and
compare facilities (see Fig.11).
The 16-bit timer/counter is clocked via a prescaler with a
programmable division factor of 1, 2, 4 or 8. The input of
the prescaler is clocked with
frequency, or by an external source connected to the T2
input, or it is switched off. The maximum repetition rate of
the external clock source is
and Timer 1. The prescaler is incremented on a rising
edge. It is cleared if its division factor or its input source is
changed, or if the timer/counter is reset.
T2 is readable ‘on the fly’, without any extra read latches;
this means that software precautions have to be taken
against misinterpretation at overflow from least to most
significant byte while T2 is being read. T2 is not loadable
and is reset by the RST signal or at the positive edge of the
input signal RT2, if enabled. In the Idle mode the
timer/counter and prescaler are reset and halted.
T2 is connected to four 16-bit Capture Registers: CT0,
CT1, CT2 and CT3. A rising or falling edge on the inputs
CT0I, CT1I, CT2I or CT3I (alternative function of Port 1)
results in loading the contents of T2 into the respective
Capture Registers and an interrupt request.
Using the Capture Register CTCON, these inputs may
invoke capture and interrupt request on a positive edge, a
negative edge or on both edges. If neither a positive nor a
negative edge is selected for capture input, no capture or
interrupt request can be generated by this input.
The contents of the Compare Registers CM0, CM1 and
CM2 are continually compared with the counter value of
Timer T2. When a match occurs, an interrupt may be
invoked. A match of CM0 sets the bits 0 to 5 of Port 4, a
CM1 match resets these bits and a CM2 match toggles bits
6 and 7 of Port 4, provided these functions are enabled by
the STE/RTE registers. A match of CM0 and CM1 at the
same time results in resetting bits 0 to 5 of Port 4. CM0,
CM1 and CM2 are reset by the RST signal.
Port 4 can be read and written by software without
affecting the toggle, set and reset signals. At a byte
overflow of the least significant byte, or at a 16-bit overflow
of the timer/counter, an interrupt sharing the same
interrupt vector is requested. Either one or both of these
overflows can be programmed to request an interrupt.
All interrupt flags must be reset by software.
Timer T2 Capture and Compare Logic
1
1
12
12
f
CLK
of the oscillator
, twice that of Timer 0
Product specification
P8xCE598

Related parts for pca82c200t