AminetAminet
Search:
84736 packages online
About
Recent
Browse
Search
Upload
Setup
Services

docs/hard/PAR_READ.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:PAR: as a VOLUME in READ mode only.
Author: wisecracker at tesco.net (Barry Walker)
Type:docs/hard
Version:0.94.80
Architecture:m68k-amigaos,generic
Date:2008-06-03
Replaces:docs/hard/PAR_READ.lha
Download:docs/hard/PAR_READ.lha - View contents
Readme:docs/hard/PAR_READ.readme
Downloads:1015

Distribution: Public Domain, Emailware.

============================================================================

Requirements Are:-
------------------

              Any Classic Amiga, SEE TEXT BELOW.
              Standard Kickstart 2.0x and Workbench 2.0x or better.
              RexxMast running, and RX in the path.
              PAR: Device installed.
              A home built, VERY simple piece of HW to toggle the -ACK line.
              (There are two versions of the HW, PAR_READ_Simple and
              PAR_READ_Complex. Both versions are simple... :)
              (Project6 from TestGear2.lha in the hard/hack drawer of
              AMINET is optional.)

============================================================================

History:-
---------

02-06-2008.
-----------
Version 0.94.80, correct some text errors.

10-05-2006.
-----------
Version 0.94.70, minor text error.

08-05-2006.
-----------
Version 0.94.60, rearranged the drawers and files more logically.

06-05-2006.
-----------
Version 0.94.50, added another piece of simple HW to do the same task.

27-11-2005.
-----------
Version 0.94.00, first upload to AMINET.

============================================================================

This is a project to use PAR: as a VOLUME in READ mode only, NOT as a DEVICE.
I have NOT included PAR: in WRITE mode as this is easily done.

For example connect a standard parallel port printer to the parallel port
and from a CLI or Shell type:-

Echo > PAR: "This is a test line."<RETURN>

This is a test line.

Is printed to by the printer, so WRITE mode is possible without any special
knowledge.

PAR: in READ mode however is not so easy and was intended to accept binary
data IN through the parallel port to the computer WITHOUT ANY knowledge of
the HW registers or DEVICE offsets at all.

Very SIMPLE home built HW is needed for this to work and this is covered in
detail in the archive. ONLY pins 2 to 10 inclusive of the parallel port are
needed for FULL operation and if 5V is required then two other pins are used.

See the FULL archive for ALL details.

I decided on using ARexx and the extremely simple script is shown below:-

/* =================================================================== */

/* ----------------------------------------------- */
/* PAR: used as a ~volume~ for binary data access. */
/*            (C)2005, B.Walker, G0LCU.            */
/* ----------------------------------------------- */
/* Use ECHO for printing to the screen and SAY for */
/*      printing any variables to the screen.      */
/* ----------------------------------------------- */
/*   IMPORTANT!!!, run ONLY from a SHELL or CLI.   */
/* From the SHELL/CLI, type:-  RX PAR.rexx<RETURN> */
/* ----------------------------------------------- */


/* Show my version number and (C) for one line only. */
/* (Note these two lines can be omitted.) */
    ECHO 'c'x
    ECHO '$VER: PAR.rexx_Version_0.94.00_(C)01-09-2005_B.Walker_G0LCU.'


/* Set up any variables. */
    ParaByte = ''
    MyByte = ''


/* Set the signal for breaking the script, ~Ctrl C~. */
    SIGNAL ON BREAK_C


/* ------------------------------------------------------------------- */
/* This is the main working loop for accessing the parallel port. */
    DO FOREVER

/* Open up a channel for reading from the parallel port. */
    OPEN(ParaByte, 'PAR:', 'R')

/* Read a single binary character from the port. */
    MyByte = READCH(ParaByte, 1)

/* If MyByte is a NULL then this corresponds to the EOF, 0, so correct */
/* it by making sure ALL NULLs are given the value of 0. */
    IF MyByte = '' THEN MyByte = 0

/* All major data access done, NOW IMMEDIATELY close the channel. */
    CLOSE(ParaByte)

/* Print the character onto the screen. */
/* This binary character ~MyByte~ can now be manipulated by all */
/* of the normal methods available under ARexx. */
    SAY 'Byte at parallel port is decimal value '||C2D(MyByte)'.    '
    END
/* ------------------------------------------------------------------- */


/* Cleanup and exit from the script. */
Break_C:
    EXIT

/* =================================================================== */

It works on ANY Classic Amiga, but could possibly work on an A1 using OS4
OR MOS so long as RexxMast and RX is available AND PAR: is an installed
DEVICE on the system. Device offsets are not needed for this to work as
can be seen above, hence my term VOLUME. :)

As the offsets are not required for correct operation then PAR: acts for
all intents and purposes like a disk in a disk drive and can be written
to, or, as in this case, READ from, and binary data aquired from the port
displayed onto the screen.

If you are interested further AND own an A1 and OS4 or MOS and would like
to experiment with this then please Email me at the address at the end of
this README.

There is an ARexx Voltmeter program using the A-D Converter inside the
archive and is a little more sophisticated than the very basic script
above.

(See ~Testing Evaluation~ below for more information.)

----------------------------------------------------------------------------

How the Voltmeter works is, a window is generated by IconX of the size
specified in the Project icon and the program is run inside that window.
You can vary this window size to take into account any strange font setup
that you may have.

(I hope you enjoy messing with it like I do... :)

----------------------------------------------------------------------------

The archive is Public Domain/Emailware and you may modify them as you
please for your OWN experiments. See below.

(Original idea and (C)2005 goes to B.Walker, G0LCU.)

----------------------------------------------------------------------------

                                IMPORTANT:-
                                -----------


    The Legal Stuff:-
    -----------------

    These programs are Public Domain and no profit will be made from them,
    also all of the files must remain unaltered and intact including this
    one. The author is not responsible for any damage to, or loss of, or
    failure of equipment or data caused in any way by the use of these
    programs. There is NO warranty with the use of these software releases
    and YOU USE THEM AT YOUR OWN RISK.

----------------------------------------------------------------------------

    Testing Evaluation:-
    --------------------

    An A1200 in 2MB, 6MB and 10MB modes using trapdoor memory AND/OR
    PCMCIA memory expansions. All memory expansions were ~DISABLED~ using
    the NoFastMem program from the System drawer. Also tested on two A600s
    with various memory configurations, a 1MB A500+ and an old style A500
    with a 0.5MB memory expansion at $C00000 using the A500+ emulator and
    Workbench 2.04, and LBNL an A600 emulating KS3.0x and running
    Workbench 3.0x. Also tested on an A4000 with various upgrades and
    OS3.9x.

    All test conditions were/are running STANDARD KS2.0x to 3.9x, and using
    standard ~topaz 8~ fonts throughout.

    I have no idea what a strange configuration setup will create so refer
    to the ~The Legal Stuff~ above.

----------------------------------------------------------------------------

                                 WARNING.
                                 --------

  1) DISCONNECT any faulty equipment under test from the MAINS supply.
  2) If a DC supply is used do NOT reverse polarity the connections.
  3) Do NOT power up any electronic item until it is safe to do so.
  4) CHECK and RECHECK all of your construction and repair work thoroughly.
  5) Handle ALL tools used with care.
  6) Beware of ALL types of solvents, glues and etching fluids.
  7) NEVER leave a soldering iron switched on unattended.
  8) KEEP everything OUT of the reach of small children.
  9) Switch OFF the AMIGA before disconnecting or connecting any hardware.
 10) And finally read 1) to 9) again.

----------------------------------------------------------------------------

   Contact:-
   ---------

   Mr Barry Walker, G0LCU,
   70 King George Road,
   Loughborough,
   Leicestershire,
   LE11 2PA,
   England.

   Email:-     wisecracker@tesco.net
   URL:-       http://homepages.tesco.net/wisecracker/G0LCU.HTM

   Author of the ~TestGear?~ projects in the ~hard/hack~ drawer of AMINET.

----------------------------------------------------------------------------

   A very useful HardWare related site, (C) Anthony Hoffman, for
   modifications, schematics, repairs and the like is:-

                          http://amiga.serveftp.net/

============================================================================


Contents of docs/hard/PAR_READ.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  269     628  42.8% -lh5- fdcc Jun  2 21:20 PAR_READ.info
[generic]                 3556    8901  40.0% -lh5- d1d3 Jun  2 21:11 PAR_READ/PAR_READ.readme
[generic]                  197     317  62.1% -lh5- e572 May  7  2006 PAR_READ/PAR_READ.readme.info
[generic]                  267     628  42.5% -lh5- a890 May  7  2006 PAR_READ/PAR_READ_Complex.info
[generic]                  270     628  43.0% -lh5- 486c May  7  2006 PAR_READ/PAR_READ_Complex/Circuits.info
[generic]                 2370    6494  36.5% -lh5- fe74 Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/-ACK_CLOCK.IFF
[generic]                  277     509  54.4% -lh5- 5d48 Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/-ACK_CLOCK.IFF.info
[generic]                 2087    6696  31.2% -lh5- 9b90 Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/ADC.IFF
[generic]                  277     509  54.4% -lh5- 487e Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/ADC.IFF.info
[generic]                  261     628  41.6% -lh5- 9cdc Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/JPG.info
[generic]                56115   56115 100.0% -lh0- fbd4 Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/JPG/-ACK_ADC.JPG
[generic]                61802   61802 100.0% -lh0- feaa Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/JPG/WIRING.JPG
[generic]                 1360    2907  46.8% -lh5- 882e Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/Notes
[generic]                  198     330  60.0% -lh5- 8075 May  7  2006 PAR_READ/PAR_READ_Complex/Circuits/Notes.info
[generic]                  260     628  41.4% -lh5- 9f6b Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/OCS-HAM.info
[generic]               125448  125448 100.0% -lh0- 9303 Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/OCS-HAM/-ACK_ADC.HAM
[generic]                62784   62784 100.0% -lh0- 8a1a Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/OCS-HAM/WIRING.HAM
[generic]                 1270    3189  39.8% -lh5- 136b Apr 16  2006 PAR_READ/PAR_READ_Complex/Circuits/Parts-List
[generic]                  201     330  60.9% -lh5- 379a May  7  2006 PAR_READ/PAR_READ_Complex/Circuits/Parts-List.info
[generic]                  269     628  42.8% -lh5- ee13 Jun  2 21:06 PAR_READ/PAR_READ_Complex/Docs.info
[generic]                 1059    2438  43.4% -lh5- 6fbb Apr 16  2006 PAR_READ/PAR_READ_Complex/Docs/DC-Voltmeter.rexx
[generic]                  201     330  60.9% -lh5- 87d3 Jun  2 21:06 PAR_READ/PAR_READ_Complex/Docs/DC-Voltmeter.rexx.info
[generic]                 7907   21005  37.6% -lh5- 20e6 Jun  2 21:00 PAR_READ/PAR_READ_Complex/Docs/Manual
[generic]                  190     315  60.3% -lh5- 1fc2 Jun  2 21:06 PAR_READ/PAR_READ_Complex/Docs/Manual.info
[generic]                  799    1847  43.3% -lh5- 6dda Apr 16  2006 PAR_READ/PAR_READ_Complex/Docs/PAR.rexx
[generic]                  274     506  54.2% -lh5- c10b Jun  2 21:06 PAR_READ/PAR_READ_Complex/Docs/PAR.rexx.info
[generic]                 2764    7798  35.4% -lh5- 6120 Jun  2 21:19 PAR_READ/PAR_READ_Complex/Docs/PAR_Device
[generic]                  193     315  61.3% -lh5- e108 Jun  2 21:19 PAR_READ/PAR_READ_Complex/Docs/PAR_Device.info
[generic]                   31      31 100.0% -lh0- 6750 Apr 16  2006 PAR_READ/PAR_READ_Complex/Docs/VM
[generic]                  381     622  61.3% -lh5- 3e69 Jun  2 21:06 PAR_READ/PAR_READ_Complex/Docs/VM.info
[generic]                 1392    3125  44.5% -lh5- d547 Feb 23  2006 PAR_READ/PAR_READ_Complex/ReadMe-First
[generic]                  201     330  60.9% -lh5- f94c May  7  2006 PAR_READ/PAR_READ_Complex/ReadMe-First.info
[generic]                  504    1008  50.0% -lh5- 7d99 Apr 16  2006 PAR_READ/PAR_READ_Complex/Warning
[generic]                  200     330  60.6% -lh5- 1d79 May  7  2006 PAR_READ/PAR_READ_Complex/Warning.info
[generic]                  265     628  42.2% -lh5- ef60 May  7  2006 PAR_READ/PAR_READ_Simple.info
[generic]                 1028    2218  46.3% -lh5- c4f9 Jun  2 20:51 PAR_READ/PAR_READ_Simple/Clocks
[generic]                  197     330  59.7% -lh5- ee73 Jun  2 20:51 PAR_READ/PAR_READ_Simple/Clocks.info
[generic]                 1737    4676  37.1% -lh5- 01fa May  7  2006 PAR_READ/PAR_READ_Simple/Hardware
[generic]                  201     330  60.9% -lh5- 4f6e May  7  2006 PAR_READ/PAR_READ_Simple/Hardware.info
[generic]                 4940   12999  38.0% -lh5- 9893 Jun  2 21:03 PAR_READ/PAR_READ_Simple/Manual
[generic]                  193     315  61.3% -lh5- 907c Jun  2 21:03 PAR_READ/PAR_READ_Simple/Manual.info
[generic]                  798    1847  43.2% -lh5- 0cc6 Apr 23  2006 PAR_READ/PAR_READ_Simple/PAR.rexx
[generic]                  360     601  59.9% -lh5- e0e2 May  7  2006 PAR_READ/PAR_READ_Simple/PAR.rexx.info
[generic]                 1392    3125  44.5% -lh5- d547 Feb 23  2006 PAR_READ/PAR_READ_Simple/ReadMe-First
[generic]                  199     330  60.3% -lh5- e80a May  7  2006 PAR_READ/PAR_READ_Simple/ReadMe-First.info
[generic]                  504    1008  50.0% -lh5- 7d99 Apr 16  2006 PAR_READ/PAR_READ_Simple/Warning
[generic]                  199     330  60.3% -lh5- a40d May  7  2006 PAR_READ/PAR_READ_Simple/Warning.info
[generic]                 1392    3125  44.5% -lh5- d547 Feb 23  2006 PAR_READ/ReadMe-First
[generic]                  200     330  60.6% -lh5- 7953 May  7  2006 PAR_READ/ReadMe-First.info
[generic]                  504    1008  50.0% -lh5- 7d99 Apr 16  2006 PAR_READ/Warning
[generic]                  201     330  60.9% -lh5- 4e51 May  7  2006 PAR_READ/Warning.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        51 files  349944  413629  84.6%            Jun  2 18:55
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>