English
Language : 

HD404669 Datasheet, PDF (49/142 Pages) Hitachi Semiconductor – Low-Voltage AS Microcomputers with On-Chip DTMF Generation Circuit
HD404669 Series
D Port
The D port consists of 9 input/output pins and 2 input-only pins that can be addressed individually on a per-
bit basis. The D0 to D3 pins are high source current input/output pins and the D4, D5, and D9 to D11 pins are
high sink current input/output pins. The D12 and D13 pins are input-only pins.
The D0 to D5 and D9 to D11 pins can be set or reset by the SED/RED and SEDD/REDD instructions. The
output data is stored in the port data register for the pin. All the D port pins can be tested using the TD and
TDD instructions.
The D port data control registers (DCD0 to DCD2: $02C to $02E) are used to turn the D0 to D5 and D9 to
D11 pin output buffers on and off. The DCD registers are mapped to addresses in the RAM area. (figure 29.)
The D12 and D13 pins have shared functions as internal peripheral function pins and the STOPC and INT0
pins. Port mode register C (PMRC: $025) bits 2 and 3 (PMRC2 and PMRC3) are used to switch the
functions of these pins. (figure 32.)
49