diff options
author | RossTheRoss <msattr@gmail.com> | 2020-03-21 15:29:07 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2020-03-21 15:29:07 -0500 |
commit | 2568328885efd75c8753544ab38b6cdc2a4ada9a (patch) | |
tree | 8dafa0e468e0ba27f82956c9b10cf02cbb62c32e /HW3.X/strap012_hw3prob1.c | |
parent | Do HW3 (diff) | |
download | ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.tar ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.tar.gz ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.tar.bz2 ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.tar.lz ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.tar.xz ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.tar.zst ee2361-2568328885efd75c8753544ab38b6cdc2a4ada9a.zip |
Fix HW3
Diffstat (limited to '')
-rw-r--r-- | HW3.X/strap012_hw3prob1.c | 8 |
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;
}
}
|