How can I disable (or lower priority) interrupts Systick system timer?
Thank you.
How can I disable (or lower priority) interrupts Systick system timer?
Thank you.
It uses a hardware interrupt to measure the ‘HIGH’ period of a square wave signal, pretty easy to get to frequency from that.
Obviously if your signal looks different you’ll need to adjust what you are looking for but same principal applies.
It uses a hardware interrupt to measure the ‘HIGH’ period of a square wave signal, pretty easy to get to frequency from that.
Obviously if your signal looks different you’ll need to adjust what you are looking for but same principal applies.
(TIMER1->regs).gen->CR1 = 0x00; it’s example.
It uses a hardware interrupt to measure the ‘HIGH’ period of a square wave signal, pretty easy to get to frequency from that.
Obviously if your signal looks different you’ll need to adjust what you are looking for but same principal applies.
It uses a hardware interrupt to measure the ‘HIGH’ period of a square wave signal, pretty easy to get to frequency from that.
Obviously if your signal looks different you’ll need to adjust what you are looking for but same principal applies.
The thing is, you don’t need to use micro. If you set the timer in PWM capture mode, the timer will start and stop with the input signal, then generate an interrupt, but the count has stopped already, so delays by other interrupts will not affect the count. You wont need micros() or anything similar, just read the 2 counter registers, and that will show how many system clock cycles took for the signal period and duty cycle. So any interrupt serviced will not affect, since it is a hardware timer that starts and stops by itself. The only thing you do in the ISR is read the values, but not start or stop any count.
The thing is, you don’t need to use micro. If you set the timer in PWM capture mode, the timer will start and stop with the input signal, then generate an interrupt, but the count has stopped already, so delays by other interrupts will not affect the count. You wont need micros() or anything similar, just read the 2 counter registers, and that will show how many system clock cycles took for the signal period and duty cycle. So any interrupt serviced will not affect, since it is a hardware timer that starts and stops by itself. The only thing you do in the ISR is read the values, but not start or stop any count.
Thank you for the explanation. But it is not yet clear the string value “(TIMER1-> regs) .gen-> CR1 = 0x00;” You can thus can be configured timers?

![[Pending Enhancement] RTC values resetting](https://sparklogic.ru/wp-content/uploads/2019/11/nucleo-l476rg-zestaw-startowy-z-mikrokontrolerem-z-rodziny-stm32-stm32l476-90x90.jpg)
