Jump to content
Sign in to follow this  
spinnaker15136

Reading / Writing the Atari 400 / 800 serial port?

Recommended Posts

My 810 does not seem to be working. It is the only serial device I have. I want to write a program to send data to the serial out to see if it is ny 810 or the serail port on the 800 that is the issue.

 

I wrote a RS232 driver for a custom RS232 interface I designed but that was 30 years ago. And of course the code is on the disk so I can't get to it.

 

 

Can anyone point me to some sample code for talking to the SIO? I just want to send raw data out.

 

Or can someone remind me, do I want to look at the pokey interface or the CIO interface?

Edited by spinnaker15136

Share this post


Link to post
Share on other sites

In the back of my OS manual, I have some cryptic notes scribbled:

 

With 3&4 Clock

 

399 baud = 11-high 163-164-165 LOW

53766 53764

 

2980

2976 circled

 

I am sure I knew what that meant at the time. I sure wish I took better notes. ;)

 

53766 is the Audio channel 4 frequency and 53764 is channel 3 frequency.

 

 

 

So I am guessing maybe I wrote directly to the registers for my driver to at least set up the baud rate.

 

I wrote some basic code to do noting but write to 53773 (serial out but I saw no transitions on the serial port.

Share this post


Link to post
Share on other sites

I found this on my hard disk to send something to the serial port:

99 REM 01-JAN-2000
100 OPEN #1,13,0,"R1:"
110 XIO 36,#1,14,0,"R1:"
120 PRINT #1,"NEUES HALLO!";CHR$(13);CHR$(10)
130 CLOSE #1

It opens the port with 9600 baud (XIO "14" parameter), 8n1. Although the open specifies input+output (parameter "13" in OPEN), it doesn't start concurrent I/O. But I guess it worked, otherwise I wouldn't have kept it or fixed it to work. For input you have to start "concurrent mode" with XIO 40. See the 850 user's manual for more information.

 

regards,

chris

Share this post


Link to post
Share on other sites

My opinion only and by experience you might want to

replace your 6520 on the 800 with a 68B21 since I've

had two out of three 800s that needed that done to

it before any device answered to a SIO call. Reseating

the chip may help too, but in my case the 6520 was

nonfunctional with repeated attempts AFTER I got a

good 68B21 in there. For some reason the early 6520s

weren't made to last?

 

Others should be in here going on about a new Pokey,

can't fathom where they are, but both 40 pin chips

have been found to be lacking after a 30 year nap.

 

I'm not kidding 2 out of three, needed a new 68B21

which is identical to original 2 MHz 6520 PIA. eBay

or Jameco. Produces SIO /PROCEED /COMMAND /INTERRUPT

signals directly while Pokey creates Data and Clock

I/O.

 

It's also important to spray some contact cleaner of

the de-oxit type on the drive select switches and

while still wet, work them quite well. And again

after drying. I need to do this every ten years, the

state they relate to the drive's OS comes and goes

such that the drive really doesn't know which one it

is at any random moment and will only boot from Drive

1 anyway.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...