![Nations N32G43 Series Скачать руководство пользователя страница 392](http://html1.mh-extra.com/html/nations/n32g43-series/n32g43-series_user-manual_3408051392.webp)
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
369
/
631
ADC_CTRL2.SWSTRRCH to 1.
Table 17-5 ADC is used for external triggering of regular channels
EXTRSEL[2:0]
Trigger source
Type
000
TIM1_CC1 event
Internal signal from the on-chip timer
001
TIM1_CC2 event
010
TIM1_CC3 event
011
TIM2_CC2 event
100
TIM3_TRGO event
101
TIM4_CC4 event
110
EXTI line 0~15/TIM8_TRGO event
External pin/internal signal from on-chip timer
111
SWSTRRCH
Software control bit
For the injection sequence , the software sets the ADC_CTRL2.EXTJTRIG bit to 1, then the injection channel can
use the rising edge of the external event to trigger the start conversion, and the software sets the
ADC_CTRL2.EXTJSEL[2:0] bits to select the external trigger source of the injection sequence. The external trigger
source selection is shown in the table below. If you select EXTI line 0~15 or TIM8_CC4 as the external trigger source,
you can set the AFIO_RMP_CFG.ADC_ETRI and AFIO_RMP_CFG.EXTI_ETRI[3:0] bits to implement; if you
select SWSTRJCH as the external trigger source, you can start the injection channel conversion by setting
ADC_CTRL2.SWSTRJCH to 1.
Table 17-6 ADC is used for external triggering of injection channels
EXTJSEL[2:0]
Trigger source
Type
000
TIM1_TRGO event
Internal signal from the on-chip timer
001
TIM1_CC4 event
010
TIM2_TRGO event
011
TIM2_CC1 event
100
TIM3_CC4 event
101
TIM4_TRGO event
110
EXTI line 0~15/TIM8_CC4 event
External pin/internal signal from on-chip timer
111
SWSTRJCH
Software control bit
Note: Injection triggers can interrupt conversion of the regular sequence.
DMA requests
In order to avoid the loss of the regular channel conversion result saved in the ADC_DAT register due to excessive
data when multiple regular channels are converted, the ADC_CTRL2.ENDMA bit can be set to 1 to use DMA. When
the ADC regular channel conversion ends, a DMA request is generated. After the DMA receives the request, it will
transfer the converted data from the ADC_DAT register to the destination address specified by the user.
Temperature sensor
Set the ADC_CTRL2.TEMPEN bit to 1, enable the temperature sensor and VREFINT, and use the temperature sensor