© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
257
Philips Semiconductors
UM10139
Volume 1
Chapter 16: PWM
2. Each PWM output will go low when its match value is reached. If no match occurs (i.e.
the match value is greater than the PWM rate), the PWM output remains continuously
high.
16.2.2 Rules for double edge controlled PWM outputs
Five rules are used to determine the next value of a PWM output when a new cycle is
about to begin:
1. The match values for the next PWM cycle are used at the end of a PWM cycle (a time
point which is coincident with the beginning of the next PWM cycle), except as noted
in rule 3.
2. A match value equal to 0 or the current PWM rate (the same as the Match channel 0
value) have the same effect, except as noted in rule 3. For example, a request for a
falling edge at the beginning of the PWM cycle has the same effect as a request for a
falling edge at the end of a PWM cycle.
3. When match values are changing, if one of the "old" match values is equal to the
PWM rate, it is used again once if the neither of the new match values are equal to 0
or the PWM rate, and there was no old match value equal to 0.
4. If both a set and a clear of a PWM output are requested at the same time, clear takes
precedence. This can occur when the set and clear match values are the same as in,
or when the set or clear value equals 0 and the other value equals the PWM rate.
5. If a match value is out of range (i.e. greater than the PWM rate value), no match event
occurs and that match channel has no effect on the output. This means that the PWM
output will remain always in one state, allowing always low, always high, or
"no change" outputs.
16.3 Pin description
gives a brief summary of each of PWM related pins.
16.4 Register description
The PWM function adds new registers and registers bits as shown in
below.
Table 246: Pin summary
Pin
Type
Description
PWM1
Output
Output from PWM channel 1.
PWM2
Output
Output from PWM channel 2.
PWM3
Output
Output from PWM channel 3.
PWM4
Output
Output from PWM channel 4.
PWM5
Output
Output from PWM channel 5.
PWM6
Output
Output from PWM channel 6.