Tried o use port monitor?
Alternatively you can try to send byte from avr and receive in application.
Something like this (you can attach it as a button event or data received event):
[code:1:3cff92b78a]
Private Sub Receiver()
RxCounter = 0 'Initialize
COMPort.ReadTimeout = 250
If COMPort.IsOpen = True Then
While COMPort.BytesToRead > 0 'Any data from COM port?
Try
RxData = COMPort.ReadByte 'Receive byte from COM
Catch ex As Exception
Exit Sub
End Try
RxBuffer(RxCounter) = RxData 'Put it into buffer array
RxCounter = RxCounter + 1 'Increase counter
End While
End If
If RxCounter > 0 Then 'Display if anything received
Display()
End If
End Sub
[/code:1:3cff92b78a]
What hardware interface do you use?
I remember poor quality prolific usb-rs232 interfaces that I used in the past. Use ft232 if possible.
↧