<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Process Duration Timer  Blog 1 (The Timer)</title><link>/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><description>This is going to be an update and expansion of range for a test device I built and posted on the forum two years ago. Battle of the Batteries - E*** vs D*** vs Bargain The device that I built for that blog was designed to monitor a battery...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process Duration Timer  Blog 1 (The Timer)</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><pubDate>Tue, 25 Jul 2017 06:53:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7b02a35e-87c4-4831-8f97-c5aef30745b3</guid><dc:creator>mcb1</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I have to agree with &lt;span&gt;[mention:4f57fc9d538949ad9eb336ddb9469bb8:e9ed411860ed4f2ba0265705b8793d05]&lt;/span&gt; about more DIY test equipment.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The schematic appears to be here.&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://forum.banggood.com/forum-topic-120330.html" rel="nofollow ugc noopener" target="_blank" title="https://forum.banggood.com/forum-topic-120330.html"&gt;https://forum.banggood.com/forum-topic-120330.html&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The button seems to have a dual function and a long press allows some setting.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I was wondering what happens if you short and hold the reset line.&lt;/p&gt;&lt;p&gt;I suspect it will reset the display, but may simply stop the processor.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3343&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Process Duration Timer  Blog 1 (The Timer)</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><pubDate>Tue, 25 Jul 2017 04:48:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7b02a35e-87c4-4831-8f97-c5aef30745b3</guid><dc:creator>dougw</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Your crystal shorting solution is probably fine as long as you short the input side of the oscillator circuit, as Jon points out.&lt;/p&gt;&lt;p&gt;From your tests it seems the CPU maintains its state or operates all the way to zero hz, so it will continue when the clock increases. It probably doesn&amp;#39;t matter too much in your application if the clock isn&amp;#39;t perfectly accurate for the first few microseconds.&lt;/p&gt;&lt;p&gt;In the worst case you can add more complexity if it starts getting flaky.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3343&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Process Duration Timer  Blog 1 (The Timer)</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><pubDate>Mon, 24 Jul 2017 19:06:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7b02a35e-87c4-4831-8f97-c5aef30745b3</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice project John.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I agree with Shabaz.&lt;/p&gt;&lt;p&gt;Rather than shorting the crystal you should break the trace to the processor and install a simple AND gate to stop the clock signal.&lt;/p&gt;&lt;p&gt;If you short the crystal, you could cause damage.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Overall, it works great as is so great job.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3343&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Process Duration Timer  Blog 1 (The Timer)</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><pubDate>Mon, 24 Jul 2017 12:19:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7b02a35e-87c4-4831-8f97-c5aef30745b3</guid><dc:creator>jc2048</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;You&amp;#39;re doing DIY Test Equipment too!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The crystal oscillator is an amplifier (inside the processor) with the crystal as feedback. The crystal is very selective about the frequencies which it will pass (basically, the frequency at which it mechanically resonates and the odd harmonics of that frequency). So one pin (pin 5, XTAL1) is an input and the other (pin 4, XTAL2) is an output. I can&amp;#39;t see which you&amp;#39;ve wired to. It&amp;#39;s probably a bad idea to short the output to ground. CMOS can take a lot of abuse and you may get away with it but it won&amp;#39;t necessarily be reliable over the long term.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Crystal oscillators start up through random noise being amplified, the crystal selecting only those frequencies that fall in its very narrow passband, and the oscillation steadily building. That can take quite a long time - if you look at it on a scope you&amp;#39;ll see what I mean. Processors have internal timers to hold off processing at start-up to ensure the clock is running and stable before they operate. In this case you are bypassing that and hoping that the processor will pick up and execute code properly. Evidently it is doing that, but you shouldn&amp;#39;t depend on it getting it right.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As Shabaz says, an external oscillator with a gating circuit would be cleaner as it allows for immediate execution from a standing start (in the old days, such circuits were used for single-stepping processors in order to watch code running slowly enough that you could see what the address and data buses were doing on LEDs). [The gating needs to be more than just an AND gate, though, so that you get full cycles and no danger of a short glitch at the start.]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The relay will load the oscillator a little, but the contact capacitance when the contact is open should be small, so it probably won&amp;#39;t pull the crystal frequency very much. [It's probably not very precise as a clock, anyhow, as there's no way to trim the load capacitance. As a clock, you could see an error of anything up to a minute or two a month unless you're very lucky.]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you are going to wire this up to an Arduino anyway, why not ditch the Atmel processor on this board and use the Atmel processor on the Arduino to do the clock timing and display? You seem to be jumping through hoops in order to avoid a little simple coding.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3343&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Process Duration Timer  Blog 1 (The Timer)</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><pubDate>Mon, 24 Jul 2017 05:00:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7b02a35e-87c4-4831-8f97-c5aef30745b3</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;It is such a cool thing to have a process timer for the bench : )&lt;/p&gt;&lt;p&gt;For some recent testing (I think it was the Capacitance-to-Digital evaluation board from TI) I needed to do some timing, and in the end used a Casio watch manually : ( A process timer is a really good idea.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3343&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Process Duration Timer  Blog 1 (The Timer)</title><link>https://community.element14.com/members-area/personalblogs/b/john-wiltrout-s-blog/posts/process-duration-timer-blog-1-the-timer</link><pubDate>Mon, 24 Jul 2017 04:42:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7b02a35e-87c4-4831-8f97-c5aef30745b3</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi John,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Clever idea, to freeze the clock as you have done : ) There are some other ways to do the freezing (e.g. use an external clock oscillator and gate it with (say) &amp;#39;AND&amp;#39; logic, but that requires more circuitry than the relay. I guess there could be a risk of glitches during switching, causing an instruction to be incorrectly processed, but your testing doesn&amp;#39;t seem to have identified any issue so far.&lt;/p&gt;&lt;p&gt;Your solution clearly works given the constraint of having a clock board with no source code, and I think there is no risk of damage by pulling the clock pin.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3343&amp;AppID=315&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>