h8s-2646 Renesas Electronics Corporation., h8s-2646 Datasheet - Page 262

no-image

h8s-2646

Manufacturer Part Number
h8s-2646
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 9 I/O Ports
If P2DDR is set to 1, the value of P2DR is returned when port 2 is read. If P2DDR is cleared to 0,
the pin states are returned when port 2 is read.
P2DDR and P2DR are initialized if a reset occurs and in the hardware standby mode, so the
content of PORT2 is determined by the pin states. The previous states are retained in the software
standby mode.
9.3.3
The port 2 pins also function as TPU I/O pins (TIOCB5, TIOCA5, TIOCB4, TIOCA4, TIOCD3,
TIOCC3, TIOCB3, TIOCA3). The pin functions of port 2 change with the operating mode.
Table 9.5 lists the pin functions for port 2.
Table 9.5
Rev. 5.00 Sep 22, 2005 page 236 of 1136
REJ09B0257-0500
Pin
P27/TIOCB5
Pin Functions
Port 2 Pin Functions
Selection Method and Pin Functions
Switches as follows according to the combinations of the TPU channel 5
setting made using bits MD3 to MD0 of TMDR5, bits IOB3 to IOB0 of TIOR5,
and bits CCLR1 and CCLR0 of TCR5, as well as the P27DDR bit.
Note: * TIOCB5 input if MD3 to MD0 = 0, B'0000, B'01xx, and IOB = 1.
TPU Channel
5 Setting
P27DDR
Pin function
TPU Channel
5 Setting
MD3 to MD0
IOB3 to IOB0
CCLR1,
CCLR0
Output
function
B'0000
B'0100
B'1xxx
Table Below (1)
TIOCB5 output
B'0000, B'01xx
(2)
B'0001 to
B'0011
B'0101 to
B'0111
compare
Output
output
(1)
B'0010
(2)
P27 input
0
B'xx00
Table Below (2)
TIOCB5 input *
(2)
than B'10
Other than B'xx00
mode 2
B'0011
output
Other
PWM
(1)
P27 output
1
B'10
(2)

Related parts for h8s-2646