English
Language : 

HD404889_03 Datasheet, PDF (71/197 Pages) Renesas Technology Corp – Low-Voltage AS Microcomputers with On-Chip LCD Circuit
HD404889/HD404899/HD404878/HD404868 Series
D Port
The D port consists of 12 I/O pins (10 I/O pins in the HD404868 Series) that are addressed bit-by-bit.
Ports D0 to D3 are source large-current I/O pins, and ports D4 to D11 (ports D4 to D9 in the HD404868 Series)
are sink large-current I/O pins.
The D port can be set and reset by the SED and RED instructions or the SEDD and REDD instructions.
Output data is stored in the port data register (PDR) for each pin. The entire D port can be tested by the TD
or TDD instruction.
The D port output buffer is turned on and off by the D port data control registers (DCD0 to DCD2: $030 to
$032). The DCD registers are mapped onto memory addresses (figure 27).
Ports
D0
and
D1
are
multiplexed
as
interrupt
input
pins
INT
0
and
INT1,
respectively.
Setting as interrupt
pins is performed by bits 0 and 1 (PMR00, PMR01) of port mode register 0 (PMR0: $008) (figure 28).
Rev.6.00, Sep.08.2003, page 71 of 197