Questions tagged [timer]

Circuit to generate a signal a specific time after a trigger event. The timing can be defined by an RC time constant, or by clock pulses from an oscillator.

Filter by
Sorted by
Tagged with
0
votes
2answers
64 views

How to configure PWM on STM32F429I-Discovery Board

Currently I have some difficulties on the Discovery Board STM32F429I to control the on-board LEDs via PWM. According to the data sheet of the Discovery Board the LEDs are located on pin 13 and pin 14 (...
1
vote
1answer
19 views

Is Compare Pulse sooner than OC1REF in STM32 Advanced Timer output trigger

The options for trigger output signals seem not very well documented. According to the datasheet (P509, here) they include: Compare Pulse - The trigger output send a positive pulse when the CC1IF ...
0
votes
1answer
57 views

STM32F4 input capture

How can get input capture values from STM32F4 for measuring the duty cycles of the four different signal? Here is one channel code: ...
0
votes
1answer
39 views

Signal low delay for specific amount of time / hardware - equivalent of Arduino pulseIn() function

I have a circuit similar to the following: (Source: electronicsforu.com - Shadow Alarm: Light Sensitive Circuit) In the circuit, the output from op-amp pin 6 goes low when a shadow falls or light is ...
1
vote
1answer
64 views

Simulated 555 timer not working

https://www.tinkercad.com/things/2CN1eOTbmTe I am a beginner in electronics. I've been trying to make an astable 555 Timer in TinkerCAD as an oscillator for my own project of making a clock, without ...
1
vote
1answer
1k views

Short circuit detector (autoreverser circuit) using current sensor and switching relay

First of all I’m not electrical engineer. The original idea is described here. It is a model railroad problem. The rails are carrying a power signal (DCC) 12-18 V. The frequency is ~17 kHz. It is a ...
-1
votes
0answers
28 views

How to implement timer to read sensor signal periodically without MCU

I would like to read the signal from a sensor periodically, for example 0.5Hz, but my circuit does not have a microcontroller. The signal from the sensor is a continuous digital signal of only high or ...
0
votes
1answer
30 views

How to configure a clock rate of 50 Hz with a prescaler with TI Microcontrollers?

I need to configure a display that updates its values with f = 50 Hz. Since the CPU works with 16 MHz and the prescaler has a max. value of 256, the min. clock rate I can compute is 62.5 kHz. How do ...
0
votes
2answers
61 views

What is the difference between IQRn 0 and IRQn 1?

I am using STM32CubeMX to program my chip. Essentially I have a timer that i am trying to set to one ms, and every time that timer reaches a ms I want to toggle a pin. My question is that does it ...
1
vote
0answers
48 views

CircuitLab simulation of 555 timer - OUT HIGH always delivering 5V irrespective of Vcc?

I've scratched together a design for a 555 timer based driver for an IR540 MOSFET. But in CircuitLab the simulator shows the 555's OUT voltage is always 5V when high, for Vcc ranges 3.3V through 24V. ...
1
vote
1answer
36 views

2-time constant (On + decay) timer circuit

Required is a timer circuit to switch on an LED with 2 time constants, when a switch is depressed as follows: when switch is closed, light an LED 10 ~ 20mA when switch is opened again, keep the LED ...
0
votes
1answer
19 views

How to do a counting of a timer configured in Mplab Harmony framework?

I'm new to harmony framework, and am trying to find how i can count timer iterations, so i'm doing a simple test. I configured the timer like this: Now i want to know if this is the correct way: <...
1
vote
1answer
40 views

Anyone knows what is a driver implementation in Harmony?

When configuring a Timer Driver implementation the option for Dynamic and Static appears. Anyone knows, what does these 2 types mean?
0
votes
3answers
104 views

What Is the timer period of a timer of a Pic

This is causing a bit of confusion to me. I'm assuming that timer period of a timer is the time that it takes for an increment of timer. Am I correct? It works the same way for 8-bit and 16-bit timer,...
0
votes
1answer
50 views

Does the increment of a timer on pic is equal for a pic16 and pic32?

The question is because in porting code from a PIC16F15324T using MCC to a project using a PIC 32MX470F512L. There are portions of code where i have code like this: ...
0
votes
1answer
35 views

Basic timer that doesn't work STM32L4

I'm trying to use timer2 in STM32L475 but it doesn't start firing the interrupt at all. I would like to configure the timer for a minute. ...
1
vote
1answer
53 views

Configuring STM32 timer as frequency counter

I am trying to configuring one of the timer inputs on a STM32 to behave as a frequency counter for an external signal. The STM32 datasheet describes a "input capture mode" in section 17.3.6 (page 342) ...
0
votes
0answers
42 views

The interrupt callback happens at the calculated period of the timer in pic?

I'm trying to set the timer of a PIC32MX470F512LT to happens every 8us. But after seeing on an oscilloscope when the callback of the timer it doesn't seem to ...
0
votes
0answers
79 views

Is there a minimum frequency in PIC32MX470F512L?

I'm still an inexpirient and I'm configuring the PIC, through MCC (Microship Code Configurator) So i set in the MCC a TMR1: The configuration for the ...
0
votes
2answers
23 views

555 Timer with controllable reset

I have a 555 monostable set up which is triggered when an output from another circuit goes low. This then remains on for 10s. This all works almost perfectly. My issue is that when the output from ...
0
votes
1answer
43 views

Will the choice of prescaler and period while configuring a timer influence the MCU load and power consumption?

Let us say we want to configure a 16-bit timer to generate an interrupt every 1 second with a clock running at 8 MHz. We can use several pair of values for the period and prescaler. Let us take the ...
1
vote
1answer
25 views

RCC clock freq in STM32F103

If I select internal clock source to run my TIM3 in TM32F103 (TIMxCLK from RCC) as shown in the attached picture: CK_INT Then how to find out what is the freq of this clock? I am using External ...
1
vote
2answers
55 views

Task Execution time measurement on Keil for STM32F103

Is there any builtin feature available in Keil uVision to measure execution time of a function or task for STM32F103?
0
votes
1answer
62 views

Relay turn off delay with ability to cancel

I want make it so when the switch is turned off, the relay would be still on for about 15 to 30 seconds, and if it is switched on again in that time period it would just continue running. I am ...
0
votes
1answer
38 views

Missing pulse detector for low input?

I'm looking to implement a watchdog circuit. Tried the standard "missing pulse detector" schematic such as one from http://www.falstad.com/circuit/e-555missing.html - and it works well when the input ...
-1
votes
2answers
39 views

How to sync GPS time and pulses of micro-controller

I have two of the devices (a while loop in the code) that need to start at the same time, within 50ms or less of each other. Each is using the same GPS module, and I am using "ARM® Cortex®-M3 Giant ...
0
votes
2answers
50 views

How to make a circuit to pulse an output when a momentary switch is released

I need to make a circuit that has a momentary switch and a light (30mW). When the switch is pressed, nothing should happen, but when the switch is released, I want it to pulse the light for a short ...
0
votes
1answer
54 views

timer interrupt on STM32F303

I'm kind of a newbie so excuse me if this is a beginner's question. tried to find an answer but couldn't find one. I'm working on STM32f3Discovery eval board, with the stm32f303vc on it. The code ...
0
votes
0answers
33 views

Calling a function that uses HW_Delay inside timer interrupt

I have the following timer interrupt configuration ...
-1
votes
1answer
50 views

Help using a 555 timer to increment counter that needs to be pulled low

I need a little help with a project. I'm very new to building circuits. I have this NE555 duty-cycle pulse frequency adjustable square wave generator module, which I have connected to a 12V DC source. ...
0
votes
1answer
81 views

One led is blinking too frequently using the hardware timer (stm32f103vdh6)

i recently started my internship using embedded C and i'm having some trouble with one of the tasks: Two leds should be blinking at 1Hz, one using the hardware timer, and the other one using the RTX ...
0
votes
0answers
85 views

PIC timer1 interrupt never occurs

I am trying to use timer1 interrupt on PIC18F26K83. I use Micro C as compiler. So I set my timer for 30 ms and after that 30 ms, it is supposed to enter an interrupt and light the LED. But it never ...
0
votes
0answers
23 views

How is trigger initially higher than vcc/3 in 555 monostable timer?

I get that the trigger must be lower than vcc/3 in order for the comparator to show '1'. But initially how is the trigger higher than vcc/3? In some text it says trigger is initially vcc and so ...
1
vote
0answers
65 views

How to disable timer on MSP430?

I am new to the TI MSP430G2553. I would like to send a PWM signal like in this picture: (Image source: Adafruit - Understanding Infrared Signals) However I can't do that, because I don't know how to ...
0
votes
1answer
62 views

Calculate Prescaler value for PIC16F877

I am trying to figure out if there's a way to calculate the prescaler value for Timer 0 on the PIC16F877. I've looked at both parts of Microchip's tutorial on timer 0 and some other tutorials: PIC ...
0
votes
1answer
44 views

How to make 555 timer output fall

I am using a 555 timer in the monostable configuration, which means that when I send a pulse to the trigger pin, the falling edge will make the 555 generate a high pulse on the output for some time. ...
0
votes
1answer
42 views

Timer capture STM32

I have some questions about timer capture in the STM32. Is it possible to capture a digital signal? Like this: Actually, I'd like to know how many clock ticks between rising and falling edge, in ...
1
vote
1answer
75 views

Need help to identify this timer

This device is installed in our electrical panel which act as a timer to control the on/off operation for our LED billboard outside my office. I searched around the device for the brand and model it ...
0
votes
1answer
27 views

touch switch time problem

I was looking for a way to make a touch touch switch and i found this circuit on the internet but the problem is , it goes off automatically after few seconds is there any way that i can control it ...
0
votes
1answer
31 views

ATMega328P Timer Problem in Proteus

I have an ATMega328P microcontroller, and I'm learning how it is programmed. I wrote an example for Timer0 and uploaded it into the microcontroller. It works and a led blinks once a second in while. ...
0
votes
3answers
51 views

555 timer and biasing

Why is it that op-amps used as ICs, such as LM741 require a +Vcc and -Vcc for biasing whereas there is no -Vcc for a 555 timer? What determines the biasing for any IC?
-2
votes
1answer
34 views

producing a continuous sound using a timer

I'm looking to produce a pure sound on one frequency to be played via a timer to come on at intervals over a six week period. this is for an undergrad dissertation. would an arduino work and could it ...
0
votes
1answer
37 views

monostable 555 timer - buzzer motor and pulsing

I need this circuit to pulse an LED while running a buzzer motor for an adjustable period RV1 and C1 should give me 1 - 5s of pulse, while RV2 and C2 should adjust the LED ramp times The LED will be ...
1
vote
0answers
46 views

IoT wireless solenoid circuit

I am a Newbie and I do not have a lot of expirience. The circuit has been put together from pieces I have found on the internet. My goal is to develop a reliable wireless solenoid circuit to water my ...
0
votes
1answer
51 views

Using SysTick_Handler in mbed LPC1768 project

I'm trying to use SysTick_Handler in a project which uses the mbed libraries and RTOS, however on compilation, the following error is returned: ...
0
votes
0answers
38 views

PIC I2C clock related problem

I am trying to make an I2C communication with a device by using PIC18F26K83. I use 8 MHz MCU clock. While trying to set I2C clock these options: Use 8 MHz MCU clock & HFINTOSC for I2CxCLK ...
0
votes
3answers
114 views

Minimal components for timer relay

A 5V LED should run for a predefined time period once a button is pressed. The LED should be illuminated for the same duration as the button is pressed, but only once the button is released and ...
1
vote
2answers
71 views

CD4060 and 74HC4060

I am making a clock timer for an analog LED clock with ICs 4060 and 4027. The clock signal is going to drive some 4017s. Supply voltage would be from 5V to 9V. My online supplier site shows two 4060s- ...
0
votes
0answers
220 views

STM32 Input capture PWM frequency measurement problem using HAL

I'm trying to measure time passed between two external interrupts generated by rising edges of a PWM signal (generated using a IC 555 timer). Point is to determine the frequency of the signal. I'm ...
0
votes
2answers
539 views

if(){} else{} if(){} VS if(){} else if(){} in PWM control [closed]

I'm using timer0 and a gpio pin to generate a 300Hz PWM signal on an ATmega2560. The details if you care: F_CPU=16M, timer clock prescaler /256, count_max=208 The frequency changes depending on if I ...