English
Language : 

MN101C115 Datasheet, PDF (60/170 Pages) Panasonic Semiconductor – Request for your special attention and precautions in using the technical information and semiconductors described in this book
Chapter 3 Port Functions
Setting the PAIMD register
prevents unnecessary current
from flowing in a pin when an
intermediate voltage (analog
voltage) is applied to the pin.
s Port Output/Input Mode Registers
• PnOMD/PnIMD registers
These register settings determine whether the port pins(P10 to P14, PA0 to PA5) are used
as I/O ports or as special function pins (dual function).
If the special (dual) functions used, the PnDIR, PnPLU, PnPLUD, and other registers
must be set.
0
I/O port
1
Special function pin
FLOAT1
s Pin Control Registers
• FLOAT1 registers
This register specifies whether the resistors-attached to pins P7 and PA are pull-up
resistors or pull-down resistors.
In addition, this register selects either zero cross input or Schmitt trigger input for pin
P21.
7
6
5
4
3
2
1
0
P21IM PARDWN P7RDWN
(at reset: -----000)
P7RDWN
0
1
P7 pull-up/pull-down
resistor selection
pull-up resistor
pull-down resistor
PARDWN
0
1
PA pull-up/pull-down
resistor selection
pull-up resistor
pull-down resistor
P21IM
0
1
P21 input mode selection
Schmitt trigger input
SENS input
Figure 3-2-2 Pin Control Register 1(FLOAT1: X'03F4B',R/W)
46 Port Control Registers