766
Chapter 37 Output Compare
5.Operation
5.2 Output Compare Output (Cooperative Reversal) CMODE=“1”
(1) Free-run timers clear/reset
(2) Compare 0 and compare 1 value settings
(3) Enable compare operation
(4) Free-run timer count up
(5) Compare 1 match
(6) OCU1 output level reversal
(7) Compare 1 match interrupt
(8) Free-run timer count up
(9) Compare 0 match
(10) OCU0 output level reversal
When CMOD=“1”, OCU1 output level also reverses
(11) Compare 0 match interrupt
Free-run timer 2 clear
Interrupt request 0
OCU0 output
(3)
(2)
Free-run
timer 0
count
Time
BFFFh
0000h
BFFFh
Compare register 0
(9)
(4)
(1)
CST 0
(7)
(5)
(6)
4000h
Compare register 1
CST 1
4000h
OCU1 output
OCU0 output
OCU1 output
CMOD=“0”
CMOD=“1”
(8)
Interrupt request 1
(2)
(3)
(6)
(10)
(11)
(11)
(11)
Compare-match clear Compare-match clear
0
(11)
Clear in software
Clear in software