Reload/Compare Function - Fujitsu F2MC-16LX Hardware Manual

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

Advertisement

13.3.1 Reload/compare function

The 8/16-bit up/down counter/timer has reload and compare functions. These two
functions may be mixed for processing.
I Reload and compare functions
Table 13.3-3 "Selection of count mode" shows an example of selecting reload and compare
functions.
Table 13.3-3 Selection of count mode
RLDE, UCRE
00B
01B
10B
11B
I Reload function
At the start of the reload function, the RCR value is transferred to UDCR at the timing of the
down-count clock next to the clock in which an underflow occurs. In this example, UDFF is
specified, and an interrupt request occurs.
In a mode where there is no down counting (decrement), the start of this function is disabled.
(0FFFF
)
H
0FF
H
RCR
00
H
Reload and compare functions
Reload/compare prohibit (initial value)
Compare permit
Reload permit
Reload/compare permit
Figure 13.3-3 Outline of reload function operation
Reload/interrupt generated
Underflow
CHAPTER 13 8/16-BIT UP/DOWN COUNTER/TIMER
Reload/interrupt generated
Underflow
267

Advertisement

Table of Contents
loading

Table of Contents