English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 08 November 2018, 12:42   #1
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
Found my old A500 again, and it is nearly running

My name is Mark, I have been programming the Amiga in the early 90s in machine code. That's what I still like a lot on other platforms.

My old naked A500 has a strange behaviour when joystick is plugged in. Every time I move the stick left or up the machine resets. Any other operation like loading and using the Workbench with the mouse, watching old demos or playing old games from disks w/o joystick performs alright.
I happened to have a lot ICs left over and successively changed both CIAs, ROM, Gary and Paula. And I inspected all electrical contacts and connection to the IC sockets. I removed and refitted even the Agnus and Denise ICs.

That strange behaviour is still there.
Are there any hints or ideas to enable joystick use again w/o causing reset all the time ?
Changing the joystick model does not make any difference.
Mark

Last edited by MarkL; 08 November 2018 at 15:34.
MarkL is offline  
Old 08 November 2018, 16:51   #2
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
Are the joystick port pins all straight?
Jope is offline  
Old 08 November 2018, 18:18   #3
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
Sounds like +5V & GND are being connected.

What kind of joysticks are you using?
Does the joystick in the mouse port do the same thing?

I seem to remember there is one type of controller (NES?) that pulls up the pins to 5V when not pressed instead of leaving them floating like most systems. Not sure that would explain this but just a thought.
nogginthenog is offline  
Old 08 November 2018, 19:17   #4
gdunlapsd
Registered User
 
Join Date: Jul 2018
Location: San Diego / USA
Posts: 34
I agree with noggin; sounds like a short between 5v and ground, or perhaps a directional pin (don't know if that would cause a reset, but maybe).

Here's a pinout of the joystick port:

http://eab.abime.net/showpost.php?p=1032393&postcount=2

Make sure there is no debris or corrosion between pins inside the port and behind it as the pins go into the motherboard.

Also, take out the motherboard and check the bottom for corrosion under the joystick port (and elsewhere while you're at it. Since it sounds like you got this out of storage, corrosion is a real possibility depending upon how it was stored.
gdunlapsd is offline  
Old 08 November 2018, 20:02   #5
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
That explains one possible source of the problem of course. But the pins are straight and the joysticks are those I am using with my other Commodore computers without problems.
The board looks fairly clean from the upper side. I had already checked all capacitors visually.
Anyhow, I will soon inspect the joyport from the under side of the main board. Did not yet do this.
MarkL is offline  
Old 10 November 2018, 13:47   #6
gregthecanuck
Registered User
 
Join Date: Mar 2017
Location: Vancouver, BC, Canada
Posts: 30
Welcome to EAB!
gregthecanuck is offline  
Old 10 November 2018, 20:13   #7
Shadowfire
Registered User
 
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 617
I'm looking at the schematic for the A500 Rev 6.

Up/Left on an Atari style joystick should connect pin 8 (ground) to either pin 1 or pin 3 (depending upon direction).

The Amiga port does not connect pins 1 & 3 directly to a GPIO port. Instead, they are multiplexed by U15, a 74LS157, and the mux outputs are fed to Denise (U4). The 74LS157 has no direct passthrough of the signal from one mux input to the output, it buffers the signal; therefore, it is safe to assume that the problem is not with Denise.

Looking at the input signal conditioning, there are capacitors to snub EMI on these lines. If the capacitors have internally shorted, then your symptoms would be of that joystick direction always being activated, not a system reset.

Additionally, RP401 serves as the pullup to VCC. At the existing value (4.7K) there would be a ~1mA power draw whenever the joystick pulls the I/O line low, which should not cause a reset.

The 74LS157 buffer IC is a CMOS level input buffer, which when functioning normally, shows an extremely high resistance level to VCC on its inputs.

However, you ARE getting system resets, and this almost certainly because your 5V rail is tanking when you activate the joystick. Unless you have a mechanical short on to the motherboard, the most likely reason is the 74LS157, and I'll explain why.

The mouse in an Amiga uses 4x infrared LEDs and phototransistors to "see" the holes drilled in wheels which rotate when you move the mouse. The LEDs are powered by the 5V and Ground pins (7 & 8). The phototransistors are all connected from Ground (pin 8) to their respective pins (1 to 4).

In a joystick, a phototransistor isn't doing the shorting from GND to the directional pin; a mechanical switch with a VERY low resistance (typically <1 ohm) is doing it. The phototransistor in a mouse does NOT get nearly this low of a resistance; typically, it will go down to an effective resistance of ~60 ohms (it's more complicated than this, but this is an approximation). Therefore it is entirely possible that the mouse does not load the power supply down enough to reset the computer, while the joystick does, and the joystick does not reset any other machines you connect it to.

The pullup resistors (RP401) *might* be bad and too low of a value, however it is FAR more likely that the 74LS157 has a defect or ESD damage on the input stages tying it to VCC with a low resistance. Take a DMM (with the computer OFF) and measure the resistance from 5V (pin 7) to pins 1 & 3, then check it against pins 2 & 4. Make sure that on each measurement you use the RED DMM lead to probe the 5V pin and the BLACK DMM lead to the pin under test.

I bet you'll find that pins 2 & 4 have a significantly higher resistance than pins 1 & 3. You should have the IC replaced by someone who can service circuit boards; also have them check the EMI capacitors to make sure that they haven't failed (or you may find yourself doing the same repair again in the future).

Last edited by Shadowfire; 10 November 2018 at 20:27.
Shadowfire is offline  
Old 11 November 2018, 18:48   #8
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
Shadowfire, what you are explaining does sound very elaborate. I have tried to follow your description. And I have found that resistance between pin 5 (+5V) and equally pin 4,3 and 2 is 9 kiloohms each. Whereas resistance to pin 1 is about 1 megaohm. I could not locate RP401 I just see a resistors unit called RP404. I have board revision 5.
I am refering to they joyport pinout linked above. I will possibly have a try and replace U15 using my new desoldering gun. It is not that I am totally inexperienced with soldering. I am just new to the computer electronics. In the past I just have done model railway soldering.
Mark

P.S.
If I swap mouse and joystick the amiga does not come up at all. screen stays gray. if none of mouse or joystick is connected everything is alright again.if then i put mouse into port 2 (the joyport) the amige resets and wont come up again. If only the joystick is connected to the mouseport the 'normal' failure behaviour resetting on up or down occurs...

Last edited by MarkL; 11 November 2018 at 19:17.
MarkL is offline  
Old 11 November 2018, 19:17   #9
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
Quote:
Originally Posted by gregthecanuck View Post
Welcome to EAB!
Thank you .
MarkL is offline  
Old 13 November 2018, 03:54   #10
Shadowfire
Registered User
 
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 617
I tried to hunt down a copy of the Rev5 schematic to see if the circuit is any different, but no dice. Good news is, I have a working Rev 5 A500 here to measure and walk you through it.

http://amiga.resource.cx/photos/phot...res=hi&lang=en

shows a picture of the rev 5 PCB. RP401 is on the right hand side (further to the right, and slightly above, RP404). You need to take off the floppy drive to see it. In this picture it is a red component; for what it's worth, on my machine it is blue.

A little less than 10K is the correct measurement. This confirms that R401 (4.7K current limiting on the +5V pin of the joystick port) and RP401 (4.7K pullups to +5V) are good on joystick pins 2-4, however, 1 Meg means that you have at least one fault on the motherboard.

Once you have removed the drive and have RP401 exposed, perform the following checks:

Inspect the rear side of the joystick port, EMI421, RP401, and U15 for foreign bodies, solder bridges etc. which might be shorting pins together.

Measure from joystick pin 1 to EMI421 (side nearest the joystick port). You should get <1 ohm.
Measure across EMI421. You should get <1 ohm.
Measure from EMI421 to RP401 pin 6. (RP401 pin 1 is nearest to the right side of the board). You should get <1 ohm. (* this is the one I think is going to fail)
Measure from RP401 pin 1 to RP401 pin 6. You should get around 4.7K.
Measure from EMI421 to U15 pin 11. You should get <1 ohm. U15 is the 74LS157, not the 74LS38.

Get back with which measurement(s) failed.

Last edited by Shadowfire; 13 November 2018 at 04:23.
Shadowfire is offline  
Old 14 November 2018, 19:09   #11
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
Following your instruction I found all values as expected besides that from joystick pin 1 to EMI421. It is above 1 Mega Ohm. I had no problem identifying all pins as the board layout you have posted is just the one I have here.
BTW I have swapped U15 for a brand new one and the A500 still behaves exactly as before failing on joystick moves up and left.
There is no debris or short cuts to be seen. I have cleaned the board using compressed air just after disassembling the computer. There was only very little dust in the case.
MarkL is offline  
Old 15 November 2018, 04:10   #12
Shadowfire
Registered User
 
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 617
You have a break in the electrical path leading from joystick pin 1 to EMI421. This is on the back side of the PCB, so you need to take it out of the EMI shielding to do this. Check the joystick connector for damage to the solder joints; if you can see any cracks, flux up and reflow the solder on all of the connectors on the machine. If there is no visible damage to the solder joints on the connector, look for damage to the track itself. Check the trace itself from joystick pin 1 to EMI421 on the back side with the meter. If the break is in the trace and not the joystick connector joint, use a 24 to 30 gauge wire to jumper from the connector pin to EMI421.

The damaged pin joint or trace, however, is probably not responsible for the spontaneous resets.

Next, yank Denise (U4) out of the socket and power it up with the joystick in port 2. You will *not* have any video, but you will be able to observe the power LED turn on after a few seconds, and hear the floppy drive click.
Now check the joystick and observe the LED/floppy to see if it still makes the machine reset.

If it no longer resets, Denise needs to be replaced. If it still resets, turn off power and measure RP405 (near Denise) between pins 1 and 4. This should be 120 ohms. If you're stuck with fatty meter probes, you can probe it from the back side, or check from Ground to U4.39.

The rev 5 board seems to be different than rev 6 on this signal. Instead of an EMI capacitor, the signal is routed through RP404 (pins 7 and 8). I can see no markings, but it seems to be a string of four 68-ohm resistors (no common rail). Check for ~68 ohms between U4.39 and U15.9.

If it still resets without Denise and RP405 / RP404 check out OK, then I sure hope that you socketed U15 when you replaced it.

Last edited by Shadowfire; 15 November 2018 at 04:37.
Shadowfire is offline  
Old 15 November 2018, 05:01   #13
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,375
Welcome!
Pyromania is offline  
Old 15 November 2018, 18:46   #14
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
I am soryy. But I was misled by the joystick pin layout linked here. It wrongly showed no.5 as +5V and not no.7.
When repeating the initial measurements to pin 1 thru 4 I get a consistent 4.7KOhm.
Of course you are right that a possibly broken joint from no.1 joystick pin to EMI421 has no effect on my problems. And there is no problem either at a more closely inspection neither with joint or trace on the back side. I also was misled by mixing up no.5 and no.7 pin.
However the resets still occur with Denise removed and all resistance readings around RP405 / RP404 came out as expected and hence are alright. I might pause the issue for now and will put in a socket to try my secondary 74LS157 one day. But there is no socket handy at the moment. Anyhow it this a welcome lesson in understanding electronics a bit. It is all rather new to me. BTW where did you get the A500 rev.5 schematics online ?
I also have another patient namely an Acorn Archimedes to be cured. But the oscilloscope I was promised by a friend is still retarded until midth of December. Maybe that one is helping me too with the A500 then.
Regards
Mark
MarkL is offline  
Old 16 November 2018, 02:27   #15
Shadowfire
Registered User
 
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 617
I don't have the schematics for the R5, I was looking at the R5 A500 on my desk. The next step is to try a new 74LS157.
Shadowfire is offline  
Old 16 November 2018, 08:40   #16
MarkL
Registered User
 
Join Date: Nov 2018
Location: Germany
Posts: 7
I see. Thanks. Then I will startup my desoldering tool again to install a socket.
MarkL is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
requirements to running a500 emulator and overheads ? Anise support.FS-UAE 0 25 September 2018 08:06
Issues running James Pond 2 OCS-ECS on NTSC A500 grhmhome support.Games 4 09 February 2015 07:26
Info on running an A2091 on an A500 kjmann14 Amiga scene 4 19 March 2009 03:11
Workaround found for running WinUAE under Wine/Linux mark_k support.WinUAE 14 24 November 2008 03:56
A1200 running A500 games hugeage support.Hardware 2 05 November 2002 02:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16145 seconds with 15 queries