04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<br />

<br />

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 11 A/D CONVERTER<br />

Figure 11-8. ADRCK Bit Interrupt Signal Generation Range<br />

ADCR register value<br />

(A/D conversion result)<br />

1111111111<br />

0000000000<br />

<br />

(ADUL < ADCR)<br />

<br />

(ADLL ≤ ADCR ≤ ADUL)<br />

<br />

(ADCR < ADLL)<br />

INTAD is generated<br />

when ADRCK = 1.<br />

INTAD is generated<br />

when ADRCK = 0.<br />

INTAD is generated<br />

when ADRCK = 1.<br />

ADUL register setting<br />

ADLL register setting<br />

Remark If INTAD does not occur, the A/D conversion result is not stored in the ADCR or ADCRH register.<br />

(5) 10-bit A/D conversion result register (ADCR)<br />

This register is a 16-bit register that stores the A/D conversion result in the select mode. The lower 6 bits are fixed to<br />

0. Each time A/D conversion ends, the conversion result is loaded from the successive approximation register (SAR).<br />

The higher 8 bits of the conversion result are stored in FFF1FH and the lower 2 bits are stored in the higher 2 bits of<br />

FFF1EH. Note<br />

The ADCR register can be read by a 16-bit memory manipulation instruction.<br />

Reset signal generation clears this register to 0000H.<br />

Note If the A/D conversion result is outside the range specified by using the A/D conversion comparison function (the<br />

value specified by the ADRCK bit of the ADM2 register and ADUL/ADLL registers; see Figure 11-8), the result is<br />

not stored.<br />

Symbol<br />

ADCR<br />

Figure 11-9. Format of 10-bit A/D Conversion Result Register (ADCR)<br />

Address: FFF1FH, FFF1EH After reset: 0000H R<br />

FFF1FH FFF1EH<br />

Cautions 1. When writing to the A/D converter mode register 0 (ADM0), analog input channel specification<br />

register (ADS), and A/D port configuration register (ADPC), the contents of the ADCR register<br />

may become undefined. Read the conversion result following conversion completion before<br />

writing to the ADM0, ADS, and ADPC registers. Using timing other than the above may cause an<br />

incorrect conversion result to be read.<br />

2. When 8-bit resolution A/D conversion is selected (when the ADTYP bit of A/D converter mode<br />

register 2 (ADM2) is 1) and the ADCR register is read, 0 is read from the lower two bits (ADCR1<br />

and ADCR0).<br />

3. When the ADCR register is accessed in 16-bit units, the higher 10 bits of the conversion result<br />

are read in order starting at bit 15.<br />

R01UH0317EJ0004 Rev. 0.04 521<br />

Feb. 22, 2013<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!