Operation Of 16-Bit Output Compare - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 12 16-BIT I/O TIMER
12.3.2

Operation of 16-bit Output Compare

The 16-bit output compare compares the value of the 16-bit free-run timer with that set
in one of the compare registers, sets the interrupt request flag and, at the same time,
reverses the output level when a match is detected.
Example of Output Waveform
Examples of the output waveform are illustrated in the following.
Example of the output waveform when using compare register 0 and 1:
Figure 12.3-3 shows an example of the output waveform when the output initial value is "0".
Figure 12.3-3 Example of Output Waveform when Using Compare Register 0 and 1
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
The output level can be changed by using two pairs of compare registers. (At CMOD=1)
258
(for Output Initial Value= "0")
BFFF
H
7FFF
H
Time
Corresponding to compare 0
Corresponding to compare 1

Advertisement

Table of Contents
loading

Table of Contents