NEC V850/SB1 User Manual page 493

32-bit single-chip microcontroller
Table of Contents

Advertisement

(1) Functions of P4 and P5 pins
Ports 4 and 5 are 8-bit I/O ports for which I/O settings can be controlled in 1-bit units. I/O settings are controlled
via the port 4 mode register (PM4) the and port 5 mode register (PM5).
In output mode, the values set to each bit are output to the port 4 and 5 registers (P4 and P5).
When using these ports in input mode, the pin statuses can be read by reading the P4 and P5 registers. Also,
the P4 and P5 register (output latch) values can be read by reading the P4 and P5 registers while in output
mode.
A software pull-up function is not implemented.
When using the alternate function as AD0 to AD15, set the pin functions via the memory expansion register
(MM). This does not affect the PM4 and PM5 registers.
When a reset is input, the settings are initialized to input mode.
(2) Control register
(a) Port 4 mode register and port 5 mode register (PM4 and PM5)
PM4 and PM5 can be read/written in 1-bit or 8-bit units.
H
After reset:
FF
7
PMn
PMn7
(n = 4, 5)
PMnx
0
1
CHAPTER 14
R/W
Address: FFFFF028H, FFFFF02AH
6
5
PMn6
PMn5
Output mode
Input mode
User's Manual U13850EJ6V0UD
PORT FUNCTION
4
3
PMn4
PMn3
Control of I/O mode (n = 4, 5, x = 0 to 7)
2
1
PMn2
PMn1
PMn0
0
493

Advertisement

Table of Contents
loading

This manual is also suitable for:

V850/sb2

Table of Contents