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

Files at this revision

API Documentation at this revision

Comitter:
chalikias
Date:
Thu May 29 11:11:10 2014 +0000
Parent:
5:2f69b934feb0
Commit message:
now gate timing at 0.1s using wait_us(100000). The 11.5MHz limitation seems to be a max frequency limitation ofthe counter

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2f69b934feb0 -r ded3d16c6b55 main.cpp
--- a/main.cpp	Thu May 29 10:26:06 2014 +0000
+++ b/main.cpp	Thu May 29 11:11:10 2014 +0000
@@ -57,7 +57,7 @@
     P30_INIT_CTR();
     while(1){
         P30_RESET_CTR();
-        wait(0.1); // Gate time for count
+        wait_us(100000); // Gate time for count
         printf("pin30 Freq = %u (Hz)\r\n",P30_GET_CTR());
     }
 }