6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 5:12 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Mon Feb 05, 2024 11:40 pm 
Offline

Joined: Mon Feb 05, 2024 11:31 pm
Posts: 2
Hello everyone,

to be honest I am not very familiar with the mpus in question, but please allow the maybe stupid question...

I have a pcb using a 6503 which seems not to be working. As I do not find a source with acceptable pricing it came to my mind to double check the properties/ datasheet of an 6502 in comparison to a 6503. If I would create a piggy-back to adapt the necessary pins and keep the remaining unconnected, would this work?

Thank you in advance for a short feedback :-) Mark


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 05, 2024 11:53 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1000
Location: Canada
You could probably design a 28-pin to 40-pin adapter and since the 6503 can be considered a subset of the 65C02 it should work just fine. Unless of course the software for the 6503 took advantage fo some of the undocumented "features".

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 06, 2024 4:50 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8144
Location: Midwestern USA
silverball wrote:
I have a pcb using a 6503 which seems not to be working. As I do not find a source with acceptable pricing it came to my mind to double check the properties/ datasheet of an 6502 in comparison to a 6503. If I would create a piggy-back to adapt the necessary pins and keep the remaining unconnected, would this work?

Welcome!

As Bill alluded, the real issue if you elect to swap out the 6503 for a 65C02 will be software compatibility.  The system in which the 6502 is being run may have code in its firmware that utilizes the so-called illegal instructions (aka undefined opcodes), some of which are of no value or cause MPU fatality, but other which may carry out useful operations despite not being part of the official instruction set.  Dumping and disassembling the firmware might help with determining if that is the case, but is a tedious process that is not always 100 percent successful.

Undefined opcodes in the 65C02 are mapped to NOP instructions, but those vary as well.  If the firmware in your unit is using the undefined opcodes, your options are limited to replacing the 6503 with another 6503, or other 6502 family member accompanied with suitable circuit modifications.

Prior to entertaining any circuit mods, your first step should be to determine if the DOA condition is actually an MPU failure.  Basic checks would include verifying the presence of VCC, verifying the presence of a Ø2 clock signal, etc.  If you have juice and a clock, monitoring some of the output pins on the 6503 should tell you if there is activity within.  These things, as well as mechanical factors, such as bad solder joints, broken PCB traces, etc., need to be ruled out.  We’ve got a lot of knowledgeable hardware types here who can help you figure this out, so troubleshoot first to see if you can fix the thing.

Incidentally, do you have access to basic test gear?  A lot of these DOA situations are resolvable with little more than a DVM and a logic probe.  A scope may be useful, but not essential.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 06, 2024 12:05 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1076
Location: Albuquerque NM USA
Visual inspection is the quickest and most effective way to find faults. It is the first step in troubleshooting especially with boards that were known to be working previously. When visual inspection didn't find the fault, my own experiences, after spent many many hours troubleshooting with scope and logic analyzer, invariably showed mechanical faults that were either hidden or something I didn't look for initially.
Bill


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 06, 2024 4:12 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3346
Location: Ontario, Canada
BigDumbDinosaur wrote:
Prior to entertaining any circuit mods, your first step should be to determine if the DOA condition is actually an MPU failure.
Indeed.

Can you supply more info about this "pcb using a 6503," Mark? Photos would be helpful, as well as a more detailed description of why it seems not to be working. (Photos can be attached with your post.)

-- Jeff

ps - welcome!

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 06, 2024 11:27 pm 
Offline

Joined: Mon Feb 05, 2024 11:31 pm
Posts: 2
Thank you all for the warm welcome :-)

Yes, I have a Digital-Volt-Meter and Logic-Tester available.

Just some background to my pcb in question.... The board is a sound card (C-19389) from a Gottlieb pinball System 1 manufactured 1980. I bought the pinball half a year ago without a working sound besides other issues.

The general optical condition of the pcb was quite good for my understanding. Due to my experience with other machine board of this age, I started to clean the board and replaced all electrolytic capacitors and potentiometer.

The circuit consist of a 6503 with a prom and a 6530. I read all over the web, that often times the 6530, which has an internal prom, looses the function. So I found a piggy back solution to replace the 6530 by a 6532 and an e2prom. Once done nothing happened. As I had a bit time pressure to make the game working for a bigger party I found the last 6503 on the market in our region. Again without success. Unfortunately I realised later, that the IC was installed in the wrong direction. No idea whether the 6503 IC survived the stupid action :-/ As I got angry in the meanwhile I put the pcb on side and board a repro with same form-fit-function. So far so good.



But to be honest I would make this original board working even if in the meanwhile lot of the electrical parts have been replaced. If somebody is interested in this, I have attached some pictures and the datasheet of the board.

When I read here thru the posts that I feel confirmed not to make the same approach again as I did... just replacement... better I have to go thru the scheme and try to varify what should be.

I will post my observation and ideas the next days/ weeks and if somebody has some helpfull comments in his mind.... ;-)

Thank you so far!


Attachments:
C-19389_scheme.pdf [791.99 KiB]
Downloaded 48 times
image3.jpeg
image3.jpeg [ 1.28 MiB | Viewed 1899 times ]
image2.jpeg
image2.jpeg [ 1.33 MiB | Viewed 1899 times ]
image1.jpeg
image1.jpeg [ 1.28 MiB | Viewed 1899 times ]
Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 07, 2024 8:22 pm 
Offline

Joined: Sun May 13, 2018 5:49 pm
Posts: 247
Hello, and welcome to the forum!
Because your board has a power supply on it, I'd start your trouble shooting there. Do you know how to diode-check the 4 diodes next to the edge connector (CR1-CR4 on your schematic) using your multimeter? If not, just let us know which model multimeter you have.

If those are OK, I'd check your voltages next with the board plugged in. I personally like to do this with all of the socketed ICs removed, but you've already applied power with them installed so it may not matter. Using one of the bolts on the 7805 regulator (with the heatsink) as ground (black multimeter lead), you can measure the two pins that stick through the board with the red multimeter lead. One should be around +14V and the other should be around 5V. The last voltage you need you can measure across C9. That should measure 12V (it says -12V on the schematic, but that just depends on which way around you connect your multimeter... if you hook your black lead to the - stripe side lead of the capacitor, it will read as a positive value on your multimeter, and that's fine).

Then, touching the metal can of the regulator with the black lead of the multimeter (you may need to scratch it a bit with the probe to get a good connection), I'd probe the following places with your red multimeter lead:
Pin 5 of the 6503 is VCC and you should have close to 5V there.
Pin 2 of the 6503 id VSS and you should have close to 0V there.
Pin 1 of 6503 is /RESET (as generated by U5, the NE555P chip and inverted by U6, the 74HCT04N) and it should be HIGH (around 5V) very shortly after powerup and it should stay high.
Pin 28 of the 6503 is the phase-2 clock - if your multimeter has a frequency counter function, you could try that on this pin. You want this pin to be oscillating. You can also use the logic tester here, and it should show the oscillation (may indicate high and low at the same time, as this is a fast oscillation).

That's probably a good start. I see your add-on board replaces the impossible-to-get parts and it replaces both the program ROM and the separate sound data PROM. It should be fine to use that board as long as the EPROM has the program for your machine properly selected using the DIP switches on that board.

If all of the above are good, I'd check U3 (the MC1408L8 digital to analog converter) to see if it's getting digital signals and generating analog ones and then U8 (LM390N) is the amplifier that makes it strong enough to drive a speaker. I was initially concerned about the soldering on the amplifier IC, as many of the pins look shorted together; your schematic shows that all of those pins are indeed connected to GND, so it actually looks good for that.

(edited lightly for clarity when describing multimeter connections)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: