Datasheet

Section 15 Timer RC
Page 486 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
15.3.7 Operation through an Event Link
Using the event link controller (ELC), timer RC can be made to operate in the following ways in
relation to events occurring in other modules.
(1) Staring Counter Operation
The start of counting operations by timer RC can be selected by ELOPA of the ELC. When the
event specified by ELSR2 occur, the CTS bit in TRCMR is set to 1, which stars counting by timer
RC. However, if the specified event occurs when the CTS bit has already been set to 1, the event
is not effective.
(2) Counting Event
The counting of events by timer RC can be selected by ELOPA of the ELC. When the event
specified in ELSR2 occurs, event counter operation proceeds with that event as the source to drive
counting, regardless of the setting of the CKS[2:0] bits in TRCCR1 and the CTS bit in TRCMR.
When the value of the counter is read, the value read out is the actual number of input events.
(3) Input Capture
Input capture operation of timer RC can be selected by ELOPA of the ELC. When the event
specified in ELSR2 occurs, GRD captures the value of TRCCNT. When input capture operation
initiated by an event link is in use, set the IOD[3:0] bits = b'1101 in TRCIOR1 of timer RC, set the
CTS bit in TRCMR to 1, and then start the counter. Since input on the FTIOD pin becomes valid
at the same time, fix the input to the FTIOD pin or take other measures such as not allocating the
FTIOD pin to the port in the PMC, etc.