Добрый день, необходимо генерировать одиночный импульс.
RCC->AHBENR |= RCC_AHBENR_GPIOAEN; RCC->APB2ENR |= RCC_APB2ENR_TIM15EN; //PA2 push-pull GPIOA->MODER |= GPIO_MODER_MODER2_1; GPIOA->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR2; GPIOA->PUPDR &= ~GPIO_PUPDR_PUPDR2; GPIOA->AFR[0] |= (0x09<<2*4); TIM15->PSC = 7200 -1; TIM15->ARR = 700 - 1; TIM15->CCR1 = 350 - 1; TIM15->CR1 &= ~TIM_CR1_DIR; TIM15->CR1 |= TIM_CR1_OPM; TIM15->BDTR |= TIM_BDTR_MOE; TIM15->CCER |= TIM_CCER_CC1E; TIM15->CCMR1 = TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2;//PWM TIM15->CR1 |= TIM_CR1_CEN;
Подскажите, что делаю не так?