Port 8 Data Register (P8Dr); Pin Functions - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

Section 9 I/O Ports
9.8.2

Port 8 Data Register (P8DR)

P8DR stores output data for the port 8 pins.
Bit
Bit Name
7
P87DR
6
P86DR
5
P85DR
4
P84DR
3
P83DR
2
P82DR
1
P81DR
0
P80DR
9.8.3

Pin Functions

The relationship between register setting values and pin functions are as follows. In the tables, the
symbol "—" stands for Don't care.
• P87/ExIRQ15/ADTRG/ExTMIY/USEXCL
The pin function is switched as shown below according to the P87DDR bit.
When the TRGS1 and TRGS0 bits in ADCR of the A/D converter are both set to 1, this pin
can be used as the ADTRG input pin. When the CKSEL2 to CKSEL0 bits in UPLLCR of the
USB are all set to 1, this pin can be used as the USEXCL input pin.
When the ISS15 bit in ISSR16 of the interrupt controller is set to 1, this pin can be used as the
ExIRQ15 input pin. When the TMIYS bit in PTCNT0 is set to 1, this pin can be used as the
TMIY (TMCIX/TMRIY) input pin. To use this pin as the ExIRQ15 input pin, clear the
P87DDR bit to 0.
When this pin is used as the P87 output pin, the output format is NMOS push-pull output.
P87DDR
Pin function
ExIRQ15 input pin/ADTRG input pin/ExTMIY input pin/USEXCL input pin
Rev. 3.00 Jan 25, 2006 page 246 of 872
REJ09B0286-0300
Initial Value
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
P87 input pin
Description
P8DR stores output data for the port 8 pins that
are used as the general output port.
If a port 8 read is performed while the P8DDR bits
are set to 1, the P8DR values are read. If a port 8
read is performed while the P8DDR bits are
cleared to 0, the pin states are read.
1
P87 output pin

Advertisement

Table of Contents
loading

Table of Contents