upd70f3422gj-gae-qs-ax Renesas Electronics Corporation., upd70f3422gj-gae-qs-ax Datasheet - Page 46

no-image

upd70f3422gj-gae-qs-ax

Manufacturer Part Number
upd70f3422gj-gae-qs-ax
Description
32-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet
Chapter 2
46
Pn15 Pn14 Pn13 Pn12 Pn11 Pn10
R/W
15
R/W
14
Initial Value
Table 2-10
Table 2-9
Address
R/W
Access
13
2.2.3 Pin data input/output
Note
Note
(1)
R/W
12
If a pin is in port mode, the registers for pin data input/output specify the input
and output data.
Pn - Port register
In port mode (PMCn.PMCnm=0), data is input from or output to an external
device by writing or reading the Pn register.
For port groups with up to eight ports, this is an 8-bit register. For port groups
with up to 16 ports, this is a 16-bit register.
This register can be read/written in 8-bit and 1-bit units.
16-bit registers can also be read/written in 16-bit units.
see “Port Group Configuration“ on page 56
00
After reset, the ports are in input mode (PMn.PMnm = 1). The read input value
is determined by the port pins.
Pn register contents
The value written to register Pn is retained until a new value is written to
register Pn.
Data is written to or read from the Pn register as follows:
Writing/reading register Pn
Preliminary User’s Manual U17566EE1V2UM00
Function
Write to Pn
and output contents of Pn to pins
Write to Pn
without affecting the pin status
Read from Pn
and thus read the pin status
Read from Pn
and disregard the pin status
Bit position
R/W
Pn7
R/W
H
11
7
15 to 0
or 0000
7 to 0
or
R/W
R/W
Pn6
10
6
H
. This register is cleared by any reset.
R/W
Bit name
Pn9
9
R/W
Pn5
Pn[15:0]
Pn[7:0]
5
or
R/W
Pn8
8
R/W
Pn4
4
R/W
Pn7
7
Data, see Table 2-10 for details.
R/W
Pn3
3
R/W
Pn6
6
R/W
Pn2
2
R/W
Pn5
5
R/W
Pn1
R/W
Pn4
1
4
Function
R/W
Pn3
R/W
Pn0
3
0
PM
0
1
1
0
1
R/W
Pn2
2
Pin Functions
R/W
Pn1
1
I/O
O
O
I
I
I
R/W
Pn0
0

Related parts for upd70f3422gj-gae-qs-ax