SAH-C515 SIEMENS [Siemens Semiconductor Group], SAH-C515 Datasheet - Page 57
![no-image](/images/no-image-200.jpg)
SAH-C515
Manufacturer Part Number
SAH-C515
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
1.SAH-C515.pdf
(160 pages)
- Current page: 57 of 160
- Download datasheet (912Kb)
On-Chip Peripheral Components
C515
6.2
Timers/Counters
The C515 contains three general purpose 16-bit timers/counters, timer 0, 1, and 2, which are useful
in many applications for timing and counting.
In "timer" function, the timer register is incremented every machine cycle. Thus one can think of it
as counting machine cycles. Since a machine cycle consists of 12 oscillator periods, the counter
rate is 1/12 of the oscillator frequency.
In "counter" function, the register is incremented in response to a 1-to-0 transition (falling 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 (24 oscillator periods) to recognize a 1-to-0 transition,
the maximum count rate is 1/24 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.
6.2.1
Timer/Counter 0 and 1
Timer / counter 0 and 1 of the C515 are fully compatible with timer / counter 0 and 1 of the C501
and can be used in the same four operating modes:
Mode 0: 8-bit timer/counter with a divide-by-32 prescaler
Mode 1: 16-bit timer/counter
Mode 2: 8-bit timer/counter with 8-bit auto-reload
Mode 3: Timer/counter 0 is configured as one 8-bit timer/counter and one 8-bit timer; Timer/
counter 1 in this mode holds its count. The effect is the same as setting TR1 = 0.
External inputs INT0 and INT1 can be programmed to function as a gate for timer/counters 0 and 1
to facilitate pulse width measurements.
Each timer consists of two 8-bit registers (TH0 and TL0 for timer/counter 0, TH1 and TL1 for timer/
counter 1) which may be combined to one timer configuration depending on the mode that is
established. The functions of the timers are controlled by two special function registers TCON and
TMOD.
In the following descriptions the symbols TH0 and TL0 are used to specify the high-byte and the
low-byte of timer 0 (TH1 and TL1 for timer 1, respectively). The operating modes are described and
shown for timer 0. If not explicity noted, this applies also to timer 1.
Semiconductor Group
6-14
Related parts for SAH-C515
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![S80C32-12](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
Intel 80C32 - Siemens SAB-C501, Nearest Equivalent Replacement
Manufacturer:
Siemens Semiconductor Group
![BAT14-033](/images/no-image3.png)
Part Number:
Description:
HiRel Silicon Schottky Diode (HiRel Discrete and Microwave Semiconductor Medium barrier diodes for detector and mixer applications)
Manufacturer:
SIEMENS [Siemens Semiconductor Group]
Datasheet:
![BXY43-P1](/images/no-image3.png)
Part Number:
Description:
HiRel Silicon PIN Diode (HiRel Discrete and Microwave Semiconductor Current controlled RF resistor for RF attenuators and switches)
Manufacturer:
SIEMENS [Siemens Semiconductor Group]
Datasheet:
![BXY44-T1](/images/no-image3.png)
Part Number:
Description:
HiRel Silicon PIN Diode (HiRel Discrete and Microwave Semiconductor Current controlled RF resistor for RF attenuators and switches)
Manufacturer:
SIEMENS [Siemens Semiconductor Group]
Datasheet:
![IRL80](/images/no-image3.png)
Part Number:
Description:
GaAs-Infrarot-Sendediode GaAs Infrared Emitter
Manufacturer:
SIEMENS [Siemens Semiconductor Group]
Datasheet:
![IRL81](/images/no-image3.png)
Part Number:
Description:
GaAlAs-Infrarot-Sendediode GaAlAs Infrared Emitter
Manufacturer:
SIEMENS [Siemens Semiconductor Group]
Datasheet:
![BSM50GB100D](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
IGBT MODULE
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![BSM181R](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
SIMOPAC Module (Power module Single switch N channel Enhancement mode)
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![BSM254F](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
(BSMxxx) TRANSISTOR
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![BSM111AR](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
SIMOPAC Module (Power module Single switch N channel Enhancement mode)
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![BUZ48](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
main ratings
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![TDA4716C](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![DL440M](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
Manufacturer:
Siemens Semiconductor Group
Datasheet:
![SDA5255](/images/manufacturer_photos/0/6/607/siemens_semiconductor_group_tmb.jpg)
Part Number:
Description:
Manufacturer:
Siemens Semiconductor Group
Datasheet: