16-Bit Output Compare Operation - Fujitsu MB90390 Series Hardware Manual

Table of Contents

Advertisement

CHAPTER 13 16-BIT I/O TIMER
13.4.3

16-bit Output Compare Operation

In the 16-bit output compare operation, an interrupt request flag can be set and the
output level can be reversed when the specified compare register value matches the 16-
bit free-run timer value. The CMOD0 and CMOD1 bits can be used to define the
corresponding compare registers for each pin.
■ Sample Output Waveform when CMOD[1:0] = 00
When CMOD[1:0] = 00
every match with the register value. Each output value is controlled by one compare register.
OUT0: The level is only reversed by a match with compare register 0.
OUT1: The level is only reversed by a match with compare register 1.
Figure 13.4-6 Sample of Output Waveform when CMOD[1:0] = 00
Counter value
FFFF
H
BFFF
H
7FFF
H
3FFF
H
0000
H
Reset
OCCP0 value
OCCP1 value
OUT0
OUT1
Compare 0
interrupt
Compare 1
interrupt
Note: In this figure, the initial value is "0" for both pins.
210
, the output level of the pin corresponding to the compare register is reversed on
B
BFFF
H
7FFF
H
B
B
Time

Advertisement

Table of Contents
loading

Table of Contents