Renesas H8S/2111B 用户手册

下载
页码 582
Rev. 1.00, 05/04, page 128 of 544 
 
•  PA2/KIN10/PS2AC 
The pin function is switched as shown below according to the combination of the KBIOE bit in 
KBCRH_0 of the keyboard buffer controller, and the PA2DDR bit. 
 
KBIOE 0 
PA2DDR 0  1 
— 
PA2 input pin 
PA2 output pin 
PS2AC output pin 
Pin Function 
KIN10 input pin, PS2AC input pin* 
 Note:  *  When the KBIOE bit is set to 1, this pin is an NMOS open-drain output, and has direct 
bus drive capability. This pin can always be used as the PS2AC or 
KIN10 input pin. 
 
•  PA1/KIN9, PA0/KIN8 
The pin function is switched as shown below according to the state of the PAnDDR bit. 
 
PAnDDR 0 
PAn input pin 
PAn output pin 
Pin Function 
KINm input pin* 
Note:  *  This pin can always be used as the 
KINm input pin. (n = 1 or 0, m = 9 or 8) 
 
7.10.5  Port A Input Pull-Up MOS 
Port A has an on-chip input pull-up MOS function that can be controlled by software. This input 
pull-up MOS function can be specified as on or off on a bit-by-bit basis. 
The input pull-up MOS for pins PA7 to PA4 is always off when IICS is set to 1. When the 
keyboard buffer control pin function is selected for pins PA7 to PA2, the input pull-up MOS is 
always off. 
Table 7.6 summarizes the input pull-up MOS states. 
Table 7.6 
Input Pull-Up MOS States (Port A) 
Reset 
Hardware Standby Mode Software Standby Mode 
In Other Operations 
Off Off 
On/Off 
On/Off 
[Legend] 
Off: 
Input pull-up MOS is always off.  
On/Off: On when the pin is in the input state, PADDR = 0, and PAODR = 1; otherwise off.