AdrianPilko / C64-to-Arduino-serial-io

Using a small Arduino sketch with SoftwareSerial lib on the ArduinoUNO and a BASIC program on the Commodore 64 to connect PC to C64 through the C64's user port
0 stars 0 forks source link

Corrupt characters on startup #2

Closed AdrianPilko closed 2 years ago

AdrianPilko commented 2 years ago

The initial message from the Arduino to commodore64 sometimes gets corrupted. So for example you see HELL I4 WORLD! or similar rather than HELLO C64 WORLD! Possibly needs some lead of control characters to sync up rather than just hitting in with printable characters straight away

AdrianPilko commented 2 years ago

not sure how this can be fixed in software. One possible hardware change is to add a small value resistor (eg 50ohms) in line with the serial connections to prevent ringing on the line. ALso maybe sheilding the line might help, and keep the wires as short as possible.

The idea of just reducing the baud rate may help but 1200 as it currently is should be slow enough, c64 will do max of 2400

AdrianPilko commented 2 years ago

fixed by adding delay between that characters sent on startup.