Samsung S5PC100 User Manual page 579

Table of Contents

Advertisement

PULSE WIDTH MODULATION TIMER
The Figure 7.1-1 shows a simple example of a PWM cycle.
1
TOUTn
1.
Initialize TCNTBn with 159(50+109) and TCMPBn with 109.
2.
Start Timer: Set the start bit and manual update bit to off.
The TCNTBn value of 159 is loaded into the down-counter, the output is driven low.
3.
If down-counter counts down to value in the TCMPBn register 109, the output changes from low to high
4.
If the down-counter reaches 0, it generates interrupt request.
5.
The down-counter automatically reloads with TCNTBn. This restarts the cycle.
7.1-2
2
3
50
Figure 7.1-1 Simple Example of PWM Cycle
S5PC100 USER'S MANUAL (REV1.0)
109
110
4
5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents