
R01UH0336EJ0102 Rev.1.02
Page 58 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 2 Port Functions
(5)
PSRn – Port Set Reset Register
This register provides an alternative method to write data to the Pn register.
The upper 16 bits specify whether the value Pn.Pn_m is set by a write
operation to Pn.Pn_m or is defined by the lower 16 bits of PSRn (n = 0 to 5, 8).
Access
Readable and writable in 32-bit units.
Bits 31 to 16 are always read as 0000
H
.
Reading bits 15 to 0 returns the value of register Pn.
Address
Refer to Table 2-7, Port Group Configuration Registers.
Initial value
0000 0000
H
A reset from any source will initialize the bits.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
PSR
n_31
PSR
n_30
PSR
n_29
PSR
n_28
PSR
n_27
PSR
n_26
PSR
n_25
PSR
n_24
PSR
n_23
PSR
n_22
PSR
n_21
PSR
n_20
PSR
n_19
PSR
n_18
PSR
n_17
PSR
n_16
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PSR
n_15
PSR
n_14
PSR
n_13
PSR
n_12
PSR
n_11
PSR
n_10
PSR
n_9
PSR
n_8
PSR
n_7
PSR
n_6
PSR
n_5
PSR
n_4
PSR
n_3
PSR
n_2
PSR
n_1
PSR
n_0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 2-21
PSRn Register Contents
Bit Position
Bit Name
Function
31 to 16
PSRn_[31:16]
PSRn_m specifies whether the value of the
corresponding lower bit PSRn_m value is written to
Pn_m.
0: Pn_m is independent of PSRn_m
1: Pn_m is PSRn_m
Example:
If PSRn.PSRn31 = 1, the value of bit PSRn.PSRn_15 is
written to bit Pn.Pn_15.
15 to 0
PSRn_[15:0]
Specifies the Pn_m value if the corresponding upper bit
PSRn_(m+16) is 1.
0: Pn_m = 0
1: Pn_m = 1