TC1796
System Units (Vol. 1 of 2)
General Purpose I/O Ports and Peripheral I/O Lines
User’s Manual
10-14
V2.0, 2007-07
Ports, V2.0
10.2.4
Port Output Modification Register
The port output modification register contains control bits that make it possible to
individually set, clear, or toggle the logic state of a single port line by manipulating the
output register.
Note: Register Pn_OMR is virtual and does not contain any flip-flop. A read action
delivers the value of the corresponding port input register Pn_IN. Therefore, reset
values of Pn_OMR and Pn_IN registers are also identical.
The Pn_OMR registers should always be written using word accesses.
Pn_OMR
Port n Output Modification Register (04
H
)
Reset Value: 0000 XXXX
H
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
PR
15
PR
14
PR
13
PR
12
PR
11
PR
10
PR
9
PR
8
PR
7
PR
6
PR
5
PR
4
PR
3
PR
2
PR
1
PR
0
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PS
15
PS
14
PS
13
PS
12
PS
11
PS
10
PS
9
PS
8
PS
7
PS
6
PS
5
PS
4
PS
3
PS
2
PS
1
PS
0
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
Field
Bits
Type Description
PSx
(x = 0-15)
x
w
Port n Set Bit x
Setting this bit will set or toggle the corresponding bit
in the port output register Pn_OUT. The function of
this bit is shown in
PRx
(x = 0-15)
x + 16 w
Port n Reset Bit x
Setting this bit will clear or toggle the corresponding
bit in the port output register Pn_OUT. The function of
this bit is shown in