Author Topic: MC68000 ROM/RAM R/W issue  (Read 2350 times)

0 Members and 1 Guest are viewing this topic.

Offline gkmaiaTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
  • Electronics Hobbyist
MC68000 ROM/RAM R/W issue
« on: October 14, 2019, 10:02:48 pm »
Not sure if that is an issue or not, but...

I got an EPS keyboard that runs on a MC68000 and does not work.

Seems data is flowing on the address and data bus. The processor tried to get some data moving for a second after boot and then go quiet.

The odd thing, I cannot really understand if that is an issue of just eh way the processor works but if you look at the printout attached you will see the processor enables a CS for both ROMs chips then enables a OE for both ROM chips. This means it is throwing at the A CYCLE the data from both ROMs in the data bus. Then it does the same with RAM, trying to write and read both RAM ICs at the same time.

I would think the CS, OE and WE would be enabled in such a way that it would only try to read or write one memory IC at a time.

Is it normal operation for the MC86000?
« Last Edit: October 14, 2019, 10:06:38 pm by gkmaia »
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: MC68000 ROM/RAM R/W issue
« Reply #1 on: October 14, 2019, 10:46:53 pm »
What else would you expect a 16 bit CPU to do for its 16 bit instruction fetches or 16 bit data access?  Its right there on the schematic - the 'Upper' memory handles D8-D15 while the 'Lower' memory handles D0-D7 at the same address.  The 68000 *can* do single byte access, that's why it has separate select lines for the upper and lower bytes of the data bus, but normally you'd only use that for I/O chips etc.
 
The following users thanked this post: gkmaia

Offline gkmaiaTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
  • Electronics Hobbyist
Re: MC68000 ROM/RAM R/W issue
« Reply #2 on: October 14, 2019, 10:54:00 pm »
You are right... I missed it a big time.

I am looking to this for so long that I am already starting to get blind...
 

Offline gkmaiaTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
  • Electronics Hobbyist
Re: MC68000 ROM/RAM R/W issue
« Reply #3 on: October 19, 2019, 07:17:09 am »
I did a bit more troubleshooting on the keyboard.

And I am getting really annoyed by these spikes on the data bus. They only happen at the data bus. If I look at address or control bus... no spikes. Clean signals.

First I thought they would be ghost signals, something wrong with my setup. But no, the spikes are actually there and they seem to be scrambling the data.

What is the best way to troubleshoot this type of issue? The data bus has no connection to ground or positive rail that I could blame for example a leaky cap. Instead it is basically driven by digital I/O of ICs. And as being the data bus, ALL logic ICs from ROM, RAM, MPU, 74logic is connected to it.

Not even sure from where to start to pin point what is causing these spikes.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: MC68000 ROM/RAM R/W issue
« Reply #4 on: October 19, 2019, 10:42:53 am »
Hmm.  Look for a TTL chip driving the bus with a bad connection to its active low /CS or /OE pin, or a CMOS chip with TTL logic driving its /OE or /CS pin and a bad connection in that logic.  It would float high, thus disabled, but capacitive coupling from a nearby falling edge transition could take it low enough for it to enable and produce a runt pulse glitch.

I'd start by looking for glitches on the /CS and /OE pins of all the memory and identifiable I/O chips.
« Last Edit: October 19, 2019, 10:47:18 am by Ian.M »
 
The following users thanked this post: gkmaia

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: MC68000 ROM/RAM R/W issue
« Reply #5 on: October 20, 2019, 05:00:44 pm »
Well, the address/control lines are being constantly driven in one direction from the 68000.
The data lines are all three state and bidirectional so they aren't going to look quite as textbook.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: MC68000 ROM/RAM R/W issue
« Reply #6 on: October 20, 2019, 09:27:50 pm »
That's what I was thinking too, the lines on a tristate bus tend to be pretty messy looking. You should try looking at them at the same time as each OE line, the bus signals should look pretty solid whenever an OE is active and something is driving the bus.
 

Offline TK

  • Super Contributor
  • ***
  • Posts: 1722
  • Country: us
  • I am a Systems Analyst who plays with Electronics
Re: MC68000 ROM/RAM R/W issue
« Reply #7 on: October 20, 2019, 09:40:15 pm »
The spikes appear when there is a low to high transition on other lines... it could be crosstalk.
 

Offline gkmaiaTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
  • Electronics Hobbyist
Re: MC68000 ROM/RAM R/W issue
« Reply #8 on: October 20, 2019, 09:57:27 pm »
The spikes appear when there is a low to high transition on other lines... it could be crosstalk.

Do you mean cross talk in the DUT as a fault. For example an IC with shorted digital outputs?

Or cross talk on my digital probes? Not sure if it could be that as my probes are quality HP OEM stuff and the spikes also show on my analog probe.

Hmm.  Look for a TTL chip driving the bus with a bad connection to its active low /CS or /OE pin, or a CMOS chip with TTL logic driving its /OE or /CS pin and a bad connection in that logic.  It would float high, thus disabled, but capacitive coupling from a nearby falling edge transition could take it low enough for it to enable and produce a runt pulse glitch.

I'd start by looking for glitches on the /CS and /OE pins of all the memory and identifiable I/O chips.

Also re-soldered all CS/OE pins on te board and checked continuity for those. All fine.

I am attaching an image of the main driving bus. As per technical manual (also attached) all the lines that are supposed to be pulsing are pulsing. But only for a while as after a second DTACK goes high and gets stuck there.

Could it be a the ROM is corrupted? As it seems ICs are pulsing and trying to work. Or could be those spikes on the digital bus are messing with data/addresses and making te processor look for data that does not exist... etc...?

 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: MC68000 ROM/RAM R/W issue
« Reply #9 on: October 20, 2019, 10:08:03 pm »
It's possible. Judging by past experience repairing digital hardware of that era the first thing I would suspect is a failed RAM, followed by a bad ROM. Can you find images of the data that is supposed to be on the ROMs to compare?
 

Offline gkmaiaTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
  • Electronics Hobbyist
Re: MC68000 ROM/RAM R/W issue
« Reply #10 on: October 20, 2019, 10:37:01 pm »
It's possible. Judging by past experience repairing digital hardware of that era the first thing I would suspect is a failed RAM, followed by a bad ROM. Can you find images of the data that is supposed to be on the ROMs to compare?

Thanks for feedback. I ordered a ROM writer device. May arrive in a couple weeks. And yes, I do have the ROM bins on my computer. As they arrive I can compare and re-flash if needed.

I will take the RAMs out and see if I can come up with a way to test them. Or just order a new batch. They seem cheap.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: MC68000 ROM/RAM R/W issue
« Reply #11 on: October 20, 2019, 11:19:34 pm »
What kind of writer? Many of them like the popular TL866 can test SRAM chips, I haven't checked whether it supports the specific ones you have here though.
 

Offline dnwheeler

  • Regular Contributor
  • *
  • Posts: 86
  • Country: us
Re: MC68000 ROM/RAM R/W issue
« Reply #12 on: October 21, 2019, 09:54:31 pm »
The TL866 programmers can also test many 74- and 4000-series logic chips.
 

Offline gkmaiaTopic starter

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
  • Electronics Hobbyist
Re: MC68000 ROM/RAM R/W issue
« Reply #13 on: October 21, 2019, 11:17:46 pm »
I got the TL866CS as I thought the 21v capability would be more useful than some of the extra functions the II does.

I was watching a video and it is pretty neat. Does test RAM, MPU and 74logic on top of writing ROM... for $35?!

That will be very handy to debug this keyboard when it arrives.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf