hallo ich habe so etwas ähnliches auch mal ausprobiert:

$regfile = "m16def.dat"
$crystal = 8000000
$baud = 19200

Dim I As Byte

Do
If Usr.rxc = 1 Then
I = Udr
Select Case I
Case "H"
Print "Hallo AVR"
Case "h"
Print "hallo avr"
Case Else
Print "Unbekannter Befehl"
End Select
End If
Loop
End

damit kannste denn auch strings einlesen, während andere dinge gemacht werden, natürlich in einer interupptroutine.
mfg pebisoft