thanks for replying,sir. this is my source code for sending 2 integer.
Private Sub Form_Load()
Dim Xvalue As Long
Dim Yvalue As Long
For Xvalue = 0 To 15
cboXvalue.AddItem CStr(Xvalue)
Next Xvalue
cboXvalue.ListIndex = 0
For Yvalue = 0 To 15
cboYvalue.AddItem CStr(Yvalue)
Next Yvalue
cboYvalue.ListIndex = 0
MSComm1.CommPort = 1
MSComm1.Settings = "9600,N,8,1"
MSComm1.DTREnable = False
MSComm1.PortOpen = True
End Sub
Private Sub cmdSend_Click()
Dim Xvalue As Long
Dim Yvalue As Long
Xvalue = cboXvalue.ListIndex
Yvalue = cboYvalue.ListIndex
MSComm1.Output = Chr$(255) & Chr$(Xvalue) & Chr$(Yvalue)
End Sub
Private Sub Form_Unload(Cancel As Integer)
MSComm1.PortOpen = False
End Sub
in your opinion, there should be delay between sending Xvalue and Yvalue? i am afraid my PIC circuit cannot detect and differentiate between X and Y value?
i really need your opinion, sir...
thanks