Revision 55
G1
newmain.c | ||
---|---|---|
43 | 43 |
//toggle da flag |
44 | 44 |
k = !k; |
45 | 45 |
|
46 |
/* Wait 0.5 seconds (4M cycles) */ |
|
47 |
|
|
46 |
/* Wait 1 seconds */ |
|
48 | 47 |
while(IFS0bits.T1IF == 0) |
49 | 48 |
{ |
50 | 49 |
|
51 | 50 |
} |
52 | 51 |
|
52 |
// Clear Timer1 flag |
|
53 |
IFS0bits.T1IF = 0; |
|
53 | 54 |
|
54 | 55 |
} |
55 | 56 |
|
Also available in: Unified diff