STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! I have a timer set up to measure the input PWM period on channel 1 and pulse width on channel 2 as outlined in the reference manual and it works fine. However, when I stop the input signal, the capture registers are never reset to indicate 0 frequency.

Timer configurations are as follows:   // Control registers(input PWM on channel 1 and 2[pin 12 & 13])  TIM4->CCMR1 |= TIM_CCMR1_CC1S_0 ; // Active input for tim_ccr1  TIM4->CCMR1 |= TIM_CCMR1_CC2S_1; // Active input for tim_ccr2   TIM4->CCER  |= TIM...

bmose.2 by Associate
  • 1055 Views
  • 2 replies
  • 0 kudos

Checking ADC sampling time calculations for STM32407VG?

Hello,I was following a course and the section I'm at is using the ADC. They said the sampling time is 10us, but I calculated it to be around 2.3us.Taken from the datasheet:13.5 Channel-wise programmable sampling timeThe ADC samples the input voltage...

JSamu.2 by Associate II
  • 1564 Views
  • 3 replies
  • 0 kudos