uart mal gehts mal nicht

Gast #1408614
Lesenswert?

$regfile = "m8def.dat"
$crystal = 4000000
$baud = 19200
Do
Print "hello"
  Loop


mal schreibt er für 3sec hello danach kommt nur noch 
)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡ 
•±±½5)¡•
±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡…±±½5)¡•±±½5)¡•±± 
½5)¡•±±½
5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±¡½5) 
¡•±±½5)¡
•±±½5)¡•±±½5)¡•±±½5)¡•±±½%)¡•±±½5)¡•±±½5)¡•± 
½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±
½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5 
)¡•°±½5)
¡•±±½5)¡•±±½5)¡•±±½5)¡•±±½5)¡•±±µ5)¡•±±½5)¡•±±½5)¡•°±½5)¡•±±½5)¡•±±½5)¡• 
±±½5)¡•±
±½5)¡•±±¼

und dann paar sec später

hello
hello
hello
hello
hello
hellO
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello


woran kann sowas liegen? hängt nix weiteres am atmega 8
Gast #1409052
Lesenswert?

>19200 baud 8 datenbits kein parity 1 stoppbit

Von was ist das die Einstellung?

>sollte das allerdings falsch sein, frage ich mich warum es mal geht und
>mal nicht

An sich ist das weder falsch noch richtig. Es kommt darauf an, das an 
beiden Enden das selbe eingestellt ist.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren