SAH-C515 SIEMENS [Siemens Semiconductor Group], SAH-C515 Datasheet - Page 76

no-image

SAH-C515

Manufacturer Part Number
SAH-C515
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Figure 6-17
Function of Compare Mode 0
6.2.2.3.2 Modulation Range in Compare Mode 0
Generally it can be said that for every PWM generation in compare mode 0 with n-bit wide compare
registers there are 2
cycle) as the first setting, the maximum possible duty cycle then would be :
This means that a variation of the duty cycle from 0% to real 100% can never be reached if the
compare register and timer register have the same length. There is always a spike which is as long
as the timer clock period.
This “spike“ may either appear when the compare register is set to the reload value (limiting the
lower end of the modulation range) or it may occur at the end of a timer period. In a timer 2/CCx
register configuration in compare mode 0 this spike is divided into two halves: one at the beginning
when the contents of the compare register is equal to the reload value of the timer; the other half
when the compare register is equal to the maximum value of the timer register (here: FFFF H ).
Please refer to figure 6-18 where the maximum and minimum duty cycle of a compare output signal
is illustrated. Timer 2 is incremented with the machine clock (fosc/12), thus at 24-MHz operational
frequency, these spikes are both approx.
Semiconductor Group
Contents
of
Timer 2
Compare
Output
(P1.x/CCx)
Timer Count = Reload Value
n
different settings for the duty cycle. Starting with a constant low level (0%duty
~ ~
Interrupt can be generated
on overflow
(1 - 1/2
250
n
) x 100%
ns long.
6-33
On-Chip Peripheral Components
Interrupt can be generated
on compare-match
Timer Count = FFFF
Timer Count =
Compare Value
MCT01906
H
C515

Related parts for SAH-C515