19,660 questions
0
votes
0
answers
66
views
STM32F030R8 TIM3_IRQHandler Triggering at Half Expected Frequency
I'm getting to grips with the STM32 - I'm using STMCubeMX to configure TIM3 as a basic count timer. The system clock configuration has been left as default so it using the HSI oscillator as the ...
4
votes
0
answers
122
views
Why Does the Linux Neighbor Timer Expire ~10s Later Than Expected Even with a Fixed Reachable Time?
The Linux version currently in use is 5.10.247.
I want to configure a fixed aging time for entries in the Linux neighbor subsystem. As is well known, the function neigh_rand_reach_time() introduces ...
Best practices
1
vote
7
replies
143
views
How reliably and safely detect hardware timer overflow causing logic error
I'm trying to find a best-practice method to handle an edge case when a hardware clock timer wraps around and the overflown value generates a false positive logic match.
For example, on a 16 MHz chip, ...
1
vote
1
answer
72
views
How to get iOS LiveActivity to change status to timer completed
I'm using the timerInterval for the live activity however when the timer expires it doesn't change its status to completed state and I couldn't find a listener to call that
Text(timerInterval: Date().....
Advice
0
votes
0
replies
68
views
How to change MSP430FR5739 PWM frequency according to external signal?
I’m working with an MSP430FR5739 and I’m trying to implement a PWM output whose frequency can change dynamically based on an external signal.
Here’s the behavior I want:
The PWM runs with a maximum ...
3
votes
1
answer
79
views
Compare Match A & B IRQs raised at the same time when matches are close to each other
Some background: I played around with ATTiny13a with the goal to achieve precise PWM with duty cycle control. Perhaps the easiest way would be to use one of PWM modes of MCU's timer subsystem to ...
1
vote
0
answers
134
views
Replacement for Windows Multimedia Timers to get 1 ms timer
I'm using WinMM timers to be able to execute periodic tasks with period of 1 ms. It works great, but in the docs for timeSetEvent function, for example, I see info that the function is obsolete:
Note ...
0
votes
1
answer
107
views
SwiftUI Timer + NavigationLink: play/pause button works inconsistently
My buttons work standalone, but when embedded in NavigationStack and other views, the play/pause buttons work sometimes then stops working other times. I've tried:
• Checked onAppear
• Verified ...
2
votes
3
answers
271
views
Logging long running API or other call
I'd like to be able to make a call (e.g., to an API) from within an Azure function, and make a log entry if it is taking longer than n milliseconds, but not interrupt or end the call. Note this is not ...
0
votes
1
answer
145
views
Get System.Timers.Timer to fire on a WPF Window's thread using the Timer's SynchronizingObject
I tried setting the SynchronizingObject like this:
timer.SynchronizingObject = this;//The Window
but VS told me I need an explicit cast. So I did that and the error went away.
timer....
4
votes
2
answers
247
views
How to call a composable function after a certain time in Jetpack Compose?
When my application starts, I launch an animation. Now I would like to switch to another component (navbar) after 30 seconds. In my research, I saw that the delay function from the Kotlin Coroutines ...
4
votes
1
answer
173
views
Boost Asio Timer interruption after signal is handled
I have the following program that just runs a timer for 5 seconds and has a signal handler.
#include <boost/asio.hpp>
#include <chrono>
#include <iostream>
#include <signal.h>
...
4
votes
4
answers
395
views
Task.Delay versus custom DispatcherTimer-based delay in WPF
I have a WPF project, and in some of the async event handlers in the WMain.xaml.cs I am using the Task.Delay method to suspend the execution of the handler. Example:
private async void Window_KeyDown(...
0
votes
0
answers
31
views
NRF52832 bluetooth mesh lightness setup server set cb triggered by timer
I have an issue with the Lightness setup server set cb being triggered without a connected device and is not internally called in my code. Yet for some reason the set cb is triggered every time my ...
2
votes
1
answer
134
views
Timer 0 macro constants for Microchip PIC18F8722
I am using MPLAB X IDE version 5.43 to develop an embedded project for a PIC18F8722 microcontroller.
It has a timer TMR0 which can be configured to be 32 bits.
I had lots of statements:
TMR0L = 0;
...