Datasheet

Section 8 I/O Ports
Rev. 3.00 Sep. 28, 2009 Page 164 of 710
REJ09B0384-0300
8.9.4 Pin Functions
The relationship between the operating mode, register setting values, and pin functions are as
follows.
Port A functions as event counter input and also as an I/O port, and input or output can be
specified in bit units.
PA7/EVENT7, PA6/EVENT6, PA5/EVENT5, PA4/EVENT4, PA3/EVENT3, PA2/EVENT2,
PA1/EVENT1, PA0/EVENT0
The pin function is switched as shown below according to the PAnDDR bit.
When this pin is used as EVENT input pin according to bits ECSB3 to ECSB0 in ECCR of the
data transfer controller settings, clear the PAnDDR bit to 0. Though this pin has been set to the
EVENT input pin, to use as the PAn output pin, set the PAnDDR bit to 1.
PAnDDR 0 1
PAn input pin Pin function
EVENTn input pin
PAn output pin
[Legend]
n = 7 to 0