09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

<strong>RM0090</strong> Analog-to-digital converter (ADC)<br />

11.6 Conversion on external trigger and trigger polarity<br />

Conversion can be triggered by an external event (e.g. timer capture, EXTI line). If the<br />

EXTEN[1:0] control bits (for a regular conversion) or JEXTEN[1:0] bits (for an injected<br />

conversion) are different from “0b00”, then external events are able to trigger a conversion<br />

with the selected polarity. Table 48 provides the correspondence between the EXTEN[1:0]<br />

and JEXTEN[1:0] values and the trigger polarity.<br />

Table 48. Configuring the trigger polarity<br />

Source EXTEN[1:0] / JEXTEN[1:0]<br />

Trigger detection disabled 00<br />

Detection on the rising edge 01<br />

Detection on the falling edge 10<br />

Detection on both the rising and falling edges 11<br />

Note: The polarity of the external trigger can be changed on the fly.<br />

The EXTSEL[3:0] and JEXTSEL[3:0] control bits are used to select which out of 16 possible<br />

events can trigger conversion for the regular and injected groups.<br />

Table 49 gives the possible external trigger for regular conversion.<br />

Table 49. External trigger for regular channels<br />

TIM1_CH1 event<br />

Source Type EXTSEL[3:0]<br />

0000<br />

TIM1_CH2 event 0001<br />

TIM1_CH3 event 0010<br />

TIM2_CH2 event 0011<br />

TIM2_CH3 event 0100<br />

TIM2_CH4 event 0101<br />

TIM2_TRGO event 0110<br />

TIM3_CH1 event<br />

Internal signal from on-chip<br />

timers<br />

0111<br />

TIM3_TRGO event 1000<br />

TIM4_CH4 event 1001<br />

TIM5_CH1 event 1010<br />

TIM5_CH2 event 1011<br />

TIM5_CH3 event 1100<br />

TIM8_CH1 event 1101<br />

TIM8_TRGO event 1110<br />

EXTI line11 External pin 1111<br />

Table 50 gives the possible external trigger for injected conversion.<br />

Doc ID 018909 Rev 3 272/1416

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

Saved successfully!

Ooh no, something went wrong!