SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 256

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Figure 10-1
Task Schedule for "Additive Compare" Program
The interrupt routine has to calculate the next compare value for the current channel (e.g. CC2):
T
where T
The interrupt routine may be left when
Semiconductor Group
CCnext
– T
– the port latch is complemented and prepared for the next transition and
– a user-defined flag is set to mark that this PWM cycle is now completed.
= T
CCnext
T
T
T
CCact
CCnext
CCtot
CCact
CCduty
is loaded to register CC2
+ (T
is the next compare value in CC2
is the (constant) total number of counts for one PWM cycle
( = 200 for PWM channel 2)
is the actual compare register contents which just caused the interrupt
is the (variable) count determining the duty cycle of the PWM signal.
CCtot
– T
CCduty
)
257
Application Examples

Related parts for SAB80C517-M16