CHAPTER 4 PORT FUNCTIONS
User’s Manual U16896EJ2V0UD
78
4.3.1 Port 0
Port 0 is a 7-bit I/O port for which I/O settings can be controlled in 1-bit units.
Port 0 includes the following alternate functions.
Table 4-4. Alternate-Function Pins of Port 0
Pin No.
Pin Name
Alternate Function
I/O
PULL
Note 1
Remark Block
Type
12 P00
Note 2
TOH0
Output
D0-U
13 P01
TOH1
Output
–
D0-U
14 P02
NMI
Input
D1-SUIL
15 P03
INTP0
Input
D1-SUIL
16 P04
INTP1
Input
D1-SUIL
17 P05
INTP2
Input
Analog noise elimination
D1-SUIL
18 P06
INTP3
Input
Yes
Analog/digital noise
elimination
D1-SUIL
Notes
1.
Software pull-up function
2.
Only the P00 pin outputs a low level after reset (other port pins are in input mode).
Therefore, the low-level output from the P00 pin after reset can be used as a dummy reset signal from
the CPU.
Caution P02 to P06 have hysteresis characteristics when the alternate function is input, but not in the
port mode.
(1) Port 0 register (P0)
0
0 is output
1 is output
P0n
0
1
Control of output data (in output mode) (n = 0 to 6)
P0
P06
P05
P04
P03
P02
P01
P00
After reset: 00H (output latch) R/W Address: FFFFF400H
(2) Port 0 mode register (PM0)
1
Output mode
Input mode
PM0n
0
1
Control of I/O mode (n = 0 to 6)
PM0
PM06
PM05
PM04
PM03
PM02
PM01
PM00
After reset: FFH R/W Address: FFFFF420H
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...