upd70f3017ay Renesas Electronics Corporation., upd70f3017ay Datasheet - Page 360

no-image

upd70f3017ay

Manufacturer Part Number
upd70f3017ay
Description
V850/sa1tm 32-/16-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
upd70f3017ayGC-8EU-A
Manufacturer:
MICROCHIP
Quantity:
1 001
(1) Function of P2 pins
(2) Control registers
360
After reset:
PM2
Port 2 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 2 mode register (PM2).
In output mode, the values set to each bit are output to port 2 (P2). The port 2 function register (PF2) can be used
to specify whether P21 and P22 are normal outputs or N-ch open-drain outputs.
When using this port in input mode, the pin statuses can be read by reading P2. Also, the P2 (output latch) values
can be read by reading P2 while in output mode.
A pull-up resistor can be connected in 1-bit units when specified via pull-up resistor option register 2 (PU2).
When using the alternate function TI2 and TI3 pins, noise elimination is provided by a digital noise eliminator
(same as digital noise eliminator for port 0).
Clear P2 and PM2 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.
(a) Port 2 mode register (PM2)
PM2 can be read/written in 1-bit or 8-bit units.
FFH
PM2n
PM27
0
1
7
R/W
Output mode
Input mode
PM26
6
PM25
CHAPTER 14 PORT FUNCTION
5
User’s Manual U12768EJ4V1UD
Address: FFFFF024H
PM24
4
Control of I/O Mode (n = 0 to 7)
PM23
3
PM22
2
PM21
1
PM20
0

Related parts for upd70f3017ay