CHAPTER 14 16-BIT I/O TIMER
14.1
Outline of 16-bit I/O Timer
The 16-bit I/O Timer consists of a 16-bit Free-Running Timer and Output Compare Units
and Input Capture Units. It is used to generate pulse sequences and to measure the time
duration between external events.
■ 16-bit Free-Running Timer
●
The 16-bit Free-Running Timer consists of the up counter, the control register, the 16-bit compare clear register, and
the prescaler. The output value obtained from this counter is used as the basic timer of the Input Capture Unit.
●
Eight counter clocks are available
●
An interrupt can be generated upon a counter overflow or a match with compare register 0 and 4.
●
The counter value can be initialized to '0000
between this timer and the compare clear register values.
■ Output Compare Unit (2 channels per one module)
The Output Compare Unit consist of two 16-bit compare registers, two compare output latches, and two
control registers.
When a 16-bit Free-Running Timer value matches the corresponding compare register value, the output level
is toggled and an interrupt can be issued.
●
The two compare registers can be used independently for each Output Compare Unit.
●
Output pins can be controlled based on pairs of the two compare registers.
Output pins can be toggled by using the two compare registers.
●
Initial values for output pins can be set.
●
Interrupts can be generated upon a compare match.
■ Input Capture Unit (2 channels per one module)
The Input Capture Unit consists of two 16-bit capture registers and two control registers, each corresponding
to two independent external input pins. The 16-bit Free-Running Timer values can be stored in the capture
register and an interrupt is issued simultaneously upon detection of an edge of a signal input from an external
input pin.
●
The detection edge of an external input signal can be specified.
Rising, falling, or both edges can be chosen.
364
MB96300 Super Series Hardware Manual
' upon a reset, software clear, or if a compare match is generated
H