SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 260
![no-image](/images/no-image-200.jpg)
SAB80C517-M16
Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
1.SAB80C517-M16.pdf
(323 pages)
- Current page: 260 of 323
- Download datasheet (4Mb)
– Compare Setup
Compare mode
Compare register CM0 (consisting of CMH0 and CML0) is used in compare mode 0. This means bit
CMSEL.0 must be set (in register CMSEL) to assign CM0 to the compare timer and switch on
compare mode 0.
Enable port output
The compare is enabled with SFR bit CMEN.0 in register CMEN. The corresponding compare
output pin is port 4.0.
– Interrupts
Since the compare value may be varied in every compare timer period, it is most effective to use
the compare timer overflow interrupt for reloading the compare register CM0 with a new value.
Enable Interrupt
The compare timer overflow interrupt is enabled by SFR bit ECT in register IEN2. The general
enable flag EAL in register IEN0 must be set, too.
The Program
Variation of the duty cycle of the PWM signal is done by a variation of the contents of the compare
register CM0. CM0 is loaded with new compare values in an (high prioritized) interrupt routine. This
makes the loading independent from other tasks running on the CPU.
The new compare values are loaded by a cyclic look-up table routine. The table is located in the
ROM and contains the compare values for every sample point. (In our case the sine-wave is
synthesized by six sample points.)
The program flow is best described by a program flow chart (see figure 10-3). The following
paragraphs give some additional details.
– Main Program
CCU and interrupt initialization is done according to the previous description of the CCU
configuration.
There is no other task in this application to be done in the main program. The controller is free for
any other job (e.g. I/O, control algorithms, adapting the sine wave table, etc.).
– Interrupt Service Routine
The interrupt program contains the table look-up routine only. This routine is illustrated in
figure 10-3 and performs the following two little jobs:
Semiconductor Group
– managing the table pointer
– loading the CM0-register.
261
Application Examples
Related parts for SAB80C517-M16
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: