Line 1... |
Line 1... |
1 |
/**** IR Mrakomer 4 ****/ |
1 |
/**** IR Mrakomer 4 ****/ |
2 |
#define VERSION "4.0" |
2 |
#define VERSION "4.0" |
3 |
#define ID "$Id: irmrak4.c 1301 2009-01-17 08:51:50Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 1302 2009-01-17 09:03:34Z kakl $" |
4 |
|
4 |
|
5 |
#include "irmrak4.h" |
5 |
#include "irmrak4.h" |
6 |
|
6 |
|
7 |
#bit CREN = 0x18.4 // USART registers |
7 |
#bit CREN = 0x18.4 // USART registers |
8 |
#bit SPEN = 0x18.7 |
8 |
#bit SPEN = 0x18.7 |
Line 57... |
Line 57... |
57 |
printf("# l - Lock the dome.\n\r"); |
57 |
printf("# l - Lock the dome.\n\r"); |
58 |
printf("# x - Open the Dome and switch on heating.\n\r"); |
58 |
printf("# x - Open the Dome and switch on heating.\n\r"); |
59 |
printf("# i - Print this Information.\n\r"); |
59 |
printf("# i - Print this Information.\n\r"); |
60 |
printf("# r - Repeat measure every second.\n\r"); |
60 |
printf("# r - Repeat measure every second.\n\r"); |
61 |
printf("# s - Single measure mode on demand.\n\r"); |
61 |
printf("# s - Single measure mode on demand.\n\r"); |
62 |
printf("# U - Update firmware. Go to the Boot Loader.\n\r"); |
62 |
printf("# u - Update firmware. Go to the Boot Loader.\n\r"); |
63 |
printf("#\n\r"); |
63 |
printf("#\n\r"); |
64 |
printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); |
64 |
printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); |
65 |
printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); |
65 |
printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); |
66 |
} |
66 |
} |
67 |
|
67 |
|
Line 119... |
Line 119... |
119 |
heat=0; |
119 |
heat=0; |
120 |
open=0; |
120 |
open=0; |
121 |
repeat=TRUE; |
121 |
repeat=TRUE; |
122 |
|
122 |
|
123 |
welcome(); |
123 |
welcome(); |
- |
|
124 |
//---WDT |
- |
|
125 |
restart_wdt(); |
124 |
|
126 |
|
125 |
tempa=ReadTemp(SA, RAM_Tamb); // Dummy read |
127 |
tempa=ReadTemp(SA, RAM_Tamb); // Dummy read |
126 |
temp=ReadTemp(SA, RAM_Tobj1); |
128 |
temp=ReadTemp(SA, RAM_Tobj1); |
127 |
|
129 |
|
128 |
delay_ms(1000); |
130 |
delay_ms(1000); |