19,681 questions
3
votes
1
answer
56
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;
...
0
votes
0
answers
44
views
Custom timer implemented as foreground service experiments delay after background
I want to implement just a simple timer which runs in background. For this purpose I have wrote it as a foreground service special use (its use does not fit the existent foreground services).
I ...
0
votes
0
answers
60
views
Is there a way to have the timer override the prompt input?
I'm trying to make a terminal quiz that has a timer running in the background while you answer the question, which, once finished, overrides the input if it hasn't been filled.
I've tried putting the ...
0
votes
1
answer
49
views
Spring Boot Actuator 'http.server.requests' metric MIN time
The actuator endpoint /actuator/metrics/http.server.requests can exhibit this informations:
{
"name": "http.server.requests",
"baseUnit": "seconds",
"...
1
vote
1
answer
59
views
STM32L010C6 TIM2 IRQ priority, over capture vs edge detection, classic timer issue
So I want to use a capture compare to measure an input frequency 0.1 Hz to 100 kHz.
The peripheral clock is set to 32 MHz to cover the full range and maximise the speed of calculations.
At lower ...
1
vote
1
answer
60
views
How to reproduce a list of DateTimeOffset values (using Timer?)
Let's say I have a list of objects that represents readings from a GPS or a temperature sensor or something like that. Each object contains a DateTimeOffset property with the time of the reading (not ...
0
votes
2
answers
82
views
countback from date is negative, how to make numbers positive? [closed]
i am trying to use a countback from a certain date, and want it to read something like (100d, 10hrs, 10sec). the countback does this fine, except it reads as (-100d, -10hrs, -10sec). is there a way to ...
1
vote
1
answer
115
views
STM32 Input Capture callback not triggering
I am using a Nucleo-G070RB with STM32CubeIDE and trying to do some testing for a project with the input capture. The timer callback doesnt get called though. The circuit is simple, I just want to get ...
0
votes
1
answer
106
views
Excel VBA code "Application.OnTime" skips seconds
I have a timer within Excel VBA code which did run smooth untill 6 weeks ago. Please see the code below. I use this timer in a workbook. I use 2 identical copies of this workbook (with different names)...
0
votes
1
answer
65
views
Event load can't be found BC30590
I comeback with an error BC30590 the event Load can't be flound. I want to display date and time on a mMain form This is the code but is not working. Thank you very much.
Public Class MainForm
...
2
votes
1
answer
54
views
stm32f103c8t6 timer 1 pwm outputs not working
I'm working on a project that needs 3 pwm outputs. I'm already tried with timer 2,3,4, and they work fine with my library. But I wanted to port my pwm library to timer 1 and now I see that A8, A9, A10 ...
0
votes
1
answer
59
views
Error of where Type 'Timer' has no member 'scheduledTimer' in my code: [closed]
In the code below, I receive the error - Type 'Timer' has no member 'scheduledTimer' - which I thought was an import issue but seems to be constant despite the results. How can I remove this error ...
1
vote
0
answers
41
views
Very Specific Combination of Servo.write and analogWrite messes up frequencies on esp32 PWM pins
Preface: First time asking a question, please take it easy with the "YOU SHOULD FORMAT YOUR QUESTIONS THIS WAY!"
Question: Why does this happen?
I'm programming an esp32 S3 dev module using ...
1
vote
1
answer
35
views
How would I get a timer to continuously move the car after pressing the start button
How would I make it so that the car repaints continuously after pressing the start button and the start button doesn't have to be clicked multiple times for the car to move.
// Initialize the timer ...
0
votes
0
answers
55
views
Simplest timer in C [duplicate]
I am trying to make the simplest timer program in C. My attempt is as follows:
#include <stdio.h>
#include <time.h>
int main()
{
char c;
time_t start, end;
long int day, ...