STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

small and fast: µs-delay with TIMER4

First suggestion after internet inquiry:// Initialization procedure: RCC->APB1ENR = 0b00000000000000000000000000000010; TIM4->PSC = 15; TIM4->ARR = 65534; TIM4->CR1 = (1<<0); // Function: void delay_US(uint32_t us) { uint32_t i; for( i = 0; i <=...

timbo2023 by Associate III
  • 197 Views
  • 2 replies
  • 0 kudos

STM32G4 COMP behaviour using HRTIM

Dear all, I am developing a project using the STEVAL-DPSG474 board. I want to use a COMP module to trigger event on HRTIM output and I want to know the state of this COMP. To highlight the strange behaviour, I am using COMP 2 (and 3) connected to ext...