<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.mcselec.com/bavr/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.mcselec.com/bavr/index.php?action=history&amp;feed=atom&amp;title=CONFIG_DCF77%2Fde</id>
		<title>CONFIG DCF77/de - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.mcselec.com/bavr/index.php?action=history&amp;feed=atom&amp;title=CONFIG_DCF77%2Fde"/>
		<link rel="alternate" type="text/html" href="http://wiki.mcselec.com/bavr/index.php?title=CONFIG_DCF77/de&amp;action=history"/>
		<updated>2026-04-05T16:32:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>http://wiki.mcselec.com/bavr/index.php?title=CONFIG_DCF77/de&amp;diff=2157&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://wiki.mcselec.com/bavr/index.php?title=CONFIG_DCF77/de&amp;diff=2157&amp;oldid=prev"/>
				<updated>2013-02-15T19:13:23Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:13, 15 February 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wiki.mcselec.com/bavr/index.php?title=CONFIG_DCF77/de&amp;diff=2156&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;= &lt;span class=&quot;f_Header&quot;&gt;Action&lt;/span&gt; =  Instruct the compiler to use DCF-77 radio signal to get atom clock precision time  &lt;span style=&quot;font-family: Arial;&quot;&gt;&amp;nbsp;&lt;/span&gt;  &lt;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.mcselec.com/bavr/index.php?title=CONFIG_DCF77/de&amp;diff=2156&amp;oldid=prev"/>
				<updated>2013-02-07T19:48:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;Action&amp;lt;/span&amp;gt; =  Instruct the compiler to use DCF-77 radio signal to get atom clock precision time  &amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;  &amp;lt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== (**COPIED FROM ENGLISH PAGE**) === &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;Action&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
Instruct the compiler to use DCF-77 radio signal to get atom clock precision time&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;Syntax&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;f_Syntax&amp;quot;&amp;gt;CONFIG DCF77&amp;lt;/span&amp;gt;&amp;amp;nbsp;= pin , timer = timer&amp;amp;nbsp;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;[&amp;amp;nbsp;&amp;lt;/span&amp;gt;INVERTED=inv, CHECK=check, UPDATE=upd, UPDATETIME=updtime , TIMER1SEC=tmr1sec, SWITCHPOWER=swpwr, POWERPIN=pin, POWERLEVEL = pwrlvl , SECONDTICKS=sectick ,DEBUG=dbg , GOSUB = Sectic&amp;amp;nbsp;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;Remarks&amp;lt;/span&amp;gt; =&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 0px; margin: 0px 0px 0px 4px;&amp;quot;&amp;gt;&lt;br /&gt;
{| width=&amp;quot;604&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
PIN&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
The input pin that is connected to the DCF-77 signal. This can be any micro processor pin that can be used as an input.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
TIMER&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
The timer that is used to generate the compare interrupts, needed to determine the level of the DCF signal. Supported timers are&amp;amp;nbsp;: TIMER1.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
For Xmega&amp;amp;nbsp;: TCC0,TCC1,TCE0,TCE1,TCD0,TCD1,TCF0,TCF1&lt;br /&gt;
&lt;br /&gt;
Xmega needs the MED priority set with&amp;amp;nbsp;[[CONFIG PRIORITY|CONFIG PRIORITY]]&amp;amp;nbsp;because the MED priority is used for the timer interrupt.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
INVERTED&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This value is&amp;amp;nbsp;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;&amp;amp;nbsp;by default. When you specify 1, the compiler will assume you use an inverted DCF signal. Most DCF-77 receivers have a normal output and an inverted output.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
CHECK&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
Check is 1 by default. The possible values are&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;&amp;amp;nbsp;- The DCF-77 parity bits are checked. No other checks are performed.&lt;br /&gt;
&lt;br /&gt;
Use it when you have exceptional signal strength&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;amp;nbsp;- The received minutes are compared with the previous received minutes. And the difference must be 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;2&amp;lt;/span&amp;gt;&amp;amp;nbsp;- All received values(minutes, hours, etc. ) are compared with their previous received values. Only the minutes must differ with 1, the other values must be exactly the same.&lt;br /&gt;
&lt;br /&gt;
This value uses more internal ram but it gives the best check. Use this when you have bad signal reception.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
UPDATE&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
Upd determines how often the internal date/time variables are updated with the DCF received values. &amp;amp;nbsp;The default value is&amp;amp;nbsp;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
There are 3 possible values&amp;amp;nbsp;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;&amp;amp;nbsp;- Continuous update. The date and time variables are updated every time the correct values have been received&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;&amp;amp;nbsp;- Hourly update. The date and time variables are updated once an hour.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;2&amp;lt;/span&amp;gt;- Daily update. The date and time variables are updated once a day.&lt;br /&gt;
&lt;br /&gt;
The UPDATE value also determines the maximum value of the UPDATETIME option.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
UPDATETIME&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This value depends on the used UPDATE parameter.&lt;br /&gt;
&lt;br /&gt;
When UPDATE is 1, the value must be in the range from 0-59. Start every hour at this minute with the new update.&lt;br /&gt;
&lt;br /&gt;
When UPDATE is 2, the value must be in the range from 0-23. Start every day at this hour with the new update.&lt;br /&gt;
&lt;br /&gt;
The default is&amp;amp;nbsp;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
TIMER1SEC&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
16 bit timers with the right crystal value can generate a precise interrupt that fires every second. This can be used to synchronize only once a day or hour with the DCF values. The remaining time, the 1-sec interrupt will update the soft clock. By default this value is 0.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
SWITCHPOWER&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This option can be used to turn on/off the DCF-77 module with the control of a port pin. The default is&amp;amp;nbsp;&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;0&amp;lt;/span&amp;gt;. When you specify a value of&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;1&amp;lt;/span&amp;gt;, the DCF receiver will be switched off to save power, as soon as the clock is synchronized.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
POWERPIN&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
The name of a pin like pinB.2 that will be used to turn on/off the DCF module.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
POWERLEVEL&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This option controls the level of the output pin that will result in a power ON for the module.&lt;br /&gt;
&lt;br /&gt;
0 - When a logic 0 is applied to the power pin, the module is ON.&lt;br /&gt;
&lt;br /&gt;
1 - When a logic 1 is applied to the power pin, the module is ON.&lt;br /&gt;
&lt;br /&gt;
Use a transistor to power the module. Do not power it from a port PIN directly. When you do power from a pin, make sure you sink the current. Ie&amp;amp;nbsp;: connect VCC to module, and GND of the module to ground. A logic 0 will then turn on the module.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
SECONDTICKS&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
The number of times that the DCF signal state is read. This is the number of times per second that the interrupt is executed. This value is calculated by the compiler. The highest possible timer pre scale value is used and the lowest possible number of times that the interrupt is executed. This gives least impact on your main application.&lt;br /&gt;
&lt;br /&gt;
You can override the value by defining your own value. For example when you want to run some own code in the interrupt and need it to execute more often.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
DEBUG&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
Optional value to fill 2 variables with debug info. DEBUG is on when a value of 1 is specified. By default, DEBUG is off. This has nothing to do with other DEBUG options of the compiler, it is only for the DCF77 code!&lt;br /&gt;
&lt;br /&gt;
When 1 is specified the compiler will create 2 internal variable named&amp;amp;nbsp;: bDCF_Pause and bDCF_Impuls. These values contain the DCF pulse length of the pause and the impulse. In the sample these values are printed.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;23%&amp;quot; style=&amp;quot;width: 135px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
GOSUB&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; style=&amp;quot;width: 460px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
The Sectic option will call a label in the main program every second.&lt;br /&gt;
&lt;br /&gt;
You have to insert this label yourself. You must also end it with a RETURN. The option is the same as used with&amp;amp;nbsp;[http://avrhelp.mcselec.com/config_clock.htm CONFIG CLOCK]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The DCF decoding routines use a status byte. This byte can be examined as in the example.&lt;br /&gt;
&lt;br /&gt;
The bits have the following meaning.&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding: 0px; margin: 0px 0px 0px 4px;&amp;quot;&amp;gt;&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; bgcolor=&amp;quot;#ffff99&amp;quot; style=&amp;quot;width: 35px; background-color: rgb(255, 255, 153); border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Bit&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; bgcolor=&amp;quot;#ffff99&amp;quot; style=&amp;quot;width: 711px; background-color: rgb(255, 255, 153); border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Explanation&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
The last reading of the DCF pin.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This bit is reserved.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This Bit is set, if after a complete time-stamp at second 58 the time-stamp is checked and it is OK. If after a minute mark (2 sec pause) this bit is set, the time from the DCF-Part is copied to the Clock-Part and this bit reset too. Every second mark also resets this bit. So time is only set, if after second 58 a minute mark follows. Normally this bit is only at value 1 from Second 58 to second 60/00.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This Bit indicates, that the DCF-Part should be stopped, if time is set. (at the option of updating once per hour or day).&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
4&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This Bit indicated that the DCF-Part is stopped.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
5&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This bit indicates, that the CLOCK is configured the way, that during DCF-Clock is stopped, there is only one ISR-Call in one second.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This Bit determines the level of the DCF input-pin at the pulse (100/200 mSec part).&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;35&amp;quot; style=&amp;quot;width: 35px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
7&lt;br /&gt;
&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;711&amp;quot; style=&amp;quot;width: 711px; border: 1px solid rgb(0, 0, 0);&amp;quot; | &lt;br /&gt;
This bit indicates, that the DCF-Part has set the time of the Clock-part.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;See Also&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
[[DCF77TIMEZONE]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Notice.jpg|left|Notice.jpg]]You can read the Status-Bit 7 (DCF_Status.7), to check whether the internal clock was synchronized by the DCF-Part. You can also reset this Bit with&amp;amp;nbsp;[[RESET]]&amp;amp;nbsp;DCF_Status.7. The DCF-Part will set this bit again, if a valid time-stamp is received.&lt;br /&gt;
&lt;br /&gt;
You can read all other bits, but don’t change them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The DCF-77 signal is broadcasted by the German Time and Frequency department.&lt;br /&gt;
&lt;br /&gt;
The following information is copied from&amp;amp;nbsp;:[http://www.ptb.de/en/org/4/44/_index.htm &amp;amp;nbsp;http://www.ptb.de/en/org/4/44/_index.htm]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main task of the department time and frequency is the realization and dissemination of the base unit time (second) and the dissemination of the legal time in the Federal Republic of Germany.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second is defined as the duration of 9 192 631 770 periods of the radiation corresponding to the transition between the two hyper fine levels of the ground state of the cesium-133 atom.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the realization and dissemination of the unit of time, the department develops and operates cesium atomic clocks as primary standards of time and frequency. In the past decades, these, as the worldwide most accurate atomic clocks, have contributed to the international atomic time scale (TAI) and represent the basis for the legal time in Germany. Dissemination of the legal time to the various users in industry, society, and research is performed via satellite, via a low frequency transmitter DCF77 and via an internet- and telephone service.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The department participates in the tests for the future European satellite navigation system „Galileo“.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Presently the primary clocks realizing the time unit are augmented by Cs clocks with laser cooled atoms („Cs-fountain clocks“) whose accuracy presently exceeds the clocks with thermal beams by a factor of 10 (frequency uncertainty of 1 . 10-15).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Future atomic clocks will most likely be based on atomic transitions in the optical range of single stored ions. Such standards are presently being developed along with the means to relate their optical frequencies without errors to radio-frequencies or 1 second pulsed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As one may expect transitions in nuclei of atoms to be better shielded from environmental perturbations than electron-shell transitions which have been used so far as atomic clock references, the department attempts to use an optical transition in the nucleus of 229Th for a future generation of atomic clocks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work of the department is complemented by research in nonlinear optics (Solitons) and precision time transfer techniques, funded in the frame of several European projects and by national funding by Deutsche Forschungsgemeinschaft particularly in the frame of Sonderforschungsbereich 407 jointly with Hannover University.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following information is copied from wikipedia&amp;amp;nbsp;:&amp;amp;nbsp;[http://en.wikipedia.org/wiki/DCF77 http://en.wikipedia.org/wiki/DCF77]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The signal can be received in this area:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Dcf-77-area.png|center|Dcf-77-area.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DCF77 is a long wave time signal and standard-frequency radio station. Its primary and backup transmitter are located in Mainflingen, about 25 km south-east of Frankfurt, Germany. It is operated by T-Systems Media Broadcast, a subsidiary of Deutsche Telekom AG, on behalf of the Physikalisch-Technische Bundesanstalt, Germany's national physics laboratory. DCF77 has been in service as a standard-frequency station since 1959; date and time information was added in 1973.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The 77.5 kHz carrier signal is generated from local atomic clocks that are linked with the German master clocks in Braunschweig. With a relatively-high power of 50 kW, the station can be received in large parts of Europe, as far as 2000 km from Frankfurt. Its signal carries an amplitude-modulated, pulse-width coded 1 bit/s data signal. The same data signal is also phase modulated onto the carrier using a 511-bit long pseudo random sequence (direct-sequence spread spectrum modulation). The transmitted data repeats each minute&lt;br /&gt;
&lt;br /&gt;
Map showing the range of the DCF77 signal.&lt;br /&gt;
&lt;br /&gt;
Map showing the range of the DCF77 signal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; * the current date and time;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; * a leap second warning bit;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; * a summer time bit;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; * a primary/backup transmitter identification bit;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp; * several parity bits.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since 2003, 14 previously unused bits of the time code have been used for civil defence emergency signals. This is still an experimental service, aimed to replace one day the German network of civil defense sirens.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The call sign stands for D=Deutschland (Germany), C=long wave signal, F=Frankfurt, 77=frequency: 77.5 kHz. It is transmitted three times per hour in morse code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Radio clocks have been very popular in Europe since the late 1980s and most of them use the DCF77 signal to set their time automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For further reference see wikipedia, a great on line information resource.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The DCF library parameters state diagram looks as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Dcf-parameter.png|center|Dcf-parameter.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the SECTIC option is used, the Sectic Interrupt routine should not need more time, than to the next timer interrupt. If you use a timer for dcf (and softclock) usually with 40 tics per second, the Sectic routine should take only less than 25msec.&lt;br /&gt;
&lt;br /&gt;
If the Sectic routines needs more than this limit, you will lose accuracy of the softclock time (especially during the time, where the clock is not synchronized by DCF) and also measurement of the length of the DCF-pulses.&lt;br /&gt;
&lt;br /&gt;
If the SECTIC routine needs more time than the short DCF-pulse (100ms, with some instability in DCF-receiver may be 80ms) you will lose synchronization with the DCF-signal.&lt;br /&gt;
&lt;br /&gt;
It is the principle of the DCF-routine, that the timer-interrupt measures the DCF-Pulse length and if you need more time in the interrupt routine as the duration from one timer interrupt to the next, you will get a problem.&lt;br /&gt;
&lt;br /&gt;
Thus keep the SECTIC routine as short as possible and set a flag in the SECTIC routine, which is checked in a loop of the main-program.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;See also&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
[[CONFIG DATE|CONFIG DATE]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;ASM&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
_DCF77 from DCF77.LBX is included by the compiler when you use the CONFIG statement.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: Arial;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= &amp;lt;span class=&amp;quot;f_Header&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;source lang=&amp;quot;bascomavr&amp;quot;&amp;gt;&lt;br /&gt;
$regfile = &amp;quot;M88def.dat&amp;quot;&lt;br /&gt;
$crystal = 8000000&lt;br /&gt;
 &lt;br /&gt;
$hwstack = 128&lt;br /&gt;
$swstack = 128&lt;br /&gt;
$framesize = 128&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
$baud = 19200&lt;br /&gt;
 &lt;br /&gt;
'Config Dcf77 = Pind.2 , Debug = 1 , Inverted = 0 , Check = 2 , Update = 0 , Updatetime = 30 , Switchpower = 0 , Secondticks = 50 , Timer1sec = 1 , Powerlevel = 1 , Timer = 1&lt;br /&gt;
Config Dcf77 = Pind.2 , Timer = 1 , Timer1sec = 1 , Debug = 1&lt;br /&gt;
 &lt;br /&gt;
Enable Interrupts&lt;br /&gt;
Config Date = Dmy , Separator = .&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Dim I As Integer&lt;br /&gt;
Dim Sec_old As Byte , Dcfsec_old As Byte&lt;br /&gt;
 &lt;br /&gt;
Sec_old = 99 : Dcfsec_old = 99 ': DCF_Debug_Timer = 0&lt;br /&gt;
 &lt;br /&gt;
' Testroutine für die DCF77 Clock&lt;br /&gt;
Print &amp;quot;Test DCF77 Version 1.00&amp;quot;&lt;br /&gt;
Do&lt;br /&gt;
For I = 1 To 78&lt;br /&gt;
 Waitms 10&lt;br /&gt;
 If Sec_old &amp;lt;&amp;gt; _sec Then&lt;br /&gt;
 Exit For&lt;br /&gt;
 End If&lt;br /&gt;
 If Dcfsec_old &amp;lt;&amp;gt; Dcf_sec Then&lt;br /&gt;
 Exit For&lt;br /&gt;
 End If&lt;br /&gt;
Next&lt;br /&gt;
Waitms 220&lt;br /&gt;
 Sec_old = _sec&lt;br /&gt;
 Dcfsec_old = Dcf_sec&lt;br /&gt;
Print Time$ ; &amp;quot; &amp;quot; ; Date$ ; &amp;quot; &amp;quot; ; Time(dcf_sec) ; &amp;quot; &amp;quot; ; Date(dcf_day) ; &amp;quot; &amp;quot; ; Bin(dcf_status) ; &amp;quot; &amp;quot; ; Bin(dcf_bits) ; &amp;quot; &amp;quot; ; Bdcf_impuls ; &amp;quot; &amp;quot; ; Bdcf_pause&lt;br /&gt;
Loop&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;br/&amp;gt;{{Languages}}&lt;br /&gt;
&lt;br /&gt;
[[Category:BASCOM Language Reference/de]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>