Datasheet
Section 12 Event Link Controller
Page 392 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
12.3.5 Port Operation upon Event Input and Event Generation
The port operation to be performed upon event input to the port can be set and the operation
causing the port to generate an event can be set.
(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 connected to single-ports in an 8-bit port. In the latter mode, events
can be connected to port-groups consisting of any two or more bits in the same 8-bit port.
A single-port can be set by specifying any one bit in the port* to which an event can be connected
using the PEL register. A port-group can be set by specifying any two or more bits in the port* to
which an event can be connected using the PGC register. One input port-group and one output
port-group can be set in the same port.
If the port bit is specified as both a single-port and a member of a port-group, both functions are
effective when the relevant port is input, whereas only the group-port function is effective when
the relevant port is output.
The input or output direction of ports can be selected using the PCR register.
Note: Port 3 and port 6
(2) Event Generation by Input Single-Ports
An input single-port generates an event when the signal value of the external pin connected to the
relevant port changes. The event-generation condition is specified using the PEL0 to PEL3
registers. An example of operation is shown in figure 12.3.
(3) Output Single-Port Operation upon Event Input
When an event is input to an output single-port, the PDR value of the relevant port changes. The
specific change of the PDR value is specified using the PEL0 to PEL3 registers. Thus, the change
of the PDR value changes the signal value of the external pin connected to the relevant port. An
example of operation is shown in figure 12.3.