STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

TIM3-> CCR1 is not capturing TIM3->CNT value in input capture function .I am trying to interface HC-sr04 Ultrasonic sensor to STM32F401. I am giving input to TRIG pin with 10 micro second ON and Need to Measure Pulse from ECHO pin of the Sensor.

#include<NEW.h>void Ultra_setting();void delay();int timeStamp = 0;int main(){  //GPIO A configuration Ultra_setting(); Gpio_Init();  //input capture mode  RCC->APB1ENR |= 2;   //ENABLE TIMER 3  TIM3->PSC = 16;    //divide by 16  TIM3->CCMR1 |= (0b01...

Nchun.1 by Senior
  • 1250 Views
  • 7 replies
  • 0 kudos

Resolved! How to configure a 64 bit quadrature encoder interface

I'm currently using TIM2 on an STM32F373 as a 32bit quadrature encoder interface, however I need to extend this to 64 bits. Can I cascade a second 32bit counter (e.g. TIM5) as a slave whilst still maintaining the ability to count up & down ? Thanks

RParf.1 by Associate II
  • 1224 Views
  • 7 replies
  • 0 kudos

Resolved! Right edge aligned PWM

I've edited this post to make it more useful to others.We are well into development of a board at work using an STM32F072RBT6 MCU. I just wrote a quick from scratch test using a NUCLEO-F072RB board to verify things. I'm not sure of the exact problem,...

SPetr.6 by Associate II
  • 1300 Views
  • 6 replies
  • 0 kudos