Datasheet
Section 12 Event Link Controller
Page 400 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.7 Procedure for Linking Events
The following describes the procedure for linking events.
1. Set the operation of the module to which an event is to be linked.
2. To the ELSRn register corresponding to the module to which an event signal is to be linked,
set the number of the event signal.
3. If events are to be linked to timers, set the ELOPA to ELOPC registers corresponding to the
timers as required.
4. Set the ELCON bit in ELCR to 1, which enables linkage of all the events.
5. Set the operation of the module from which an event is output, and start the module. This
allows the event output from the module to start the module to which an event is linked as
specified.
6. To stop event linkage of some independent modules, set B'00000000 to the ELSn7 to ELSn0
bits in the ELSRn corresponding to the modules. To stop linkage of all the events, clear the
ELCON bit in ELCR to 0.
If events are linked to ports, set the registers corresponding to the ports as below.
⎯ PDR: Set the initial values of the output ports.
⎯ PCR: Set the I/O direction of the ports.
⎯ PGR: If ports are used as a port-group, set the ports (in bit units) to be grouped.
⎯ PGC: Set the operation of the port-group.
⎯ PEL: If ports are used as single-ports, set the ports, the operation of the ports when an
event is input, and the condition when an event is generated.