Datasheet

Section 8 I/O Ports
Rev. 2.00 Sep. 28, 2009 Page 217 of 870
REJ09B0429-0200
8.8.2 Port 8 Data Register (P8DR)
P8DR stores output data for the port 8 pins.
Bit Bit Name Initial Value R/W Description
7 P87DR 0 R/W
6 P86DR 0 R/W
5 P85DR 0 R/W
4 P84DR 0 R/W
3 P83DR 0 R/W
2 P82DR 0 R/W
1 P81DR 0 R/W
P8DR stores output data for the port 8 pins that are
used as the general output port.
If this register is read, the P8DR values are read for
the bits with the corresponding P8DDR bits set to 1.
For the bits with the corresponding P8DDR bits
cleared to 0, the pin states are read.
0 P80DR 0 R/W
8.8.3 Pin Functions
The relationship between register setting values and pin functions are as follows.
P87/ExIRQ15/ADTRG
The pin function is switched as shown below according to the P87DDR bit.
When the TRGS1 and EXTRGS bits are both set to 1 and the TRGS0 bit is cleared to 0 in
ADCR of the A/D converter, this pin can be used as the ADTRG input pin.
When the ISS15 bit in ISSR16 is set to 1, this pin can be used as the ExIRQ15 input pin. To
use this pin as the ExIRQ15 input pin, clear the P87DDR bit to 0.
P87DDR 0 1
P87 input pin Pin function
ExIRQ15 input pin/
ADTRG input pin
P87 output pin