{"id":10218,"date":"2020-12-11T19:17:05","date_gmt":"2020-12-11T19:17:05","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/ltc6995-long-timer-low-frequency-oscillator"},"modified":"2024-10-29T08:43:53","modified_gmt":"2024-10-29T08:43:53","slug":"ltc6995-long-timer-low-frequency-oscillator","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator","title":{"rendered":"LTC6995 &#8211; Long Timer, Low Frequency Oscillator"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About the post<\/h2>\n\n<p>What are the benefits of an LTC6995? The internal timers of the AVR microcontrollers have a limited, maximum runtime. Depending on the model and clocking, their maximum periods are a few seconds, for some timers even less. If you want to cover longer periods, you need to introduce additional counters. I have handled this in my posts about <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/timer-and-pwm-part-1-8-bit-timer0-2\" target=\"_blank\" rel=\"noopener noreferrer\">Timer0\/2<\/a>, <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/sleep-modes-and-power-management\" target=\"_blank\" rel=\"noopener noreferrer\">Sleep Modes<\/a> and the <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/watchdog-timer\" target=\"_blank\" rel=\"noopener noreferrer\">Watchdog Timer.<\/a><\/p>\r\n<p>I therefore wondered whether there are external timers or oscillators that work in the range of minutes or even hours &#8211; and with the LTC6995 I found what I was looking for. It covers a frequency range of 977 hertz down to 29.1 microhertz or &#8211; expressed in periods &#8211; from about one millisecond to 9.54 hours. <\/p>\r\n<p>I will cover the following topics in this article:<\/p>\r\n<ul>\r\n<li><a href=\"#TechnischeEigenschaften\">Technical features of the LTC6995<\/a><\/li>\r\n<li><a href=\"#LTC6995_als_Oszillator\">The LTC6995 as oscillator<\/a><\/li>\r\n<li><a href=\"#Power-On-Reset\">Use as power-on reset timer<\/a> <\/li>\r\n<li><a href=\"#Allgemeiner_Timer\">General timer<\/a><\/li>\r\n<li><a href=\"#Sleep-Mode-Wecker\">The LTC6995 as sleep mode &#8220;alarm clock&#8221;<\/a><\/li>\r\n<li><a href=\"#Externer_Watchdog\">External Watchdog Timer<\/a> <a id=\"TechnischeEigenschaften\"><\/a><\/li>\r\n<\/ul>\r\n\n<h2 class=\"wp-block-heading\">Technical features of the LTC6995<\/h2>\n\n<h3 class=\"wp-block-heading\">Design and versions<\/h3>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_auf_Euro_und_Adapter.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_auf_Euro_und_Adapter-1024x563.jpg\" alt=\"The LTC6995 - unfortunately not available as &quot;DIP&quot;\" class=\"wp-image-5523\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_auf_Euro_und_Adapter-1024x563.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_auf_Euro_und_Adapter-300x165.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_auf_Euro_und_Adapter-768x422.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_auf_Euro_und_Adapter.jpg 1300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">The LTC6995 &#8211; right: soldered to an adapter (I only found one with 10 pins in my drawer)<\/figcaption><\/figure>\n\n<p>First the bad news for all breadboard developers: the LTC6995 is not available as &#8220;DIP&#8221; version, but only as an SMD component, namely as <a href=\"https:\/\/www.itwissen.info\/TSOT-thin-small-outline-transistor.html\" target=\"_blank\" rel=\"noopener noreferrer\">TSOT23<\/a> or as <a href=\"https:\/\/www.itwissen.info\/DFN-dual-flat-no-lead-DFN-Package.html\" target=\"_blank\" rel=\"noopener noreferrer\">DFN<\/a>. If you want to use it on a breadboard, you need to solder it to an adapter. Simply search for &#8220;SOT23 Adapter&#8221;, e.g. on <a href=\"https:\/\/smile.amazon.de\/s?k=sot23+adapter&amp;__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&amp;crid=20B7182L9GYD7&amp;sprefix=SOT23%2Caps%2C165&amp;ref=nb_sb_ss_i_1_5\" target=\"_blank\" rel=\"noopener noreferrer\">Amazon<\/a>. Soldering of SMD components is of course a certain challenge, but feasible. I found a guide <a href=\"https:\/\/www.mikrocontroller.net\/articles\/SMD_L%C3%B6ten\" target=\"_blank\" rel=\"noopener noreferrer\">here.<\/a><\/p>\r\n<p>There are two versions of the LTC6995, the LTC6995-1 and the LTC6995-2. I will explain the difference further down below. I used the &#8220;-1 version&#8221; for this post, but I also refer to the &#8220;-2 version&#8221;.<\/p>\r\n<p>In addition, there are other letters in the part encoding, for example I have the LTC6995CS6-1-TRMPBF. The &#8220;C&#8221; stands for the temperature range, &#8220;S6&#8221; for the TSOT23 design and TRMPBF for the packaging (Tape and Reel Mini). More information can be found in the <a href=\"https:\/\/www.analog.com\/media\/en\/technical-documentation\/data-sheets\/LTC6995-6695-1-6695-2.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">data sheet<\/a>. You can buy the LTC6995-1 e.g. <a href=\"https:\/\/www.ebay.de\/sch\/i.html?_from=R40&amp;_trksid=m570.l1313&amp;_nkw=LTC6995&amp;_sacat=0\" target=\"_blank\" rel=\"noopener noreferrer\">on eBay<\/a> or at <a href=\"https:\/\/www.conrad.de\/de\/search.html?search=LTC6995&amp;category=%1Ft12%1Fc1202469\" target=\"_blank\" rel=\"noopener noreferrer\">Conrad<\/a> for about 3 Euro plus shipping. The LTC6995-2 is harder to get. <a href=\"https:\/\/www.mouser.de\/Search\/Refine?Keyword=LTC6995\" target=\"_blank\" rel=\"noopener noreferrer\">Mouser<\/a> would be a source, but you have to pay 20 Euro shipping fee. Of course, this is only worthwhile for larger orders. <\/p>\r\n<p>Alternatively, the LTC6995 is also available on a development\/demonstration board called <a href=\"https:\/\/www.analog.com\/media\/en\/dsp-documentation\/evaluation-kit-manuals\/dc1562bfa.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">DC1562B-M<\/a>. But that only makes sense if you are planning several projects with the LTC6995. <\/p>\r\n\n<h3 class=\"wp-block-heading\">Technical data<\/h3>\n\n<ul>\r\n<li>Period: 1 millisecond to 9.5 hours<\/li>\r\n<li>Supply voltage: 2.25 &#8211; 5.5 volts<\/li>\r\n<li>Needs only three resistors to be configured<\/li>\r\n<li>(Start) Output polarity selectable<\/li>\r\n<li>Maximum ouput current (or sink): 20 milliamperes <\/li>\r\n<li>Power consumption: 55 &#8211; 80 microamperes<\/li>\r\n<li>500 microseconds start-up time<\/li>\r\n<\/ul>\r\n\n<h3 class=\"wp-block-heading\">Pinout of the LTC6995<\/h3>\n<div class=\"wp-block-image size-large\">\n<figure class=\"aligncenter is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Pinout.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Pinout-1024x492.png\" alt=\"Pinout of the LTC6995\" class=\"wp-image-5530\" style=\"width:256px;height:123px\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Pinout-1024x492.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Pinout-300x144.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Pinout-768x369.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Pinout.png 1075w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Pinout of the LTC6995<\/figcaption><\/figure>\n<\/div>\n<ul>\r\n<li><strong>VCC\/GND<\/strong>: Power supply<\/li>\r\n<li><strong>OUT<\/strong>: Output signal<\/li>\r\n<li><strong>SET<\/strong>: here the frequency is set. The LTC6995 regulates SET to 1 volt. SET is connected to GND via a resistor. The current flow from SET to GND determines the frequency. In other words, the size of the resistor determines the frequency. <\/li>\r\n<li><strong>DIV<\/strong>: the voltage which is applied to DIV sets the divider. The divider &#8211; as the name suggests &#8211; divides the frequency which set by the resistor connected to SET. There are eight dividers available: 2<sup>0,<\/sup> 2<sup>3<\/sup>, 2<sup>6<\/sup>, &#8230; , 2<sup>21<\/sup>. In addition, the start polarity of the output signal is set at DIV. Eight dividers with two possible start polarities results in 16 settings. To make these settings, a 4-bit A\/D converter is internally connected to the DIV pin. <\/li>\r\n<li><strong>RST<\/strong>: the reset pin restarts the timer. For the LTC6995-1 the pin is active-high, for the LTC6995-2 it is active-low. <a id=\"LTC6995_als_Oszillator\"><\/a><\/li>\r\n<\/ul>\r\n\n<h2 class=\"wp-block-heading\">The LTC6995 as oscillator<\/h2>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator-1024x475.png\" alt=\"LTC6995-1 oscillator circuit\" class=\"wp-image-5526\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator-1024x475.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator-300x139.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator-768x356.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator-1536x712.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator-1320x612.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_Oszillator.png 1725w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">LTC6995-1 oscillator circuit<\/figcaption><\/figure>\n\n<p>The oscillator circuit is simple. RST is connected to GND for the LTC6995-1, and to VCC for the LTC6995-2. R<sub>SET<\/sub> sets the frequency. The voltage at DIV is set via a voltage divider (R1 and R2). The capacitor C1 is used to stabilize the supply voltage. At OUT you will receive a square wave signal with the desired frequency. To play, you can attach an LED to it (up to 20 mA).<\/p>\r\n\n<h3 class=\"wp-block-heading\">Selection of resistors<\/h3>\n\n<p>First, determine how your square wave signal shall look like. Should it be HIGH or LOW when switching on or reset? To illustrate this: <\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Osz_Schema.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"530\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Osz_Schema-1024x530.png\" alt=\"OUT signal depending on the values of R1 vs. R2\" class=\"wp-image-5538\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Osz_Schema-1024x530.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Osz_Schema-300x155.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Osz_Schema-768x398.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Osz_Schema.png 1078w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">OUT signal depending on the values of R1 vs. R2<\/figcaption><\/figure>\n\n<p>Then you choose the appropriate divcode from Table 1. The divcodes 0 &#8211; 7 provide a starting polarity LOW (0), 8 &#8211; 15 provide a starting polarity HIGH (1). Now you check which divcode covers the period (t<sub>OUT<\/sub>) you want. The areas overlap. For the lowest power consumption (on SET) you always choose the lowest possible divider N<sub>DIV<\/sub>.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"491\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming-1024x491.png\" alt=\"Table 1: Divcode and RSET Calculation for the LTC6995\" class=\"wp-image-5536\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming-1024x491.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming-300x144.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming-768x368.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming-1320x633.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/divcode_programming.png 1401w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Table 1: Divcode and RSET Calculation for the LTC6995<\/figcaption><\/figure>\n\n<p>In Table 1 you can choose the appropriate divcode and find the values for R1 and R2. The resistor values are the ideal values and sometimes quite unusual. You can help yourself by combining more common resistors. Minor deviations are not a problem because as mentioned before the evaluation of the voltage at DIV is managed by a 4-bit A\/D converter. <\/p>\r\n<p>RSET and t<sub>OUT<\/sub> are related as follows:<\/p>\r\n\n<p><\/p>\r\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 45px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-da9a816729dd5b966d7aa956732460ae_l3.png\" height=\"45\" width=\"332\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#116;&#95;&#123;&#111;&#117;&#116;&#125;&#92;&#59;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#109;&#115;&#125;&#93;&#32;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#95;&#123;&#68;&#73;&#86;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#82;&#95;&#123;&#83;&#69;&#84;&#125;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#107;&#125;&#92;&#79;&#109;&#101;&#103;&#97;&#93;&#125;&#123;&#53;&#48;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#107;&#125;&#92;&#79;&#109;&#101;&#103;&#97;&#93;&#125;&#92;&#99;&#100;&#111;&#116;&#49;&#46;&#48;&#50;&#52;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#109;&#115;&#125;&#93; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 45px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-459e39a3f138d6d44ae73aa9cc2b4165_l3.png\" height=\"45\" width=\"331\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#82;&#95;&#123;&#83;&#69;&#84;&#125;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#107;&#125;&#92;&#79;&#109;&#101;&#103;&#97;&#93;&#61;&#116;&#95;&#123;&#111;&#117;&#116;&#125;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#109;&#115;&#125;&#93;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#53;&#48;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#107;&#125;&#92;&#79;&#109;&#101;&#103;&#97;&#93;&#125;&#123;&#78;&#95;&#123;&#68;&#73;&#86;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#49;&#46;&#48;&#50;&#52;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#109;&#115;&#125;&#93;&#125; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p>In Table 1, in the last column, you find the formula for R<sub>SET<\/sub>, in which you only need to insert t<sub>OUT<\/sub>. The formula contains 1\/2 t<sub>OUT<\/sub>, since this value is relevant for most applications, as you will see.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Practical verification of some values<\/h3>\n\n<p>I tried a few combinations and found the following results:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/12\/oscillator_examples.png\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/12\/oscillator_examples-1024x223.png\" alt=\"Table 2: LTC6995 as oscillator - practical examples\" class=\"wp-image-5542\"\/><\/a><figcaption class=\"wp-element-caption\">Table 2: LTC6995 as oscillator &#8211; practical examples<\/figcaption><\/figure>\n\n<p>I determined the t<sub>OUT<\/sub>-periods which were in the range of seconds by attaching an LED to OUT and measuring 10 to 20 cycles with a stopwatch. I used an oscilloscope to test the first resistor combination in Table 2. Also in this range, near to the maximum frequency, the LTC6995&#8217;s provided a &#8220;clean&#8221; square wave signal:<a id=\"Power-On-Reset\"><\/a><\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ms_Oszillator.png\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"515\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ms_Oszillator.png\" alt=\"OUT signal of the LTC6995 in the millisecond range\" class=\"wp-image-5543\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ms_Oszillator.png 808w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ms_Oszillator-300x191.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ms_Oszillator-768x490.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/a><figcaption class=\"wp-element-caption\">OUT signal of the LTC6995 in the millisecond range<\/figcaption><\/figure>\n\n<h2 class=\"wp-block-heading\">The LTC6995 as power-on reset timer<\/h2>\n\n<h3 class=\"wp-block-heading\">What does power-on reset mean?<\/h3>\n\n<p>When switching on the supply voltage of circuits, it may take a little while for the voltage to stabilize. In this startup phase with undefined conditions, complex components such as microcontrollers and computers could do unforeseeable things. That&#8217;s why they have integrated internal Power-On Reset (POR) circuits. As long as the system does not have the required minimum voltage, the sensitive parts are held in reset mode. Systems that do not have a POR can be equipped with external PORs. The LTC6995 is suitable for this purpose. Even if you don&#8217;t care about PORs, please read on anyway because the circuits in the following sections built on the one used here. <\/p>\r\n\n<h3 class=\"wp-block-heading\">Wiring<\/h3>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"539\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR-1024x539.png\" alt=\"The LTC6995 as POR\" class=\"wp-image-5550\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR-1024x539.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR-300x158.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR-768x405.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR-1536x809.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR-1320x695.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_als_POR.png 1659w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">The LTC6995 as POR<\/figcaption><\/figure>\n\n<p>The difference between the POR circuit and the oscillator circuit is that SET is not connected to GND, but to OUT. For the divcodes 0-7, OUT is LOW at the beginning. Systems that are reset with a LOW signal can be kept in reset mode. After 1\/2 t<sub>OUT,<\/sub> OUT goes HIGH and the controlled system starts.<\/p>\r\n<p>If OUT is in HIGH state, no more current flows via SET. You may remember that SET is set to 1 volt. Since the timer is controlled by the current flowing out of SET, the timer is stopped so that no further reset signal can be generated. <\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"326\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema-1024x326.png\" alt=\"LTC6995 as POR - OUT Signal\" class=\"wp-image-5551\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema-1024x326.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema-300x95.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema-768x244.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema-1320x420.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_POR__Schema.png 1532w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">LTC6995 as POR &#8211; only works with R1&gt;R2<\/figcaption><\/figure>\n\n<p>Starting with OUT = HIGH, i.e. divcode 8-15, would not work because the timer stops immediately. For a system that is reset with a HIGH signal, the OUT signal must therefore be inverted. <\/p>\r\n\n<h3 class=\"wp-block-heading\">Signal inversion<\/h3>\n\n<p>You can easily invert a signal or a logic level with an NPN transistor (e.g. BC547) and two resistors:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/12\/signal_inverter_eng.png\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/12\/signal_inverter_eng-1024x532.png\" alt=\"Simple circuit for inverting signals or logic levels\" class=\"wp-image-5565\"\/><\/a><figcaption class=\"wp-element-caption\">Simple circuit for inverting signals or logic levels<\/figcaption><\/figure>\n\n<p>If the input level is LOW or GND, then the transistor is closed and the output level is HIGH or at VCC level. If the input level is HIGH, the transistor is open and the output level is drawn to LOW or GND. <a id=\"Allgemeiner_Timer\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">General timer<\/h2>\n\n<p>The POR timer has done its duty when the system is running. A general timer is something you might want to use multiple times. For this purpose, the LTC6995 just needs to be reset.<\/p>\r\n<p>On the LTC6995-1, RST is connected to GND via a pull-down resistor and can then be restarted with a HIGH signal. With the LTC6995-2 it is the same, only with reverse polarities (RST on HIGH and reset by LOW).<\/p>\r\n<p>In the following circuit, a button is used for reset: <\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset-1024x538.png\" alt=\"Resettable timer\" class=\"wp-image-5552\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset-1024x538.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset-300x157.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset-768x403.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset-1536x806.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset-1320x693.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Reset.png 1625w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Resettable timer<\/figcaption><\/figure>\n\n<p>For example, you can build a lamp without a microcontroller that turns off (or turns on) after a certain time. Or you use the output of a sensor instead of the button and OUT triggers a reaction on its signal. If necessary, you can invert the OUT signal.<a id=\"Sleep-Mode-Wecker\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">The LTC6995 as sleep mode alarm clock<\/h2>\n\n<p>In <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/sleep-modes-and-power-management\" target=\"_blank\" rel=\"noopener noreferrer\">my last post<\/a> I showed how to wake an ATmega328P or another microcontroller from sleep mode via external interrupts. With the LTC6995 you have a tool to let the microcontroller sleep undisturbed for long periods of time.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Wiring<\/h3>\n\n<p>For the sleep mode alarm clock we use the previous circuit and replace the button with an I\/O pin of the ATmega328P (here PD6). OUT is connected to an interrupt pin (here INT0). <\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"497\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p-1024x497.png\" alt=\"LTC6995 as sleep mode alarm clock for the ATmega328P\" class=\"wp-image-5555\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p-1024x497.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p-300x146.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p-768x373.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p-1536x745.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p-1320x641.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_328p.png 1626w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">LTC6995 as sleep mode alarm clock for the ATmega328P<\/figcaption><\/figure>\n\n<p>Using the Arduino UNO, it looks like this:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno-1024x557.png\" alt=\" LTC6995 as sleep mode alarm clock for the Arduino UNO \" class=\"wp-image-5557\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno-1024x557.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno-300x163.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno-768x418.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno-1536x836.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno-1320x718.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/ltc6995_wakeup_ard_uno.png 1608w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">LTC6995 as sleep mode alarm clock for the Arduino UNO<\/figcaption><\/figure>\n\n<h3 class=\"wp-block-heading\">An example sketch<\/h3>\n\n<p>I have two example sketches for you, but they are both doing the same. The first is using C commands, the second is using Arduino functions. A few comments on the sketches:<\/p>\r\n<ul>\r\n<li>First, the sleep header file is included.<\/li>\r\n<li>PD6 and PD7 (=Arduino UNO Pin 6 and 7) are set to output.<\/li>\r\n<li>An interrupt at INT0 (=Arduino UNO Pin 2) is set up; It is triggered with the rising flank.<\/li>\r\n<li>At the beginning of the main loop, the LED on PD7 lights up for a second &#8211; this is our &#8220;hello-I-am-wake&#8221; sign.<\/li>\r\n<li>Before the ATmega328P (or the Arduino UNO) is sent to sleep, the interrupt is activated and the LCT6995 is reset.<\/li>\r\n<li>The LCT6995 sends its wake-up signal after 1\/2 t<sub>OUT.<\/sub><\/li>\r\n<li>The interrupt routine disables the external interrupt.<\/li>\r\n<\/ul>\r\n\n<p>If I were to go into more detail about sleep modes, it would go beyond the scope of the article. If necessary, visit <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/sleep-modes-and-power-management\" target=\"_blank\" rel=\"noopener noreferrer\">my last post<\/a>.&nbsp;<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"LCT6995_wake_up_interrupt_in_C.ino\" data-enlighter-title=\"LCT6995_wake_up_interrupt_in_C.ino\">#include &lt;avr\/sleep.h&gt;\r\n\r\nvoid setup(){\r\n  DDRD = (1&lt;&lt;PD7)|(1&lt;&lt;PD6); \/\/ PD6 und PD7 auf OUTPUT\r\n  EICRA |= (1&lt;&lt;ISC01)|(1&lt;&lt;ISC00); \/\/ interrupt on rising edge of INT0\r\n}\r\n\r\nvoid loop(){\r\n  PORTD |= (1&lt;&lt;PD7); \/\/ switch on LED\r\n  _delay_ms(1000);\r\n  PORTD &amp;= ~(1&lt;&lt;PD7); \r\n  EIMSK |= (1&lt;&lt;INT0); \/\/ external interrupt enable on INT0\r\n  resetLTC6995();\r\n  set_sleep_mode(SLEEP_MODE_PWR_DOWN); \/\/ choose power down mode\r\n  sleep_mode(); \/\/ sleep now!\r\n}\r\n\r\nvoid resetLTC6995(){\r\n  PORTD |= (1&lt;&lt;PD6);  \/\/ Reset Signal f\u00fcr den LTC6995-1\r\n  _delay_ms(1);\r\n  PORTD &amp;= ~(1&lt;&lt;PD6);\r\n}\r\n\r\n\/\/ INT0 interrupt service routine\r\nISR(INT0_vect){ \r\n  EIMSK &amp;= ~(1&lt;&lt;INT0); \/\/ external interrupt disable (INT0)\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"LTC6995_wake_up_interrupt_arduino.ino\" data-enlighter-title=\"LTC6995_wake_up_interrupt_arduino.ino\">#include &lt;avr\/sleep.h&gt;\r\nconst int ledPin = 7;\r\nconst int ltc6995ResetPin = 6;\r\n\r\nvoid setup(){\r\n  pinMode(ledPin, OUTPUT);\r\n  pinMode(ltc6995ResetPin, OUTPUT);\r\n}\r\n\r\nvoid loop(){\r\n  digitalWrite(ledPin, HIGH); \/\/ switch on LED\r\n  delay(1000);\r\n  digitalWrite(ledPin, LOW);\r\n  attachInterrupt(digitalPinToInterrupt(2), intRoutine, RISING); \/\/enable interrupt\r\n  resetLTC6995();\r\n  set_sleep_mode(SLEEP_MODE_PWR_DOWN); \/\/ choose power down mode\r\n  sleep_mode(); \/\/ sleep now!\r\n}\r\n\r\nvoid resetLTC6995(){\r\n  digitalWrite(ltc6995ResetPin, HIGH); \/\/ Reset Signal f\u00fcr den LTC6995-1\r\n  delay(1);\r\n  digitalWrite(ltc6995ResetPin, LOW);\r\n}\r\n\r\n\/\/ interrupt routine\r\nvoid intRoutine(){ \r\n  detachInterrupt(2); \/\/ disable interrupt\r\n}<\/pre>\r\n\n<p>&nbsp; <a id=\"Externer_Watchdog\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">The LTC6995 as external watchdog timer<\/h2>\n\n<p>I am not going into what a watchdog is and why it is needed. If necessary, check <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/watchdog-timer\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>. <\/p>\r\n<p>The basic idea is this: The LTC6995 regularly sends a reset signal to the monitored system, unless the monitored system resets the LTC6995 beforehand.<\/p>\r\n<p>First of all, I made a stupid mistake that I want to share with you. I thought I could just use the oscillator signal of the LTC6995 to reset. Divcode 8-15, then OUT is HIGH at the beginning and when it changes to LOW, there is a RESET. And in principle that&#8217;s true, but: OUT stays on LOW for a further period of 1\/2 t<sub>OUT.<\/sub> This means that the microcontroller does not reset as long as the reset signal is active. I hope you can still follow my thoughts&#8230;<\/p>\r\n\n<h3 class=\"wp-block-heading\">The solution: Self-reset of the LTC6955<\/h3>\n\n<p>With the following circuit, the LTC6995-1 goes briefly to HIGH after 1\/2 t<sub>OUT<\/sub> and then resets. However, this only works with the divcodes 0-7. The example with these R<sub>PW<\/sub> \/ C<sub>PW<\/sub> values are taken from the datasheet. <\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Self_Resetting.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"699\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Self_Resetting-1024x699.png\" alt=\"Self-reset circuit\" class=\"wp-image-5568\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Self_Resetting-1024x699.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Self_Resetting-300x205.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Self_Resetting-768x524.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_Self_Resetting.png 1150w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Self-reset circuit<\/figcaption><\/figure>\n\n<p>When using the LTC6995-2, you take the same circuit, but the divcodes 8-15. The polarity of OUT looks like this (not true to scale!):<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_self_reset_Schema.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"338\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_self_reset_Schema-1024x338.png\" alt=\"\" class=\"wp-image-5570\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_self_reset_Schema-1024x338.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_self_reset_Schema-300x99.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_self_reset_Schema-768x253.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_self_reset_Schema.png 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">OUT signal for the self-reset circuit<\/figcaption><\/figure>\n\n<p>t<sub>pulse<\/sub> is calculated for the LTC6995-1 according to the following formula (details in the data sheet):<\/p>\r\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 40px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/ql-cache\/quicklatex.com-66ddbcb94980f419e11596b0334737f5_l3.png\" height=\"40\" width=\"326\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91; &#116;&#95;&#123;&#112;&#117;&#108;&#115;&#101;&#125;&#92;&#44;&#91;&#92;&#109;&#117;&#32;&#115;&#93;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#82;&#95;&#123;&#80;&#87;&#125;&#92;&#44;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#107;&#125;&#92;&#79;&#109;&#101;&#103;&#97;&#93;&#92;&#99;&#100;&#111;&#116;&#32;&#67;&#95;&#123;&#80;&#87;&#125;&#91;&#92;&#116;&#101;&#120;&#116;&#123;&#112;&#70;&#93;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#48;&#46;&#57;&#52;&#50;&#125;&#123;&#49;&#48;&#48;&#48;&#125; &#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\r\n\n<p>R<sub>PW<\/sub> = 2.26 kOhm and C<sub>PW<\/sub> = 470 pF result in t<sub>pulse<\/sub> = 1 \u00b5s. <\/p>\r\n<p>Since the ATmega328P or the Arduino UNO or other AVR MCUs are reset with a LOW signal, the OUT signal must still be inverted when using the LTC6995-1. The complete circuit looks like this (R<sub>PW<\/sub> and C<sub>PW<\/sub> I changed because I didn&#8217;t have the resistors and capacitors available): <\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog-1024x481.png\" alt=\"Watchdog timer circuit for the ATmega328P\" class=\"wp-image-5561\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog-1024x481.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog-300x141.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog-768x361.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog-1536x721.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog-1320x620.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/LTC6995_ext_Watchdog.png 1699w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Watchdog timer circuit for the ATmega328P<\/figcaption><\/figure>\n\n<h3 class=\"wp-block-heading\">An example sketch<\/h3>\n\n<p>To test the following example sketch, I have chosen the following resistors:<\/p>\r\n<ul>\r\n<li>R1 = 994 kOhm<\/li>\r\n<li>R2 = 395 kOhm<\/li>\r\n<li>RSET = 218.1 kOhm<\/li>\r\n<\/ul>\r\n<p>This corresponds to Divcode 4 and 1\/2 t<sub>OUT<\/sub> is about 9.15 seconds. After a reset of the LTC6995-1 you have 9.15 seconds to reset it again in this configuration, otherwise the LTC6995-1 resets the microcontroller. A reset race, so to speak. <\/p>\r\n<p>The example sketch (again once in C and once &#8220;in Arduino&#8221;) does the following:<\/p>\r\n<ul>\r\n<li>PD6 and PD7 (or Arduino pin 6 and 7) are set to OUTPUT<\/li>\r\n<li>The LED on PD7 lights up as a sign for the start of the sketch for one second<\/li>\r\n<li>Before going into the main loop, the LTC6995-1 is reset again (<code>watchdogReset()<\/code>)<\/li>\r\n<li>if the watchdog reset command is commented out as here, the ATmega328P is reset again and again after 9.15 seconds by the LTC6995-1, which you can see by the glow of the LED<\/li>\r\n<li>if you uncomment the watchdog reset command, there will be no reset of the ATmega328P &#8211; the LED stays off<\/li>\r\n<\/ul>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"LCT6995_external_watchdog_C.ino\" data-enlighter-title=\"LCT6995_external_watchdog_C.ino\">void setup(){\r\n  DDRD = (1&lt;&lt;PD7)|(1&lt;&lt;PD6);\r\n  PORTD |= (1&lt;&lt;PD7);\r\n  _delay_ms(1000);\r\n  PORTD &amp;= ~(1&lt;&lt;PD7);\r\n  watchdogReset();\r\n}\r\n\r\nvoid loop(){\r\n\/\/  _delay_ms(8000);\r\n\/\/  watchdogReset();\r\n}\r\n\r\nvoid watchdogReset(){\r\n  PORTD |= (1&lt;&lt;PD6);\r\n  _delay_ms(1);\r\n  PORTD &amp;= ~(1&lt;&lt;PD6);\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"LCT6995_external_watchdog_arduino.ino\" data-enlighter-title=\"LCT6995_external_watchdog_arduino.ino\">const int ledPin = 7;\r\nconst int wdResetPin = 6;\r\n\r\nvoid setup(){\r\n  pinMode(ledPin, OUTPUT);\r\n  pinMode(wdResetPin, OUTPUT);\r\n  digitalWrite(ledPin, HIGH);\r\n  delay(1000);\r\n  digitalWrite(ledPin,LOW);\r\n  watchdogReset();\r\n}\r\n\r\nvoid loop(){\r\n\/\/  delay(8000);\r\n\/\/  watchdogReset();\r\n}\r\n\r\nvoid watchdogReset(){\r\n  digitalWrite(wdResetPin,HIGH);\r\n  delay(1);\r\n  digitalWrite(wdResetPin,LOW);\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>The LTC6995 covers periods from one millisecond to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer. <\/p>\n","protected":false},"author":1,"featured_media":8444,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[565],"tags":[1103,1099,1100,1096,1097,1098,1102,1101,1105,1104,973],"class_list":["post-10218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other-parts","tag-external-watchdog","tag-long-timer-en","tag-low-frequency-oscillator-en","tag-ltc6995-en","tag-ltc6995-1-en","tag-ltc6995-2-en","tag-por-en","tag-power-on-reset-en","tag-self-reset-en","tag-signal-inversion","tag-timer-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LTC6995 - Long Timer, Low Frequency Oscillator &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"The LTC6995 covers periods from 1 ms to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LTC6995 - Long Timer, Low Frequency Oscillator &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"The LTC6995 covers periods from 1 ms to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-11T19:17:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-29T08:43:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/beitragsbild_ltc6995.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"LTC6995 &#8211; Long Timer, Low Frequency Oscillator\",\"datePublished\":\"2020-12-11T19:17:05+00:00\",\"dateModified\":\"2024-10-29T08:43:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator\"},\"wordCount\":2243,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/beitragsbild_ltc6995.jpg\",\"keywords\":[\"external watchdog\",\"long timer\",\"low frequency oscillator\",\"LTC6995\",\"LTC6995-1\",\"LTC6995-2\",\"POR\",\"power-on reset\",\"self-reset\",\"signal inversion\",\"timer\"],\"articleSection\":[\"Other parts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator\",\"name\":\"LTC6995 - Long Timer, Low Frequency Oscillator &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/beitragsbild_ltc6995.jpg\",\"datePublished\":\"2020-12-11T19:17:05+00:00\",\"dateModified\":\"2024-10-29T08:43:53+00:00\",\"description\":\"The LTC6995 covers periods from 1 ms to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/beitragsbild_ltc6995.jpg\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/beitragsbild_ltc6995.jpg\",\"width\":1100,\"height\":1100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/ltc6995-long-timer-low-frequency-oscillator#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LTC6995 &#8211; Long Timer, Low Frequency Oscillator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LTC6995 - Long Timer, Low Frequency Oscillator &#8226; Wolles Elektronikkiste","description":"The LTC6995 covers periods from 1 ms to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator","og_locale":"en_US","og_type":"article","og_title":"LTC6995 - Long Timer, Low Frequency Oscillator &#8226; Wolles Elektronikkiste","og_description":"The LTC6995 covers periods from 1 ms to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer.","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator","og_site_name":"Wolles Elektronikkiste","article_published_time":"2020-12-11T19:17:05+00:00","article_modified_time":"2024-10-29T08:43:53+00:00","og_image":[{"width":1100,"height":1100,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/beitragsbild_ltc6995.jpg","type":"image\/jpeg"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"LTC6995 &#8211; Long Timer, Low Frequency Oscillator","datePublished":"2020-12-11T19:17:05+00:00","dateModified":"2024-10-29T08:43:53+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator"},"wordCount":2243,"commentCount":0,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/beitragsbild_ltc6995.jpg","keywords":["external watchdog","long timer","low frequency oscillator","LTC6995","LTC6995-1","LTC6995-2","POR","power-on reset","self-reset","signal inversion","timer"],"articleSection":["Other parts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator","url":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator","name":"LTC6995 - Long Timer, Low Frequency Oscillator &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/beitragsbild_ltc6995.jpg","datePublished":"2020-12-11T19:17:05+00:00","dateModified":"2024-10-29T08:43:53+00:00","description":"The LTC6995 covers periods from 1 ms to 9.54 hours. It is suitable e.g. as an oscillator, power-on reset tool, sleep mode alarm clock and watchdog timer.","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/beitragsbild_ltc6995.jpg","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/03\/beitragsbild_ltc6995.jpg","width":1100,"height":1100},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/ltc6995-long-timer-low-frequency-oscillator#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"LTC6995 &#8211; Long Timer, Low Frequency Oscillator"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/10218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=10218"}],"version-history":[{"count":0,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/10218\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/8444"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=10218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=10218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=10218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}