Fujitsu MB91150 Series Hardware Manual page 198

32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 6 8/16-BIT UP/DOWN COUNTER/TIMER
I When the compare function is enabled
The compare function can be used in all modes other than timer mode. When the compare
function is started, if the value of RCR and the value of UDCR match, CMPF is set and an
interrupt request is generated. When the compare clear function is started, the UDCR is cleared
with the timing of the up count clock.
In a mode in which up counting is not performed, starting this function is invalid.
Figure 6.5-2 "Overview of the compare function operation" shows an overview of compare
function operation.
(0FFFF
)
H
0FF
H
RCR
00
H
I When the reload and compare functions are enabled simultaneously
When the reload/compare function is started, counting up or down can be perform with an
arbitrary width.
The reload function is started at an underflow and transfers the value of the RCR to the UDCR.
When the values of RCR and UDCR match, the compare function clears the UDCR. By using
these functions, counting up or down is performed for values between 0000
the RCR.
Figure 6.5-3 "Overview of the operation when the reload and compare functions are started at
the same time" shows an overview of operation when the reload and compare functions are
enabled simultaneously.
182
Figure 6.5-2 Overview of the compare function operation
Compare match
Counter is cleared,
interrupt is generated.
Compare match
Counter is cleared,
interrupt is generated.
and the value of
H

Advertisement

Table of Contents
loading

Table of Contents