Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!Norway.EU.net!EU.net!uknet!comlab.ox.ac.uk!imc
From: imc@comlab.ox.ac.uk (Ian Collier)
Subject: Re: Req: Pinouts for +3 Serial and RGB Connectors
Message-ID: <6291.imc@comlab.ox.ac.uk>
X-Local-Date: Tuesday, 21th March 1995 at 7:30pm GMT
Originator: imc@msc2.comlab
Organization: Oxford University Computing Laboratory
References: <een3pmr.12.00127185@leeds.ac.uk>
Date: Tue, 21 Mar 1995 19:30:12 GMT
Lines: 65

In article <een3pmr.12.00127185@leeds.ac.uk>, een3pmr@leeds.ac.uk (P.M. Rolls) wrote:
>Could anybody please furnish me with the above information, as I have just 
>aquired a +3 and want to start transferring data to and from my PC (and don't 
>want to end up squinting at the horrific TV picture that I am getting at 
>present!)

  pin  function
   1   GND
   2   TXD             +-------------+
   3   RXD            -' 6 5 4 3 2 1 |
   4   DTR            -. = = = = = = |
   5   CTS             +-------------+
   6   +12V              RS232 socket


  pin  signal                   __   __
   1                           /  |_|  \
   2   GND                    / .7   6. \
   3   audio out             | .3  .  1. |
   4   -composite sync       |  .5 8 4.  |
   5   +12V                   \    .2   /
   6   green                    \_____/
   7   red                  RGB/PERITEL socket
   8   blue

[in my manual, pin 1 used to say +12V but has been crossed out]

>Also, what Spectrum software will I need to do this, or can I write a simple 
>basic/assembler routine?

Well, to avoid me having to search out all the info on sending and
receiving...  :-)

48KDB has commands to load and save through the RS232 in Interface 1
format (which was discussed earlier - it contains a 9-byte header
followed by the data).  You can get it from ftp.nvg.unit.no in the
directory /pub/sinclair/utils/spectrum.

But how will you get 48KDB on to your speccy?  Via the RS232 of course.
That might prove to be a bit difficult.  :-)

However, you could write a BASIC program that does something like

 10 FORMAT LPRINT "r";u
 20 FORMAT LINE 9600
 30 LET x=55000
 40 LET i$=INKEY$#3: IF i$="" THEN GO TO 40
 50 POKE x,CODE i$: LET x=x+1: GO TO 30

to input the code (break in when transmission is complete).  The code file
"disk.bin" starts at 55000 and is of length 8847.  Remember to junk the
first 21 bytes before sending it across (they are the xzx tape header).

In case you can't read the BASIC program that comes with it, write
something like 

 CLEAR 54999: LOAD "disk.bin" CODE : LET l=USR 56156: LET l=USR 32000: LET
 l=USR 23734: LET l=USR 0

for the loader program.

Ian Collier - Departmental Lecturer (and perpetual postgrad student) -
imc@comlab.ox.ac.uk - Oxford University Computing Laboratory, Wolfson
Building, Parks Road, Oxford OX1 3QD - WWW Home Page (including Spectrum
section): http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html
