English
Language : 

SH7709S Datasheet, PDF (646/807 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series
19.9.2 Port H Data Register (PHDR)
Bit: 7
PH7DT
Initial value: 0
R/W: R/W
Note: * Undefined
6
PH6DT
*
R
5
PH5DT
*
R
4
PH4DT
*
R
3
PH3DT
*
R
2
PH2DT
*
R
1
PH1DT
*
R
0
PH0DT
*
R
The port H data register (PHDR) is a 1-bit readable/writable and 7-bit read-only register that stores
data for pins PTH7 to PTH0. Bits PH7DT to PH0DT correspond to pins PTH7 to PTH0. When the
pin function is general output port, if the port is read, the value of the corresponding PHDR bit is
returned directly. When the function is general input port, if the port is read, the corresponding pin
level is read. Table 19.16 shows the function of PHDR.
PHDR is initialized to B'0******* by a power-on reset, after which the general input port function
(pull-up MOS on) is set as the initial pin function, and the corresponding pin levels are read. It
retains its previous value in standby mode and sleep mode, and in a manual reset.
Note that the low level is read if bits 6 to 0 are read except in general-purpose input.
Table 19.16 Port H Data Register (PHDR) Read/Write Operations
PHnMD1
0
1
PHnMD0
0
1
0
1
Pin State
Other function
(see table 18.1)
Output
Input (Pull-up
MOS on)
Input (Pull-up
MOS off)
Read
Write
PHDR value Value is written to PHDR, but does not
affect pin state
PHDR value Write value is output from pin
Pin state
Value is written to PHDR, but does not
affect pin state
Pin state
Value is written to PHDR, but does not
affect pin state
(n = 7)
PHnMD1
0
1
PHnMD0
0
1
0
1
Pin State
Other function
(see table 18.1)
Reserved
Input (Pull-up
MOS on)
Input (Pull-up
MOS off)
Read
Low level
Low level
Pin state
Pin state
Write
Ignored (no effect on pin state)
Ignored (no effect on pin state)
Ignored (no effect on pin state)
Ignored (no effect on pin state)
(n = 0 to 6)
Rev. 5.00, 09/03, page 602 of 760