Datasheet
Section 10 I/O Ports
Page 658 of 1408 R01UH0309EJ0500 Rev. 5.00
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
• PF3/LWR/SSO0-C
The pin function is switched as shown below according to the combination of the operating
mode, bit EXPE, bits MSS and BIDE in SSCRH, bit SSUMS in SSCRL, and bits TE and RE
in SSER of SSU, bit LWROE in PFCR2, bits SSOS1 and SSOS0 in PFCR5, and bit PF3DDR.
Operating
mode
1, 2, 4 3, 7 (EXPE = 1) 3, 7 (EXPE = 0)
LWROE 1 0 0
SSU settings ⎯ (1) in table below (2) in
table
below
(3) in
table
below
(1) in table
below
(2) in
table
below
(3) in
table
below
PF3DDR ⎯ 0 1 0*
3
⎯ 0 1 0*
3
⎯
Pin function LWR
output
PF3
input
PF3
output
SSO0-C
input*
1
*
4
SSO0-C
output*
2
*
4
PF3
input
PF3
output
SSO0-C
input*
1
*
4
SSO0-C
output*
2
*
4
Notes: 1. When using as SSO0-C input, set SSO0S1 and SSO0S0 in PFCR5 to B'10 before other
register setting.
2. When using as SSO0-C output, set SSO0S1 and SSO0S0 in PFCR5 to B'10 before
other register setting.
3. PF3DDR = 0 when the SSU pin is used as input.
4. Do not set up for SSU unless SSO0S1 and SSO0S0 = B'10 in PFCR5.
Use as I/O port.
SSU
settings
(1) (2) (1) (2) (1) (3) (3) (2) (3) (2) (3) (1) (3) (3) (1) (3) (3)
SSUMS 0 0 1*
1
BIDE 0 1*
2
0
MSS 0 1 0 1 0 1
TE 0 1 0 1 0 1 0 1 0 1 0 1
RE 0 1 0 1 1 0 1 1 0 1 0 1 0 1 1 0 1
Pin
state
⎯ SS
O
inpu
t
⎯ SSO
inpu
t
⎯ SSO
output
SSO
output
SSO
input
SSO
output
SSO
input
SSO
output
⎯ SSO
output
SSO
output
⎯ SSO
outp
ut
SSO
output
[Legend]
⎯: Not used as the SSU pin (can be used as an I/O port).
Notes: See tables 20.4 to 20.6.
1. Do not set BIDE to 1 when SSUMS = 1 in SSU.
2. Do not specify that TE = RE = 1 when operating with BIDE = 1 (bidirectional mode).