C509-L_97 SIEMENS [Siemens Semiconductor Group], C509-L_97 Datasheet - Page 97

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
6.2
The C509-L has a number of general purpose 16-bit timer/counters: timer 0, timer 1, timer 2 and
the compare timer (timer 2 and the compare timer are discussed separately in section 6.3
“Compare/Capture Unit”). Timer/counter 0 and 1 are fully compatible with timer/counters 0 and 1 of
the SAB 8051 and can be used in the same operating modes.
Timer/counter 0 and 1 which are discussed in this section can be configured to operate either as
timers or event counters:
In addition to the “timer” and “counter” selection, timer/counters 0 and 1 have four operating modes
from which to select.
Semiconductor Group
– In “timer” function, the register is incremented at a maximum every machine cycle. Thus one
– In “counter” function, the register is incremented in response to a 1-to-0 transition (falling
can think of it as counting machine cycles. Since a machine cycle consists of 6 oscillator
periods, the count rate is 1/6 of the oscillator frequency.
edge) at its corresponding external input pin, T0 or T1 (alternate functions of P3.4 and P3.5,
resp.). In this function the external input is sampled during S5P2 of every machine cycle.
When the samples show a high in one cycle and a low in the next cycle, the count is
incremented. The new count value appears in the register during S3P1 of the cycle following
the one in which the transition was detected. Since it takes two machine cycles (12 oscillator
periods) to recognize a 1-to-0 transition, the maximum count rate is 1/12 of the oscillator
frequency. There are no restrictions on the duty cycle of the external input signal, but to
ensure that a given level is sampled at least once before it changes, it must be held for at least
one full machine cycle.
Timer/Counter 0 and 1
6-19
On-Chip Peripheral Components
1997-10-01
C509-L

Related parts for C509-L_97