English
Language : 

HD6433937 Datasheet, PDF (159/521 Pages) Hitachi Semiconductor – Hardware Manual
8.3.3 Function
Table 8-6 shows the port 2 functions.
Table 8-6 Port 2 Functions
Functions
P24, P23
P22/SO1
P21/SI1
P20/SCK1
Functions and Selection Method
The function depends on the corresponding bit in PCR2.
PCR2n
Function
0
P2n input
(n = 4 or 3)
1
P2n output
The function depends on bit SO1 in PMR2 and bit PCR22 in PCR2.
SO1
0
1
PCR22
Function
0
P22 input
1
P22 output
*
SO1 output
The function depends on bit SI1 in PMR2 and bit PCR21 in PCR2.
SI1
0
1
PCR21
Function
0
P21 input
1
P21 output
*
SI1 input
The function depends on bit SCK1 in PMR2 and bit PCR20 in PCR2.
SCK1
0
1
PCR20
Function
0
P20 input
1
P20 output
*
SCK1 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
P24
P23
P22/SO1
P21/SI1
P20/SCK1
Reset
Low
High
Low
Sleep
Retains
previous
state
Subsleep Standby
Retains Retains
previous previous
state
state
Watch
Retains
previous
state
Subactive Active
Functional Functional
147