Frequency counter using LPC1768 hardware counter, tested up-to 11MHz forked from https://developer.mbed.org/users/mio/code/5MHzOSC/
Fork of 5MHzOSC by
Diff: main.cpp
- Revision:
- 6:ded3d16c6b55
- Parent:
- 5:2f69b934feb0
--- 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()); } }