Using your HP-65 as a clock! - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Using your HP-65 as a clock! (/thread-252345.html) |
Using your HP-65 as a clock! - Don Shepherd - 10-06-2013 When I obtained an HP-65 years ago, it came with a user program card called "set time hh.mmss". I always wondered what this did exactly, and I finally got around to actually running it and discovered that it causes the HP-65 to display the time of day, based upon your hh.mmss input via the A function key. It updates about every 5 seconds and runs until you stop it. The time display looks like this, assuming it is 06:22:13
88.062213 0.0. I don't know how they got the extra periods in there, but it does seem to keep reasonably accurate time. This is the code. You load the program, enter the current hh.mmss and press the A function key. Pretty cool.
lbl a I would welcome comments on exactly how this code works, it is a bit beyond my understanding.
Edited: 7 Oct 2013, 5:00 p.m. after one or more responses were posted
Re: Using your HP-65 as a clock! Neat! - Geoff Quickfall - 10-06-2013 Will try when I get home. Should the display say 18 instead of 88? A simple sub checking the display for greater then 24 or 12 should work, but you are correct about the code!
Geoff
Re: Using your HP-65 as a clock! Neat! - Don Shepherd - 10-06-2013 Thanks Geoff. No, it says 88 at the beginning of the display. Interestingly, if I enter time 23.5940 and press A, in 20 seconds it says 88.240000, so it doesn't handle the midnight rollover.
Re: Using your HP-65 as a clock! - Duane Hess - 10-07-2013 What do the lines E3, e16, 5e mean? ENTER then 03? ENTER then 01 06? 05 then ENTER? or something else?
Re: Using your HP-65 as a clock! - Les Bell - 10-07-2013 Quote: It's been years since I've owned a 65, but at a guess:
EEX 3 as a way of shifting the numbers to the right position in the display. Best,
--- Les Re: Using your HP-65 as a clock! Neat! - Bill (Smithville, NJ) - 10-07-2013 Hey Don, I've entered the program into the GO65C emulator on my Nexus 7. I get a changing 4 digit prefix instead of the 88 that you have. But the timer does work fine, updating every 5 seconds or so. As to rollover, it'll count to 99 hours, 59 minutes and 55 seconds and then roll over to 00.0000. Try entering 99.5950.
Bill
Re: Using your HP-65 as a clock! Neat! - Olivier De Smet - 10-07-2013 This is a very nice program. Having the real 88 display before the time in go65c seem quite difficult. The display is related to various hard timing on the cathode driver. I used rough values for those timings (and not too short to avoid consuming too much battery). It seem that an old HP calc got a refresh around 100 up to 200 Hz for the leds, but my emulator use at max 20Hz. If you need an accurate timer, get go01c, this one has the accuracy of your android device :)
Olivier Edited: 7 Oct 2013, 8:26 a.m.
Re: Using your HP-65 as a clock! - Don Shepherd - 10-07-2013 Yes, Les is right, EEX.
Re: Using your HP-65 as a clock! Neat! - Bill (Smithville, NJ) - 10-07-2013 Olivier, Thanks for he explanation on the display differences. I was able, using the instructions on your site for the go67c) to save the data to a card and associated card pack. Is there any way to write protect the card in the card pack, so that I don't accidently overwrite it? Thanks for a great emulator.
Bill
Re: Using your HP-65 as a clock! Neat! - Olivier De Smet - 10-07-2013 To protect a card on go67c: Do as if you wanted to load a card, then choose the one you want to protect, use 'Edit Infos'. Check 'Protected' then 'Ok' . Then use 'menu' and 'save' your pack to write the data back.
Olivier
Re: Using your HP-65 as a clock! Neat! - Bill (Smithville, NJ) - 10-07-2013 Okay - I see it now. Thanks.
Bill
Re: Using your HP-65 as a clock! - Katie Wasserman - 10-07-2013
Pretty cool! This works exactly as stated on my "real" HP-65, the
Obviously there's some synthetic programming going on here. I'm just
According to
Edited: 7 Oct 2013, 3:39 p.m.
Re: Using your HP-65 as a clock! - Don Shepherd - 10-07-2013 Thanks Katie. I remember getting those CDs and looking at them for anything having to do with synthetic programming for the 65, but I don't recall finding anything. As I recall, they weren't easily searchable. I'll have to hunt them down, I must have filed them in the basement somewhere, that was almost 7 years ago.
Re: Using your HP-65 as a clock! Neat! - Jim Horn - 10-07-2013 Actually, it assumes a 12 hour clock and rolls over at 13:00 to 1:00 so rollover works twice a day, as desired. If you use a 24 hour clock, change the "13" to "25" and you're all set. No synthetic programming is used. The trick is an understanding of how the HP-65's flashing display is controlled during program operation. The shifting of the display and controlled exponent value end up making the display show a useful value - the time - instead of apparently random stuff. For a machine without a PAUSE or display-while-running command (like the HP-41's AVIEW or such), it is limited but can be very useful.
I never had the much-admired HP-65 but it's great to see such code!
Re: Using your HP-65 as a clock! - Jim Horn - 10-07-2013 I don't have my CD handy but look for the "Rhapsody in Space" article circa 1976. The author ended up figuring out exactly how the flashing display during program running is controlled as well as the very non-obvious internal architecture of the dynamic shift register 6 bit program memory of the '65. *No* RAM or return stack or program address lines. When the '67 came out, its increase in performance and capability was only matched by a much more conventional internal architecture, thanks in part to its Woodstock heritage.
Re: Using your HP-65 as a clock! Neat! - Don Shepherd - 10-07-2013 Thanks Jim, that's great to know. I emailed the fellow I bought the 65 from 7 years ago (amazingly, he has the same email address!) and asked him if he wrote that code, and he replied and said he can't remember.
Re: Using your HP-65 as a clock! - Kimberly Thompson - 10-07-2013 Don
I can not say who wrote the original HP-65 clock program, but two sources may illuminate the question for further inquiry. Quote:... provided by the program author on the following page. I can provide the listing (for comparison) if there is any interest.
BEST! Edited: 7 Oct 2013, 6:05 p.m.
Re: Using your HP-65 as a clock! - Don Shepherd - 10-07-2013 Yeah, Kimberly, I'd like to see that program so I can see if it has the same effect as the one I listed above. Thanks, Don
Re: Using your HP-65 as a clock! - Kimberly Thompson - 10-08-2013 Don
As requested; 01 . 83 30 * 71 59 2 02To use the program, key the start time in the format HH.mm and press A. Steps 14 & 15 can be changed to calibrate each individual machine. The program is for a 24-hour clock. If a 12-hour clock is desired, steps 59 & 60 could be changed to 12 instead of 24.
BEST!
SlideRule
Re: Using your HP-65 as a clock! - Don Shepherd - 10-08-2013 Thanks for this, Kimberly. I'll try it and report back what I find.
Re: Using your HP-65 as a clock! - Don Shepherd - 10-08-2013 This program also shows the time, but in a different format and it updates the screen each second. On the left of the display is a 3-digit number that seems to be increasing, followed by a space, followed by the hhmmss, followed by 2 spaces. When the minute changes, there is more flashing, and the seconds for the new minute seem to be off by a small amount, it's hard to tell. This is very interesting stuff. I never knew that the flashing digits during program execution on the 65 could be controlled in any way by the user, so this is cool. I'd like to see a writeup about exactly how this occurs.
Thanks again, Kimberly, for this gem from the past.
Re: Using your HP-65 as a clock! - Dale Reed - 10-08-2013 I grew up on the HP-25, but I assume EEX on the 65 works similarly. On the 25, if I key in EEX 1 1 ENTER, I get 1.0e11 on the stack. Typing EEX with NO digits before it puts +1.0 in the mantissa and immediately goes to entering the exponent of 10. Hitting CHS while entering the exponent changes the sign of the exponent (not the mantissa). So EEX 3 means enter 1.0e03, EEX 1 6 means enter 1.0e16, and 5 EEX CHS 4 (or 5 EEX 4 CHS) means enter 5.0e-04. So, yes, I would agree that these are related to decimal shifting.
Hope this helps. Re: Using your HP-65 as a clock! - hey Jake! - Don Shepherd - 10-09-2013 Well, I finally found the CDs Jake sent me 7 years ago and I found the "Rhapsody in Space" article. The article describes a program that was written by Dick Hoppe. When he wrote it to the mag card on his 65, an error in the card reader apparently caused an invalid hex code to be encoded on the card, and this caused very unexpected behavior. The program could not be duplicated by typing in the keycodes from the keyboard, you had to have a physical copy created from the original card.
Very interesting article. Jake, if you see this, I'd like to post a pdf of the page containing the article, but I would want your permission to do that first. Edited: 9 Oct 2013, 9:52 a.m.
Re: Using your HP-65 as a clock! - hey Jake! - Jake Schwartz - 10-09-2013
Quote: Hi Don, Please post it! The material doesn't belong to me; I'm only making copies available to whomever would like it. Thanks,
Jake
Re: Using your HP-65 as a clock! - hey Jake! - Don Shepherd - 10-09-2013 Thanks Jake. Here it is, along with another brief article from the following issue.
|