English
Language : 

HD404344R Datasheet, PDF (75/102 Pages) Renesas Technology Corp – 4-bit microcomputer has an A/D converter
HD404344R Series/HD404394 Series
A/D Converter
The MCU has a built-in A/D converter that uses a sequential comparison method with a register ladder. It
can perform a digital conversion with 3 or 4 analog inputs at 8-bit resolution. The following describes the
features of the A/D converter.
• A/D mode register 1 (AMR1: $019) is used to select digital or analog ports (figure 53).
• A/D mode register 2 (AMR2: $01A) is used to set the A/D conversion speed (figure 54).
• The A/D channel register (ACR: $016) is used to select an analog input channel (figure 55).
• A/D conversion is started by setting the A/D start flag (ADSF: $020, bit 2) to 1. After the conversion is
completed, converted data is stored in the A/D data register, and at the same time, the A/D start flag is
cleared to 0 (figure 56).
• By setting the IAD off flag (IAOF: $021, bit 2) to 1, the current flowing through the resistance ladder
can be cut off even in standby or active mode (figure 57).
• A/D data registers (ADRL: $017, ADRU: $018) are read-only registers used to store the conversion
result. (ADRL: lower 4 bits, ADRU: upper 4 bits.) These registers cannot be cleared by a reset input.
Also, data in these registers are not guaranteed during the conversion period. After the conversion is
completed, an 8-bit result is set to these registers and kept until the next conversion starts (figures 58,
59, and 60).
Notes On Use:
• Use the SEM or SEMD instruction for writing to the A/D start flag (ADSF).
• Do not write to the A/D start flag during A/D conversion.
• Data in the A/D data register during A/D conversion is undefined.
• Since the operation of the A/D converter is based on the clock from the system oscillator, the A/D
converter does not operate in stop mode. In addition, to save power dissipation while in a stop mode, all
current flowing through the converter’s resistance ladder is cut off.
• Output signal level from other ports should be fixed during A/D conversion.
• The port data register (PDR) is initialized to 1 by an MCU reset. At this time, if pull-up MOS is selected
as active by bit 3 of the miscellaneous register (MIS3), the port will be pulled up to VCC. When using a
shared R port/analog input pin as an input pin, clear PDR to 0. Otherwise, if pull-up MOS is selected by
MIS3 and PDR is set to 1, a pin selected by bit 1 of the A/D mode register as an analog pin will remain
pulled up.
73