| Electronic Components Datasheet Search |
|
AN4640 Datasheet(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4640 Datasheet(HTML) 16 Page - STMicroelectronics |
|
16 / 19 page ![]() The detail for related code is provided in Table 3. Table 3. Peripherals interconnect configuration detail Interconnect Code example Comments TIM8_TRGO selection sMasterConfig.MasterOutputTrigger=TIM_TRGO_UPDATE; sMasterConfig.MasterSlaveMode=TIM_MASTERSLAVEMODE_DISABLE; sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; HAL_TIMEx_MasterConfigSynchronization(&htim8, &sMasterConfig); Configures the Master TIM to generate a triggering event (TIM_TRGO_UPDATE). ADC1 external trigger source hadc1.Init.ExternalTrigConvEdge=ADC_EXTERNALTRIGCONVEDGE_RISING; hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIGCONV_T8_TRGO; hadc1.Init.DMAContinuousRequests = ENABLE; hadc1.Init.EOCSelection = ENABLE; HAL_ADC_Init(&hadc1); The TIM8_TRGO event triggers conversion for the regular group with rising edge. Since converted regular channel values are stored into a unique data register, the DMA mode is enabled. DMA handle __HAL_LINKDMA(hadc, DMA_Handle, hdma_adc); Associates the initialized DMA handle to the ADC handle. |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |