Answered: Ultrasonic Sensor with DDT tool

I got my VB program to be able to set the motors through the serial port using the ddt tool on the microcontroller (a typical request from the PC looks like this:
(hex)AA
(hex)55
(dec)000
(dec)000
(dec)021
(dec)000
(dec)000
(dec)000
since my program is using an 8 byte buffer [this particular request sets the firs motor to decimal 000])
I understand how the ultrasonic sensor works so more specifically, I need to be able to set digital outs on and off from the serial port. In addition, I need to be able to have the microcontroller send a packet of data over the serial cable when an interrupt port is changed ie. from 1 to 0.
What changes to the original ddt code need to take place? If you cannot give me specific information could you point me in the right direction?
-Thanks

Unfortunately we can not answer programming questions of this type; the User must know C Programming. Post these types of questions in the General Forum.