Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20688

BASCOM-AVR : drive device with MCU and visual studio 2012 : REPLY

$
0
0
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.

Viewing all articles
Browse latest Browse all 20688

Trending Articles



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