Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: want to interface ultrasonic with msp430g2553

$
0
0
ultrasonic sensor HC sr-04, actually i am working on Vissim embedded software on that i want to design a simple robot which can detect a threshold distance . first i generate 10 usec pulse so that i can trigger(P1.1) HC-SR04 module , now if there is obstacle in front of sensor the Echo(P1.2) pulse will received. i want to calculate the pulse time of received Echo pulse so that i can calculate the distance pulse time * (1/58) = distance . for calculating the pulse time i have to set TACTL , TACCTL0 and measure the timer TA0R, my problem is what should be the TACTL if i used ACLK ,divide by 1, continuous mode and what other setting i have to do in other SFR register , give me step wise so that i can implement the same logic on vissim embedded . thanks in advance yogesh

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>