New answers tagged

3

In the digital domain, a counter will be the simplest and most correct approach. Dividing a clock limits you to measuring exact binary multiples of the original clock; a counter can be configured to count up (or down) to any value. Also, your math is way off. 10 seconds at 50 MHz comes out to 5×108 cycles, which can be counted in just under 29 bits (...


2

The better way to do this is to use timers. The easiest way is to use a library that wraps up all the interrupt stuff for you, like the Timer1 library. That library wraps all the details needed to set the interrupts and switch the outputs. It can also be used on various members of the Arduino family. You can operate the two PWM pins at different rates. ...


1

You can fix this in hardware or in software. Software is more portable as other Arduino boards will be able to run it as well. In hardware, you'll have to check the Atmega328P datasheet, to see how to set up the timers. And thus your code will only work on that MCU. Though it will be more accurate and faster. Consider the following "pseudocode" for a ...


0

May be the delay generated by three not gates is less than the set up time. So you might want to check with some more odd number of not gates and this also explains why your circuit worked with an inductor


1

Possible? Definately. There are many solutions, although not all of them make sense in all cases. Whatever you decide to do, I would heavily suggest to put the delay circuitry on the input side of the ULQ2003: It is by far easier to build up the circuit you want on lower-power side (I guess the input is logic-level/CMOS/TTL/etc.). That is the reason why one ...


2

Unfortunately it's not easy to find a monostable multivibrator IC that will give you a 10 ns pulse. Want you want to do is purposefully synthesize a glitch. Like this: simulate this circuit – Schematic created using CircuitLab R1, R2, and C2 debounce the switch. Using a Schmitt trigger inverter will help with debouncing as well. The inverter drives a ...


3

Your best bet might be to start with a 100 MHz oscillator, a dual flip flop, and an AND gate as shown below. There are other combinations of flip flops and logic that will do the job. You will have to make sure you de-bounce the switch and watch your layout carefully. You'll probably want ECL parts to keep your pulses square, otherwise you will have rise ...


Top 50 recent answers are included