|
CPCEMU - Data Transfer
5. Data Transfer CPC <-> PCWhat can you do with a good emulator when you do not have any programs for it or if you do not see any possibility to get programs from a CPC across to the PC?
5.1 Disk as a mediaThis is the simplest way to get CPC software across to the PC. The PC is persuaded to recognize the CPC formatted disk using a utility to read the CPC formatted disks. This utility is called CPCTRANS.
5.1.1 The disk transfer program CPCTRANSI have developed CPCTRANS to create disk images from CPC disks. Standard CPC formats as well as double sided Vortex formats are supported. CPCTRANS <source> <destination> <options>
Examples:
The first command only runs for the DATA format. For other formats you have to use an option:
Note the space between "/f" and the number.
5.1.2 The format- and copy-utility 22DISK by SYDEXThis program is available as shareware. With correct definitions you can use nearly all CP/M formats! Unfortunately just the CPC formats are not included with the evaluation copy of 22DISK. Therefore I have defined the formats in the file CPMDISKS.DEF. You will find them in the UTILITY subdirectory. What can you do with 22DISK? You can transfer single files back and forth between DOS and non-DOS formats, format disks and so on. Copy the CPC files into the TAPE directory. Read section 3.2.2 for an explanation how to load them.
5.2 The parallel interfaceIf you own a CPC without a second drive, you can do the data transfer over the parallel interface. First you have to jump over two hurdles:
Wait! Do not skip the rest! Both steps are really simple, because
To step 2. The program you need calls CPCREC.BAS and is in the UTILITY directory. It is saved in ASCII, so you can send it to your printer without problems and type it into your CPC. It does its job like a thin rope sent through a pipe in order to get a thick cable through it. But before you input CPCREC.BAS, have a look at step 1..
The parallel adapterYou need an adapter between the PC printer cable and the PC printer connector. This goes easiest with a RS-232 wiring box, which has a 25pin D-Sub male (plug) and a 25pin D-Sub female (socket) connector. By plugging short wires into the box you can realize any possible connection between both sides. Usually such a box is used - as its name already says - for adapting RS-232 interfaces. Serial connections do not function at the first, you know. We use the adapter the other way round, that is, the plug is for the PC side and the socket for the printer cable. Plug it together now: Plug for the PC printer- Socket for the printer cable connector (left side) (right side) Pin 2 --------------- Pin 11 Pin 10 --------------- Pin 8 Pin 11 --------------- Pin 1 Pin 12 --------------- Pin 7 Pin 13 --------------- Pin 6 Pin 15 --------------- Pin 5 Pin 19 --------------- Pin 19 As you see, you do not need all the 25 wires, only 7 of them. Now I presume you have connected the computers with the adapter and CPCREC.BAS on your CPC. What now?
Now it gets exciting, if no error messages appear on the PC screen, all is OK, the file is on the CPC.
On my 386/33 I must not have EMS memory installed, otherwise it is too slow. On a very fast computer it could be necessary to use the turbo switch. Use the program under plain DOS, not OS/2 or Windows. If it does not run at all, send me a note. In the meantime you can type in the program CPCPARA.BAS which is a little longer. The direction CPC->PC runs always, also under OS/2, because it is nearly the same as printing. The PC behaves like a printer. I assume that you have CPCPARA.BAS on your CPC now. Transfer files from CPC to PC in the following way:
Thus, use PCPARA in the following way:
All programs in the UTILITY directory display an overview about its options if you call them without any parameters. WARNING: Even if the construction is very simple, I cannot guarantee that you do not damage anything. If your CPC printer-port is damaged afterwards, it is a pity and rather an unfortunate accident. Perhaps it would be also damaged if you had simply connected a printer. For example, I know a former CPC user whose keyboard did not work properly any more one day. After the repair he was told that he should not plug the joystick in while the computer is switched on! To come back: I have built the adapter successfully. And have even sometimes forgotten to insert the adapter in the connection and have had no problems. Diagrams by David Chapeau, if your CPC has no Centronics connectors: 34 <- - - - - - - - 18 \ ______________________ | | ________________ | | | |________________| | - | ---> Printer Connector (Female) |______________________| | to CPC | 17 < - - - - - - - - 1 | | |||||||||||||||||| | |||||||||||||||||| \ |||||||||||||||||| > CPC 6128 to DMP 2160 Cable |||||||||||||||||| / |||||||||||||||||| | | 1 - - - - - - - - > 18 | ________________________ | \ ______________ / | \ |______________| / - | ---> Centronics Connector \__________________/ | (Male) | 19 - - - - - - - -> 36 / 18 < - - - - - - - - 1 \ ________________________ | \ ______________ / | \ |______________| / - | ---> Centronics Connector \__________________/ | (Female) | 36 <- - - - - - - - 19 | | |||||||||||||||||| | |||||||||||||||||| \ |||||||||||||||||| > PC Parallel Adapter |||||||||||||||||| / |||||||||||||||||| | | 1 - - - - - - - - > 13 | ________________________ | \ .................. / | \ ................ / - | ---> Sub-D Connector (Male) \__________________/ | to PC (LPT1) | 14 - - - - - - - -> 25 / 13 < - - - - - - - - 1 \ ________________________ | \ .................. / | \ ................ / - | ---> Sub-D Connector (Female) \__________________/ | | 25 <- - - - - - - - 14 | | |||||||||||||||||| | |||||||||||||||||| \ |||||||||||||||||| > RS 232 Wired Box |||||||||||||||||| / |||||||||||||||||| | | 1 - - - - - - - - > 13 | ________________________ | \ .................. / | \ ................ / - | ---> Sub-D Connector (Male) \__________________/ | to PC (LPT1) | 14 - - - - - - - -> 25 /
Printer Centronics Centronics Sub-D Sub-D Sub-D Connector (Female) (Male) Connector Connector Connector 1 --------- 1 1 --------- 1 11 --------- 2 . . 8 --------- 10 . . 1 --------- 11 . . 7 --------- 12 17 --------- 17 14 --------- 14 6 --------- 13 18 --------- 19 19 --------- 19 5 --------- 15 . 21 --------- 20 19 --------- 19 . 23 --------- 21 . 25 --------- 22 34 --------- 35 27 --------- 23 29 --------- 24 30 --------- 25 31 --------- 16 32 --------- 15 33 --------- 18 36 --------- 17
CPCPARA -> PCPARA (v1.1) transfer speed: Times to transfer a block of 0x4000 Bytes from CPC to PC with the parallel adapter:
The block sending was controlled in BASIC (inside CPCPARA):
defstr a:a="test.$$$":call sstr,@a
You can read further information about the parallel adapter in chapter 7.
5.3 The serial interfaceIf you own a serial interface for the CPC, you can certainly use it for data transfer to the PC.
5.4 Other possibilitiesThere are some more fantastic ways to get the software onto the PC.
Chapter 6. Sources of Supply, Support, and Acknowledgments
© Marco Vieth, Mai 1998 Marco Vieth, 19.04.2008 14:27:04 |