Tool/software: Code Composer Studio
I use msp430g2553.I use code composer studio 9.2.0. I want to write a code which is determine the speed of object.We know the distance of road and we want to get time with 2 sensor(HC-SR04) by using timer and interrupt.One sensor will be beginnig of the road and second one will be end of the road.İ wanna know time between two sensors.i wanna desing a circuit that calculate speed of object that passes between 2 points.İ wanna use 2 HC-SR04 sensor.How can i write the code?İ need help.