Datasheet

Section 13 Timer RA
Page 416 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
13.3.7 Operation through an Event Link
Using the event link controller (ELC), timer RA can be made to operate in the following ways in
relation to events occurring in other modules.
(1) Starting Counter Operation
The start of counting operations by timer RA can be selected by the ELOPA register of the ELC.
When the event specified in ELSR0 occurs, the TSTART bit in the TRACR is set to 1, which
starts counting by timer RA. However, if the specified event occurs when the TCSTF flag has
already been set to 1, that event is not effective.
(2) Counting Events
The counting of events by timer RA can be selected by the ELOPA register of the ELC. When the
event specified in ELSR0 occurs, event-counter operation proceeds with that event as the source to
drive counting, regardless of the setting in the TCK[2:0] bits in TRAMR. When event-counter
operation is to be employed, set the TSTART bit in TRACR to 1 beforehand. When the value of
the counter is read, the value read out is the actual number of input events minus three.