
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
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......