Let's troubleshoot and fix this Commodore PET
Вставка
- Опубліковано 11 бер 2022
- #commoore #rgb2hdmi #repair #diagnostics #romulator
Fractional free RAM no more! Let's dig into figuring out what is causing the PET to misbehave so I can figure out exactly which chip is bad to get this great machine up and running again.
--- Video Links
Part 1: • This Commodore PET has...
Part 2: This part!
RGB2HDMI profiles for the PET with CRTC: (these will be included in the RGB2HDMI release)
github.com/misterblack1/rgb2h...
Romulator RAM/ROM FPGA based Replacement: (VIC-20 video)
• Replace your 6502 comp...
Commodore PET 2001 Series:
Part 1: • The Commodore PET Rescue
Part 2: www.youtube.com/watch?v=3Jyuk...
Part 3: www.youtube.com/watch?v=Y4BTf...
Part 4: • PET Rescue Part 4 - It...
Zimmer's archive of PET schematics:
www.zimmers.net/anonftp/pub/cb...
Commodore PET Diagnostic clip on ROM:
www.6502.org/users/andre/petin...
RGB2HDMI Github repo:
github.com/IanSB/RGBtoHDMI
Buy a RGB2HDMI:
texelec.com/product/rgbtohdmi... (includes the Raspberry Pi Zero)
retrohackshack.com/product/rg...
Adrian's Digital Basement ][ (Second Channel)
/ @adriansdigitalbasement2
Support the channel on Patreon:
/ adriansdigitalbasement
-- Tools
Deoxit D5:
amzn.to/2VvOKy1
store.caig.com/s.nl/it.A/id.16...
O-Ring Pick Set: (I use these to lift chips off boards)
amzn.to/3a9x54J
Elenco Electronics LP-560 Logic Probe:
amzn.to/2VrT5lW
Hakko FR301 Desoldering Iron:
amzn.to/2ye6xC0
Rigol DS1054Z Four Channel Oscilloscope:
www.rigolna.com/products/digi...
Head Worn Magnifying Goggles / Dual Lens Flip-In Head Magnifier:
amzn.to/3adRbuy
TL866II Plus Chip Tester and EPROM programmer: (The MiniPro)
amzn.to/2wG4tlP
www.aliexpress.com/item/33000...
TS100 Soldering Iron:
amzn.to/2K36dJ5
www.ebay.com/itm/TS100-65W-MI...
EEVBlog 121GW Multimeter:
www.eevblog.com/product/121gw/
DSLogic Basic Logic Analyzer:
amzn.to/2RDSDQw
www.ebay.com/itm/USB-Logic-DS...
Magnetic Screw Holder:
amzn.to/3b8LOhG
www.harborfreight.com/4-inch-...
Universal ZIP sockets: (clones, used on my ZIF-64 test machine)
www.ebay.com/itm/14-16-18-20-...
RetroTink 2X Upconverter: (to hook up something like a C64 to HDMI)
www.retrotink.com/
Plato (Clone) Side Cutters: (order five)
www.ebay.com/itm/1-2-5-10PCS-...
Heat Sinks:
www.aliexpress.com/item/32537...
Little squeezy bottles: (available elsewhere too)
amzn.to/3b8LOOI
--- Links
My GitHub repository:
github.com/misterblack1?tab=r...
Commodore Computer Club / Vancouver, WA - Portland, OR - PDX Commodore Users Group
www.commodorecomputerclub.com/
--- Instructional videos
My video on damage-free chip removal:
• How to remove chips wi...
--- Music
Intro music and other tracks by:
Nathan Divino
@itsnathandivino - Наука та технологія
When I saw FF flip to F7 I knew it was the right path - it's the same bit that as when AA flipped to A2.
at 20:55 when he says "This part of the memory should be all AA's" and there were 3 bytes of A2's as it scrolled by I was screaming at the computer!
I'm amazed that the machine ran as much as it did with a flaky bit in each byte of RAM.
One thing i really like about your videos is the fact that you show your viewers that no matter how good can someone be at repairing stuff there's always mistakes happening at human level and that is completely fine, instead of discouraging about the repair you just laugh about it and keep going.
Great video
Keep the good work
I loved this. In the eighties my elementary school in North Vancouver (Burrard View, long since bulldozed) had one of these The first and only computer at the time. Spent my lunch hours being antisocial ioading basic games with a tape. Def enjoyed first programming with basic. Thanks to Mrs Stewart (d?) For your forward thinking and the soon to arrive apple IIc and uncountable hrs playing Evolution and Logo. Pretty sure I still have a floppy disk notcher in Canada to make them double sided. :). If you were lucky you could borrow one of the three computers over the summer break. My first actual computer was a Ti994a. Loved it. Had to spend days with my Dad typing in then debugging code from a magazine . No disc. Just printed text to re type and save on the Sony tape drive attached with a headphone cable. Then on to C128, 286, 386 etc etc .... Never as much fun..
I was living just off Broadway at the time the Pet was being sold at the CBM store on Broadway. It was around 3000 dollars. A few blocks up Broadway was a Apple Store, Atari store and a RS Shack. All long gone now. Ended up buying a CoCo1 . Good times on that corner of Broadway. So many computer stores.
Hello neighbour! I did not have a TI99, but a friend of mine did. It was an interesting machine all right. To me, the fun stopped with "PC". The PC has none of the charm or personality of the earlier micros. Of course that's the main reason the PC won out-a generic, bland architecture is an easier target to program for than dozens of incompatible, yet far more interesting platforms. Even so I will not forget the excitement of discovering the seemingly limitless potential of the computer. It was a whole new world. I have fond memories of learning the idiosyncrasies of each machine. It was not the way forward, but I'll never forget the Golden Age of computing. :)
Oh, yes. Fond memories of those type in programs, even though half the time it didn't work right either because I made a mistake or because THEY made a mistake and didn't print a correction until the following issue...
One of your best episodes yet Adrian! I love how you used the classic “deduction and reasoning” approach to troubleshooting vs the “swap parts and pray” technique to fix this classic computer. Lots of valuable lessons to be learned…
Indeed, Marco! Here's to logic! \\//
Love that moment you realised your mistake of the vertical position 🤣 it's one of those moments you can't get mad, you just have to laugh at yourself 🤣🤣
Awesome video as always Adrian. Keep up all your awesome work 👍
From time to time you amaze me with your knowledge and the way you are thinking. Amazing job!
Thanks Adrian, this really takes me back! In the 80’s I owned a succession of Pets and one summer I wrote an accounting system on one for a friend who wanted to automate his law office. You could do a lot with these machines with a little work
Having been born in 87, these computers are past my time and I know nothing about them but this is still very interesting to watch.
As a non-regular viewer but 1979 Commodore CBM3016/32 user (as thy were named in The Netherlands) this was a lot of fun to watch!
Man, I'll bet computer techs would have been drooling to have diagnostic tools like that ROMulator back in the day.
Great to see it up and running, a pet is not just for Christmas with some loving fixes it could last a life time 😀
That's some next level troubleshooting you did there Adrian!
I fully agree with your statement in the outro: Thorough Diagnosis is the most important step of any repair ever. It's all about zooming in and understanding what's really going on under the hood before you order an entirely new engine ;-) It's also empowering to actually use one's diagnostic mindset to find the truth, get to know failure modes and learn new things by discovering them. If everyone would have this mindset the world would be a better place ;-)
Wholeheartedly agree with the sentiment, but sometimes you have to zoom *out* instead of in to see the big picture and find the problem...
@@kepanoid Funny that you mention that, Aki. I'm good at zooming in.. Zooming out: Not so much. I guess that's why I forgot it..
I guess we all have to make do with the means available to us ;-)
Glad to see you now have it 100.01066% fixed! ;-)
I do love seeing computer history being kept alive, with modern solutions :)
in defense of re-capping, they usually go bad over time anyway. iv'e salvaged half a dozen monitors from the e-waste bin with a relatively inexpensive re-capping. it works more often than not.
Also, if you suspect bad caps, you should recap before doing any further diagnostics that would involve applying power to the potentially bad caps, as they are a very real fire/explosion hazard.
I love how in-depth this two part repair is. Seems like the kind of stuff I'd never figure out. Also props for somehow getting stuff from people who actually worked at Commodore.
Your best video yet. All the things you did for diagnostics i used before but not in this way. The way you used it was epic and is proof of your skills and understanding the way a computer works !
I bought one of those same Portland Public Schools PET 4016 on e-bay 4-5 yrs ago, advertised as not working, with screen shot of screen full of garbage, same School engraving above the keyboard and label on side of monitor. When it arrived, on power up , it did just 1 audio chirp (not normal 4 chirps) and a FULL screen of random garbage characters. In the end, it turned out to be 1 bad RAM chip, same ITT brand 4116, datecode 8123, it was the RAM slot all way to rear (UA19 - bit 0(universal board), found it by doing the piggyback method of sticking a good 4116 RAM on top of each of 8 RAM chips one at a time until machine booted properly. Was working fine for several months, than I packed it away. Maybe 6-12 months later got it out. It booted up a few times OK, then next time totally died, appeared dead, no chirps, nothing on screen. In the end, turned out to be another bad one of the old original ITT 4116 RAM, this time RAM slot UA7 - bit 6(close to front), found by same method of piggybacking RAM until it booted. After that, I replaced all remaining original RAM chips and even populated the other 8 blank RAM slots to expand from 16k to 32k. So 1 single bad RAM on these can cause all sorts of different symptoms, from appearing totally dead, to many other random symptoms.
It's true -- as simple as tone of them trashing the bus can keep it from reading the ROMs right which would stop the machine from running the KERNAL ROM (and initializing the screen) I've had limited success with the piggyback method because it basically creates a bus conflict if the soldered chip is still working but giving bad data... but as you mention, it can help and it doesn't hurt to try!
Awww... It rather tickled me that a PET would have a "floating point" amount of RAM.
Silliness aside thanks for another excellent video.
It wasn't uncommon for eight bit computers to store all numbers , even integers, as floating-point.
It is interesting that you mention your troubleshooting philosophy. When someone thinks about what might cause a problem, then tests it in one spot, thinks some more, tests another spot, I call this the "engineering" approach because I've seen a lot of engineers use this method. I have worked my entire career in IT, but my formal education is in biology. In biology you don't generally have a single test point, so you have to choose some test that eliminates a bunch of variables (preferrably half). Then you choose another test that halves those variables. You quickly come to one variable. It is essentially a "shotgun" approach because you kind of don't care what the cause is until the end. I find this approach highly effective and fast when debugging circuits.
Thing is, when taking a shotgun approach you create many risks. Removing chips randomly from a board can easily cause damage, creating an additional problems beyond the initial one. It's also expensive when you are dealing with an old machine where parts are not just readily available. Finally, if you don't understand the problem (and the subsequent solution) you aren't likely to end up on the right solution with something as complex as a computer.
WHen something is seemingly a common problem and it takes a moment to try an alternate part you already have on hand, of course it's worth doing and nothing further is to be done... but when trying that means desoldering parts from a 40 year old computer, you instantly introduce considerable risk to the integrity of the machine.
Heh. Any moment now I expect to hear, "It works! It freakin' works!" This was fun to watch. Your troubleshooting path shows in-depth knowledge, and does pinpoint the problem so that minimal components are swapped to correct the problem. Well done!
My first experience with PET computers was back in the early 1980's, grade 8 and high school!
Incredibly cool troubleshooting here, love it!
Idea: remake the tester with the clip you salvaged (assuming it is still usable), and use a custom chip that's configurable for various versions
Heya Adrian, great video, but heads up you have a typo in your tags on this video "#commoore"
great video loved your process to solve the issue !
I'd love to have that startup tone on a modern (well, compared to the PET anyway!!) PC rather than the standard beep, makes the computer sound more computery... :D
Some of commodores pc clones have the pet beep on boot.
Nice repair! 👍 Great, that only one RAM was the issue all the time..
I'm actually surprised you needed the calculator to check the bits, I would have thought you'd be able to figure that out without it since hex to bin is pretty straightforward.
Nice TS with tools and knowledge you have. Thanks for sharing!
Fantastic troubleshooting. Loved it!
Really fun riding along on the diagnosis of this, really fascinating to take the delicate approach versus the shotgun. Nice!
Great video :D Love your aproach to fixing old computers.
Great diagnostics video, Adrian! Really enjoyed seeing how you got around a couple huge obstacles there to boil it down to that one chip.
Your channel is strangely addictive! Thanks
My main Commodore experience came from the PETs at the Atomic Museum which became the Museum of Science and Energy (Oak Ridge, TN) (until I went 100% Amiga). I was completely into the DEC PDP 11 series. It is extremely interesting seeing how this hardware works! Thank you very much! I enjoy your videos.
Yup, in the automotive field we call it the Parts Cannon
I really like how you used the ROMulator as an alternative to the "parts cannon." It was very effective. :)
Very cool! Thanks for sharing this. Love it. These old computers are fascinating to me.
Very well done... great detective work.
Once you figured out that the 4th bit was getting zeroed all you had to look for is a difference of 8 in the numbers. Like 49 changing to 41 or AA changing to A2. So, with this in mind you can see it messing up the line numbers of the BASIC program, changing line 10 to line 2.
Great video. I feel my brain getting a tiny bit larger every time I watch your troubleshooting skills in action. Great sign off message that proper troubleshooting is worth its weight in gold.
An outstanding episode Adrian.
Adrian, you are amazing and awesome at this craft!
This reminds me of a Techmoan video where it was just him solving a problem. Good stuff.
Great video Adrian! Much better technique than throwing parts at the problem.
Nice work and great explanation!
Very cool to have a programmable drop-in replacement and the headspace to use it. Thanks for inviting us to follow along. Given what looks like a hardware issue I would have started with an oscilloscope on the data and address lines. Sometimes a bad chip will pull the signal toward a rail when it shouldn't or chime in with something close to the middle when selected. If it shows on screen the fix is usually easy.
It's true that step-by-step troubleshooting is rare, but that's just because the "fix it with a hatchet" approach is just so enticing. Once back in the day a friend of mine gave me a Windows-95 PC that belonged to a family member. It's obvious now that it had a corrupted registry entry two. I just upgraded it to Windows-98 and put in some extra ram for good measure. Not exactly a stellar performance on my part, but it still made me look like a hero. 🤣
Very thorough, great job!
This vid had SO much good stuff in it. An instant classic.
That was a great video... I love to watch the diagnostic process in action. It's funny, for me, I get this massive feeling of nostalgia the moment I see a short BASIC program all full of PEEK and POKE.... it's like I'm a kid again.
Great job, your diag skills are very good.
Great job troubleshooting your PET! Very clever using the Romulator to get the machine working to the point where you can do proper troubleshooting. You could probably have figured it out using a scope to check all the lines on the RAM chips. But like you said, it's a bit of a shot in the dark. Especially if it's sort-of working some of the time.
Sweet enginerding music, soothing, relaxing.
FIRE THE PARTS CANNON!!!!!!!!!!!!!!
props to you for proper diagnostics
Great video. Must get me one of those romulator boards at some point.
Great job Adrian
Great stuff!. Well diagnosed.
The ROMulator looks to be a great diagnostic tool. Impressive bit of fault finding and an inspired work-around with the CSEL tie up resistor trick for the continuation of diags.
Nice catch! 👍
Great troubleshooting. I think 10 or 15 years ago I could think like you but now my mind is mush.
Although I never owned a PET, I enjoyed this video like an action movie! Loved the Romulator too.
Love the fact you're using Topaz as your font in PuTTY!
Shoutout to the person posting on the commodore newsgroups in 1994, being useful in 2022.
"You have snatched the digital pebble from my hand". You are worthy my son. 100 points awarded.
Talking about changing out parts blindly to try and fix things - way back during high school I had a teacher who said he knew a guy who was a great mechanic and he could fix any car. As long as the problem was bad spark plugs.
Great work!
Detective Adrian at work! :) Investigation bureau
Awesome video, mate! I Especially love your methodical approach to repair - so refreshing to see.
The one that bugs me, though, is what caused the RAM IC to fail in the first place? Yes, they are old and renown to be prone to failure but I would be suspicious of the PSU and in particular, the very old electro's that are perhaps way past their life expectancy.
If you were aiming to keep this glorious old machine running, I would strongly suggests replacing all the electro's - esp the filters in the PSU. Just my humble 2 pennies/cents worth. :)
Woot!! Love PET repairs.
Great adventure and experience 👍
36:52 "Shotgun," I like that. In some tech support circles like MS support, it's referred to as a "Silver Bullet."
Recapping a device depends on the age and the quality of the original caps. Some brands need to be replaced, on sight. A good ESR meter cap find others that need replaced. If there is a cluster in parallel, and one is bad, replace them all.
If you see a RIFA brand capacitor at the AC input of any electronics, replace it before it catches on fire.
I've used logical troubleshooting for 55 years. Routinely replacing a few high failure components isn't shotgunning, it is Preventive Maintenance.On some equipment just replacing those items will repair the device and prevent another trip to the bench. It's OK to troubleshoot to the last component. I did that at a factory, to learn how a board was supposed to work. It also allowed me to document needed changes in both production and design to create ECOs.
When you have to repair a lot of equipment, a few sub dollar components is a lot cheaper than the labor to go further.
When I was repairing a lot of C64 computers there was one brand of RAM that if you found one bad, the others weren't gong to lat much longer. Most customers just agreed to replace all eight as PM, but one demand that I only replace a single chip. another soon failed. Then another. It was finally the fourth repair that he decided to replace the remaining chips. He ended up spending three times what a single PM type repair would have cost.
I also had people that would have me troubleshoot a computer, then refuse the repair price. I gave them back, without question. One member of the Orlando Commodore club stormed into our next meeting and started screaming that
i was a fraud, that he had bought every chip that I had marked as defective,m but that it still didn't work. People started grinning at him. I replied, "I don't mark bad chips." He yelled, "You put dots of red paint on them!" People started laughing. "I put red dots on the good parts." I did this because some RAM chips had a green dot. He yelled, "You can't use red for that!" I just laughed and told him that I had 20 bottles of red model paint that I had bought for five cents each, and it was the only color that I could find at the time. His bill would have been $17. He spent over $60 buying ICs that he didn't need. (I used a resistor lead to touch to the paint, then the IC to leave the tiny dots. I marked them to keep from mixing them up with other chips.)
Another member was too cheap to pay me $5 to remove a ROM and install a socket for JiffyDOS so he pried the IC out of the board, ruining it. He had to pay me $25 to trade me for an already modified board.
Mr. Spock, can you scan the enemy ship?
No sir, they are romulators, they are sneaky and un-scannable.
Damn your vulcan logic! Fire oscilloscope probes! Man the test bench! Scotty, can you give me more troubleshooting?
Nay, captain, we are at maximum troubleshooting. Any more, i can't say she'll hold together!
You’re a frickin’ 8 bit genius.
Nice diag and repair.
Adrian...you are indeed an 8 bit force of nature. I cannot imagine there is an 8 bit system anywhere that would stand up against your sheer will to fix it. Misbehaving computers around the world beware.....😁
Hooray!! Also, bonus Nerding Out for dessert!
Your shotgun approach to repairs you mentioned sounds like what I know of as 'Left had corner' technique.
Where I worked, we had some very large logic boards, that thankfully used sockets for all the IC's. Several of the repairers there just started in the left hand corner and swapped IC's with a known good set until it worked.
Always glad to see another PET rescue! I think you're definitely going to want to keep a configuration on your ROMulator where pages 00 and 01 are replaced since those are going to be needed by BASICs, monitors, and whatever else you might use to debug what's actually not working.
If I were debugging this machine, the moment I began to suspect RAM or decoding logic might be a problem, I'd want to socket the RAM. One reason for that is if I wasn't sure if I could get something running in either a monitor or BASIC, I'd still have another option for debugging without replacing a single chip. Just rotate the RAM chips so that each one is in the next bit and the last in the first. It will still fail, but … is the failure different in any way? If it is, the problem is narrowed down to RAM (which is conveniently in sockets,) If not, it's decoding logic.
If the issue's in the RAM chips (it probably is), they're now conveniently in sockets anyway and I have some opportunity to test them easily. If it's not, though, I can use the list of what works to help me figure out which of the 74 series logic chips govern what isn't. Those I can test in my minipro.
I do love that replacing the zero and stack pages gave you enough of the system to debug things in-circuit. That ROMulator is a really useful device!
TL;DW: Just replace all the RAM chips in something this old. Otherwise watch Adrian's brilliant troubleshooting techniques!
I'd toss that ROM on a header card (after dumping for safe keeping) with some connectors for leads and an A-B switch: hook up the leads, fire up the PET, throw the switch and it takes care of disconnecting the ROM for you, no fuss. One socket on top, one underneath.
Hey Adrian, rewlly like the approach here.
But sticking to period correct troubleshooting methods is also fun 😊
Unfortunately the only way to troubleshoot this in the old days would be to remove all the RAM and ROM and swap in known good parts -- risking damage to the old PCB by all that rework. If the system works enough to run ML monitor I could have done it, but without that -- not a lot let you can do.
You could have made a simple assembly program to check which bit is wrong and loaded it into an EEPROM. But that probably would be too much work. Thanks for the videos :)
Man I loved this video... the part where you conected and disconnected both cables simultaneously looked like a bomb beeing disarmed... luckly it didn't exploded hahaha
Your methodology and penchant for saving stuff kinda makes you the more highly articulate, clean-cut, Shango066 of vintage computing... (In case of confusion, I mean that in a very very good way)
I just got the RGB2HDMI working with my PET(s). I used your 40 col CRTC profile as a starting point and created a profile for 40 col non-CRTC and 80 col CRTC.
All the 40 column modes look terrific and the 80 col mode works but doesn't look very good.
It freaking works!
Very good video.
Good job dadd
I'd like to see that faulty RAM chip in your retro chip testers, maybe 2nd channel follow-up video? 🤔
you can find the broken bit a little easier if you just take the difference. Say, 49 gets changed to 41 -> difference is 8, so the flipped bit is bit 3. 0a changes to 02, difference is again 10-2=8, so it's also bit 3.
Any program (except special diagnostic and benchmarking) uses stack - so if adressing or RAM used for stack is not working you will need special program to test it. For the PET frequencies oscillograph or logic analyser (even oscilloscope for bad address line) would replace programming.
I'd be just as giddy! XD
I think the romulator would be just as useful for developing new 6502 computers as for debugging old ones. I sometimes have thoughts of developing such a machine, but I'm starting on something else now.
Besides the romulator, I'm amazed at how debuggable the PET is with its norom line!
Amazing!!
Wonderful troubleshooting video!! Question, where can we get information on the SYS commands and on the built-in diagnostic?
Can the romulator remap memory locations? Would great for diagnostics if you could switch the existing necessary parts of memory on to the FPGA but then also probe them for diagnostics at different addresses. It could even feature a memory banking so you could write to a memory address to switch around address but that would be a bit complex to program. But that would allow for some really neat diagnostic programs to be written.
Excellent video!
Might you check the wiring of your PET diagnostic connectors with the spec in the PET FAQ on Mr. Zimmerman's site - do they match?
I used the pinout on the schematics, which as far as I know are correct.
Great video. I think there must be a better way to test the RAM using the romulator using a custom ROM and maybe some hacks. Maybe the FPGA could invert A14 to remap the real RAM up the memory map so it can be tested using a BASIC program?