147
8.3.3
Function
Table 8-6 shows the port 2 functions.
Table 8-6
Port 2 Functions
Functions
Functions and Selection Method
P2
4
, P2
3
The function depends on the corresponding bit in PCR2.
(n = 4 or 3)
PCR2
n
0
1
Function
P2
n
input
P2
n
output
P2
2
/SO
1
The function depends on bit SO1 in PMR2 and bit PCR2
2
in PCR2.
SO1
0
1
PCR2
2
0
1
*
Function
P2
2
input
P2
2
output
SO
1
output
P2
1
/SI
1
The function depends on bit SI1 in PMR2 and bit PCR2
1
in PCR2.
SI1
0
1
PCR2
1
0
1
*
Function
P2
1
input
P2
1
output
SI
1
input
P2
0
/SCK
1
The function depends on bit SCK1 in PMR2 and bit PCR2
0
in PCR2.
SCK1
0
1
PCR2
0
0
1
*
Function
P2
0
input
P2
0
output
SCK
1
I/O
*
: Don’t care
8.3.4
States
Table 8-7 shows the port 2 states in each operating mode.
Table 8-7
Port 2 States
Functions
Reset
Sleep
Subsleep
Standby
Watch
Subactive
Active
P2
4
Low
Retains
Retains
Retains
Retains
Functional
Functional
P2
3
High
previous
previous
previous
previous
P2
2
/SO
1
P2
1
/SI
1
P2
0
/SCK
1
Low
state
state
state
state
Содержание H8/3935
Страница 1: ......
Страница 2: ......
Страница 4: ......
Страница 24: ...12 ...
Страница 53: ...41 Notation op Operation field 15 0 8 7 op op Figure 2 10 Block Data Transfer Instruction Code ...
Страница 96: ...84 ...
Страница 142: ...130 ...
Страница 144: ...132 ...
Страница 252: ...240 ...
Страница 326: ...314 ...
Страница 340: ...328 ...
Страница 520: ...508 ...