14,975,219 members

Welcome to the Lounge

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 Re: Dear oh dear Sander Rossel24-Feb-20 0:25 Sander Rossel 24-Feb-20 0:25
 Re: Dear oh dear phil.o24-Feb-20 6:09 phil.o 24-Feb-20 6:09
 Counting bus cycles and nanoseconds, part 2 CodeWraith23-Feb-20 0:49 CodeWraith 23-Feb-20 0:49
 Re: Counting bus cycles and nanosecons, part 2 Daniel Pfeffer23-Feb-20 1:05 Daniel Pfeffer 23-Feb-20 1:05
 Re: Counting bus cycles and nanosecons, part 2 User 1106097923-Feb-20 1:39 User 11060979 23-Feb-20 1:39
 Re: Counting bus cycles and nanosecons, part 2 Daniel Pfeffer23-Feb-20 1:41 Daniel Pfeffer 23-Feb-20 1:41
 Re: Counting bus cycles and nanosecons, part 2 User 1106097923-Feb-20 4:04 User 11060979 23-Feb-20 4:04
 Re: Counting bus cycles and nanoseconds, part 2 CodeWraith23-Feb-20 1:40 CodeWraith 23-Feb-20 1:40
 Daniel Pfeffer wrote:If you have a spare output pin and a spare input pin, you could connect them with RC (resistor + capacitor) circuit. When the output pin goes to 1, the voltage on the input should rise according to V * (1 - e-t/(R*C)). Check for when the input value changes. The number of cycles, R, C, and V should give you the answer. That actually is a good idea. I actually already have something like that as a simple power-on reset. I would add a Schmitt trigger[^] to make the transition from the analog RC signal to a digital input less bumpy. Edit: MacGuyver just told me about this: 74HC24: quad 2-input Schmitt trigger NAND gate I am going to need a Schmitt trigger anyway and with NAND gatesI can build a simple RC oscillator, a flip flop that clocks itself, and eliminate the need for the output bit, of which I only have a single one. With a variable capacitor I should also be able to calibrate the frequency precisely enough. Just what frequency? Something in the range of 100Hz - 1kHz should be comfortable and precise enough. I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.modified 23-Feb-20 9:28am.
 Re: Counting bus cycles and nanoseconds, part 2 Mircea Neacsu23-Feb-20 4:59 Mircea Neacsu 23-Feb-20 4:59
 Re: Counting bus cycles and nanoseconds, part 2 CodeWraith23-Feb-20 6:06 CodeWraith 23-Feb-20 6:06
 Re: Counting bus cycles and nanosecons, part 2 Nelek23-Feb-20 1:45 Nelek 23-Feb-20 1:45
 Re: Counting bus cycles and nanosecons, part 2 honey the codewitch23-Feb-20 1:46 honey the codewitch 23-Feb-20 1:46
 Re: Counting bus cycles and nanosecons, part 2 CodeWraith23-Feb-20 2:13 CodeWraith 23-Feb-20 2:13
 Re: Counting bus cycles and nanosecons, part 2 honey the codewitch23-Feb-20 2:49 honey the codewitch 23-Feb-20 2:49
 Re: Counting bus cycles and nanosecons, part 2 CodeWraith23-Feb-20 4:04 CodeWraith 23-Feb-20 4:04
 Re: Counting bus cycles and nanosecons, part 2 honey the codewitch23-Feb-20 6:20 honey the codewitch 23-Feb-20 6:20
 Re: Counting bus cycles and nanosecons, part 2 CodeWraith23-Feb-20 6:34 CodeWraith 23-Feb-20 6:34
 Re: Counting bus cycles and nanosecons, part 2 honey the codewitch23-Feb-20 6:35 honey the codewitch 23-Feb-20 6:35
 Re: Counting bus cycles and nanosecons, part 2 CodeWraith23-Feb-20 7:01 CodeWraith 23-Feb-20 7:01
 Re: Counting bus cycles and nanosecons, part 2 honey the codewitch23-Feb-20 7:23 honey the codewitch 23-Feb-20 7:23
 You never really know an algorithm like you do after you optimize it honey the codewitch22-Feb-20 21:56 honey the codewitch 22-Feb-20 21:56
 Re: You never really know an algorithm like you do after you optimize it Nelek22-Feb-20 22:08 Nelek 22-Feb-20 22:08
 Re: You never really know an algorithm like you do after you optimize it OriginalGriff22-Feb-20 22:10 OriginalGriff 22-Feb-20 22:10
 Re: You never really know an algorithm like you do after you optimize it honey the codewitch22-Feb-20 22:13 honey the codewitch 22-Feb-20 22:13
 Re: You never really know an algorithm like you do after you optimize it Nelek22-Feb-20 22:39 Nelek 22-Feb-20 22:39
 Last Visit: 31-Dec-99 18:00     Last Update: 28-Jul-21 9:22 Refresh ᐊ Prev1...2308230923102311231223132314231523162317 Next ᐅ