
164
CHAPTER 6 8/16-BIT UP/DOWN COUNTER/TIMER
6.1
Overview of 8/16-Bit Up/Down Counter/Timer
The 8/16-bit up/down counter/timer consist of six event input pins, two 8-bit up/down
counters, two 8-bit reload/compare registers, and their control circuits.
■
Characteristics of the 8/16-bit up/down counter/timer
•
With the 8-bit count register, counting can be performed in a range between 0 and 255
(decimal numbers). In 16-bit x 1 operation mode, counting can be performed in a range
between 0 and 65535 (decimal numbers).
•
The following four count modes can be selected for the count clock:
•
Timer mode
•
Up/down counter mode
•
Phase difference count mode (multiply-by-2)
•
Phase difference count mode (multiply-by-4)
•
In timer mode, one of the following internal clocks can be selected for the count clock during
33.3 MHz operation:
•
60nS (16.67MHz:1/2 division)
•
240nS (4.17MHz:1/8 division)
•
The detection edge of the external pin input signal can be selected in up and in down
counting mode.
•
Detection of trailing edges
•
Detection of leading edges
•
Detection of both trailing and leading edges
•
Edge detection disabled
•
The phase difference counting mode is suitable for counting for an encoder, such as for a
motor. Using one of A phase output, B phase output, and Z phase output as input allows to
count rotation angle and number of rotations easily and with high precision.
•
Two different functions can be selected for the ZIN pin (this applies for all modes).
•
Counter clear function
•
Gate function
•
The compare function and reload function are available. These functions can be used
separately or combined. By combining these functions, counting up or down can be
performed with an arbitrary width.
•
Compare function (compare interrupt request output)
•
Compare function (compare interrupt request output, and counter clearing)
•
Reload function (underflow interrupt request output, and reloading)
•
Compare and reload function (compare interrupt request output, counter clearing,
underflow interrupt request output, and reloading)
•
Compare and reload disabled
Summary of Contents for MB91150 Series
Page 1: ......
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Page 178: ...162 CHAPTER 5 I O PORTS ...
Page 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Page 240: ...224 CHAPTER 8 PPG TIMER ...
Page 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Page 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Page 362: ...346 CHAPTER 15 UART ...
Page 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Page 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Page 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 510: ...494 INDEX ...
Page 512: ......