Datasheet

Section 10 I/O Ports
Rev. 6.00 Mar. 18, 2010 Page 336 of 982
REJ09B0054-0600
PB5/A13/TIOCB4
The pin functions are switched as shown below according to the combination of operating
mode, the TPU channel 4
*
3
setting, AE3 to AE0 bits in PFCR, and the PB5DDR bit.
Operating
mode
Modes 4 to 6 Mode 7
AE3 to AE0 B'011x or
B'1xxx
Other than (B'011x or B'1xxx)
TPU channel 4
setting
*
1
*
3
Output Input or initial value Output Input or initial
value
PB5DDR 0 1 0 1
Pin functions A13
output pin
TIOCB4
*
3
output pin
PB5
input
pin
PB5
output
pin
TIOCB4
*
3
output pin
PB5
input
pin
PB5
output
pin
TIOCB4
*
3
input
pin
*
2
TIOCB4
*
3
input
pin
*
2
Notes: 1. For the setting of the TPU channel, see section 11, 16-Bit Timer Pulse Unit (TPU).
2. This pin functions as TIOCB4 input when TPU channel 4 timer operating mode is set to
normal operating or phase counting mode and IOB3 to IOB0 in TIOR_4 are set to 10xx.
3. Not available in the H8S/2227 Group.
PB4/A12/TIOCA4
The pin functions are switched as shown below according to the combination of operating
mode, the TPU channel 4
*
3
setting, AE3 to AE0 bits in PFCR, and the PB4DDR bit.
Operating
mode
Modes 4 to 6 Mode 7
AE3 to AE0 Other than
(B'0100 or
B'00xx)
B'0100 or B'00xx
TPU channel 4
setting
*
1
*
3
Output Input or initial value Output Input or initial
value
PB4DDR 0 1 0 1
Pin functions A12
output pin
TIOCA4
*
3
output pin
PB4
input
pin
PB4
output
pin
TIOCA4
*
3
output pin
PB4
input
pin
PB4
output
pin
TIOCA4
*
3
input
pin
*
2
TIOCA4
*
3
input
pin
*
2
Notes: 1. For the setting of the TPU channel, see section 11, 16-Bit Timer Pulse Unit (TPU).
2. This pin functions as TIOCA4 input when TPU channel 4 timer operating mode is set to
normal operating or phase counting mode and IOA3 to IOA0 in TIOR_4 are set to 10xx.
3. Not available in the H8S/2227 Group.