NEC V850/SB1TM User Manual page 405

32-bit single-chip microcontroller
Table of Contents

Advertisement

(1) Function of P10 pins
Port 10 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 10 mode register (PM10).
In output mode, the values set to each bit are output to the port 10 register (P10). The port 10 function register
(PF10) can be used to specify whether outputs are normal outputs or N-ch open-drain outputs.
When using this port in input mode, the pin statuses can be read by reading the P10 register. Also, the P10
register (output latch) values can be read by reading the P10 register while in output mode.
A pull-up resistor can be connected in 1-bit units when specified via pull-up resistor option register 10 (PU10).
When using the alternate function as A5 to A12 pins, see the pin functions via the memory address output mode
register (MAM). At this time, be sure to set P10 and PM10 to 0.
When used as KR0 to KR7 pins, noise is eliminated by the analog noise eliminator.
Clear the P10 and PM10 registers to 0 when using alternate-function pins as outputs. The 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 10 mode register (PM10)
PM10 can be read/written in 1-bit or 8-bit units.
FFH
After reset:
7
PM10
PM107
PM10n
0
1
CHAPTER 14
Figure 14-37. Port 10 Mode Register (PM10)
R/W
Address: FFFFF034H
6
5
PM106
PM105
Output mode
Input mode
User's Manual U13850EJ4V0UM
PORT FUNCTION
4
3
PM104
PM103
PM102
Control of I/O mode (n = 0 to 7)
2
1
0
PM101
PM100
405

Advertisement

Table of Contents
loading

Table of Contents