aboutsummaryrefslogtreecommitdiffstats
path: root/HW3.X/strap012_hw3prob1.c
diff options
context:
space:
mode:
Diffstat (limited to 'HW3.X/strap012_hw3prob1.c')
-rw-r--r--HW3.X/strap012_hw3prob1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/HW3.X/strap012_hw3prob1.c b/HW3.X/strap012_hw3prob1.c
index 709bb00..dcfd308 100644
--- a/HW3.X/strap012_hw3prob1.c
+++ b/HW3.X/strap012_hw3prob1.c
@@ -39,6 +39,7 @@ void setup(void)
IPC0bits.T1IP = 3;
/* enable Timer 1 interrupt */
+ //DISABLE IF POLLING
IEC0bits.T1IE = 1;
T1CONbits.TON = 1;
@@ -47,11 +48,10 @@ void setup(void)
int main(void)
{
- unsigned long int count = 0;
-
setup();
-
while (1) {
- count++;
+ //Polling stuff
+// while (_T1IF == 0);
+// _T1IF = 0;
}
}