Frequency counter using LPC1768 hardware counter, tested up-to 11MHz forked from https://developer.mbed.org/users/mio/code/5MHzOSC/

Dependencies:   mbed

Fork of 5MHzOSC by fuyuno sakura

Revision:
5:2f69b934feb0
Parent:
4:e7d16ef216d4
Child:
6:ded3d16c6b55
--- a/main.cpp	Tue Jun 18 14:18:04 2013 +0000
+++ b/main.cpp	Thu May 29 10:26:06 2014 +0000
@@ -57,7 +57,7 @@
     P30_INIT_CTR();
     while(1){
         P30_RESET_CTR();
-        wait(1.0); // Gate time for count
-        printf("pin30 Freq = %d (Hz)\r\n",P30_GET_CTR());
+        wait(0.1); // Gate time for count
+        printf("pin30 Freq = %u (Hz)\r\n",P30_GET_CTR());
     }
 }