English
Language : 

SH7047 Datasheet, PDF (581/764 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTMRISC engine Family/SH7000 Series
18.3 Port D
Port D is an input/output port with the nine pins shown in figure 18.3.
Port D
PD8 (I/O) / UBCTRG (output)*
PD7 (I/O) / D7 (I/O) / AUDSYNC (I/O)*
PD6 (I/O) / D6 (I/O) / AUDCK (I/O)*
PD5 (I/O) / D5 (I/O) / AUDMD (input)*
PD4 (I/O) / D4 (I/O) / AUDRST (input)*
PD3 (I/O) / D3 (I/O) / AUDATA3 (I/O)*
PD2 (I/O) / D2 (I/O) / SCK2 (I/O) / AUDATA2 (I/O)*
PD1 (I/O) / D1 (I/O) / TXD2 (output) / AUDATA1 (I/O)*
PD0 (I/O) / D0 (I/O) / RXD2 (input) / AUDATA0 (I/O)*
Note: * Only for the F-ZTAT version (no corresponding function in the mask version.)
Figure 18.3 Port D
18.3.1 Register Descriptions
Port D has the following register. For details on register addresses and register states during each
processing, refer to appendix A, Internal I/O Register.
• Port D data register L (PDDRL)
18.3.2 Port D Data Register L (PDDRL)
The port D data register L (PDDRL) is a 16-bit readable/writable register that stores port D data.
Bits PD8DR to PD0DR correspond to pins PD8 to PD0 (multiplexed functions omitted here).
When a pin functions is a general output, if a value is written to PDDRL, that value is output
directly from the pin, and if PDDRL is read, the register value is returned directly regardless of the
pin state.
When a pin functions is a general input, if PDDRL is read, the pin state, not the register value, is
returned directly. If a value is written to PDDRL, although that value is written into PDDRL, it
does not affect the pin state. Table 18.3 summarizes port D data register L read/write operations.
Rev. 2.00, 09/04, page 541 of 720