![](http://datasheet.mmic.net.cn/130000/MB91F355APMT_datasheet_5008627/MB91F355APMT_57.png)
MB91350A Series
57
5.
8/16-bit up/down counter timer
(1)Description
This block is the up/down counter/timer consisting of six event input pins, an eight-bit up/down counter, an eight-
bit reload/compare register, and their control circuit.
The MB91F355A/MB91355A/MB91354A/MB91V350A contain two channels of eight-bit up/down counter/timer
in this block.
This module has the following features.
Eight-bit count register enabling counting from (0)d to (255)d (enabling counting from (0)d to (65535)d in "16-
bit x 1 operation mode" ).
Four different count modes available with selectable count clocks
Capable of selecting a count clock signal in timer mode, from among the inputs from two internal clocks and
an internal circuit
Capable of selecting the detection edge of the external pin input signal in up/down count mode
Phase difference count mode suitable for counting for an encoder such as a motor, capable of easily counting
the rotation angle and the number of revolutions at high precision by inputting the phase-A, phase-B, and
phase-Z outputs of the encoder
ZIN pin available for two functions selectable (valid in all modes)
Compare and reload functions available not only separately but also in combination for up/down counting at
an arbitrary width
Count direction flag used to identify the preceding count direction
Capable of controlling the independent generations of interrupts at a compare match, reload (underflow),
overflow, or at a count direction change
Count mode
Timer mode
Up/down counter mode
Phase difference count mode (two multiplication)
Phase difference count mode (four multiplication)
Count clock
12.5 MHz : 2-frequency division80 ns
(When operating at 25 MHz )
3.125 Hz : 8-frequency division320 ns
Detection edge
Falling Edge detection
Rising Edge detection
Detection at rising edge, falling edge, or both edges
Edge detection disabled
ZIN Pin
Counter clear function
Gate function
Compare/reload function
Compare function (comparison interrupt request output)
Compare function (comparison interrupt request output and counter clear)
Reload function (underflow interrupt request output and reload)
Compare/reload function(Comparison interrupt request output and counter
clear; underflow interrupt request output and reload)
Compare/reload disabled