English
Language : 

SAB80C166W Datasheet, PDF (19/67 Pages) Siemens Semiconductor Group – C16x-Family of High-Performance CMOS 16-Bit Microcontrollers
SAB 80C166W/83C166W
With its maximum resolution of 200 ns (@ 20 MHz), the GPT2 module provides precise event
control and time measurement. It includes two timers (T5, T6) and a capture/reload register
(CAPREL). Both timers can be clocked with an input clock which is derived from the CPU clock via
a programmable prescaler. The count direction (up/down) for each timer is programmable by
software. Concatenation of the timers is supported via the output toggle latch (T6OTL) of timer T6,
which changes its state on each timer overflow/underflow.
The state of this latch may be used to clock timer T5, or it may be output on a port pin (T6OUT). The
overflows/underflows of timer T6 can additionally be used to clock the CAPCOM timers T0 or T1,
and to cause a reload from the CAPREL register. The CAPREL register may capture the contents
of timer T5 based on an external signal transition on the corresponding port pin (CAPIN), and timer
T5 may optionally be cleared after the capture procedure. This allows absolute time differences to
be measured or pulse multiplication to be performed without software overhead.
A/D Converter
For analog signal measurement, a 10-bit A/D converter with 10 multiplexed input channels and a
sample and hold circuit has been integrated on-chip. It uses the method of successive
approximation. The sample time (for loading the capacitors) and the conversion time adds up to
9.7 us @ 20 MHz CPU clock.
Overrun error detection/protection is provided for the conversion result register (ADDAT): an
interrupt request will be generated when the result of a previous conversion has not been read from
the result register at the time the next conversion is complete.
For applications which require less than 10 analog input channels, the remaining channel inputs can
be used as digital input port pins.
The A/D converter of the SAB 80C166W/83C166W supports four different conversion modes. In the
standard Single Channel conversion mode, the analog level on a specified channel is sampled once
and converted to a digital result. In the Single Channel Continuous mode, the analog level on a
specified channel is repeatedly sampled and converted without software intervention. In the Auto
Scan mode, the analog levels on a prespecified number of channels are sequentially sampled and
converted. In the Auto Scan Continuous mode, the number of prespecified channels is repeatedly
sampled and converted.
The Peripheral Event Controller (PEC) may be used to automatically store the conversion results
into a table in memory for later evaluation, without requiring the overhead of entering and exiting
interrupt routines for each data transfer.
Semiconductor Group
19