One of the most frequent questions I get asked is "what are you doing in here and how did you get in?" That wouldn't make a very interesting post so instead I thought I'd write a post answering the question "why do you collect logic analysers, weirdo?"
I powered up a Bubble Bobble the other day and found it had lost all the motion objects. I could see the platforms as well as the P1/P2 scores but Bub, Bob and the various baddies weren't displaying.
I fired up the schematic, had a browse and for reasons that will become apparent in a later post started looking at a 74LS273 that fed into a 373. The 273 is an 8-way triggered latch. On a rising clock pulse the 8 input bits (D1-D8) are carried to the outputs (Q1-Q8). An active low master reset will set the output bits low if triggered. Datasheet
The 273 feeds into a 373 which carries the data out and off to make the display.
This is the relevant part of the schematic (scan page 4-3, grid B2. download) which mislabels IC62 as a 373 when it's actually the 272 in question.
I put my logic probe on the output side of IC63 LS373 and found that all 8 Q outputs were constant low. Aha! That's obviously going to limit the amount of video
. I worked backwards to see what was being fed in and found the input side was all low too. I worked back to IC62 LS273 and found the outputs were dead, but the inputs were showing lot of activity as was the clock (signal CK1) on pin 11 and the output control/master reset on pin1 was showing slow activity (it's a master reset 'cos it's a 273 but the schem labels it output control).
Despite being rather tempted to hack this off and replace it I decided to investigate a bit more and prove beyond doubt whether it was faulty.
The truth table for the 273:
Given that I had input activity, CP activity good enough to trigger my probe and /MR activity I certainly had the right conditions for output. But the CP column shows that data is clocked from D inputs to Q outputs on the rising edge of CP. What if the activity on CP wasn't ever in sync with the D inputs? If the D inputs were all low at the exact moment of CP rising then the chip would be working perfectly and I'd see no output. Can't chip-chop on an original BB based on flimsy evidence!
The problem now was to monitor all 8 D inputs whilst comparing them to the clock waveform. I could try looking at CP on channel 1 of my scope and then cycling through the inputs on the other channel but I've never had much success with that when the data is going faster than carrier pigeon speeds.
So out came one of my favourite toys, the logic analyser
. The particular model I chose for this is an Intronix LA1034 - a 34 channel USB analyser that uses a PC as the control system. Website and handily the software download. I'm providing the LA captures later on in this post so you can load them up and flick through the software to really see what data this tool grabs.
I fit a test clip to the PCB, wired up the analyser and fired up the software.
First I needed to add the signal lines into the control software and assign them labels. I used the nomenclature from the schematic and ended up with this:
I wanted to see whatever was going over the chip so I didn't bother setting a capture trigger - a set of signal states that causes the LA to start recording - I just wanted data! I set the LA to use its own clock to set the sample rate as I didn't know whether I could trust the CK1 signal on pin 11. The LA samples every clock tick and you can either use an external clock - from the board, so you only sample when the PCB is meant to be doing something - or an internal clock from the LA itself. 10MHz seemed like a reasonable enough speed for a first bash.
Click sample and a couple of seconds later I get this on my screen:
(big version)
The capture file is here, and the download link for the software is here too. When you start the LogicPort application, select Demo mode and then File -> Load and browse to the expanded ZIP archive.
In the next post I look at the captured data and try a different method of sampling by using clock CK1 to trigger each capture.
cheers
tim
trm2013-05-01 21:36:39
I powered up a Bubble Bobble the other day and found it had lost all the motion objects. I could see the platforms as well as the P1/P2 scores but Bub, Bob and the various baddies weren't displaying.
I fired up the schematic, had a browse and for reasons that will become apparent in a later post started looking at a 74LS273 that fed into a 373. The 273 is an 8-way triggered latch. On a rising clock pulse the 8 input bits (D1-D8) are carried to the outputs (Q1-Q8). An active low master reset will set the output bits low if triggered. Datasheet
The 273 feeds into a 373 which carries the data out and off to make the display.
This is the relevant part of the schematic (scan page 4-3, grid B2. download) which mislabels IC62 as a 373 when it's actually the 272 in question.
I put my logic probe on the output side of IC63 LS373 and found that all 8 Q outputs were constant low. Aha! That's obviously going to limit the amount of video
Despite being rather tempted to hack this off and replace it I decided to investigate a bit more and prove beyond doubt whether it was faulty.
The truth table for the 273:
Given that I had input activity, CP activity good enough to trigger my probe and /MR activity I certainly had the right conditions for output. But the CP column shows that data is clocked from D inputs to Q outputs on the rising edge of CP. What if the activity on CP wasn't ever in sync with the D inputs? If the D inputs were all low at the exact moment of CP rising then the chip would be working perfectly and I'd see no output. Can't chip-chop on an original BB based on flimsy evidence!
The problem now was to monitor all 8 D inputs whilst comparing them to the clock waveform. I could try looking at CP on channel 1 of my scope and then cycling through the inputs on the other channel but I've never had much success with that when the data is going faster than carrier pigeon speeds.
So out came one of my favourite toys, the logic analyser
I fit a test clip to the PCB, wired up the analyser and fired up the software.
First I needed to add the signal lines into the control software and assign them labels. I used the nomenclature from the schematic and ended up with this:
I wanted to see whatever was going over the chip so I didn't bother setting a capture trigger - a set of signal states that causes the LA to start recording - I just wanted data! I set the LA to use its own clock to set the sample rate as I didn't know whether I could trust the CK1 signal on pin 11. The LA samples every clock tick and you can either use an external clock - from the board, so you only sample when the PCB is meant to be doing something - or an internal clock from the LA itself. 10MHz seemed like a reasonable enough speed for a first bash.
Click sample and a couple of seconds later I get this on my screen:
(big version)
The capture file is here, and the download link for the software is here too. When you start the LogicPort application, select Demo mode and then File -> Load and browse to the expanded ZIP archive.
In the next post I look at the captured data and try a different method of sampling by using clock CK1 to trigger each capture.
cheers
tim
trm2013-05-01 21:36:39