NEC Renesas V850/SC1 User Manual page 188

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

Advertisement

(1) Function of P15 pins
Port 15 is an 8-bit port for which I/O settings can be controlled in 1-bit units. I/O settings are controlled via the
port 15 mode register (PM15).
In output mode, the values set to each bit are output to port 15 (P15).
When using this port in input mode, the pin statuses can be read by reading P15. Also, the values of P15 (output
latch) can be read by reading P15 while in output mode.
Clear P15 and the PM15 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 register
(a) Port 15 mode register (PM15)
PM15 can be read/written in 8- or 1-bit units.
After reset:
FFH
7
PM15
PM157
PM15n
0
1
186
CHAPTER 5
R/W
Address: FFFFF03EH
6
5
PM156
PM155
Output mode
Input mode
User's Manual U15109EJ3V0UD
PORT FUNCTIONS
4
3
PM154
PM153
PM152
Control of I/O mode (n = 0 to 7)
2
1
0
PM151
PM150

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents