Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:netzer:impulse [2014/08/17 16:10] svesch Reordered headlines |
en:netzer:impulse [2014/08/17 16:36] svesch Added exmaples to all supported capture modes. |
||
---|---|---|---|
Line 68: | Line 68: | ||
+ | ==== Measuring impulses in continuous mode (Unsynchronized) ==== | ||
+ | |||
+ | {{ :en:netzer:impulse_capture_cont_unsync.gif?direct |}} | ||
+ | |||
+ | |||
+ | ==== Measuring impulses in single mode (Unsynchronized) ==== | ||
+ | |||
+ | {{ :en:netzer:impulse_capture_single_unsync.gif?direct |}} | ||
+ | |||
+ | |||
+ | ==== Measuring impulses in "Triggered by IO0" mode (Unsynchronized) ==== | ||
+ | |||
+ | This mode shall not be used. | ||
+ | |||
+ | |||
+ | ==== Measuring impulses in continuous mode (IO0 synchronized) ==== | ||
+ | |||
+ | This mode shall not be used. | ||
+ | |||
+ | |||
+ | ==== Measuring impulses in single mode (IO0 synchronized) ==== | ||
+ | |||
+ | {{ :en:netzer:impulse_capture_single_sync.gif?direct |}} | ||
+ | |||
+ | |||
+ | The second example shows the special case of an ultrasonic sensor like HC-SR04. | ||
+ | This sensor needs a 10 µs impulse at the TRIG input which shall be connected to IO3. | ||
+ | The pulse length of sensor singnal ECHO decodes the distance to the detected object. | ||
+ | The signal must be connected to IO0 and SPI_INT. | ||
+ | IO0 must be configured for rising trigger edge, SPI_INT for falling capture edge. | ||
+ | |||
+ | {{ :en:netzer:impulse_capture_io0_sync2.gif?direct |}} | ||
+ | |||
+ | ==== Measuring impulses in „Triggered by IO0“ mode (IO0 synchronized) ==== | ||
+ | |||
+ | In this mode the periode of periodic signals or pulse length can be measured. | ||
+ | Connect the signal to measure to IO0 and IO3 or SPI_INT or both. | ||
+ | For periode length the IO0 trigger edge and the capture edge must be equal. | ||
+ | For positive pulses the IO0 trigger edge must be rising, the capture edge falling edge. | ||
+ | For negative pulses the IO0 trigger edge must be falling, the capture edge rising edge. | ||
+ | |||
+ | {{ :en:netzer:impulse_capture_io0_sync.gif?direct |}} | ||