Example of the output waveform by two pairs of compare registers
Figure 12.3-4 shows an example of the output waveform when the output initial value is "0".
Figure 12.3-4 Example of Output Waveform by Two Pairs of Compare Registers
Compare value
FFFF
H
BFFF
H
7FFF
H
3FFF
H
0000
H
Reset
Compare register 0
value
Compare register 1
value
OUT0
OUT1
Compare 0
interrupt
Compare 1
interrupt
Note:
To rewriting the compare register, within the compare interrupt routine or compare operation is
disabled. Be sure not to occur simultaneously a compare match and writing the compare register.
(for Output Initial Value= "0")
BFFF
H
7FFF
H
CHAPTER 12 16-BIT I/O TIMER
Time
Corresponding to
compare 0
Corresponding to
compare 1
259