English
Language : 

HD404344R Datasheet, PDF (48/102 Pages) Renesas Technology Corp – 4-bit microcomputer has an A/D converter
HD404344R Series/HD404394 Series
R Port
The R port consists of input/output pins each addressed by 4 bits. Input/output is controlled by the LAR and
LBR instructions and the LRA and LRB instructions. The output data is stored in the port data register
(PDR) of each pin. The on/off status of the output buffers is controlled by the R-port data control registers
(DCR0–DCR3: $030–$033), which are mapped to memory addresses (figure 19).
The R10–R12 ports of the HD404394 series are n-channel middle-voltage open drain input/output pins.
The R00–R03 pins are also used as peripheral function pins: SCK, SI, SO, and TOC. Setting of the
peripheral functions for these pins is executed by bit 3 (SMR3) of the serial mode register (SMR:$005) and
by bits 2 to 0 (PMRA2–PMRA0) of port mode register A (PMRA: $004), as shown in figures 21 and 22.
The R30–R33 pins of the HD404344R series and HD4074344 are also used as AN0–AN3 peripheral function
pins. Pins R31–R33 of the HD404394 series are also used as AN1–AN3 peripheral function pins. The setting
of peripheral functions for these pins is executed by bits 3 to 0 (AMR13–AMR10) of A/D mode register 1
(AMR1: $019). For the HD404394 series, the use of AMR10 is prohibited (figure 23).
Port mode register A (PMRA: $004)
Bit
Initial value
Read/Write
Bit name
3
2
1
0
—
0
0
0
—
W
W
W
Not used PMRA2 PMRA1 PMRA0
PMRA2
0
1
R03/TOC Mode Selection
R03
TOC
PMRA0
0
1
R02/SO Mode Selection
R02
SO
PMRA1
0
1
R01/SI Mode Selection
R01
SI
Figure 21 Port Mode Register A (PMRA)
46