NEC Renesas V850/SC1 User Manual page 147

32-bit single-chip microcontrollers
Hide thumbs Also See for Renesas V850/SC1:
Table of Contents

Advertisement

(1) Function of P1 pins
Port 1 is an 8-bit I/O port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 1 mode register (PM1).
In output mode, the values set to each bit are output to port 1 (P1). The port 1 function register (PF1) can be
used to specify whether P10 and P12 are normal outputs or N-ch open-drain outputs.
When using this port in input mode, the pin statuses can be read by reading P1. Also, the values of P1 (output
latch) can be read by reading P1 while in output mode.
Clear P1 and the PM1 register to 0 when using alternate-function pins as outputs. The logical sum (ORed result)
of the port output and the alternate-function pin is output from the pins.
When a reset is input, the settings are initialized to input mode.
(2) Control registers
(a) Port 1 mode register (PM1)
PM1 can be read/written in 8- or 1-bit units.
After reset:
FFH
7
PM1
PM17
PM1n
0
1
(b) Port 1 function register (PF1)
PF1 can be read/written in 8- or 1-bit units.
After reset:
00H
7
PF1
0
PF1n
0
1
CHAPTER 5
R/W
Address: FFFFF022H
6
5
PM16
PM15
Output mode
Input mode
R/W
Address: FFFFF0A2H
6
5
0
0
Control of normal output/N-ch open-drain output (n = 0, 2)
Normal output
N-ch open-drain output
User's Manual U15109EJ3V0UD
PORT FUNCTIONS
4
3
PM14
PM13
PM12
Control of I/O mode (n = 0 to 7)
4
3
0
0
PF12
2
1
0
PM11
PM10
2
1
0
0
PF10
145

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents