Samsung S5PC110 Manual page 743

Risc microprocessor
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents