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

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.4.3
The relationship between register setting values and pin functions are as follows. Note that MMC
mode stands for MultiMediaCard mode, and the symbol “—” stands for Don't care in the tables.
Rev. 3.00 Jan 25, 2006 page 224 of 872
REJ09B0286-0300
OS3 to OS0
P47DDR
Pin function
OS3 to OS0
P46DDR
Pin function
P47/IRQ7/TMOY
The pin function is switched as shown below according to the combination of the OS3 to OS0
bits in TCSR of TMR_Y and the P47DDR bit.
When the ISS7 bit in ISSR is cleared to 0 and the IRQ7E bit in IER of the interrupt controller
is set to 1, this pin can be used as the IRQ7 input pin. To use this pin as the IRQ7 input pin,
clear the P47DDR bit to 0.
P46/IRQ6/TMOX
The pin function is switched as shown below according to the combination of the OS3 to OS0
bits in TCSR of TMR_X and the P46DDR bit.
When the ISS6 bit in ISSR is cleared to 0 and the IRQ6E bit in IER of the interrupt controller
is set to 1, this pin can be used as the IRQ6 input pin. To use this pin as the IRQ6 input pin,
clear the P46DDR bit to 0.
P45/IRQ5/TMIY
The pin function is switched as shown below according to the P45DDR bit.
When the TMIYS bit in PTCNT0 is cleared to 0 and the external clock is selected by the CKS2
to CKS0 bits in TCR of TMR_Y, this pin is used as the TMCIY input pin. When the CCLR1
and CCLR0 bits in TCR of TMR_Y are set to 1, this pin is used as the TMRIY input pin.
When the ISS5 bit in ISSR is cleared to 0 and the IRQ5E bit in IER of the interrupt controller
is set to 1, this pin can be used as the IRQ5 input pin. To use this pin as the IRQ5 input pin,
clear the P45DDR bit to 0.
Pin Functions
P47 input pin
P46 input pin
0
0
All bits are set as 0
All bits are set as 0
P47 output pin
P46 output pin
1
1
IRQ7 input pin
IRQ6 input pin
One bit is set as 1
One bit is set as 1
TMOY output pin
TMOX output pin

Related parts for h8s-2158