Vishal Kotcherlakota / TimerCapture

Dependents:   bluesync

Revision:
4:3ae9f68bae6a
Parent:
2:7c4ca945bfe1
--- a/TimerCapture.cpp	Thu May 21 08:34:46 2015 +0000
+++ b/TimerCapture.cpp	Wed Jun 10 06:21:13 2015 +0000
@@ -116,7 +116,7 @@
     LPC_SC->PCLKSEL1 |= (clockSel << 12);
     
     // Set prescaler counter
-    LPC_TIM2->PR = 100000; //should increment once a milisecond.
+    LPC_TIM2->PR = SystemCoreClock/1000; //should increment once a milisecond.
     
 }
        
\ No newline at end of file