234
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
Pin Functions
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
Port 2 Pin Functions
Pin
Selection Method and Pin Functions
P27/TIOCB5Switches 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.
TPU Channel
5 Setting
Table Below (1)
Table Below (2)
P27DDR
—
0
1
Pin function
TIOCB5 output
P27 input
P27 output
TIOCB5 input
*
Note:
*
TIOCB5 input if MD3 to MD0 = 0, B'0000, B'01xx, and IOB = 1.
TPU Channel
5 Setting
(2)
(1)
(2)
(2)
(1)
(2)
MD3 to MD0
B'0000, B'01xx
B'0010
B'0011
IOB3 to IOB0
B'0000
B'0100
B'1xxx
B'0001 to
B'0011
B'0101 to
B'0111
—
B'xx00
Other than B'xx00
CCLR1,
CCLR0
—
—
—
—
Other
than B'10
B'10
Output
function
—
Output
compare
output
—
—
PWM
mode 2
output
—
Содержание H8S/2645
Страница 4: ......
Страница 16: ......
Страница 58: ...26 ...
Страница 110: ...78 ...
Страница 120: ...88 ...
Страница 132: ...100 ...
Страница 160: ...128 ...
Страница 172: ...140 ...
Страница 235: ...203 Transfer SAR or DAR DAR or SAR Block area First block Nth block Figure 8 8 Memory Mapping in Block Transfer Mode ...
Страница 418: ...386 ...
Страница 444: ...412 ...
Страница 530: ...498 ...
Страница 562: ...530 ...
Страница 642: ...610 ...
Страница 662: ...630 ...
Страница 688: ...656 ...
Страница 756: ...724 ...
Страница 784: ...752 ...
Страница 812: ...780 ...
Страница 837: ...805 A 2 Instruction Codes Table A 2 shows the instruction codes ...
Страница 1152: ...1120 ...