![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Frequency counter using LPC1768 hardware counter, tested up-to 11MHz forked from https://developer.mbed.org/users/mio/code/5MHzOSC/
Fork of 5MHzOSC by
Revision 6:ded3d16c6b55, committed 2014-05-29
- 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 |
--- 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()); } }