Pulse Width Modulation (Pwm) - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

PWM TIMER
S3C2416X RISC MICROPROCESSOR

2.6 PULSE WIDTH MODULATION (PWM)

60
50
40
30
30
Write
Write
Write
TCMPBn = 60
TCMPBn = 40
TCMPBn = 30
Write
Write
Write
TCMPBn = 50
TCMPBn = 30
TCMPBn = Next PWM Value
Figure 12-5. Example of PWM
PWM function can be implemented by using the TCMPBn. PWM frequency is determined by TCNTBn. Figure 12-
5 shows a PWM value determined by TCMPBn.
For a higher PWM value, decrease the TCMPBn value. For a lower PWM value, increase the TCMPBn value. If
an output inverter is enabled, the increment/decrement may be reversed.
The double buffering function allows the TCMPBn, for the next PWM cycle, written at any point in the current
PWM cycle by ISR or other routine.
12-8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents