Hi Leute,
hatte schöne Stunden mit dem C64.
Habe mit einem Arduino Nano die RS232 Kommunikation zum Linux Rechner aufgebaut.
5 Volt vom C64 wird nicht anschlossen. LED auch nicht. Arduino blinkt.
Hier ein Bild.
Pinanschluss
USERPORT ------------------------------------ Arduino
B+C RxD (11)
M TxD (10)
N GND
Software term-c64.bas und Novaterm 9.6.
Software Arduino Nano - ist bei den Beispielen.
Software Linux Notebook oder Raspberry Pi - minicom.
/*
Software serial multple serial test
Receives from the hardware serial, sends to software serial.
Receives from software serial, sends to hardware serial.
The circuit:
* RX is digital pin 10 (connect to TX of other device)
* TX is digital pin 11 (connect to RX of other device)
........
*/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(1200);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
Serial.println("Start Nano 1200,8,N,1");
// set the data rate for the SoftwareSerial port
mySerial.begin(1200);
void loop() { // run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
Einfache Übertragung Zmodem funktionierte.
Die Übertragung funktioniert nicht immer. Naja. die gesteckten Verbindungungen (Probleme Steckbrett).
Gruß
Kurt