test interruptIn feature with 555 timer
Dependencies: ClockControl PowerControl mbed
Fork of Frequency_counter by
Test interruptIn function with using LMC555 timer IC
LPC 1768 自身が持つタイマー割り込み機能を使わずに、 あえて外部のタイマー IC 555 からの信号で周期的に割り込みするテスト。
下記の回路例では、555 の output 端子が 約 10 秒周期のうち、0.3 秒間 Low になるはず。 ただし、コンデンサーおよび抵抗の誤差の影響があり、実測値は約7秒周期
C を 47μ から 330 μ に変えると約1分前後で周期的に割り込みがかかります。
なるべく配線が交差しないように部品配置してみた例
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
8:cb966096a916 | 2014-05-11 | test interrupt by 555 | File Diff Annotate |
7:42e7f18361c8 | 2013-11-06 | sync libraries | File Diff Annotate |
6:7f90a61e1a69 | 2013-08-11 | separate defines | File Diff Annotate |
5:9be3080ca8ba | 2013-06-04 | change interrupt mode and wait time | File Diff Annotate |
4:64d9c0bed75b | 2013-06-03 | define constants | File Diff Annotate |
3:bf0a5effbed2 | 2013-06-03 | define range of not ready | File Diff Annotate |
2:c4d4f0f9d77c | 2013-06-01 | remove unneeded pulldown | File Diff Annotate |
1:e2034bcdb101 | 2013-06-01 | first commit | File Diff Annotate |
0:c5bcf643a8b1 | 2013-02-03 | Can read pulses on the pin and convert them into frequency count | File Diff Annotate |