![](http://datasheet.mmic.net.cn/330000/MB90470_datasheet_16437510/MB90470_45.png)
MB90470 Series
45
6.
8/16-bit Up-down Counter/Timer
This block is an up-down counter/timer configured with six event input pins, two 8-bit up/down counters, two
8-bit reload/compare registers, and related control circuits.
(1) Principal functions
8-bit count registers for counting in the range 0 to 256.
(Also operates in 16-bit
×
1 mode for counting in the range 0 to 65535.)
Count clock selection provides four count modes.
Count mode
Time mode
In timer mode, there is a choice of two internal count clocks.
Count clock
In up/down count mode, there is a choice of external pin input signal detection edge.
Detection edge
Falling edge detection
In phase differential count mode, to provide counts for encoders for motors, etc., the A phase, B phase, and
Z phase of the encoder can be input separately for highly precise counts of rotation angle, rotary speed, etc.
The ZIN pin provides a choice of two functions.
ZIN pin
Counter clear function
Compare and reload functions are provided, each available independently or in combination. Both can be
started together to provide any desired type of up/down count.
Compare/reload function
Compare function (outputs interrupt at compare events)
Individually controllable interrupts at compare, reload (underflow) and overflow events.
Count direction flag enables detection of immediately preceding count direction.
Interrupt generation at change of count direction.
Up/down count mode
Phase differential count mode (2
×
)
Phase differential count mode (8
×
)
125 ns (8 MHz : divided by 2)
(16 MHz operation)
0.5
μ
s (2 MHz : divided by 8)
Rising edge detection
Falling/rising edge, both edges’ detection
Edge detection disabled
Gate function
Compare function (outputs interrupt and clears count at compare events)
Reload function (outputs interrupt and reloads at underflow events)
Compare/reload function
(outputs interrupt and clears count at compare events, outputs interrupt
and reloads at underflow events)
Compare/reload disabled