4th Feb 2020, 10:06 pm | #1 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Commodore PET 3016
Hi, I wonder if anyone can help? I have a Commodore PET 3016. It boots up fine and will even load some games from a cassette tape! However, the keyboard behaves very oddly. Not all the keys work and it isn't a dirty keyboard. For example QWERTY comes out as 'blank blank RRYY'. The shift key makes no difference-some keys work, some don't and some return the same letters. When a game loads all the letters that should be there to make up a sentence are - so that's not an issue. For example, I can't type 'PRINT" - it comes out as 'PRINY' but it happily displays 'Print' if it is asked to by the program! Very strange.
I've changes the 6502, 6520s and 6522s. I've even changed the 2114 video RAM etc. nothing. I live in the North East UK if there is someone kind enough to help? My electronic know-how only goes so far! I'm desperate to get this fantastic machine working again - help!! Best wishes, John |
4th Feb 2020, 10:57 pm | #2 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
While we await the arrival of the real Commodore experts, I wonder if you can post a table of which characters actually appear when each of the numeric and alphabetic keys are struck? This may reveal a pattern which could point to the underlying fault.
For example, it seems that when you hit 'T' you get 'Y', so, What character appears when you hit 'G' What character appears when you hit 'B'? In case you haven't guessed, I am wondering if the keys in the column T-G-B are being read as Y-H-N, the keys in the next column to the right. Last edited by SiriusHardware; 4th Feb 2020 at 11:03 pm. |
4th Feb 2020, 11:07 pm | #3 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
This diagram here looks like it is for the PET 2001 but I wonder if the 3016 employs a similar keyboard scan regime? If so the 74LS145 (or whatever does the equivalent job in the 3016) may be the cause.
http://www.zimmers.net/anonftp/pub/c...N/320349-3.gif |
4th Feb 2020, 11:27 pm | #4 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
Further, this page has some information about PET keyboards, but unfortunately not their circuit diagrams.
http://www.6502.org/users/andre/petindex/keyboards.html In the section headed 'Keyboard Scan' it describes the key scanning operation as it would be in the diagram linked to in the previous post, and that does use a four to ten line decoder, ie, the 74LS145, to scan the columns. It's not clear whether the 'Business Keyboard' also employs a 4-to-10 line decoder to scan the columns as that is not explicitly mentioned in the following section, 'Business Keyboards'. |
5th Feb 2020, 1:00 pm | #5 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Hi, thank you for the replies. I will post some pictures when I get home. It’s really frustrating because I don’t think it’s a million miles away from being fixed! But, what do I know!! Thanks for the suggestions. I’ll get some images when I get home tonight. Best wishes,
john |
5th Feb 2020, 6:10 pm | #6 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Hi folks.
This is an image from the PET. Underneath the READY remark is the return from pressing the top line starting with the @ sign (on the keyboard that is). The second line is the whole alphabet and other characters (not the number pad) starting with QWERTY etc. |
5th Feb 2020, 8:17 pm | #7 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
If I understand you correctly you produced the characters in the second line by typing letters Q-P followed by A-L and then Z-M.
If that's a yes, then here's a table for what you press and what you get, assuming I interpreted your input correctly. Code:
Q=R W=R E=Y R=Y T=I Y=I U=P I=P O=^ P=< A=F S=F D=H F=H G=K H=K J=: K=: L=V Z=V X=V C=N V=N B=, N=, M=? <=? Code:
Q, W =R A, S =F Z, X =V Code:
E, R = Y D, F = H C, V = N Code:
T, Y = I G, H = K B, N = , It would be helpful to have the exact circuit diagram for the Pet 3000 series keyboard section, but in the meantime, as you have already tried replacing all the 'big' ICs associated with the keyboard, try to see if there is a 'four line to more lines' decoder between the I/O IC and the keyboard and if you can, change that, as you may as well rule that out before going further - assuming it's in a socket and is easy to change of course. Some good pictures of that area of the PCB may help us to make further suggestions / compare it with any info which can be found online. |
5th Feb 2020, 8:27 pm | #8 |
Dekatron
Join Date: Jun 2015
Location: Biggin Hill, London, UK.
Posts: 5,225
|
Re: Commodore PET 3016
A couple of comments...
I think all PETs used a decoder IC to select the keyboard columns. It should be easy to find by tracing the connections back from the keyboard connector, some will go to a PIA/VIA IC, the others to the decoder IC. Secondly, a lot of problems in PETs are caused by bad IC sockets. I have fixed several such machines with odd symptoms just by replacing all the (dubious quality) original sockets with good turned-pin ones. This is normally the first thing I do to a PET. It may not cure the fault, but at least you then know there is a 'real' fault to trace. |
5th Feb 2020, 8:33 pm | #9 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
Just found a nice PET repair video by the 8-bit guy here:-
https://www.youtube.com/watch?v=uHbhH7ISL_Y The section at 2:42 onwards is of particular interest to you because it has a nice explanation / animation showing how the keyboard is scanned, and the various methods he uses to narrow down the fault. Although his fault is different (no keys working at all) the diagnostic process still applies. At the moment my money is mainly on the 74LS145 decoder being faulty on yours since you've already changed the 6520. |
5th Feb 2020, 9:13 pm | #10 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
In the light of what Tony said above about sockets on these, try just removing, inspecting, cleaning and reinserting the 74LS145, assuming yours has one. It's also possible that the last person who inserted that IC may have folded one of the pins over by accident.
|
6th Feb 2020, 4:58 pm | #11 |
Heptode
Join Date: Aug 2009
Location: Worthing, Sussex, UK.
Posts: 662
|
Re: Commodore PET 3016
Check for shorts between the outputs of the 74LS145 would be my first choice. This could cause the effect you describe. Looks like a short between the lines that drive the A and F keys or the keyboard cable not inserted correctly into the mother board. If you have a diagram of the keyboard matrix it should be easy to find.
keyboard matrix is given at http://www.6502.org/users/andre/peti...rds.html#graph Last edited by JohnBHanson; 6th Feb 2020 at 5:03 pm. |
7th Feb 2020, 11:22 am | #12 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Thanks everyone, sorry for the late replies -I've been at work!
I really like the ideas of a pattern of key strokes and returns - hadn't thought of that!! So here is the pattern: Pressing QW, AS, ZX returns nothing - not even the cursor moves Pressing EDC produces RFV - so the next characters along Pressing RFV actually produces RFV Similarly Pressing TGB produces YHN and YHN produces YHN Pressing UJM produces IK, with IK, producing IK, Pressing OL; produces P:? with P:? producing P:? as expected All of these things happen whether the SHIFT key is activated or not - the characters remain uppercase On the number pad moving in a line downwards you get: Pressing 7410 produces 852. - the next column along although just occasionally - like when I first tried this this morning, the 1 returned a 1 followed by a . Now it just returns 852. 852. returns 852. and 963- returns the expected /*+= So there is a definate pattern! |
7th Feb 2020, 11:24 am | #13 | |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Quote:
|
|
7th Feb 2020, 11:25 am | #14 | |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Quote:
|
|
7th Feb 2020, 11:49 am | #15 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
The pattern I mentioned above is what happens when I am running the machine in BASIC 4, running it in BASIC 2 (I think it is) produces this:
SHIFT key pressed stops all keys returning anything except: @ produces a + and pressing 0.-+ returns graphics Without SHIFT pressed you get: QAZ gives WSX with WSX giving WSX EDC = RFV with RFV = RFV TGB=YHN and YHN=YHN and so on but in BASIC 2 I can press SHIFT and RUN STOP together tp load a programme in from tape |
7th Feb 2020, 11:55 am | #16 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Pressing SHIFT and RUN STOP in BASIC 4 freezes the PET!
|
7th Feb 2020, 2:05 pm | #17 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
Thanks for the more precise breakdown of keys pressed and characters returned. I obviously didn't completely understand which keys you had pressed and in what order originally, so the clarification / corrected table is helpful.
As you aren't keen to try to remove the 74LS145 (yet), there are other avenues to explore first but they may eventually lead you back to the 74LS145. Can we ask what you feel your technical 'level' is - don't want to insult you by aiming advice at too low a level or confuse you by aiming too high. What do you have in the way of test and repair gear and tools? -Soldering and desoldering tools? -Multimeter? -Logic Probe? -Oscilloscope? -Any other microprocessor items which could be pressed into diagnostic service, such as an Arduino? While you ponder that, one thing you could try is the 8-bit Guy's trick of unplugging the keyboard and using a wire link to connect one of the row pins on the mainboard's keyboard connector to each column pin in succession. If that gives you a nice progression of successive letters in the same order as on the keyboard row without repeating any or missing any out, that would suggest that the main board is OK and focus attention on the keyboard. |
7th Feb 2020, 3:05 pm | #18 |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Please do not worry about pitching it too low! Although I have some rudimentary skills and knowledge it is just that! I can solder fine - just a little bit nervous about unsoldering! Although I agree with you that I may have to do it! I have a multimeter but not an oscilloscope - though I could get hold of one. I think I have an old Arduino kicking around - I tend to pick these things up and then forget about them! I definately think the 8-but guy is something I should be watching avidly. It's frustrating because I don't think it's too far away from working properly - but what do I know!
Many thanks for your help. Best wishes, John |
7th Feb 2020, 5:29 pm | #19 | |
Hexode
Join Date: May 2013
Location: Middlesbrough, North Yorkshire, UK.
Posts: 442
|
Re: Commodore PET 3016
Quote:
|
|
7th Feb 2020, 6:11 pm | #20 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,587
|
Re: Commodore PET 3016
As I mentioned earlier, disconnect the keyboard from the main board and try simulating key presses by using a piece of insulated wire with tinned ends to momentarily link one of the row pins to each column pin in turn.
Depending on the results of that test, we'll work out what you should try or measure next. |