Code:
$crystal = 8000000
$regfile = "ATtiny2313.DAT"
$baud = 9600
Echo Off
Config Timer1 = Timer , Prescale = 256
On Timer1 Timer1_irq
On Urxc Isr_data 'On Urxc
Const Timervorgabe = 3036
Enable Urxc
Enable Timer1
Enable Interrupts
Config Portd.3 = Output 'LED red
Ledred Alias Portd.3
Config Portd.4 = Output 'LED yellow
Ledyellow Alias Portd.4
Config Portd.5 = Output 'LED green
Ledgreen Alias Portd.5
Dim B As Byte 'Buffer
Dim S As String * 5 'Buffer
Do
Toggle Ledgreen
If Ucase(s) = "PROG" Then
Print "entering programm mode"
End If
S = ""
Wait 2
Loop
End
Timer1_irq:
Timer1 = Timervorgabe
Toggle Ledred
Return
Isr_data:
Toggle Ledyellow
B = Udr
S = S + Chr(b)
Return
Aktueller Source...
Egal was ich drücke er antwortet sofort mit "Müll"
das Terminal ist ok...habe es mit einem anderen PC getestet,
Mfg
Lesezeichen