Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
0answers
822 views

Master-slave timing on ARM Cortex-M0

I have set up a slave timer that starts counting when the master timer is enabled. I want to know if the slave starts counting when the master timer receives a valid edge (my configuration is count ...
2
votes
0answers
187 views

STM32L1 Discovery Kit 5MHz PWM Generation

I have been using the STM32L1 Discovery Kit with the STM32L152RCT6 MCU. A project that I am working on requires me to output two PWM signals. One of these is a 100KHz square wave and the other is ...
2
votes
0answers
297 views

ATtiny85, timer 1B does not work if COM1A1|COM1A0==0

I read the datasheet, and checked http://www.avrfreaks.net forum, but I cannot understand why on an ATtiny85: ...
1
vote
0answers
51 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 ...
1
vote
0answers
40 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 ...
1
vote
0answers
38 views

Simple coountdown timer IC that is independant of supply voltage

I'm designing a shutdown circuit that switches off a SMPS regulator after a 10 second time interval. This is a battery powered application and the battery voltage could be anywhere between 7-15V. I'...
1
vote
0answers
47 views

556 circuit not working

I just got my 556 timers and I wired it up just like the 555 but now: it flashes one HighTime and stays off then... I used this calculator and basic diagram: http://www.ohmslawcalculator.com/555-...
1
vote
0answers
89 views

strange array values (C, psoc, usbuart)

I am still fairly new to programming, so I'm sorry in advance if my terminology/formatting isn't up to scratch. I am currently working on an element of a musical instrument that will allow me to ...
1
vote
0answers
179 views

STM32F407 - how do I run one motor at a time? Why do they ignore delays..?

I'm a newbie. I'm using an STM32F407 discovery board, and I want to control 6 stepper motors using PWM, especially OPM(One Pulse Mode). Till now I've made 3 stepper motors work using Timer 8 (CH1, ...
1
vote
0answers
171 views

STM32F4 OC Clock Jitter

I am using STM32CubeMX to configure an STM32F4 to output a clock signal using Timer 3, Channel 4 on PC9. I have read in the datasheet PLL section that jitter shouldn't be more than 15ps RMS but I am ...
1
vote
0answers
163 views

How to vary the range of a potentiometer…is this even possible?

I am a total noob so apologize if this doesn't belong here but I haven't had any luck finding an answer to this... I have a simple circuit with two 555 timers...similar to an Atari Punk Console. I ...
1
vote
0answers
765 views

STM32F107 generate PPM signal

I need generate special signal PPM for my rc toys, for example: I'll use stm32F107 and I would use a timer which will be a resolution of 0.1us. The web is a lot of examples to generate the PWM signal ...
1
vote
0answers
556 views

How to set MSP430 Driver Library timerA configurations

I am using MSP430F5529 and MSP430 Driver Library. As you can see, I set upMode timer configuration, compare mode configuration and enabled the initial interrupts. However, timerA interrupt is not ...
1
vote
0answers
46 views

Only allowing input after x amount of time

I've been given a problem to solve - When the input is high (sensor), a timer should start which outputs high for 10 minutes (camera active). After 30 minutes, if the input is high, the process ...
1
vote
0answers
108 views

pic timer triggers twice

I'm programming a pic18f24k50 using Timer0 to trigger an interrupt every 5ms. I'm handling USB interrupts too Here is the code where I init the timer: ...
1
vote
0answers
292 views

PIC12F simulator: Why isn't the oscillator running?

I have written firmware for a PIC12LF1572 that I am testing in the MPLAB X simulator. The program runs and correctly responds to stimuli, except when it needs to wait for a timer interrupt. After a ...
1
vote
0answers
59 views

Circuit that takes input signal and controls led

I am trying to design a circuit that compares a recorded signal to a stock signal. If they are not similar it then inputs a signal into a circuit which will change the pulse of the led to stimulate a ...
0
votes
0answers
31 views

Calling a function that uses HW_Delay inside timer interrupt

I have the following timer interrupt configuration ...
0
votes
0answers
81 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
22 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 ...
0
votes
0answers
36 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
0answers
116 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
0answers
29 views

Keypad changing ports for usage of Timers

I want to use timers of ATmega 32 ( PD4 and PD5 ) for pwm mean while i'm using Port D for keypad the available ports for me is PA7 and PC7 i want to know how can i change my code of keypad init. ...
0
votes
0answers
12 views

In PIC18F4550,But CCP1 Compare Interrput using Timer1 is not working in Relaese Mode but works if use debug mode with pause & Start

I am using PIC18f4550. I am using Timer0 for time keeping which alone works fine. I have tested CCP1 interrput using TImer1 for pulse generation. It also works fine. When I mergred Timer0 time ...
0
votes
0answers
292 views

STM32CubeMX for UART example

I am trying to run the example given in CubeMX document UM1718, Tutorial 4 - Example of UART communications with an STM32L053xx Nucleo board.. page 230. I wonder what is the purpose of using TIM2 in ...
0
votes
0answers
57 views

Inverted 555 Monostable Timer With a Sustained Input

I am using a 555 Timer to control a motor for a science team project. I have to make a Rube Goldberg-like machine and I am not allowed to use Arduinos or Raspberry Pis. However I need to trigger the ...
0
votes
0answers
40 views

Problem with using Timer Counter interrupt on Atmel ARM

I'm using an ATSAM4E16C microcontroller and i need to get a 1 millisecond tick. I want to implement this using the timer counter module to trigger an interrupt. The clock frequency is 96 MHz, so using ...
0
votes
0answers
19 views

Checking HM-TRP radio adapter for initial data

I have several HM-TRP radio adapters (consisting of the HM-TRP chip with a female header connected to it) of the same version. I tested it in a mini circuit where the PC does direct I/O with the HM-...
0
votes
0answers
25 views

Can standard 8051 timer 1 and timer 0 be available to programmer when serial mode 1 is used?

The micro is an AT89C4051. It allows two timers and a serial port interrupt. Currently, I set things up so that if any kind of data is received on the serial port, it just is loaded into memory by ...
0
votes
0answers
47 views

Suggestions for switching 800VDC converter on/off

I'm stress testing(turning them on-off with load every 300 seconds for 1-2 weeks) the components that we are willing to use. have tested several battery chargers with AC input with using a timer relay ...
0
votes
0answers
26 views

HM-TRP radio module works at 56K data speed but only in delayed chunks

I created the following setup: I created one circuit in which the PC connects to an HM-TRP radio module via a max232 DIP IC. This circuit for the test is the master to all devices and sends a 16 byte ...
0
votes
0answers
42 views

What keeps a delay-off timer energized when you cut off the power?

I've come to understand the function of the delay off timer as follows: When it is energized, it instantly changes its contacts. And when you "de-energize" it, it delays for a preset time and only ...
0
votes
0answers
140 views

555 Timer Circuit Simulation Generates an Error

I simulated the circuit below: The expected output is a 50% duty cycle 40 kHz square wave but the simulator (MultiSim) generates an error and doesn't compile. The error message is as follows: "A ...
0
votes
0answers
35 views

Can a timer capacitor be overriden?

So, I'm using a LTC1980 as a backup power supply regulator. But instead of using batteries as a power source, I'm using super capacitors. Their voltage tend to fall below under-voltage threshold of ...
0
votes
0answers
55 views

Serial baud calculation without using serial interrupt - 8051

Here's the situation. I have a project which utilizes multiple sensors and connects to another unit through standard UART (8N1). Because no data needs to be missed from any device, I made the ...
0
votes
0answers
545 views

STM32F7 + TI ADS127L01: SPI with DMA circular mode + Timer IC for data ready signal + CRC

I've connected a TI ADS127L01 to the SPI2 of a STM32F746 mcu via SPI2 and Timer 2 Channel 4 input capture for the data ready signal. As soon the data ready signal is captured, the SPI TX DMA (which is ...
0
votes
0answers
1k views

STM32F7 Timer and DMA

I'm currently trying to adapt the example project TIM_DMA of the F769I_EVAL to the STM32F746G discovery board. I'm quite new to STM32 and this might be an obvious error. The code creates a timer and ...
0
votes
0answers
31 views

Switching timer delay, non accumulative

I am trying to build a 555-timer that delays the switch of an input signal, both ways. When input goes high there should be a delay before output goes high, when input goes low there should be a delay ...
0
votes
0answers
103 views

synchronised tasks and interrupts conflicts with filesystem

my program include timers (timer0 to call an ISR periodically, timer3 to measure execution time), spi to read (without DMA) and fatfs. I call a function each 250 µs periodically using timer0, this ...
0
votes
0answers
278 views

stm32f4 timer to gpio with dma

I am using stm32f4 and HAL library. I am working a project which is about timer(PWM Generation No Output) to GPIO with DMA. I can't see any output. How can I do it? I couldn't see any output. I set ...
0
votes
0answers
68 views

Fire alaram sound using PIC16F886

I am coding on a PIC16F886 IC. I am trying to generate a fire alarm sirene with a PWM signal. I have some questions as stated below. I copied code the from Example code My speaker circuit look like ...
0
votes
0answers
165 views

Transistor for 38kHz IR pulse amplification

I am trying to build a timer circuit in which I will send a modulated 38kHz (almost) signal to an IR Receiver (TSOP38238 in Arduino Nano) and I want to amplify the square wave to the IR Led to ...
0
votes
0answers
163 views

Problems with ICP Atmega328p

I am trying to use ICP (Input Capture Pin) functionality of ATMEGA328p (Arduino Uno board) and somehow it does not seem to work. I have connected a switch to ICP pin PB0 in this case, and want to ...
0
votes
0answers
41 views

Random timer windows on a DC circuit

Are there any components/devices out there (available via RadioShack, or some other vendor) that behave as follows (or similarly): When a signal/voltage is detected, a random (and preferably ...
0
votes
0answers
107 views

Cann't enter interrupt subroutine of the timer1 capture interrupt for STM8S003k3 using AN2822

I have recently tried the official code of the application note AN2822: STM8S and STM8A high speed internal oscillator calibration. Since I use STM8S003k3 MC, I modified the code from timer 3 to timer ...
0
votes
0answers
55 views

Embedding python interpreter in the TM4c1294XL

I have a python file that I want to run on the board. Hence I want to embed the python interpreter (written in C) in the board. I managed to write separate C project that runs the Python file. It ...
0
votes
0answers
243 views

How to add Lptmr ISR to Interrupt Vector Table for Freescale K60DN board, ARM Cortex M4 Processor

I am attempting to use the low power timer of the Freescale K60 board. I have an interrupt handler written, and now do not know how to add the address of the handler to the interrupt vector table ...
0
votes
0answers
232 views

Delay-off circuit for h-bridge motor control

I'm looking for the easiest way to generate a variable PWM signal (set by hardware) without a microcontroller for a set amount of time when a microcontroller is turned off. The H-bridge (image below) ...
0
votes
0answers
285 views

program resets after ISR for TIMER 2 on pic24F

I am trying to configure the timer2, but every time that an interrupt occurs, the microcontroller goes to the ISR and then starts the main() function again. This are the functions: ...
0
votes
0answers
632 views

Simple doorbell delay (add-on)

We have a new office doorbell with a pushbutton that rings a buzzer for as long as the button is held down (i.e. a simple circuit that is closed by the button). The buzzer sound is really "angry", and ...