The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

HP50g switch between USB to SERIAL
Message #1 Posted by fabrice on 30 Dec 2009, 5:09 a.m.

Hi all, i need a little help, i have an HP50G. in the menu APPS -> I/0 functions its possible to change the communication way between 3 choices : -USB -IRDA -SERIAL i need to do it by program, if possible in RPL or to have an utility that take as entry my choice and do the job. can someone help me ? i have ever look in the FLAGS

fabrice

      
Re: HP50g switch between USB to SERIAL
Message #2 Posted by Vieira, Luiz C. (Brazil) on 30 Dec 2009, 6:36 a.m.,
in response to message #1 by fabrice

Hi;

have you compared flags contents (RCLF) before and after setting one of the two port comm modes? IIRC one of the flags controls it but is not listed in the Flags Mode, Choose list...

I am not with an HP50G in hands right now, sorry...

Luiz (Brazil)

Edited: 30 Dec 2009, 6:52 a.m.

      
Re: HP50g switch between USB to SERIAL
Message #3 Posted by Tim Wessman on 30 Dec 2009, 4:40 p.m.,
in response to message #1 by fabrice

System flag 78.

TW

            
Re: HP50g switch between USB to SERIAL
Message #4 Posted by fabrice on 31 Dec 2009, 2:05 a.m.,
in response to message #3 by Tim Wessman

thank's for your precious help fab

            
Re: HP50g switch between USB to SERIAL
Message #5 Posted by C.Ret on 31 Dec 2009, 2:35 a.m.,
in response to message #3 by Tim Wessman

HI,

Sorry for my naïve remark, I have never touch a HP50g.

How can a single (binary) flag be the director of a three-state positon (USB - IRDa - SERIAL) ? Is this flag more than binary (set or down) or is there samewhere another trick I am missing ?

Thank to elucidate this and bring me the light of understanding.

                  
Re: HP50g switch between USB to SERIAL
Message #6 Posted by Vieira, Luiz C. (Brazil) on 31 Dec 2009, 5:37 a.m.,
in response to message #5 by C.Ret

Hi;

flag 78 controls only cable selection (USB or Serial).

Cheers,

Luiz (Brazil)

Edited: 31 Dec 2009, 6:48 a.m.

                  
Re: HP50g switch between USB to SERIAL
Message #7 Posted by Don Shepherd on 31 Dec 2009, 6:56 a.m.,
in response to message #5 by C.Ret

I am not familiar with how the 50g works, but perhaps the flag is not binary. Perhaps it can be 1, 2, or 3.

                        
Re: HP50g switch between USB to SERIAL
Message #8 Posted by Vieira, Luiz C. (Brazil) on 31 Dec 2009, 7:45 a.m.,
in response to message #7 by Don Shepherd

Hi;

all flags in the HP50G (all-purpose, user flags or system flags) are binary: cleared (0) or set (1). They can be tested with one of two possible answers: true (1) or false (0). One single bit only.

Cheers.

Luiz (Brazil)

                  
Re: HP50g switch between USB to SERIAL
Message #9 Posted by Tim Wessman on 31 Dec 2009, 10:04 a.m.,
in response to message #5 by C.Ret

Sorry about that.

The only problem with setting it problematically is that flag 78 doesn't show up in the flag list. Flag 33 sets either IR or wire, and then if 33 is clear so wire is active, 78 set means serial instead of USB.

TW


[ Return to Index | Top of Index ]

Go back to the main exhibit hall