224
PORT5 is an 8-bit read-only register that shows the pin states. PORT5 cannot be written to;
writing of output data for the port 5 pins (P53 to P50) must always be performed on P5DR.
When a port 5 read is performed, the pin states are always read from bits 7 to 4 regardless of the
P5DDR settings.
If a port 5 read is performed while P5DDR bits are set to 1, the P5DR values are read. If a port 5
read is performed while P5DDR bits are cleared to 0, the pin states are read.
After a reset and in hardware standby mode, PORT5 contents are determined by the pin states, as
P5DDR and P5DR are initialized. PORT5 retains its prior state in software standby mode.
5.6.3
Pin Functions
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 (AN15 to AN12), D/A converter analog
output pins (DA3 and DA2), and interrupt input pins (
IRQ7
to
IRQ0
). Port 5 pin functions are
shown in table 5.10.
Summary of Contents for H8S/2670
Page 5: ......
Page 9: ......
Page 199: ...182 ...
Page 361: ...344 ...
Page 393: ...376 ...
Page 647: ...630 ...