| поискавой системы для электроныых деталей |
|
UM1561 датащи(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1561 датащи(HTML) 16 Page - STMicroelectronics |
|
16 / 39 page ![]() Data sensing section for the closed loop control UM1561 16/39 Doc ID 023556 Rev 1 } return nRet; } where: ● DS_GPIO_Configuration(); is (Configures the GPIO pins) ● DS_TIMx_Configuration(); is (Configures the TIM8 timer) ● DS_DMA_Configuration(); is (Configures the DMA) ● DS_DMA_Configuration(); is (Configures the ADC). DS_GPIO_Configuration(..): The following GPIO pins are configured as “Analog Input” in order to connect the external sensing section with the internal ADC. /************************************************************************* * Function Name : GPIO_Configuration * Description : Configures the different GPIO ports for data sensing. * Input : None * Output : None * Return : None *************************************************************************/ void DS_GPIO_Configuration(void) { /* Configure PC.0 PC.1 (ADC Channel10, 11) as analog input -----------*/ GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0|GPIO_Pin_1|GPIO_Pin_2|GPIO_Pin_3|GPIO_Pin_4|GPIO_Pin_5; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN; GPIO_Init(GPIOC, &GPIO_InitStructure); /*For Debug pourpouse*/ /* Configure Test Pin:PC9-----------------------------------*/ GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(GPIOC, &GPIO_InitStructure); } DS_TIMx_Configuration(..): The DS_TIMx_Configuration includes the configuration code for the advanced timer TIM8 useful also for ADC triggering. void DS_TIMx_Configuration(void) { // TIM8 Configuration: PWM1 Mode TIM_TimeBaseStructure.TIM_Period = ((DataSensing.Init.Counter) >> 1); TIM_TimeBaseStructure.TIM_Prescaler = 0; |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |