R01UH0823EJ0100 Rev.1.00
Page 424 of 1823
Jul 31, 2019
RX23W Group
20. Event Link Controller (ELC)
20.3.3
Operation of Peripheral Timer Modules When Event Signal is Input
For the timer modules, set the ELOPA to ELOPD register to specify the operation for when an event signal is input.
(1) Count Start Operation
When an event signal is input, the timer starts counting and the count start bit
in each timer control register becomes 1.
An event signal that is input while the count start bit is 1 is ignored.
(2) Count Restart Operation
When an event signal is input, the timer counter is cleared. Since the count start bit
in each timer control register is
retained, counting is restarted when an event signal is input while the count start bit is 1.
(3) Event Counter Operation
Event signal is selected as the timer count source. When an event signal is input, the timer counter is incremented.
(4) Input Capture Operation
When an event signal is input, the timer performs input-capture operation.
Note 1. Refer to the register descriptions on starting the timer in the relevant peripheral timer module section.
20.3.4
Operation of A/D and D/A Converters When Event Signal is Input
When an event signal is input, the ADCSR.ADST bit and the DACR.DAOE0 bit
are set to 1 and the A/D and D/A
converter start A/D and D/A conversion, respectively.
Note 1. Refer to the bit descriptions in the A/D converter and D/A converter sections.
20.3.5
I/O Port Operation When Event Signal is Input and Event Generation
The I/O port operation at an event signal input and conditions for event generation are set by the registers in ELC. The
I/O ports that are used to set an event linkage are port B and port E.
(1) Single Ports and Port Groups
There are two event link modes: event link to single ports and event link to port groups. In the former mode, events can
be interconnected to any one of the I/O ports. In the latter mode, events can be interconnected to port groups consisting
of any two or more bits in the same I/O ports.
A single port can be set by the PELm.PSP[1:0] and PSB[1:0] bits (m = 0 to 3). A port group can be specified by setting
two or more bits in the PGRn register (n = 1, 2) to 1. Among the ports corresponding to the bits set to 1 in the PGRn
register, a port set as output becomes an output port group member, and a port set as input becomes an input port group
member.
If an I/O port is specified as both a single port and a member of a port group, both functions are enabled when the
corresponding port is input, whereas only the port group function is enabled when the corresponding port is output.
Set the PDR register to select the direction of the I/O ports.