92
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
Figure 52.
Effects of Unsynchronized OCR Latching in Up/Down Mode
Note:
1. n = 0 or 2
Figure 53.
Effects of Unsynchronized OCR Latching in Overflow Mode.
Note:
1. n = 0 or 2
During the time between the write and the latch operation, a read from the Output Compare
Registers will read the contents of the temporary location. This means that the most recently
written value always will read out of OCR0 and OCR2.
When the Output Compare Register contains $00 or $FF, and the up/down PWM mode is
selected, the output PE1(OC0/PWM0)/PE3(OC2/PWM2) is updated to Low or High on the
next compare match according to the settings of COMn1/COMn0. This is shown in Table 26.
In overflow PWM mode, the output PE1(OC0/PWM0)/PE3(OC2/PWM2) is held Low or High
only when the Output Compare Register contains $FF.
PWM Output OCn
(1)
PWM Output OCn
(1)
Unsynchronized OCn
(1)
Latch
Synchronized OCn
(1)
Latch
Compare Value Changes
Counter Value
Compare Value
Glitch
Counter Value
Compare Value
Compare Value Changes
PWM Output OCn
(1)
PWM Output OCn
(1)
Unsynchronized OCn
(1)
Latch
Synchronized OCn
(1)
Latch
Counter Value
Compare Value
Counter Value
Compare Value
Compare Value Changes
Compare Value Changes
Glitch