[71B, FRAM71] Using a USB GPIB interface to load files on a 71B
|
05-16-2015, 11:09 PM
Post: #1
|
|||
|
|||
[71B, FRAM71] Using a USB GPIB interface to load files on a 71B
I wrote a perl script, copyil.pl, and a companion 71B BASIC program, COPYIL, to copy files from a Linux/Unix/OS X box to the 71B using a Prologix GPIB-USB controller (FW version 6.101) and the 82169A HP-IL/HP-IB Interface. With a bit of change this should work with the Prologix GPIB-Ethernet or, with possibly even more changes, other vendor's GPIB interfaces. This should also be usable on Windows with some suitable binmode settings made in the perl script.
The configuration that I've tested with is MacBook Pro <-> GPIB-USB (address 2) <-> 82169A (transparent mode, address 1 assigned by the 71B) <-> 71B (HP-IL controller). You can point copyil.pl at multiple LIF files or directories to download several during one session. Any directory with a name of :main or :port(d) (case insensitive) will be used to set the destination device name for the files contained within. By default, the target device name is :MAIN. Code: copyil.pl [-bdr] [-h hexaddr] [-p port] pathname [...] To bootstrap COPYIL into 71B, you first run copyil.pl -r copyil.b71 on the host, then issue COPY :2 on the 71B. It can also be used to upload binary image files, such as for ROMs, if you run copyil.pl -h <hex address> binary-image-file. COPYIL does this by POKEing the hex data received from the host. Note to those uploading images, be sure to target a FRAM area that has been configured in the middle of system RAM, so as to avoid either clobbering COPYIL at the low end of memory and the stacks and buffers at the high end of memory. You are responsible for determining the correct address, CONFST, below may be useful. There is rudimentary handshaking and some error detection. Always start copyil.pl first, then run COPYIL on the 71B. copyil.zip (Size: 5.09 KB / Downloads: 4) I also wrote a program, CONFST (named after the symbolic address of the OS tables), inspired by Paul's MEMBUF, that displays the configured devices and memory type as a string (SRAM, IRAM, ROM, IO) . RAM and ROM sizes are reported in KB, IO registers in nibbles. Code: Pt Dv Size Addr Type confst.zip (Size: 2.09 KB / Downloads: 3) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
[71B, FRAM71] Using a USB GPIB interface to load files on a 71B - cruff - 05-16-2015 11:09 PM
RE: [71B, FRAM71] Using a USB GPIB interface to load files on a 71B - Dave Frederickson - 05-16-2015, 11:51 PM
RE: [71B, FRAM71] Using a USB GPIB interface to load files on a 71B - cruff - 05-17-2015, 12:15 AM
RE: [71B, FRAM71] Using a USB GPIB interface to load files on a 71B - Dave Frederickson - 05-17-2015, 12:28 AM
RE: [71B, FRAM71] Using a USB GPIB interface to load files on a 71B - Dave Frederickson - 05-22-2015, 09:23 PM
RE: [71B, FRAM71] Using a USB GPIB interface to load files on a 71B - cruff - 05-23-2015, 12:25 AM
|
User(s) browsing this thread: 1 Guest(s)