English
Language : 

HD6417705 Datasheet, PDF (562/739 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
20.7.2 Port G Data Register (PGDR)
PGDR is an 8-bit readable/writable register that stores data for pins PTG7 to PTG0. Bits PG7DT
to PG0DT correspond to pins PTG7 to PTG0. When the pin function is general output port, if the
port is read, the value of the corresponding PGDR bit is returned directly. When the function is
general input port, if the port is read the corresponding pin level is read.
Bit
Bit Name
Initial
Value R/W
7 to PG7DT 0
R/W
0 to
PG0DT
Description
Table 20.7 shows the function of PGDR.
Table 20.7 Port G Data Register (PGDR) Read/Write Operations
PGCR State
PGnMD1 PGnMD0 Pin State
Read
Write
0
0
Other function PGDR value Data can be written to PGDR but no effect on
pin state.
1
Output
PGDR value Written data is output from the pin.
1
0
Input (Pull-up Pin state
Data can be written to PGDR but no effect on
MOS on)
pin state.
1
Input (Pull-up Pin state
Data can be written to PGDR but no effect on
MOS off)
pin state.
Note: n = 0 to 7
20.8 Port H
Port H is a 7-bit input/output port with the pin configuration shown in figure 20.8. Each pin has an
input pull-up MOS, which is controlled by the port H control register (PHCR) in the PFC.
Port H
PTH6 (input/output)/DREQ1 (input)
PTH5 (input/output)/DREQ0 (input)
PTH4 (input/output)/IRQ4 (input)
PTH3 (input/output)/IRQ3 (input)/IRL3 (input)
PTH2 (input/output)/IRQ2 (input)/IRL2 (input)
PTH1 (input/output)/IRQ1 (input)/IRL1 (input)
PTH0 (input/output)/IRQ0 (input)/IRL0 (input)
Figure 20.8 Port H
Rev. 2.00, 09/03, page 516 of 690