![NEC V850/SC1 Скачать руководство пользователя страница 142](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178142.webp)
CHAPTER 5 PORT FUNCTIONS
User’s Manual U15109EJ3V0UD
140
5.2 Port Pin Functions
5.2.1
Port 0
Port 0 is an 8-bit I/O port for which I/O settings can be controlled in 1-bit units.
When using P00 to P04 as the NMI or INTP0 to INTP3 pins, noise is eliminated by an analog noise eliminator.
When using P05 to P07 as the INTP4/ADTRG, INTP5, and INTP6 pins, noise is eliminated by a digital noise
eliminator.
After reset:
00H
R/W
Address: FFFFF000H
7
6
5
4
3
2
1
0
P0
P07
P06
P05
P04
P03
P02
P01
P00
P0n
Control of output data (in output mode) (n = 0 to 7)
0
Outputs 0
1
Outputs 1
Remark
In input mode:
When P0 is read, the pin levels at that time are read. Writing to P0 writes the values
to that port. This does not affect the input pins.
In output mode: When P0 is read, the values of P0 are read. Writing to P0 writes the values to that
port, and those values are immediately output.
Port 0 includes the following alternate functions.
Table 5-2. Port 0 Alternate Function Pins
Pin Name
Alternate Function
I/O
PULL
Note
Remark
P00
NMI
P01
INTP0
P02
INTP1
P03
INTP2
P04
INTP3
Analog noise elimination
P05
INTP4/ADTRG
P06
INTP5
Port 0
P07
INTP6
I/O
No
Digital noise elimination
Note
Software pull-up function