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.4.3

Pin Functions

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.
• 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.
OS3 to OS0
P47DDR
Pin function
P47 input pin
• 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.
OS3 to OS0
P46DDR
Pin function
P46 input pin
• 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.
Rev. 3.00 Jan 25, 2006 page 224 of 872
REJ09B0286-0300
All bits are set as 0
0
1
P47 output pin
All bits are set as 0
0
1
P46 output pin
One bit is set as 1
TMOY output pin
IRQ7 input pin
One bit is set as 1
TMOX output pin
IRQ6 input pin

Advertisement

Table of Contents
loading

Table of Contents