6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 9:18 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri May 06, 2005 4:50 am 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat May 07, 2005 10:07 pm 
Offline
User avatar

Joined: Thu Mar 11, 2004 7:42 am
Posts: 362
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 10, 2005 2:38 am 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Sep 18, 2021 7:16 am 
Offline

Joined: Sat Sep 18, 2021 6:57 am
Posts: 2
please remove this post


Last edited by JMZinserling on Tue Sep 21, 2021 4:58 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 21, 2021 12:45 am 
Offline

Joined: Sun Jul 11, 2021 9:12 am
Posts: 155
16 years… Is that a new record for a necro post?


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 21, 2021 2:52 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
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?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: