h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 298

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 9 I/O Ports
9.8.2
P8DR stores output data for the port 8 pins.
9.8.3
The relationship between register setting values and pin functions are as follows. In the tables, the
symbol “—” stands for Don't care.
Rev. 3.00 Jan 25, 2006 page 246 of 872
REJ09B0286-0300
Bit
7
6
5
4
3
2
1
0
P87DDR
Pin function
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.
Bit Name
P87DR
P86DR
P85DR
P84DR
P83DR
P82DR
P81DR
P80DR
Port 8 Data Register (P8DR)
Pin Functions
ExIRQ15 input pin/ADTRG input pin/ExTMIY input pin/USEXCL input pin
Initial Value
0
0
0
0
0
0
0
0
P87 input pin
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
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.
Description
P87 output pin
1

Related parts for h8s-2158