222
5.6
Port 5
5.6.1
Overview
Port 5 comprises a 4-bit I/O port (P53 to P50) and a 4-bit input-only port (P57 to P54). Port 5 pins
also function as SCI input/output pins (TxD2, RxD2, and SCK2), the A/D converter input pin
(
ADTRG
), A/D converter analog input pins (AN12 to AN15), D/A converter analog output pins
(DA2 and DA3), and interrupt input pins (
IRQ7
to
IRQ0
). Port 5 pin functions are the same in all
operating modes.
Figure 5.5 shows the port 5 pin configuration.
P57 (input) / AN15 (input)
/ DA3 (output) /
IRQ7
(input)
P56 (input) / AN14 (input)
/ DA2 (output) /
IRQ6
(input)
P55 (input) / AN13 (input)
/
IRQ5
(input)
P54 (input) / AN12 (input)
/
IRQ4
(input)
P53 (I/O)
/
ADTRG
(input) /
IRQ3
(input)
P52 (I/O)
/ SCK2 (I/O)
/
IRQ2
(input)
P51 (I/O)
/ RxD2 (input)
/
IRQ1
(input)
P50 (I/O)
/ TxD2 (output) /
IRQ0
(input)
Port 5
Port 5 pins
Figure 5.5 Port 5 Pin Functions
5.6.2
Register Configuration
Table 5.9 shows the port 5 register configuration. Bits 7 to 4 of port 5 are input-only ports, and do
not have corresponding data direction register or data register bits.
Table 5.9
Port 5 Registers
Name
Abbreviation
R/W
Initial Value
Address
*
Port 5 data direction register
P5DDR
W
H'0
0
H'FE24
Port 5 data register
P5DR
R/W
H'0
0
H'FF64
Port 5 register
PORT5
R
Undefined
H'FF54
Note:
*
Lower 16 bits of the address.
Содержание H8S/2670
Страница 5: ......
Страница 9: ......
Страница 199: ...182 ...
Страница 361: ...344 ...
Страница 393: ...376 ...
Страница 647: ...630 ...