The Museum of HP Calculators

HP Forum Archive 09

[ Return to Index | Top of Index ]

HP41 program storage
Message #1 Posted by Jay on 3 Nov 2002, 9:01 a.m.

Is there a method of writing and reading an HP41 program using the HP-IL module to an RS-232 port connected to an IBM-PC, so it can be recalled into calculator memory? I am looking to replace my aged cassette tapes and card reader with storage on a CD-R, so I'd like to find something equivalent to WRTP and READP that would work over the RS-232 link. Perhaps a binary image could be written using synthetic programming and the PPC-ROM? -Jay-

      
Re: HP41 program storage
Message #2 Posted by Emmanuel, France on 3 Nov 2002, 9:39 a.m.,
in response to message #1 by Jay

Yes. You can use the Extended I/O HP82183A. The functions INP and OUTP are made for that. I use mine with an HP82169A IL/IB interface and HP82335A on PC. I recover or send data to/from PC using HP Interactive HP-IB software. But with HP82164 RS232c interface, you can use Win 3.1 Terminal.exe, Procomm, ...

            
Re: HP41 program storage
Message #3 Posted by Jay on 3 Nov 2002, 10:20 a.m.,
in response to message #2 by Emmanuel, France

Many thanks for the tip on using INP and OUTP! My IL knowledge is pretty rusty after 15 years of neglect, but I have the Extended I/O HP82183A, an HP62160A IL module, a HP82164A RS-232 unit, and even have a copy of Procomm! -Jay-

                  
Re: HP41 program storage
Message #4 Posted by Emmanuel, France on 3 Nov 2002, 10:38 a.m.,
in response to message #3 by Jay

First set your HP82164A and Procomm lines correctly
.
Please refer to the interface user's manual.
On PC by Alt P, enter for instance 11 (9600,N,8,1), choose you COM port, ...
Saving to PC:
On PC, down 2x arrow (DOWNLOAD), 7) ASCII, File Name, ENTER
On HP-41, ALPHA program name ALPHA XEQ'OUTP
Getting from PC:
On HP-41, ALPHA program name ALPHA XEQ'INP
On PC, up 2x arrow (UPLOAD), 7) ASCII, File Name, ENTER
To be continued ...
                        
Re: HP41 program storage
Message #5 Posted by Jay on 3 Nov 2002, 1:19 p.m.,
in response to message #4 by Emmanuel, France

Hi Emmanuel, Well, I have some success to report, using Procomm or Hyperterminal I can capture a hex file version of a program by using the command OUTP. However, INP shows READ ERR on the 41c. Any suggestions? -Jay-

                              
Re: HP41 program storage
Message #6 Posted by Emmanuel, France on 3 Nov 2002, 1:36 p.m.,
in response to message #5 by Jay

I think the buffer of HP82164A is too small. Please take a speed under 9600. Try 4800, 2400, 1200, 600 and worst 300. Let me know if OK.

                                    
Re: HP41 program storage
Message #7 Posted by Jay on 3 Nov 2002, 3:08 p.m.,
in response to message #6 by Emmanuel, France

I dropped the speed of the interface to 300 baud, and now see GOTO, PACKING, TRY AGAIN when I try to receive the hex file. Both sides of the RS-232 interface are set at 300, N, 8, 1. The file I'm trying to receive is 79 lines. The HP41C is empty of programs, has a quad memory module, and I executed SIZE 050, and did a GOTO, PACKING, prior to attempting to receive the file. -Jay-

                                          
Re: HP41 program storage
Message #8 Posted by Emmanuel, France on 3 Nov 2002, 3:34 p.m.,
in response to message #7 by Jay

You have not enough place in your program memory. If you have a X-Functions please SAVEP one of your program and then CLP it in program memory. Later you'll GETP it.

                                                
Re: HP41 program storage
Message #9 Posted by Jay on 4 Nov 2002, 11:34 a.m.,
in response to message #8 by Emmanuel, France

Looks like the problem with INP is I'm getting a corrupted download. I tried importing a much smaller hex file at 300 baud, N, 8, 1, the SETRS program that Chris gave as an example (Thanks Chris!), and a few lines were received ok, but there were numerous extra lines with extraneous commands. I'm at least getting something across the wire, so will try a 7-bit xfer next. Thanks for all the help!

                              
Re: HP41 program storage
Message #10 Posted by Chris(FLA) on 3 Nov 2002, 2:46 p.m.,
in response to message #5 by Jay

You might want to turn on flow control on both ends.

This is text from Tony Duell's lifutils hardware setup instructions.

Configuring the interfaces
---------------------------

On the PC, turn off buffering and enable hardware handshaking:

On the HP41, load the SETRS program and run it to set the HP82164 interface to hardware handshake mode and to make it the primary device. A binary file of this program is given in hardware/setrs.p41 in the lif_utils distibution, and is given as a listing below :

0001 LBL "SETRS" 0002 66 0003 FINDAID 0004 SELECT 0005 CF 17 0006 REMOTE 0007 "SL2" 0008 OUTA 0009 "LI5" 0010 OUTA 0011 "C0" 0012 OUTA 0013 NOTREM 0014 END

Give this a try. I use my PC with Linux and Tony's lifutils as my storage system for my 41 and 71. Works a treat.

Good luck

Chris


[ Return to Index | Top of Index ]

Go back to the main exhibit hall