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.10 <strong>Hardware</strong> trigger wait 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 />

hardware trigger standby status.<br />

If a hardware trigger is input while in the hardware trigger standby status, A/D conversion is performed on the<br />

analog input specified by the analog input channel specification register (ADS). The ADCS bit of the ADM0<br />

register is automatically set to 1 according to the hardware trigger input.<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 A/D converter enters the stop<br />

status.<br />

If a hardware trigger is input 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 overwritten with 1 during conversion operation, the current A/D conversion is interrupted, and<br />

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

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

enters the hardware trigger standby status, and the A/D converter enters the stop status. When ADCE = 0,<br />

inputting a hardware trigger is ignored and A/D conversion does not start.<br />

Figure 11-28. Example of <strong>Hardware</strong> Trigger Wait Mode (Select Mode, One-Shot Conversion Mode) Operation<br />

Timing<br />

ADCE<br />

<strong>Hardware</strong><br />

trigger<br />

ADCR,<br />

ADCRH<br />

INTAD<br />

ADCE is set to 1.<br />

A hardware trigger <br />

A hardware trigger is<br />

generated during A/D<br />

<br />

<br />

is generated.<br />

conversion operation.<br />

The trigger is not Trigger ADCS is automatically<br />

standby<br />

<br />

acknowledged. status cleared to 0 after<br />

conversion ends.<br />

ADCS<br />

<br />

ADS is rewritten<br />

during A/D conversion<br />

operation (from ANI0<br />

to ANI1).<br />

ADCS is overwritten <br />

with 1 during A/D<br />

conversion operation.<br />

<br />

ADCS is cleared<br />

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

status<br />

Stop status Data 0<br />

(ANI0)<br />

A/D conversion<br />

ends.<br />

Stop Data 0<br />

status (ANI0)<br />

Conversion is<br />

interrupted <br />

and restarts.<br />

Data 0 Stop<br />

(ANI0) status<br />

Data 0<br />

(ANI0)<br />

Conversion is<br />

interrupted<br />

and restarts.<br />

<br />

Data 1 Stop<br />

(ANI1) status<br />

Data 1<br />

(ANI1)<br />

Conversion is<br />

interrupted<br />

and restarts.<br />

<br />

Data 1 Stop<br />

(ANI1) status<br />

Data 1<br />

(ANI1)<br />

Conversion is<br />

interrupted.<br />

Stop status<br />

Data 0<br />

(ANI0)<br />

R01UH0317EJ0004 Rev. 0.04 540<br />

Feb. 22, 2013<br />

Data 0<br />

(ANI0)<br />

Data 1<br />

(ANI1)<br />

Data 1<br />

(ANI1)<br />

Trigger<br />

standby<br />

status

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

Saved successfully!

Ooh no, something went wrong!