Conrad C-Control Pro Mega Series Manual page 144

Table of Contents

Advertisement

135
C-Control Pro Mega Series
35
36 - 41
42 - 44
45 - 49
50 - 57
58
This signifies that reception must be in progress for at least one full minute before time information
can be provided. The information decoded during this minute is only secured by three parity bits. So
two incorrectly received bits will already lead to a transmission error that can not be recognised in
this way. For higher demands additional checking mechanisms can be used, such as plausibility
check (is the received time within the admissible limits) or multiple reading of the DCF 77 time
information with data comparison. Another possibility would be to compare the DCF time with the
current RTC time and only allow a specific deviation. This method does not work right after program
start since the RTC has to be set first.
Description of the example program "DCF_RTC.cc"
The program DCF_RTC.cc represents a clock which is synchronized by use of DCF 77. Time and
date are displayed on an LCD. Synchronization takes place after program start and then daily at a
time determined in the program (Update_Hour, Update_Minute). There are two libraries used:
DCF_Lib.cc and LCD_Lib.cc.
For the radio reception of the time signal a DCF 77 receiver is necessary. The output of the DCF
receiver is connected to the input port (Mega32: PortD.7 - M128: PortF.0). At first the beginning of a
time information has to be found. It will be synchronized onto the pulse gap (bit 59). Following the bit
will be received in seconds time. There will be a parity check after the minute and hour information
and also at the end of the transmission. The result of the parity check will be stored in DCF_ARRAY
[6]. For transfer of the time information DCF_ARRAY[0..6] will be used. After reception of a valid time
information the RTC will be set with this new time and will then run independently. RTC as well as
DCF 77 decoding is controlled by a 10ms interrupt. This time base is derived from the quartz
frequency of the Controller. DCF_Mode will control the completion of the DCF 77 time reception.
Table DCF Modes
RTC (Real Time Clock)
The RTC is controlled by a 10ms interrupt and runs in the background independent of the user
program. The display on the LCD is updated every second. The display format is in the first line:
Hour : Minute : Second, in the second line: Date of Day : Month : Year.
DCF_Mode
0
1
2
3
Parity Hour
Day of the Month
Weekday
Month
Year
Parity Date
Description
No DCF 77 operation
Find pulse
Synchronization on frame start
Decode and store data. Parity check
© 2008 Conrad Electronic

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents