Line 114... |
Line 114... |
114 |
set_timer1(0); // Internal counter reset |
114 |
set_timer1(0); // Internal counter reset |
115 |
of=0; // Overflow counter reset |
115 |
of=0; // Overflow counter reset |
116 |
|
116 |
|
117 |
count=((unsigned int32)of2<<20)+((unsigned int32)countH<<4)+(unsigned int32)countL; // concatenate |
117 |
count=((unsigned int32)of2<<20)+((unsigned int32)countH<<4)+(unsigned int32)countL; // concatenate |
118 |
|
118 |
|
119 |
printf("%010Lu\r\n", count); |
119 |
// printf("%010Lu\r\n", count); |
120 |
} |
120 |
} |
121 |
|
121 |
|
122 |
#int_TIMER1 // Interrupf from overflow |
122 |
#int_TIMER1 // Interrupf from overflow |
123 |
void TIMER1_isr(void) |
123 |
void TIMER1_isr(void) |
124 |
{ |
124 |
{ |
Line 162... |
Line 162... |
162 |
printf("\r\ncvak...\r\n"); |
162 |
printf("\r\ncvak...\r\n"); |
163 |
|
163 |
|
164 |
while(true) |
164 |
while(true) |
165 |
{ |
165 |
{ |
166 |
restart_wdt(); |
166 |
restart_wdt(); |
167 |
delay_ms(1000); |
167 |
delay_ms(1500); |
168 |
// printf("%X %X %X %X\r\n", buffer[0],buffer[1],buffer[2],buffer[3]); |
168 |
// printf("%X %X %X %X\r\n", buffer[0],buffer[1],buffer[2],buffer[3]); |
- |
|
169 |
printf("%010Lu\r\n", count); |
169 |
} |
170 |
} |
170 |
} |
171 |
} |