Am 24.04.20 um 13:34 schrieb Andrew Pamment:
Hi Andrew,
> What I am trying to do, is access the second serial port on the sio/2
> card. I hooked up an arduino mega to via the second serial port on the
> mega and put in a little script to echo stuff from the second to the
> first serial port. So the idea was I would type in a terminal program on
> CP/M and it would show up on the arduino serial monitor, and vice versa.
[...]
> So I think setting up the mega with (MEGA) TX1 -> (SIO2) RX and (MEGA)
> RX1 -> (SIO2) TX and Ground -> Ground should work?
>
> I'm guessing my problem is getting a terminal program to talk to the
> second serial port?
>
> Any tips would be greatly appreciated, I'm a complete newbie :P
First, please check the voltages of the serial connections on your
Arduino. If it only accepts 3.3V, you should use level shifters, as the
RC2014 SIO/2 outputs +5V on TX.
If your Arduino accepts +5V (or you use a level shifter), the connection
should work as you write (RX->TX, TX->RX, GND).
As for the terminal program, you have to use a program that can talk to
the SIO chip - or that uses the generic "iobyte" mechanism.
I've patched the program "QTERM" to use the SIO/2 chip, you can find it
here:
https://git.imzadi.de/acn/rc2014-tools/src/master/qterm
QTERM82.COM will talk to the second serial port of the first SIO/2
module, so this should work with your setup.
(
QTERM84.COM would talk to the first serial port of a second SIO/2 card)
In the file QTERM43F.LBR, you can find the whole program and documentation.
Another program you could use is KERMIT, which you can find here:
http://www.z80.eu/kermit.html
Just download CPSKER.HEX and CPVGEN.HEX, the "generic CP/M 2.2 IOBYTE"
version, together with
MLOAD.COM and combine them using:
MLOAD KERMIT=CPSKER,CPVGEN
to get a
KERMIT.COM.
After starting KERMIT, you might have to use the command SET PORT to set
a port, use "SET PORT ?" (I think it was that way) to get a list of
available ports.
Just ask, if you have further questions :)
Have a nice weekend!
Regards,
Anna