Operation; 8-Bit Reload Timer (Tmj-1); 8-Bit Reload Timer (Tmj-2) - Hitachi H8S/2199 Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

13.3

Operation

13.3.1

8-bit Reload Timer (TMJ-1)

The TMJ-1 is an 8-bit reload timer. As the clock source, dividing clock or edge signals through
the ,544 pin are being used. By selecting the edge signals through the ,544 pin, it can also be
used as an event counter. While it is working as an event counter, its reloading function is
workable simultaneously. When data are written into the reloading register, these data will be
written into the counters (event counter, timer counter) simultaneously. Also, when the event
counter underflows, the event counter value is reset to the reload register value, and a TMJ1I
interrupt request occurs. Every time the counter underflows, the output level toggles. This output
can be used as a buzzer or the carrier frequency at remote-controlled transmission by selecting an
appropriate divided clock.
The TMJ-1 and TMJ-2, in combination, can be used as a 16-bit or a 24-bit reload timer.
Nonetheless, when they are being used, in combination, as a 16-bit timer, word command only is
valid and the TCK works as the down counter for the upper 8 bits and the TCJ works as the down
counter for the lower 8 bits, means a reloading register of total 16 bits.
When data are written into a 16-bit reloading register, the same data will be written into the 16-bit
down counter.
Also, when the 16-bit down counter underflow signals, the data of the 16-bit reloading register
will be reloaded into the down counter. When the EXN bit of TMJC is set to 0, the expansion
function of TMJ-2 is enabled, that is, TMJ-2 works as a 16-bit reloading timer, and it can be
connected to TMJ-1 to be a 24-bit reloading timer. In this case, TCK works as the upper 16-bit
part and TCJ works as the lower 8-bit part of a 24-bit down counter, and TLK works as the upper
16-bit part and TLJ works as the lower 8-bit part of a 24-bit reloading register.
Even when they are making a 16-bit or a 24-bit operation, the TMJ1I interrupt requests of the
TMJ-1 and BUZZER outputs are effective. In case these functions are not necessary, make them
invalid by programming.
The TMJ-1 and TMJ-2, in combination, can be used for remote controlled data transmission.
Regarding the remote controlled data transmission, see section 13.3.3, Remote Controlled Data
Transmission.
13.3.2

8-bit Reload Timer (TMJ-2)

The TMJ-2 is an 8-bit or a 16-bit down-counting reload timer. As the clock source, dividing
clock, edge signals through the ,545 pin or the underflow signals from the TMJ-1 are being used.
By selecting the edge signals through the ,545 pin, it can also be used as an event counter. While
it is working as an event counter, its reloading function is workable simultaneously.
When data are written into the reloading register, these data will be written into the counter
simultaneously. Also, when the counter underflows, reloading will be made to the data counter of
the reloading register.
When the counter underflows, TMJ2I interrupt requests will be issued.
The TMJ-2 and TMJ-1, in combination, can be used as a 16-bit or a 24-bit reload timer. For more
Rev. 1.0, 02/00, page 274 of 1141

Advertisement

Table of Contents
loading

Table of Contents