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 />

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 />

11.6.2 Software trigger mode (select mode, one-shot conversion mode)<br />

In the stop status, the ADCE bit of A/D converter mode register 0 (ADM0) is set to 1, and the system enters the<br />

A/D conversion standby status.<br />

After the software counts up to the stabilization wait time (1 s), the ADCS bit of the ADM0 register is set to 1 to<br />

perform the A/D conversion of the analog input specified by the analog input channel specification register (ADS).<br />

When A/D conversion ends, the conversion result is stored in the A/D conversion result register (ADCR, ADCRH),<br />

and the A/D conversion end interrupt request signal (INTAD) is generated.<br />

After A/D conversion ends, the ADCS bit is automatically cleared to 0, and the system enters the A/D conversion<br />

standby status.<br />

When ADCS is overwritten with 1 during conversion operation, the current A/D conversion is interrupted, and<br />

conversion restarts. The partially converted data is discarded.<br />

When the value of the ADS register is rewritten or overwritten during conversion operation, the current A/D<br />

conversion is interrupted, and A/D conversion is performed on the analog input respecified by the ADS register.<br />

The partially converted data is discarded.<br />

When ADCS is cleared to 0 during conversion operation, the current A/D conversion is interrupted, and the<br />

system enters the A/D conversion standby status.<br />

When ADCE is cleared to 0 while in the A/D conversion standby status, the A/D converter enters the stop status.<br />

When ADCE = 0, specifying 1 for ADCS is ignored and A/D conversion does not start. In addition, A/D<br />

conversion does not start even if a hardware trigger is input while in the A/D conversion standby status.<br />

Figure 11-20. Example of Software Trigger Mode (Select Mode, One-Shot Conversion Mode) Operation Timing<br />

A/D<br />

conversion<br />

status<br />

ADCR,<br />

ADCRH<br />

INTAD<br />

ADCE is set to 1.<br />

Data 0<br />

(ANI0)<br />

ADCE is cleared to 0. <br />

ADCE<br />

The trigger<br />

is not<br />

acknowledged.<br />

ADCS<br />

ADCS is set to ADCS is<br />

1 while in the automatically <br />

conversion cleared to<br />

standby status.<br />

0 after<br />

conversion<br />

ends.<br />

ADCS is overwritten<br />

<br />

<br />

with 1 during A/D<br />

conversion operation.<br />

<br />

<br />

ADS is rewritten during<br />

A/D conversion operation<br />

(from ANI0 to ANI1).<br />

<br />

ADCS is<br />

<br />

cleared to<br />

0 during A/D<br />

conversion<br />

operation.<br />

ADS<br />

Data 0<br />

(ANI0)<br />

Data 1<br />

(ANI1)<br />

A/D<br />

conversion<br />

ends.<br />

Conversion is<br />

interrupted<br />

and restarts.<br />

<br />

<br />

Conversion is<br />

interrupted.<br />

Stop Conversion<br />

status standby<br />

Data 0<br />

(ANI0)<br />

Conversion<br />

standby<br />

Data 0<br />

(ANI0)<br />

Data 0<br />

(ANI0)<br />

Conversion<br />

standby<br />

Data 0<br />

(ANI0)<br />

Data 1<br />

(ANI1)<br />

Conversion<br />

standby<br />

Data 1<br />

(ANI1)<br />

Conversion<br />

standby<br />

Stop<br />

status<br />

The trigger<br />

is not<br />

acknowledged.<br />

R01UH0317EJ0004 Rev. 0.04 532<br />

Feb. 22, 2013<br />

Data 0<br />

(ANI0)<br />

Data 1<br />

(ANI1)

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

Saved successfully!

Ooh no, something went wrong!