Troubleshoot AIM 65 serial

For discussing the 65xx hardware itself or electronics projects.
Post Reply
andyd
Posts: 23
Joined: 30 Mar 2005
Location: So. CA

Troubleshoot AIM 65 serial

Post by andyd »

Well, I built a 20 mil (really TTL) to RS-232 adapter for my AIM.

I used a MAX232, and connected it according to the app note, which recommends using 1uf caps in the voltage doubler circuit.

I connected pin U on the 44 pin edge connector (TTY out) to pin 11 on the MAX232, and pin 14 to Rxd on the RS232.

I connected pin y on the 44 pin edge connector (TTY in) to pin 9 on the MAX 232 and pin 8 on the MAX 232 to RS232 Txd.

I connected the unused inputs (pin 10 and 13) on the MAX 232 to ground so as to not have floating inputs.

Did a continuity check with all connections and a voltage check, all seemed well.

I then connected it up to a terminal emulator at 2400 baud and inited the locations on the AIM for 2400 baud.

I've tried 1200 baud, and 2400 baud, 8 bits 1, 1.5 and 2 stop bits, odd, even and no parity, 7 bits, 1, 15, and 2 stop bits, odd, even an no parity.

When I transfer control from the AIM to the TTY in/out, nothing happens, no in, no out. I then press the space bar on the AIM and it starts sending characters, but all I see is y0' on the terminal display. When i put the KB/TTY switch on the AIM back to KB, the characters stop.

Any clues, where should I look next?

Any help or suggestions much appreciated,

AndyD
User avatar
dclxvi
Posts: 362
Joined: 11 Mar 2004

Post by dclxvi »

These are kind of general RS-232 debugging tips, but some terminal programs expect the hardware handshaking signals CTS, DCD, DTR, etc. Try disabling handshaking, as it isn't necessary for two pieces of equipment sitting a few feet apart on the same desk. Otherwise, you can write a short test routine in assembly or Forth or whatever. Just something to see if bytes are being sent and recieved correctly. It often helps to deal with the serial port hardware (UART) directly.

Resetting the UART and emptying the reciever buffer can also help. If the RS-232 cable gets unplugged and reconnected and you get a glitch on RX, this can get interpreted as a start bit by the UART and could also result in a framing error. With your own software you can just ignore things like this.

Cables can cause difficulties sometimes. Null modem cables will have RX to TX, TX to RX, and GND to GND, but they vary in how the handshaking signals are connected. I build my own null modem cables, with only RX to TX, TX to RX, and GND to GND. About the only RS-232 cables I trust are what might be called RS-232 extension cords. A male connector at one end, a female connector at the other, and pin 1 connected to pin 1, pin 2 connected to pin 2, pin 3 connected to pin 3, etc.
andyd
Posts: 23
Joined: 30 Mar 2005
Location: So. CA

Post by andyd »

This was a case of several errors on my part that stacked up. I managed to get some useful info from a fellow AIM user from the Classic Computer list.

Escentially I had two problems:

1. When I used the MAX232 I didn't notice that thew signal was inverted at the output....Fixed by adding an inverter between the AIM and the MAX232. Worked just fine for output, since I inverted the TTL output from the AIM to the MAX232, then the output characters were transmitted and recongnized just fine.

2. When I added a TTL inverter between the MAX232 and the AIM, I ignored the fact that the AIM is expecting RS-232 input levels and TTL levels just weren't cutting it. I bypassed the MAX232 and the extra TTL inverter and just took the RS-232 straight to the AIM and eureka, it worked! Serial communication both ways, AIM to Mac, Mac to AIM.

This is not just a connection directly to the Mac, I had to use a USB to RS-232 converter from the Mac, then convert the RS-232 to levels tha AIM could use, but all is well.

BTW: I found a nifty terminal emulator program for the Mac to use as my terminal. It is ZTerm. Seems pretty good.

Well, thanks again for all the help,

AndyD
JMZinserling
Posts: 2
Joined: 18 Sep 2021

Post by JMZinserling »

please remove this post
Last edited by JMZinserling on Tue Sep 21, 2021 4:58 am, edited 1 time in total.
J64C
Posts: 239
Joined: 11 Jul 2021

Re: Troubleshoot AIM 65 serial

Post by J64C »

16 years… Is that a new record for a necro post?
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Troubleshoot AIM 65 serial

Post by GARTHWILSON »

J64C wrote:
16 years… Is that a new record for a necro post?
Nope. Some of our projects go for many, many years—not that it takes that long to get it working, but maybe that a project keeps getting improved over the years, even after a period of inactivity due to detours life may throw at us. This might not have been totally the most appropriate place for JMZinserling to post his questions, but if the OP still has the same email address, he'll get a notification that there's a new reply (assuming he has notifications turned on). That wouldn't happen if JMZinserling started a new topic. It may help two people using AIM-65 serial connections to get connected more easily. In cases where it really is a continuation of the exact same thing, starting another topic just 'cause it's been so long has the disadvantage that now you have to find the old topic (hopefully it's linked) to see where we came from, or that someone reading the old one has to find the new one to continue reading (again hopefully it's linked). We might as well keep the related stuff together.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Post Reply