Operation Of 16-Bit Output Compare - Fujitsu MB91150 Series Hardware Manual

32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 9 MULTIFUNCTIONAL TIMER
9.4.2

Operation of 16-bit Output Compare

The 16-bit output compare compares the set compare register value with the value of
the 16-bit free-run timer. If the values match, the compare can set an interrupt flag and
reverse the output level.
I Explanation of 16-bit output compare operation
❍ CMOD = 0
A compare operation can be performed independently with a single channel. (When CMOD = 0)
Figure 9.4-5 "Example of the output waveform when compare registers 0 and 1 are Used (At the
beginning of output, 0 is assumed.)" shows an example of the output waveform when compare
registers 0 and 1 are used (at the beginning of output, a value of "0" is assumed).
Figure 9.4-5 Example of the output waveform when compare registers 0 and 1 are used
Counter value
FFFFh
BFFFh
7FFFh
3FFFh
0000h
Reset
Compare register
Compare register
R T 0 0
R T 0 1
Compare 0 interrupt
Compare 1 interrupt
❍ 1 when CMOD=1
The output level can be changed by using two pairs of compare registers. (1 when CMOD = 1)
Figure 9.4-6 "Example of the output waveform when compare registers 0 and 1 are used (At the
beginning of output, 0 is assumed.)" is an example of the output waveform when compare
registers 0 and 1 are used (at the beginning of output, a value of "0" is assumed).
242
(At the beginning of output, 0 is assumed.)
BFFFh
0
7FFFh
1
Time

Advertisement

Table of Contents
loading

Table of Contents