We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: Shawon Shahryiar
Last Updated: 2016-05-29
Package Version: 1.0.0.0
Category: Measurement
Downloaded: 910 times
Not followed.
License: MIT license
INT0 pin is gated with timer 0. TMR0 starts when INT0 pin is high (start of the echo pulse from HC-SR04) and is read when INT0 pin is low (invoked by the falling edge interrupt caused by the end of echo from HC-SR04). Thus we get pulse width in microseconds. 16 such time samples are taken to make the measurements accurate.
Do you want to subscribe in order to receive notifications regarding "HC-SR04 Ultrasonic Rangefinder with Timer and Interrupt" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "HC-SR04 Ultrasonic Rangefinder with Timer and Interrupt" changes.
Do you want to report abuse regarding "HC-SR04 Ultrasonic Rangefinder with Timer and Interrupt".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1464499770_hc_sr04_ultrason_mikroc_8051.rar [41.16KB] | mikroC PRO for 8051 |
|
HC-SR04 Ultrasonic Rangefinder with Timer and Interrupt
Watch on YouTube