NEC V850/SB1 User Manual page 496

32-bit single-chip microcontroller
Table of Contents

Advertisement

(1) Function of P6 pins
Port 6 is a 6-bit I/O port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 6 mode register (PM6).
In output mode, the values set to each bit are output to the port 6 register (P6).
When using this port in input mode, the pin statuses can be read by reading the P6 register. Also, the P6
register (output latch) values can be read by reading the P6 register while in output mode.
A software pull-up function is not implemented.
When using the alternate-function A16 to A21 pins, set the pin functions via the memory expansion register
(MM). This does not affect the PM6 register.
When a reset is input, the settings are initialized to input mode.
(2) Control register
(a) Port 6 mode register (PM6)
PM6 can be read/written in 8-bit or 1-bit units.
3FH
After reset:
7
PM6
0
PM6n
0
1
496
CHAPTER 14
R/W
Address: FFFFF02CH
6
5
0
PM65
Output mode
Input mode
User's Manual U13850EJ6V0UD
PORT FUNCTION
4
3
PM64
PM63
PM62
Control of I/O mode (n = 0 to 5)
2
1
0
PM61
PM60

Advertisement

Table of Contents
loading

This manual is also suitable for:

V850/sb2

Table of Contents