home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1996 December / PC_Shareware-1996-12.iso / windows / spectrum / docs / tape2tap.txt < prev    next >
Encoding:
Text File  |  1996-06-06  |  8.6 KB  |  263 lines

  1.  
  2. Tape2tap v1.13 --- digitalizes spectrum tapes in a PC (MS-DOS)
  3.            through a SoundBlaster or the printer port
  4.  
  5.     Introduction
  6.     ------------
  7.  
  8.     First of all, will introduce myself: I am a Portuguese student
  9. (born 12/09/70). I have already worked  3 years at a  Software house in C
  10. and sometimes in assembly.  
  11.  
  12.     Hope you enjoy this tiny program. I have tested it a lot and found it 
  13. is now in a reliable state to distribute it.
  14.  
  15.     I did  Tape2Tap as a preliminary preparation to a Spectrum emulation 
  16. under Windows; if it all comes right this emulation will be due by April'96.
  17. [No it don't...May'96, that's is...].
  18.  
  19.     Tape2Tap is  compatible will  versions of DOS up from 3.0 (including 
  20. Windows'95 - enclosed should come a TAPE2TAP.PIF);
  21.  
  22.     This program is postware, so  if  you like it and want to use it, you 
  23. should (well at least you can try to...) send a postcard about you homeland to 
  24. the following address:
  25.  
  26.         Rui Ribeiro
  27.         Av. Carvalha, 280 3o. D
  28.         P-4420 Gondomar
  29.         Portugal
  30.  
  31.     If you really will send a postcard, tell me where you get the program, 
  32. (if in Internet write the address  where you  get it)! I can read English, 
  33. French, Spanish and Portuguese,  so you do not have any excuse! Of course, if 
  34. you want to send any money, I will make no objections...
  35.  
  36.     Hope Tape2Tap will be of any use to you.
  37.  
  38.     Rui Ribeiro -   rff-ribe@csm.uew.ac.uk (until June 1996)
  39.             i890478@idt-isep.ipp.pt
  40.  
  41. ------------------------------------------------------------------------
  42.     If you want spectrum Software and you don't have Internet acess,
  43. try this BBS:
  44.  
  45.             MiCroRun BBS    [Oporto, Portugal]
  46.  
  47.              (351)02-5104669  [28800]
  48.           or (351)02-5106214  [14400]
  49.  
  50.     This BBS also has loads of Spectrum software. I left there almost
  51. my entire collection, but I think they are in a private area. Talk to the 
  52. co-sysop if you want to know more about that!
  53.  
  54.     I am registered as Star Man there, but at the moment I am not in 
  55. Portugal.
  56.  
  57.  
  58.     Instructions
  59.     ------------
  60.  
  61.     You call Tape2Tap and:
  62.  
  63.     . if you have a SoundBlaster, it will autodetect it and will try to use 
  64.     it (if for some reason you do not want to use SoundBlaster use the /ds 
  65.     option: disable SoundBlaster detection)
  66.  
  67.     . if you don't have a SoundBlaster it will try to digitalize data from 
  68.     the Printer Port
  69.  
  70.     The data will be saved in W1.TAP (in Z80 format) at the current
  71. directory. If W1.TAP does not exist, it will be created. If not, data will be 
  72. appended  to it. If a block gives an error it will be not saved, so you have to 
  73. rewind and try to load the block again. (a recorder with a counter will be 
  74. handy.)
  75.     
  76.     You notice that something is being read by Tape2Tap as the old ways: 
  77. the colours of the stripes change. (unfamiliar, uh?)
  78.  
  79.     When Tape2Tap can read a block successfully, it will the display the 
  80. familiar 'Program:' or  'Bytes:' message followed by the corresponding name...
  81. so in the very first block of the tape you should get no errors and the name
  82. right...if you did not you must try some different tape volume or something.
  83. (were not you missing this in your PC?)
  84.  
  85.     Inside Tape2Tap you can use 5 keys:
  86.  
  87.      - ESC -- exit program (don't do that, unless you are finished with the 
  88.     current block)
  89.      - 'S' -- turn PC speaker on  (to hear this sounds forgotten long ago by 
  90.     humanity)
  91.      - 'N' -- turn PC speaker off (the original Spectrum ought to do that!)
  92.      - '1' -- disable CRC checking (use with extreme care! You are in fact 
  93.     disabling error checking...but there are software protections that 
  94.     change the CRC)
  95.      - '2' -- enable CRC (when you skip the offending block, restore this as 
  96.     SOON AS POSSIBLE!)
  97.  
  98.  
  99.     The cables
  100.     ----------
  101.  
  102.     If you are fortunate  enough to have a SoundBlaster and still your 
  103. Spectrum cable, you can go pick it, and plug it to SoundBlaster's Line In the 
  104. corresponding place in your tape recorder (Line Out,Ear).
  105.  
  106.     Anyway if you have a SoundBlaster, it suffices to get a cable to 
  107. connect the Line IN to your tape recorders Line Out or Ear.
  108.  
  109.  
  110.  
  111.     To the more unfortunate people (like me):
  112.  
  113.     * You can buy one tape adapter from BG services, UK; it's compatible.
  114.  
  115.     Or you can build it yourself:
  116.  
  117.     . you need a 25-pin D-type connector (just like the one that plugs your 
  118.     printer to your computer)
  119.     . a jack connector to plug to tape recorder
  120.     . some cable
  121.  
  122.         (1)     (2)   (Female connector seen from solder side)
  123.           ___|_______|___________________________________________
  124.       13  \  o   .   o   .   .   .   .   .   .   .   .   .   .  / 1
  125.            \   .   .   .   .   .   .   .   .   .   .   .   .   /
  126.          25 \_________________________________________________/ 14
  127.             
  128.           
  129.  
  130.  
  131.     At the jack (mono):
  132.     ------------
  133.  
  134.         (1)     (2)
  135.          |       |
  136.          |       |
  137.          .-D1>---.          Don't try to see if this works without the
  138.          |       |       diode and the resistor. If you do that you can
  139.          |       R1      severely damage your printer port!
  140.          |       |
  141.           \      [ (4)
  142.         \    [
  143.         (3)  [   [     <-- This pretends to be a mono jack
  144.           ---
  145.            ]
  146.            .
  147.            ]
  148.  
  149.     R1 = 100 Ohms
  150.     D1 = 4.7V Zener diode
  151.  
  152.     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  153.     For those more technically oriented I have here a design that
  154.         provides a much greater noise immunity.
  155.  
  156.      (I DON'T KNOW WETHER THIS SECOND SCHEME IS CORRECT OR NOT.
  157.       I just find this lying around so if you decide to use it don't
  158.     blame me if it doesn't work. If however, you can put it to work,
  159.     could you send me a email?).
  160.  
  161.       . 2 resistors  (R)
  162.       . 3 capacitors (C)
  163.       . 1 diode
  164.                    -----.---------- (3)
  165.                    |    |
  166.      (1) ---- C1 ---.--- R1 ---.    D1
  167.             |          |    \/
  168.             |          |    |
  169.             C2         R2   |
  170.             |          |    |
  171.             |         GND   |
  172.                GND              |
  173.                     |
  174.                     |
  175.                     |
  176.                     |
  177.       (2)  -------------------------.----R3---- (4)
  178.            
  179.     C1 = 0,1uF
  180.     C2 = 1KpF
  181.     C3 = 1KpF
  182.     D1 = 4.7V Zener diode
  183.     R1 = 650 ohms
  184.     R2 = 1 Khom
  185.     R3 = 100 ohms
  186.  
  187.     GND = GROUND
  188.  
  189.     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  190.  
  191.  
  192.     Technical Details
  193.     -----------------
  194.  
  195.     Tape2Tap was designed  to work in any computer, at any speed. To
  196. accomplish this feat it uses only 8086 opcodes, and uses the PIT to time the
  197. tape data.
  198.  
  199.     It controls the SoundBlaster directly, without any use of DMA (so in
  200. theory, it will work with no problems with SoundBlaster compatibles).
  201.  
  202.     Between block of tapes, all data is output to disk, so I have no idea
  203. how it will behave with diskettes (sorry!).
  204.  
  205.     Tape2Tap manages to load almost all tapes at regular or turbo speed.
  206. This strength  is also is weakness:  to cope with this, I cannot assume
  207. transition times, so the program is more vulnerable to tape errors! There is
  208. only one kind of protection that Tape2Tap cannot cope: a silence in the middle
  209. of a block!
  210.  
  211.     I did what I  could with sound sampling, but I think very noisy tapes
  212. will not get much  chance with this program: if your tape is original you are
  213. lucky.
  214.  
  215.     Of course, if you digitalize turbo tapes, the emulator must recognise
  216. them or you must hack  the program. Well, this program was my answer for not
  217. having to hack the program. IF YOU HAVE TURBO TAPES DIGITALIZED YOU MUST GET
  218. 'WARAJEVO'  SPECTRUM  EMULATOR AND CONVERT THE  TAPE FILES WITH THE UTILITY
  219. ENCLOSED... (if you can get to Internet try at:
  220.         fpt://ftp.nvg.unit.no/pub/sinclair/utils/pc )
  221.  
  222.     If you are having problems, try to not use any memory manager.
  223.  
  224. Acknowledgements
  225. ----------------
  226.  
  227.     I would like to thank:
  228.  
  229.     - Alexandre Ulisses, for his book.
  230.  
  231.     - Pedro Oliveira, for lending me is SoundBlaster Pro card.
  232.  
  233.     - Filipe Silva, for his tapes.
  234.  
  235.     - Francisco Cotrina, for providing a home for my files.
  236.  
  237.  
  238. History
  239. -------
  240.  
  241. ; V1.00 95/08/23        .  original version
  242. ; V1.01 95/10/06        .  source better structured
  243. ;                       .  false block detection reduced
  244. ;                       .  colours added to make border stripes like real
  245. ;                         Spectrum
  246. ; V1.10 95/10/17        . added SB support
  247. ; V1.11 95/10/29        .  better noise immunity
  248. ; V1.12 95/12/27        . changed input pin of printer port (Busy pin, now)
  249. ; v1.13 96/06/06        .  Line-In Input modified, the volume was not properly
  250. ;                       . adjusted for SB Pro 16 and better cards
  251.  
  252. To do:
  253.  
  254.   I am done with Tape2Tap! You are free to correct and improve it. For this
  255. people, the documents I am providing in the SBDOCS directory will be extremely
  256. useful. If you are sucefful, don't forget that other people may be insterested.
  257. And include all this files, beside your own new ones...
  258.  
  259.     Regards,
  260.     Rui
  261.  
  262.  
  263.